# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1080

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1081

---

## [Differences in Distributions.quantile output between package v0.18 and v0.25.52](https://discourse.julialang.org/t/differences-in-distributions-quantile-output-between-package-v0-18-and-v0-25-52/78821)

<div class="topic-metadata">

**Author:** [@Jon\_Barker](https://discourse.julialang.org/u/Jon_Barker)\
**Replies:** 0\
**Last updated:** [March 31, 2022, 4:10pm UTC](https://discourse.julialang.org/t/differences-in-distributions-quantile-output-between-package-v0-18-and-v0-25-52/78821 "2022-03-31T16:10:55Z")

</div>

I have a Julia 1.1 application I’m upgrading to 1.7 Here is some code: using Distributions g = Distributions.Gamma(0.004190129634501312, 0.00043125955824484334) q = 0.0444788802702531 Distributions.quantile(g, q) Unde…

---

## [Julia code browsing via Sourcetrail](https://discourse.julialang.org/t/julia-code-browsing-via-sourcetrail/58260)

<div class="topic-metadata">

**Author:** [@Willem](https://discourse.julialang.org/u/Willem)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 4:05pm UTC](https://discourse.julialang.org/t/julia-code-browsing-via-sourcetrail/58260 "2022-03-31T16:05:55Z")

</div>

Sourcetrail is a fantastic source code browser for C and C++. Among others, it can make great call trees and it’s very fast. I want to use it to browse Julia code… but I have little experience with Julia, I am coming fro…

---

## [PATH variable ignored when finding nsys executable (Windows 11)](https://discourse.julialang.org/t/path-variable-ignored-when-finding-nsys-executable-windows-11/78714)

<div class="topic-metadata">

**Author:** [@adam246](https://discourse.julialang.org/u/adam246)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 3:35pm UTC](https://discourse.julialang.org/t/path-variable-ignored-when-finding-nsys-executable-windows-11/78714 "2022-03-31T15:35:06Z")

</div>

Running Julia 1.7.2 under Nsight Systems 2022.2.1 on Windows 11. When the CUDA.@profile macro is called, the nsys executable is not found, even though it’s on the PATH. Instead, the JULIA\_CUDA\_NSYS variable has to be exp…

---

## [Simple Linear Regression: Domain Error with 0.0](https://discourse.julialang.org/t/simple-linear-regression-domain-error-with-0-0/78717)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 27\
**Last updated:** [March 31, 2022, 3:12pm UTC](https://discourse.julialang.org/t/simple-linear-regression-domain-error-with-0-0/78717 "2022-03-31T15:12:36Z")

</div>

Greetings Julians: I have produced a dataframe whose columns are all eltype ‘Float64’ as: Col1 = rand(1:0.01:500,6) Col2 = rand(1:0.01:500,6) Col3 = rand(1:0.01:500,6) Matr = hcat(Col1,Col2,Col3) I normalized the Mat…

---

## [How to support passing temporary buffers around](https://discourse.julialang.org/t/how-to-support-passing-temporary-buffers-around/70880)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 23\
**Last updated:** [March 31, 2022, 2:47pm UTC](https://discourse.julialang.org/t/how-to-support-passing-temporary-buffers-around/70880 "2022-03-31T14:47:36Z")

</div>

Right now if a user wants to re-use a pre-allocated buffer for sorting multiple data-sets of similar size and type, they must dig into sorting internals (e.g. calling Sort.sort!(v, alg, ord), which bypasses the automati…

---

## [Integro-differential equation and 2nd order differential equation](https://discourse.julialang.org/t/integro-differential-equation-and-2nd-order-differential-equation/78799)

<div class="topic-metadata">

**Author:** [@MartinMikkelsen](https://discourse.julialang.org/u/MartinMikkelsen)\
**Replies:** 8\
**Last updated:** [March 31, 2022, 2:26pm UTC](https://discourse.julialang.org/t/integro-differential-equation-and-2nd-order-differential-equation/78799 "2022-03-31T14:26:44Z")

</div>

I’m very new to Julia and want to convert from Python to Julia. I have a system of equations that I want to solve numerically in Julia. The system is where f(r)=S\*exp(-r^2/b^2), S, b and m\_π are constants. In Python …

---

## [Basic Dot Plot Error](https://discourse.julialang.org/t/basic-dot-plot-error/78778)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 4\
**Last updated:** [March 31, 2022, 2:25pm UTC](https://discourse.julialang.org/t/basic-dot-plot-error/78778 "2022-03-31T14:25:05Z")

</div>

Hello Watchers: Executing commands in Pluto 0.18.\* I am using StatsPlots and PlotlyJS (with plotlyjs() activated as a back-end) in Julia 1.8.\* When executing the following instructions: Lab\_Entity = \["Lab1", "Lab2",…

---

## [Memory allocation when evaluating a function inside struct](https://discourse.julialang.org/t/memory-allocation-when-evaluating-a-function-inside-struct/78784)

<div class="topic-metadata">

**Author:** [@Kishore\_Nori](https://discourse.julialang.org/u/Kishore_Nori)\
**Replies:** 6\
**Last updated:** [March 31, 2022, 2:19pm UTC](https://discourse.julialang.org/t/memory-allocation-when-evaluating-a-function-inside-struct/78784 "2022-03-31T14:19:51Z")

</div>

I am trying to understand the following memory allocation behaviour: struct justfunc f::Function end func = justfunc(sin) @allocated func.f(0.1) # 32 @allocated sin(0.1) # 0 Having an other variant where the type i…

---

## [In Atom, Julia exits while running a script](https://discourse.julialang.org/t/in-atom-julia-exits-while-running-a-script/78751)

<div class="topic-metadata">

**Author:** [@drarnau](https://discourse.julialang.org/u/drarnau)\
**Replies:** 10\
**Last updated:** [March 31, 2022, 2:00pm UTC](https://discourse.julialang.org/t/in-atom-julia-exits-while-running-a-script/78751 "2022-03-31T14:00:21Z")

</div>

Hello, I am running quite a big optimization code (I can’t share it). The big picture is that I use a modified version of Tamas Papp’s MultistartOptimization.jl to estimate a non-linear model. When I increase the amoun…

---

## [When not to use Multiple Dispatch?](https://discourse.julialang.org/t/when-not-to-use-multiple-dispatch/78792)

<div class="topic-metadata">

**Author:** [@helgee](https://discourse.julialang.org/u/helgee)\
**Replies:** 6\
**Last updated:** [March 31, 2022, 1:40pm UTC](https://discourse.julialang.org/t/when-not-to-use-multiple-dispatch/78792 "2022-03-31T13:40:55Z")

</div>

Hi folks! On my endless quest to make AstroTime.jl the best date and time handling package in the universe, I am pondering another redesign :see\_no\_evil: When modelling my problem domains, I always gravitate to pushing…

---

## [What does "Accum" mean in Makie](https://discourse.julialang.org/t/what-does-accum-mean-in-makie/78803)

<div class="topic-metadata">

**Author:** [@yashi](https://discourse.julialang.org/u/yashi)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 1:37pm UTC](https://discourse.julialang.org/t/what-does-accum-mean-in-makie/78803 "2022-03-31T13:37:04Z")

</div>

What does “Accum” mean in Makie or Julia? Does it stand for accumulative? Because transformation and rotation accumulates when transforming relatively?

---

## [Error when trying to open a file](https://discourse.julialang.org/t/error-when-trying-to-open-a-file/78782)

<div class="topic-metadata">

**Author:** [@dannofthursday](https://discourse.julialang.org/u/dannofthursday)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 1:36pm UTC](https://discourse.julialang.org/t/error-when-trying-to-open-a-file/78782 "2022-03-31T13:36:45Z")

</div>

I am writing what I thought would be a straight-forward piece of julia code to fix an issue with a json file in multiple folders. using JSON root = "C:\\\\ROOTFOLDER\\\\" cd(root) filename = "my.json" folderList = \["A", "…

---

## [Is it possible to throw errors over missed compiler optimizations?](https://discourse.julialang.org/t/is-it-possible-to-throw-errors-over-missed-compiler-optimizations/78805)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 0\
**Last updated:** [March 31, 2022, 1:21pm UTC](https://discourse.julialang.org/t/is-it-possible-to-throw-errors-over-missed-compiler-optimizations/78805 "2022-03-31T13:21:35Z")

</div>

Hi all. I have a naive question: is it possible, and how involved would it be, to somehow write Julia code that throws an error if certain compiler optimizations fail to happen? Like, if you accidentally use globals/type…

---

## [NamedArrays REPL Issue](https://discourse.julialang.org/t/namedarrays-repl-issue/78675)

<div class="topic-metadata">

**Author:** [@tlorans](https://discourse.julialang.org/u/tlorans)\
**Replies:** 8\
**Last updated:** [March 31, 2022, 12:50pm UTC](https://discourse.julialang.org/t/namedarrays-repl-issue/78675 "2022-03-31T12:50:40Z")

</div>

Hello everyone, All my code isn’t working anymore since today, with the following simple MWE: x = NamedArray(\[0,4,5\],\["a","b","c"\]) Now output’s: ERROR: ArgumentError: reducing over an empty collection is not allowed…

---

## [Edge case in Sets with Floats](https://discourse.julialang.org/t/edge-case-in-sets-with-floats/78787)

<div class="topic-metadata">

**Author:** [@fatteneder](https://discourse.julialang.org/u/fatteneder)\
**Replies:** 6\
**Last updated:** [March 31, 2022, 12:25pm UTC](https://discourse.julialang.org/t/edge-case-in-sets-with-floats/78787 "2022-03-31T12:25:00Z")

</div>

Hi Julia Community, recently I was approached by a colleague who just got started with Julia and ran into a problem that took him ages to debug. We then seat down together and could come up with the following MWE: juli…

---

## [How to \`dump(MakieCore.Transformable)\`](https://discourse.julialang.org/t/how-to-dump-makiecore-transformable/78802)

<div class="topic-metadata">

**Author:** [@yashi](https://discourse.julialang.org/u/yashi)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 12:24pm UTC](https://discourse.julialang.org/t/how-to-dump-makiecore-transformable/78802 "2022-03-31T12:24:30Z")

</div>

I’m searching a way to access MakieCore.Transformable. I was reading docstring of Makie.rotate!() and found out that there is a type called Transformable. help?\> Makie.rotate! rotate!(Accum, scene::Transformable, axi…

---

## [Pkg precompile single threaded option?](https://discourse.julialang.org/t/pkg-precompile-single-threaded-option/78798)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 12:16pm UTC](https://discourse.julialang.org/t/pkg-precompile-single-threaded-option/78798 "2022-03-31T12:16:41Z")

</div>

Is there a way to force precompilation to single threaded in Julia 1.7? I’m running it on the tiny Raspberry Pi Zero and the multithreaded precompilation blows up RAM with a lot of julia instances.

---

## [CUDA.jl - Atomic Addition Error To A Sparse Array Inside CUDA Kernel](https://discourse.julialang.org/t/cuda-jl-atomic-addition-error-to-a-sparse-array-inside-cuda-kernel/78789)

<div class="topic-metadata">

**Author:** [@moukann](https://discourse.julialang.org/u/moukann)\
**Replies:** 4\
**Last updated:** [March 31, 2022, 11:18am UTC](https://discourse.julialang.org/t/cuda-jl-atomic-addition-error-to-a-sparse-array-inside-cuda-kernel/78789 "2022-03-31T11:18:47Z")

</div>

Hello all, I am trying to assemble many individual elements of a huge system to a global system. The global system is sparse, It is a certain thing. Also it is wasteful to store all zero elements in memory, I just need …

---

## [Slow backward gradients in ODEs](https://discourse.julialang.org/t/slow-backward-gradients-in-odes/78333)

<div class="topic-metadata">

**Author:** [@deismic](https://discourse.julialang.org/u/deismic)\
**Replies:** 7\
**Last updated:** [March 31, 2022, 10:59am UTC](https://discourse.julialang.org/t/slow-backward-gradients-in-odes/78333 "2022-03-31T10:59:16Z")

</div>

Hi all, I am new to Julia and I am trying to solve an ODE and obtain its gradients wrt parameters p. The ODE is the Hodgkin-Huxley model, a standard model in neuroscience (full ODE at the end of this message). I can so…

---

## [Memory allocation in iterator](https://discourse.julialang.org/t/memory-allocation-in-iterator/78786)

<div class="topic-metadata">

**Author:** [@Tqft](https://discourse.julialang.org/u/Tqft)\
**Replies:** 9\
**Last updated:** [March 31, 2022, 9:40am UTC](https://discourse.julialang.org/t/memory-allocation-in-iterator/78786 "2022-03-31T09:40:54Z")

</div>

There are already several discussions about memory allocations in iterators but I have a very simple question that bothers me whenever I implement an iterator. Take the example iterator from the manual: julia\> struct Sq…

---

## [Improving my mental model: Why is \`sizehint!()\` so much slower than \`zeros()\`?](https://discourse.julialang.org/t/improving-my-mental-model-why-is-sizehint-so-much-slower-than-zeros/78776)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 9\
**Last updated:** [March 31, 2022, 9:03am UTC](https://discourse.julialang.org/t/improving-my-mental-model-why-is-sizehint-so-much-slower-than-zeros/78776 "2022-03-31T09:03:57Z")

</div>

I am asking this question in an effort to improve my understanding of computer science, not to complain about Julia’s performance :wink: I understand that, in principle, if we know that we are going to be filling an vec…

---

## [Super slow string performance](https://discourse.julialang.org/t/super-slow-string-performance/78156)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 8:59am UTC](https://discourse.julialang.org/t/super-slow-string-performance/78156 "2022-03-31T08:59:46Z")

</div>

Hi, while solving a coding competition problem with julia I experienced extreme performance issues with the String type. This program: function deleteCount(target::String, input::String) if length(target) \> length…

---

## [How to import module namespaces from julia session with PackageCompiler?](https://discourse.julialang.org/t/how-to-import-module-namespaces-from-julia-session-with-packagecompiler/78785)

<div class="topic-metadata">

**Author:** [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 7:57am UTC](https://discourse.julialang.org/t/how-to-import-module-namespaces-from-julia-session-with-packagecompiler/78785 "2022-03-31T07:57:00Z")

</div>

I’m trying to distribute my package with a PackageCompiler, so my users can run my package by just clicking the executable. And I also need to use the REPL, because I want my users to play with packages with commands I’…

---

## [Writing measurement files](https://discourse.julialang.org/t/writing-measurement-files/78742)

<div class="topic-metadata">

**Author:** [@ga72kud](https://discourse.julialang.org/u/ga72kud)\
**Replies:** 1\
**Last updated:** [March 30, 2022, 1:45pm UTC](https://discourse.julialang.org/t/writing-measurement-files/78742 "2022-03-30T13:45:50Z")

</div>

Hello, I have simulations producing simulation data in a simulation file (A) - raw data in my current project. I want to simulate different simulation runs while varying the parameters. All parameters and meta-informatio…

---

## [Terminaal - cursor position](https://discourse.julialang.org/t/terminaal-cursor-position/78783)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 0\
**Last updated:** [March 31, 2022, 6:29am UTC](https://discourse.julialang.org/t/terminaal-cursor-position/78783 "2022-03-31T06:29:51Z")

</div>

Hey everyone, The way progressbars will be rendered by Term.jl, I need to be moving the cursor in the terminal around, do some stuff and then restore its position. All of this is done by printing ANSI codes. Now, my pr…

---

## [Cloning a repo from Github via Pluto](https://discourse.julialang.org/t/cloning-a-repo-from-github-via-pluto/78498)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 9\
**Last updated:** [March 31, 2022, 5:52am UTC](https://discourse.julialang.org/t/cloning-a-repo-from-github-via-pluto/78498 "2022-03-31T05:52:00Z")

</div>

Hello Watchers: I am attempting to clone a repo from Github within Pluto (not Julia REPL). Could I approach this using HTTP.jl? If so, could you provide an MWE? If not, how would you approach this? The goal is to r…

---

## [Concatenating 2D generator of arrays](https://discourse.julialang.org/t/concatenating-2d-generator-of-arrays/78775)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 5:48am UTC](https://discourse.julialang.org/t/concatenating-2d-generator-of-arrays/78775 "2022-03-31T05:48:23Z")

</div>

Hi, I’m trying to concatenate an 2D generator that generate an 2D array of 2x2 arrays, such as this one iter = (rand(2,2) for i in 1:d1, j in 1:d2 ) I would need to concatenate these arrays into a 2 by d1 by 2 by d2 ar…

---

## [Defining constraint for renewable generation with availability factors](https://discourse.julialang.org/t/defining-constraint-for-renewable-generation-with-availability-factors/78147)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 10\
**Last updated:** [March 31, 2022, 4:16am UTC](https://discourse.julialang.org/t/defining-constraint-for-renewable-generation-with-availability-factors/78147 "2022-03-31T04:16:11Z")

</div>

Hello, I am trying to code up a straightforward constraint for renewable generation (wind, solar etc…) without much success. As an example, the general formulation for a wind generation constraint is as follows: My…

---

## [Numerical precision](https://discourse.julialang.org/t/numerical-precision/78749)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 15\
**Last updated:** [March 31, 2022, 12:38am UTC](https://discourse.julialang.org/t/numerical-precision/78749 "2022-03-31T00:38:00Z")

</div>

Recently I had a small problem with Julia that confused me. The code is shown below: Julia\> x=2.0e-10 2.0e-10 Julia\> -1.0\*(-0.5\*x^3 - 3.0\*x^2 - 7.5\*x - 7.5)\*exp(-x)/x^6 + 1.0\*(0.5\*x^3 - 3.0\*x^2 + 7.5\*x - 7.5)\*exp(x)/x…

---

## [Avoiding double lookup](https://discourse.julialang.org/t/avoiding-double-lookup/78636)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 11\
**Last updated:** [March 31, 2022, 12:18am UTC](https://discourse.julialang.org/t/avoiding-double-lookup/78636 "2022-03-31T00:18:58Z")

</div>

Is it possible to cache the location so I don’t need to look it up twice (once in get and once in setindex!)? "Increment the count by 1, starting from 0." function bump!(d::Dict{K,Int}, k::K) where K v = get(d, k, 0…

[Previous page](https://discourse.julialang.org/latest.md?page=1079)

[Next page](https://discourse.julialang.org/latest.md?page=1081)
