# Latest

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

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

**Page:** 397

---

## [Strange things trying to add \`Downloads\`](https://discourse.julialang.org/t/strange-things-trying-to-add-downloads/115112)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 3, 2024, 10:31am UTC](https://discourse.julialang.org/t/strange-things-trying-to-add-downloads/115112 "2024-06-03T10:31:20Z")

</div>

I am having some “strange” behaviours, that I can’t reproduce in a consistent matter, while trying to install the Download module in a package, so I am asking if this is the suggested way to add download functionality in…

---

## [Read then write to same file for code (text file) formatting](https://discourse.julialang.org/t/read-then-write-to-same-file-for-code-text-file-formatting/115095)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 5\
**Last updated:** [June 3, 2024, 8:42am UTC](https://discourse.julialang.org/t/read-then-write-to-same-file-for-code-text-file-formatting/115095 "2024-06-03T08:42:23Z")

</div>

I want to sort a TOML file content (I know TOML does not ensure its ordering but let’s put it aside). So, I write the following script try to read a TOML file then sort by keys and then replace it by sorted TOML file. Bu…

---

## [Julia LSP on parametric structs](https://discourse.julialang.org/t/julia-lsp-on-parametric-structs/115069)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 2\
**Last updated:** [June 3, 2024, 8:06am UTC](https://discourse.julialang.org/t/julia-lsp-on-parametric-structs/115069 "2024-06-03T08:06:38Z")

</div>

Hi, I had a question about getting IntelliSense working for a defined object. abstract type Shape end struct Square \<: Shape s::Float64 end struct Rectangle \<: Shape b::Float64 w::Float64 end struct Box…

---

## [Documenter/CI](https://discourse.julialang.org/t/documenter-ci/114800)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 17\
**Last updated:** [June 3, 2024, 8:04am UTC](https://discourse.julialang.org/t/documenter-ci/114800 "2024-06-03T08:04:55Z")

</div>

Hi, First, let me say that Julia’s packaging (Pkg, PkgTemplates, etc…) is very impressive but also too difficult for dumb mortals like me to understand, unfortunately. I’ve got a package I’m trying to make conform a bit…

---

## [\[pre-ANN\] DataFlowTasks.jl: a package for inferring task dependencies based on data annotations](https://discourse.julialang.org/t/pre-ann-dataflowtasks-jl-a-package-for-inferring-task-dependencies-based-on-data-annotations/87559)

<div class="topic-metadata">

**Author:** [@maltezfaria](https://discourse.julialang.org/u/maltezfaria)\
**Replies:** 8\
**Last updated:** [June 3, 2024, 7:01am UTC](https://discourse.julialang.org/t/pre-ann-dataflowtasks-jl-a-package-for-inferring-task-dependencies-based-on-data-annotations/87559 "2024-06-03T07:01:44Z")

</div>

Dear Julia community, Together with @ffevotte , @LaurentPlagne , and Vincent Sivadon, we have put together a package (DataFlowTasks) for automatically inferring implicit Task dependencies from explicitly annotated data …

---

## [Julia crashes when saving PyPlot figure](https://discourse.julialang.org/t/julia-crashes-when-saving-pyplot-figure/115056)

<div class="topic-metadata">

**Author:** [@u645532](https://discourse.julialang.org/u/u645532)\
**Replies:** 5\
**Last updated:** [June 3, 2024, 3:15am UTC](https://discourse.julialang.org/t/julia-crashes-when-saving-pyplot-figure/115056 "2024-06-03T03:15:37Z")

</div>

I’m using Julia 1.10.3 with PyPlot (matplotlib 3.8.4)… using PyPlot loglog(\[0.001,0.1,1,10\],\[1e4,3e3,2e2,1e1\],“o-”) … I save this figure using the Save button in the figure window, this works. Then I close the windo…

---

## [Type inference when just making a tuple](https://discourse.julialang.org/t/type-inference-when-just-making-a-tuple/115071)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 6\
**Last updated:** [June 2, 2024, 9:16pm UTC](https://discourse.julialang.org/t/type-inference-when-just-making-a-tuple/115071 "2024-06-02T21:16:42Z")

</div>

Hello, I’m seeing some type instabilities in my code. I saw that converting a vector into a tuple generates instabilities. Here a very simple example using Test function prova(vec) return Tuple(vec) end T = Floa…

---

## [Julia allocates when passing variable to function instead of constant](https://discourse.julialang.org/t/julia-allocates-when-passing-variable-to-function-instead-of-constant/114924)

<div class="topic-metadata">

**Author:** [@kockahonza](https://discourse.julialang.org/u/kockahonza)\
**Replies:** 15\
**Last updated:** [June 2, 2024, 8:44pm UTC](https://discourse.julialang.org/t/julia-allocates-when-passing-variable-to-function-instead-of-constant/114924 "2024-06-02T20:44:40Z")

</div>

Hello everyone, I am very much new to Julia trying to understand how allocations work and how to reduce them. I am writing a small program that reads some files, processes the data and outputs the results. Hence I am rea…

---

## [Using the gradient of wrt the input in the loss function](https://discourse.julialang.org/t/using-the-gradient-of-wrt-the-input-in-the-loss-function/114983)

<div class="topic-metadata">

**Author:** [@alekssek](https://discourse.julialang.org/u/alekssek)\
**Replies:** 6\
**Last updated:** [June 2, 2024, 10:33am UTC](https://discourse.julialang.org/t/using-the-gradient-of-wrt-the-input-in-the-loss-function/114983 "2024-06-02T10:33:07Z")

</div>

I have attempted this for a few days but I can not figure out how to do this. Basically I am attempting to adapt a hamiltonian neural network (hnn), which requires the following loss function: Loss = || dH/dq - dq/dt||\_2…

---

## [How to Use Quad Precision Version of DSYEVD Routine in Julia Linear Algebra LAPACK Library?](https://discourse.julialang.org/t/how-to-use-quad-precision-version-of-dsyevd-routine-in-julia-linear-algebra-lapack-library/114992)

<div class="topic-metadata">

**Author:** [@Akhil\_Akkapelli](https://discourse.julialang.org/u/Akhil_Akkapelli)\
**Replies:** 3\
**Last updated:** [June 2, 2024, 6:46pm UTC](https://discourse.julialang.org/t/how-to-use-quad-precision-version-of-dsyevd-routine-in-julia-linear-algebra-lapack-library/114992 "2024-06-02T18:46:11Z")

</div>

I am currently working on a project that involves high-precision computations on real symmetric matrices. Specifically, I need to compute all eigenvalues and, optionally, eigenvectors of these matrices using a quad preci…

---

## [Best library for particle filtering from a generative model?](https://discourse.julialang.org/t/best-library-for-particle-filtering-from-a-generative-model/115070)

<div class="topic-metadata">

**Author:** [@JasonPekos](https://discourse.julialang.org/u/JasonPekos)\
**Replies:** 2\
**Last updated:** [June 2, 2024, 6:06pm UTC](https://discourse.julialang.org/t/best-library-for-particle-filtering-from-a-generative-model/115070 "2024-06-02T18:06:03Z")

</div>

Hi! I’m looking for a library that will let me perform particle filtering for a generative model of a markov process, similar to the incredible pomp in R: or particles in Python. Basically, I want to specify some sor…

---

## [\[Ann\] CompetingProcesses.jl sample generalized semi-Markov processes](https://discourse.julialang.org/t/ann-competingprocesses-jl-sample-generalized-semi-markov-processes/115063)

<div class="topic-metadata">

**Author:** [@adolgert](https://discourse.julialang.org/u/adolgert)\
**Replies:** 4\
**Last updated:** [June 2, 2024, 5:45pm UTC](https://discourse.julialang.org/t/ann-competingprocesses-jl-sample-generalized-semi-markov-processes/115063 "2024-06-02T17:45:38Z")

</div>

CompetingClocks is a set of samplers with Gillespie-type algorithms for non-Exponential distributions, also known as distributions with time-varying hazards. This library is meant to help you write frameworks for queuing…

---

## [Align NumberField labels in Pluto](https://discourse.julialang.org/t/align-numberfield-labels-in-pluto/115081)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 0\
**Last updated:** [June 2, 2024, 4:56pm UTC](https://discourse.julialang.org/t/align-numberfield-labels-in-pluto/115081 "2024-06-02T16:56:37Z")

</div>

Hi all, I am using PlutoExtras to define groups of NumberFields. I would like to modify the layout and functionality in two ways. First, I would like to left align the labels, and possibly align the labels to the left o…

---

## [Simple and quick way to factor a polynomial](https://discourse.julialang.org/t/simple-and-quick-way-to-factor-a-polynomial/106403)

<div class="topic-metadata">

**Author:** [@Loves\_Reddit](https://discourse.julialang.org/u/Loves_Reddit)\
**Replies:** 10\
**Last updated:** [June 2, 2024, 3:38pm UTC](https://discourse.julialang.org/t/simple-and-quick-way-to-factor-a-polynomial/106403 "2024-06-02T15:38:49Z")

</div>

Hello I am looking for a simple and quick way I can enter a polynomial like; ax^3 + bx^2 + cx + d and get an output in the format (l + m)(n+ p)(q + r) I am unable to find any quick way online

---

## [How do I precompile a callable struct?](https://discourse.julialang.org/t/how-do-i-precompile-a-callable-struct/115037)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 10\
**Last updated:** [June 2, 2024, 1:45pm UTC](https://discourse.julialang.org/t/how-do-i-precompile-a-callable-struct/115037 "2024-06-02T13:45:49Z")

</div>

I have something like: struct S end (::S)() = true I think precompile(A, ()) would precompile the consstructor A, right? How do I precompile (::S)()? I there a way to verify whether a function has been precompiled? T…

---

## [Is there a concise way to express "\[println(i, j) for i = 1 : j, j = 1:3\]"](https://discourse.julialang.org/t/is-there-a-concise-way-to-express-println-i-j-for-i-1-j-j-1-3/115073)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 4\
**Last updated:** [June 2, 2024, 3:09am UTC](https://discourse.julialang.org/t/is-there-a-concise-way-to-express-println-i-j-for-i-1-j-j-1-3/115073 "2024-06-02T03:09:37Z")

</div>

Hi, is there a concise way to express the “for” circulation like “\[println(i, j) for i = 1 : j, j = 1:3\]”, I encounter the “ERROR: UndefVarError: j not defined”. I thought such an expression is more concise than for j …

---

## [Understanding parallelization of composite types](https://discourse.julialang.org/t/understanding-parallelization-of-composite-types/115077)

<div class="topic-metadata">

**Author:** [@michael2](https://discourse.julialang.org/u/michael2)\
**Replies:** 0\
**Last updated:** [June 2, 2024, 11:46am UTC](https://discourse.julialang.org/t/understanding-parallelization-of-composite-types/115077 "2024-06-02T11:46:35Z")

</div>

Suppose we have a Vector{MyStruct} with the following definition: mutable struct MyStruct x::Float64 end Obviously, this is a vastly simplified example. Now, we have a function that manipulates our struct in-place…

---

## [IDA solver error (possibly) for a DAE problem with complex number](https://discourse.julialang.org/t/ida-solver-error-possibly-for-a-dae-problem-with-complex-number/115045)

<div class="topic-metadata">

**Author:** [@Hamed](https://discourse.julialang.org/u/Hamed)\
**Replies:** 11\
**Last updated:** [June 2, 2024, 9:21am UTC](https://discourse.julialang.org/t/ida-solver-error-possibly-for-a-dae-problem-with-complex-number/115045 "2024-06-02T09:21:41Z")

</div>

Hi there. I have a problem with this code here. I’m trying to simulate a three-phase short circuit fault in a power system according to the instructions in Example 2 here: https://github.com/NREL-Sienna/PowerSimulations…

---

## [Understanding the transition from memory bound to compute bound in ParallelStencil.jl](https://discourse.julialang.org/t/understanding-the-transition-from-memory-bound-to-compute-bound-in-parallelstencil-jl/114841)

<div class="topic-metadata">

**Author:** [@taketwicedailey](https://discourse.julialang.org/u/taketwicedailey)\
**Replies:** 3\
**Last updated:** [June 2, 2024, 8:04am UTC](https://discourse.julialang.org/t/understanding-the-transition-from-memory-bound-to-compute-bound-in-parallelstencil-jl/114841 "2024-06-02T08:04:57Z")

</div>

Hi, I am interested in using ParallelStencil.jl to perform finite differencing based simulations. I started by doing experiments with the acoustic waves app, and comparing CPU vs GPU run times. I found that for the stock…

---

## [\[ANN\] QueryBuilder.jl: A SQL query builder package for Julia, focused on building parameterized query](https://discourse.julialang.org/t/ann-querybuilder-jl-a-sql-query-builder-package-for-julia-focused-on-building-parameterized-query/114421)

<div class="topic-metadata">

**Author:** [@littlelib](https://discourse.julialang.org/u/littlelib)\
**Replies:** 1\
**Last updated:** [June 2, 2024, 5:40am UTC](https://discourse.julialang.org/t/ann-querybuilder-jl-a-sql-query-builder-package-for-julia-focused-on-building-parameterized-query/114421 "2024-06-02T05:40:11Z")

</div>

Hello everyone! Let me introduce you QueryBuilder.jl, a SQL query builder package focused on building parameterized query, and adding some layer of abstraction on it. It is my very first public package, so there can be…

---

## [Help optimise an advice implementation](https://discourse.julialang.org/t/help-optimise-an-advice-implementation/97218)

<div class="topic-metadata">

**Author:** [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Replies:** 12\
**Last updated:** [June 2, 2024, 3:30am UTC](https://discourse.julialang.org/t/help-optimise-an-advice-implementation/97218 "2024-06-02T03:30:14Z")

</div>

Hello, in my DataToolkitBase.jl I make extensive use of advised functions, e.g. instead of identity(x) I’ll have @advise identity(x) As such, I’m very interested in minimising the performance impact of advised calls.…

---

## [Gitpod great, except plotting.. Anyone managed to fix plotting?](https://discourse.julialang.org/t/gitpod-great-except-plotting-anyone-managed-to-fix-plotting/64347)

<div class="topic-metadata">

**Author:** [@Jon\_Norberg](https://discourse.julialang.org/u/Jon_Norberg)\
**Replies:** 2\
**Last updated:** [June 2, 2024, 1:14am UTC](https://discourse.julialang.org/t/gitpod-great-except-plotting-anyone-managed-to-fix-plotting/64347 "2024-06-02T01:14:04Z")

</div>

I have tried gitpod since I’d like to code on my iPad on travel. Its great, almost exactly like vscode, and extensions seem mostly to work. BUT… Any plotting from Julia seems to run into some barrier. I tried both Plots …

---

## [Julia 1.9 on qemu-aarch64 docker segfaults whille importing Unitful](https://discourse.julialang.org/t/julia-1-9-on-qemu-aarch64-docker-segfaults-whille-importing-unitful/98711)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 1\
**Last updated:** [June 2, 2024, 12:08am UTC](https://discourse.julialang.org/t/julia-1-9-on-qemu-aarch64-docker-segfaults-whille-importing-unitful/98711 "2024-06-02T00:08:42Z")

</div>

I don’t know on which repo to report (Julia? Unitful.jl?) or what information is helpful, so I’ve put it here I’ve started a aarch64 ubuntu docker container on x86 PC podman run -ti --net=host --arch=arm64 --volume=./j…

---

## [Implementing LBG algorithm](https://discourse.julialang.org/t/implementing-lbg-algorithm/115066)

<div class="topic-metadata">

**Author:** [@Manasa\_S](https://discourse.julialang.org/u/Manasa_S)\
**Replies:** 4\
**Last updated:** [June 1, 2024, 7:37pm UTC](https://discourse.julialang.org/t/implementing-lbg-algorithm/115066 "2024-06-01T19:37:59Z")

</div>

Hi, I’m new to Julia and wondering how to loop through the generated voronoi cells to implement the MLBG algorithm. using GLMakie using DelaunayTriangulation using Interpolations using Plots function perform\_computat…

---

## [Could not load symbol "jl\_system\_image\_data", fail to precompile](https://discourse.julialang.org/t/could-not-load-symbol-jl-system-image-data-fail-to-precompile/114752)

<div class="topic-metadata">

**Author:** [@sfranchel](https://discourse.julialang.org/u/sfranchel)\
**Replies:** 3\
**Last updated:** [June 1, 2024, 7:23pm UTC](https://discourse.julialang.org/t/could-not-load-symbol-jl-system-image-data-fail-to-precompile/114752 "2024-06-01T19:23:35Z")

</div>

Precompilation of a project on a shared server breaks, due to the following error: Error: Error during loading of extension IntervalSetsRandomExt of IntervalSets, use \`Base.retry\_load\_extensions()\` to retry. │ except…

---

## [Makie on(Observable) combo triggers multiple times](https://discourse.julialang.org/t/makie-on-observable-combo-triggers-multiple-times/115039)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 5\
**Last updated:** [June 1, 2024, 3:30pm UTC](https://discourse.julialang.org/t/makie-on-observable-combo-triggers-multiple-times/115039 "2024-06-01T15:30:16Z")

</div>

I made a data visualization tool with Makie where observables watch my axis.finallimits selection to update the selected indices, which then triggers the plotting. This involves two on() blocks. The problem is that it t…

---

## [MultiParamContinuation.jl](https://discourse.julialang.org/t/multiparamcontinuation-jl/115059)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 0\
**Last updated:** [June 1, 2024, 2:41pm UTC](https://discourse.julialang.org/t/multiparamcontinuation-jl/115059 "2024-06-01T14:41:38Z")

</div>

Hi I am writing this post to announce a new package MultiParamContinuation.jl in the organisation bifurcationkit. It allows to perform multi parameter continuation of problems in large dimensions. As of now, it only han…

---

## [ForwardDiff.jl return NaN values in Hessian matrix](https://discourse.julialang.org/t/forwarddiff-jl-return-nan-values-in-hessian-matrix/115040)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 3\
**Last updated:** [June 1, 2024, 1:30pm UTC](https://discourse.julialang.org/t/forwarddiff-jl-return-nan-values-in-hessian-matrix/115040 "2024-06-01T13:30:12Z")

</div>

Hi guys, here are a demo of maximum likelihood estimation. Below, sample is used to sample the data, and neg\_loglikehood is used to calculated the negative log likelihood function. I wonder why ForwardDiff.jl returns he…

---

## [Makie - can one control individual \`yticklabelcolor\`](https://discourse.julialang.org/t/makie-can-one-control-individual-yticklabelcolor/114380)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 5\
**Last updated:** [June 1, 2024, 8:45am UTC](https://discourse.julialang.org/t/makie-can-one-control-individual-yticklabelcolor/114380 "2024-06-01T08:45:12Z")

</div>

I think I know the answer \[No\] but maybe someone knows of a hack. I’m looking to set differing colors for individual yticklabels in makie Specifically I’d like to set “icesat2”, “icesat”, “gedi” and “hugonnet” labels t…

---

## [Standardizing syntax?](https://discourse.julialang.org/t/standardizing-syntax/114816)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 32\
**Last updated:** [June 1, 2024, 7:23am UTC](https://discourse.julialang.org/t/standardizing-syntax/114816 "2024-06-01T07:23:57Z")

</div>

They have got one thing right like Mojo in that it looks and feels like Python. It is about time we had something like an ISO standard on syntax.

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

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