# Latest

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

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

**Page:** 215

---

## [Blog post: Asynchronous programming in Julia](https://discourse.julialang.org/t/blog-post-asynchronous-programming-in-julia/125690)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 16\
**Last updated:** [February 24, 2025, 8:27am UTC](https://discourse.julialang.org/t/blog-post-asynchronous-programming-in-julia/125690 "2025-02-24T08:27:33Z")

</div>

I’ve made a new blog post, this time an introduction to asyncronous programming in Julia. You can find it here: https://viralinstruction.com/posts/threads/ I’m interested in feedback, especially: Any misunderstandings…

---

## [Allow storing download size in Artifacts.toml?](https://discourse.julialang.org/t/allow-storing-download-size-in-artifacts-toml/126215)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 2\
**Last updated:** [February 24, 2025, 6:57am UTC](https://discourse.julialang.org/t/allow-storing-download-size-in-artifacts-toml/126215 "2025-02-24T06:57:58Z")

</div>

Currently, the “Artifacts.toml” file requires each download entry to contain a “sha256” and a “url”. Including the compressed size of the tarball could be useful. Some of the benefits are. It would be easier to tell i…

---

## [Max of a vector](https://discourse.julialang.org/t/max-of-a-vector/108294)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 31\
**Last updated:** [February 24, 2025, 4:03am UTC](https://discourse.julialang.org/t/max-of-a-vector/108294 "2025-02-24T04:03:13Z")

</div>

It is quite strange that the max function cannot work in an intuitive way. I just want the maximum value in a vector. julia\> a = \[1,2,3\] 3-element Vector{Int64}: 1 2 3 julia\> max(a) ERROR: MethodError: no method mat…

---

## [Parametric type without type parameters](https://discourse.julialang.org/t/parametric-type-without-type-parameters/126218)

<div class="topic-metadata">

**Author:** [@azoviktor](https://discourse.julialang.org/u/azoviktor)\
**Replies:** 3\
**Last updated:** [February 24, 2025, 1:57am UTC](https://discourse.julialang.org/t/parametric-type-without-type-parameters/126218 "2025-02-24T01:57:29Z")

</div>

I want to create a parametric type that would depend on a lot of parameters (e.g. 3 integer types) struct MyType{T\<:Integer, S\<:Integer, U\<:Integer} t::T s::S u::U end For the multiple dispatch I plan to use only…

---

## [Non-legal UTF-8 filenames (in e.g. TOML or JSON)](https://discourse.julialang.org/t/non-legal-utf-8-filenames-in-e-g-toml-or-json/126214)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 10\
**Last updated:** [February 23, 2025, 10:00pm UTC](https://discourse.julialang.org/t/non-legal-utf-8-filenames-in-e-g-toml-or-json/126214 "2025-02-23T22:00:25Z")

</div>

A major flaw with json is its inability to store non-UTF8 strings which inadvertently makes them unreliable for storing unix filenames (here a filename is defined as any sequence of bytes except NUL and /, including i…

---

## [Julia terminal crashes unexpectedly](https://discourse.julialang.org/t/julia-terminal-crashes-unexpectedly/126113)

<div class="topic-metadata">

**Author:** [@GeoPis](https://discourse.julialang.org/u/GeoPis)\
**Replies:** 13\
**Last updated:** [February 23, 2025, 9:57pm UTC](https://discourse.julialang.org/t/julia-terminal-crashes-unexpectedly/126113 "2025-02-23T21:57:28Z")

</div>

Hi ! I am using Julia to run some Finite Element simulations with code that I wrote (based on the Ferrite.jl package). Running the exact same code two times, the first time the analysis finishes with no errors, while t…

---

## [Snakemake with julia (and similarities with Dr Watson or..)](https://discourse.julialang.org/t/snakemake-with-julia-and-similarities-with-dr-watson-or/126106)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 9\
**Last updated:** [February 23, 2025, 8:39pm UTC](https://discourse.julialang.org/t/snakemake-with-julia-and-similarities-with-dr-watson-or/126106 "2025-02-23T20:39:57Z")

</div>

I have a collegue that works with Python and Snakemake, telling me how nice is this tool for scientific workflow management, but I haven’t understood much about it, and above all if what it provides is really needed much…

---

## [Save JuMP Model to File](https://discourse.julialang.org/t/save-jump-model-to-file/126220)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 2\
**Last updated:** [February 23, 2025, 8:38pm UTC](https://discourse.julialang.org/t/save-jump-model-to-file/126220 "2025-02-23T20:38:07Z")

</div>

I want to save a JuMP model to a .MPS file without appending .MPS to the filename in the second argument to write\_to\_file, .i.e. not using write\_to\_file(model,"test.MPS"). The approach below does not work. julia\> usi…

---

## [DimensionMismatch: arrays could not be broadcast to a common size: a has axes Base.OneTo(5) and b has axes Base.OneTo(0)](https://discourse.julialang.org/t/dimensionmismatch-arrays-could-not-be-broadcast-to-a-common-size-a-has-axes-base-oneto-5-and-b-has-axes-base-oneto-0/126193)

<div class="topic-metadata">

**Author:** [@Casper\_Casier](https://discourse.julialang.org/u/Casper_Casier)\
**Replies:** 6\
**Last updated:** [February 23, 2025, 7:17pm UTC](https://discourse.julialang.org/t/dimensionmismatch-arrays-could-not-be-broadcast-to-a-common-size-a-has-axes-base-oneto-5-and-b-has-axes-base-oneto-0/126193 "2025-02-23T19:17:23Z")

</div>

Im trying to find the ODEs of some concentration profiles using SINDy. r1 and r\_deact are known terms that can be in the ODE so I added them to the basis. (also tried already with a simpler basis but same problem). Also…

---

## [Preferences.jl persistency on package update?](https://discourse.julialang.org/t/preferences-jl-persistency-on-package-update/126210)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 3\
**Last updated:** [February 23, 2025, 5:30pm UTC](https://discourse.julialang.org/t/preferences-jl-persistency-on-package-update/126210 "2025-02-23T17:30:03Z")

</div>

By default, preferences created by Preferences.jl are saved next to the Project.toml file of this package. To my understanding, on an update of a package Foo, a new folder is created - e.g. the old version was in .../pa…

---

## [Numeric Substitution Issue in build\_function (expression=Val{false})](https://discourse.julialang.org/t/numeric-substitution-issue-in-build-function-expression-val-false/126202)

<div class="topic-metadata">

**Author:** [@vikram\_backup](https://discourse.julialang.org/u/vikram_backup)\
**Replies:** 1\
**Last updated:** [February 23, 2025, 5:18pm UTC](https://discourse.julialang.org/t/numeric-substitution-issue-in-build-function-expression-val-false/126202 "2025-02-23T17:18:45Z")

</div>

Consider the simple code which defines a function of x using build\_function using Symbolics @variables x expr = exp(im\*x)\*cos(x) # The option expression=Val{false} is supposed to force numerical evaluation. f = build\_…

---

## [Simulating SDEs with shared noise in \`DifferentialEquations.jl\`](https://discourse.julialang.org/t/simulating-sdes-with-shared-noise-in-differentialequations-jl/126139)

<div class="topic-metadata">

**Author:** [@NoFishLikeIan](https://discourse.julialang.org/u/NoFishLikeIan)\
**Replies:** 2\
**Last updated:** [February 23, 2025, 5:17pm UTC](https://discourse.julialang.org/t/simulating-sdes-with-shared-noise-in-differentialequations-jl/126139 "2025-02-23T17:17:01Z")

</div>

I have a problem with two processes X\_{1, t}, X\_{2, t} \\in \\mathbb{R} which satisfy the SDEs \\begin{align} dX\_{1, t} = f\_1(t, X\_{1, t}) \\; dt + \\sigma \\; dW\_t, \\\\ dX\_{2, t} = f\_2(t, X\_{1, t}) \\; dt + \\sigma \\; dW\_t. \\en…

---

## [Plots.jl fmt=:png still creates an SVG plot in VSCode](https://discourse.julialang.org/t/plots-jl-fmt-png-still-creates-an-svg-plot-in-vscode/125463)

<div class="topic-metadata">

**Author:** [@mattwigway](https://discourse.julialang.org/u/mattwigway)\
**Replies:** 1\
**Last updated:** [February 23, 2025, 4:57pm UTC](https://discourse.julialang.org/t/plots-jl-fmt-png-still-creates-an-svg-plot-in-vscode/125463 "2025-02-23T16:57:08Z")

</div>

I am porting some code from Jupyter Notebooks to Quarto documents within VSCode. I have a few scatter plots with millions of points on them, and both the browser and VSCode crash/hang trying to render these as SVG. I add…

---

## [Performance in broadcasting vs function preallocation?](https://discourse.julialang.org/t/performance-in-broadcasting-vs-function-preallocation/126211)

<div class="topic-metadata">

**Author:** [@lepton01](https://discourse.julialang.org/u/lepton01)\
**Replies:** 6\
**Last updated:** [February 23, 2025, 2:00pm UTC](https://discourse.julialang.org/t/performance-in-broadcasting-vs-function-preallocation/126211 "2025-02-23T14:00:28Z")

</div>

Hello there. I have created a couple of functions with the same purpose, evaluating: f(x, y) = (x - 3)^2 + (y + 15)^2 over a matrix (really two vectors), the first column for x and the second one for y. The first func…

---

## [Memory \`isbits\` Union Optimization](https://discourse.julialang.org/t/memory-isbits-union-optimization/126175)

<div class="topic-metadata">

**Author:** [@PatrickHaecker](https://discourse.julialang.org/u/PatrickHaecker)\
**Replies:** 5\
**Last updated:** [February 23, 2025, 8:23am UTC](https://discourse.julialang.org/t/memory-isbits-union-optimization/126175 "2025-02-23T08:23:03Z")

</div>

Citing from isbits union memory optimization (emphasis mine) The optimization is accomplished by storing an extra “type tag memory” of bytes, one byte per element, alongside the bytes of the actual data. However, I s…

---

## [Constraints of type MathOptInterface.ScalarNonlinearFunction-in-MathOptInterface.LessThan{Float64} are not supported by the solver](https://discourse.julialang.org/t/constraints-of-type-mathoptinterface-scalarnonlinearfunction-in-mathoptinterface-lessthan-float64-are-not-supported-by-the-solver/126178)

<div class="topic-metadata">

**Author:** [@leonie25](https://discourse.julialang.org/u/leonie25)\
**Replies:** 7\
**Last updated:** [February 23, 2025, 4:20am UTC](https://discourse.julialang.org/t/constraints-of-type-mathoptinterface-scalarnonlinearfunction-in-mathoptinterface-lessthan-float64-are-not-supported-by-the-solver/126178 "2025-02-23T04:20:46Z")

</div>

I am working on an optimization problem and build a model using Gurobi Optimizer with JuMP. It has some nonlinear constraints: @constraint(model, f\[i\] + func(qe\[i\])\<= M1 \* (1 - x\[(i, j)\]) + f\[j\]) where f, qe, x are non…

---

## [How does a kernel function in KernelAbstractions.jl work when the backend is a CPU?](https://discourse.julialang.org/t/how-does-a-kernel-function-in-kernelabstractions-jl-work-when-the-backend-is-a-cpu/126173)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 1\
**Last updated:** [February 22, 2025, 4:59pm UTC](https://discourse.julialang.org/t/how-does-a-kernel-function-in-kernelabstractions-jl-work-when-the-backend-is-a-cpu/126173 "2025-02-22T16:59:50Z")

</div>

I’m trying to add GPU-based parallelization to my code. I found KernelAbstractions.jl and liked its backend (vendor) agnostic approach, especially the fall-back support for CPU multi-threading. However, I didn’t find de…

---

## [Forward Automatic Differentiation & FFTs](https://discourse.julialang.org/t/forward-automatic-differentiation-ffts/126036)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 13\
**Last updated:** [February 22, 2025, 10:18pm UTC](https://discourse.julialang.org/t/forward-automatic-differentiation-ffts/126036 "2025-02-22T22:18:37Z")

</div>

I need to understand if there is a combination of packages that is able to wdo what I need. I need to do some FFTs, differentiate through them both in Forward and Backward mode with one of the Julia AD engines (it might…

---

## [Learning material for experienced programmers](https://discourse.julialang.org/t/learning-material-for-experienced-programmers/126189)

<div class="topic-metadata">

**Author:** [@chenzhekl](https://discourse.julialang.org/u/chenzhekl)\
**Replies:** 5\
**Last updated:** [February 22, 2025, 8:47pm UTC](https://discourse.julialang.org/t/learning-material-for-experienced-programmers/126189 "2025-02-22T20:47:55Z")

</div>

Hello, I’m a professional machine learning engineer with extensive experience in Rust, C++, and Python. I’ve noticed that many Julia books are aimed either at complete beginners or are tailored to niche areas like optimi…

---

## [GameZero Documentation](https://discourse.julialang.org/t/gamezero-documentation/126195)

<div class="topic-metadata">

**Author:** [@HAL9000](https://discourse.julialang.org/u/HAL9000)\
**Replies:** 2\
**Last updated:** [February 22, 2025, 7:43pm UTC](https://discourse.julialang.org/t/gamezero-documentation/126195 "2025-02-22T19:43:50Z")

</div>

Does anyone know where the documentation is for gamezero - the links in GitHub - aviks/GameZero.jl: Zero overhead game development library for the Julia programming language no longer work. Has the package be discontin…

---

## [JuMP: declaring a vector of PSD matrices](https://discourse.julialang.org/t/jump-declaring-a-vector-of-psd-matrices/126179)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 1\
**Last updated:** [February 22, 2025, 6:48pm UTC](https://discourse.julialang.org/t/jump-declaring-a-vector-of-psd-matrices/126179 "2025-02-22T18:48:47Z")

</div>

in JuMP it’s very straightforward to declare a PSD matrix variable. If S \\succeq 0, I can simply say @variable(m, S\[1:4,1:4\], PSD) But if I now want a set, or vector, of them, like, S\_i \\succeq 0, i \\in \[1,\\ldots,k\] I…

---

## [When using ChatGPT does anyone know how to get coloured coding script?](https://discourse.julialang.org/t/when-using-chatgpt-does-anyone-know-how-to-get-coloured-coding-script/126183)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [February 22, 2025, 5:46pm UTC](https://discourse.julialang.org/t/when-using-chatgpt-does-anyone-know-how-to-get-coloured-coding-script/126183 "2025-02-22T17:46:35Z")

</div>

It seems like it can only provide code with no syntax highlighting, does anyone know a fix?

---

## [Updating Julia with juliaup on Ubuntu 24.04](https://discourse.julialang.org/t/updating-julia-with-juliaup-on-ubuntu-24-04/126067)

<div class="topic-metadata">

**Author:** [@arietsu](https://discourse.julialang.org/u/arietsu)\
**Replies:** 5\
**Last updated:** [February 22, 2025, 4:49pm UTC](https://discourse.julialang.org/t/updating-julia-with-juliaup-on-ubuntu-24-04/126067 "2025-02-22T16:49:02Z")

</div>

Read about juliaup in wonderful https://modernjuliaworkflows.org/ blog and wanted to use it as one of suitable best practices. Failed to install juliaup under my Ubuntu 24.04. Error message from curl: $ curl -fsSL https…

---

## [Building function (like OOP) inside a struct](https://discourse.julialang.org/t/building-function-like-oop-inside-a-struct/126180)

<div class="topic-metadata">

**Author:** [@xinzhicaishu](https://discourse.julialang.org/u/xinzhicaishu)\
**Replies:** 1\
**Last updated:** [February 22, 2025, 11:15am UTC](https://discourse.julialang.org/t/building-function-like-oop-inside-a-struct/126180 "2025-02-22T11:15:49Z")

</div>

This is my demo, my goal is run set\_grade! successfully. How can achieve this? # try demo mutable struct Group members::Dict{String, Int64} # project =\> grade const list::Vector{String} # pro…

---

## [Genie framework/SearchLight.Migration problem creating composed primary key](https://discourse.julialang.org/t/genie-framework-searchlight-migration-problem-creating-composed-primary-key/126177)

<div class="topic-metadata">

**Author:** [@andreh](https://discourse.julialang.org/u/andreh)\
**Replies:** 0\
**Last updated:** [February 22, 2025, 9:58am UTC](https://discourse.julialang.org/t/genie-framework-searchlight-migration-problem-creating-composed-primary-key/126177 "2025-02-22T09:58:43Z")

</div>

Hello! I am setting up GenieAuthorisation within a Genie App, I am setting up the 4 tables: CreateTableRoles CreateTablePermissions CreateTableRolesUsers CreateTablePermissionsRoles within my module CreateTableRolesU…

---

## [Help with Automatic Differentiation of Stiffness Matrix Function](https://discourse.julialang.org/t/help-with-automatic-differentiation-of-stiffness-matrix-function/125941)

<div class="topic-metadata">

**Author:** [@Edan\_Lazerson](https://discourse.julialang.org/u/Edan_Lazerson)\
**Replies:** 5\
**Last updated:** [February 22, 2025, 8:01am UTC](https://discourse.julialang.org/t/help-with-automatic-differentiation-of-stiffness-matrix-function/125941 "2025-02-22T08:01:25Z")

</div>

I am trying to compute the gradient of a finite element stiffness matrix with respect to nodal coordinates, Young’s modulus E, and thickness t. I am new to automatic differentiation (AD) and have tried using Differentiat…

---

## [What's your preference for creating literal data-structures?](https://discourse.julialang.org/t/whats-your-preference-for-creating-literal-data-structures/126128)

<div class="topic-metadata">

**Author:** [@jballanc](https://discourse.julialang.org/u/jballanc)\
**Replies:** 9\
**Last updated:** [February 22, 2025, 4:55am UTC](https://discourse.julialang.org/t/whats-your-preference-for-creating-literal-data-structures/126128 "2025-02-22T04:55:20Z")

</div>

Having worked fairly extensively with Clojure, I came to appreciate the approach of building systems focused around data vs code. For example, if you are working on a business rules engine, rather than writing a complex …

---

## [Quiver plot using PlotlyJS backend not showing arrowhead](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 4\
**Last updated:** [February 22, 2025, 2:16am UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144 "2025-02-22T02:16:07Z")

</div>

Hi, I’m using plotlyjs backend to make a simple quiver plot, it looks like this where arrow heads are not shown. If I switch to GR I get the following wit arrow heads So how do I make arrow heads shown with plotl…

---

## [Interpolate values inside math expression](https://discourse.julialang.org/t/interpolate-values-inside-math-expression/109742)

<div class="topic-metadata">

**Author:** [@rgouveiamendes](https://discourse.julialang.org/u/rgouveiamendes)\
**Replies:** 6\
**Last updated:** [February 22, 2025, 1:47am UTC](https://discourse.julialang.org/t/interpolate-values-inside-math-expression/109742 "2025-02-22T01:47:45Z")

</div>

I am trying to interpolate the value of an object inside a math equation in Pluto. A MWE could be: begin avg = 15 md""" The average would be given by: \`\`\\overline{X} = \\frac{\\sum\_{i=1}^N X\_i}{N…

---

## [Notebook-specific target/Project.toml (similar to test)](https://discourse.julialang.org/t/notebook-specific-target-project-toml-similar-to-test/125972)

<div class="topic-metadata">

**Author:** [@brunompacheco](https://discourse.julialang.org/u/brunompacheco)\
**Replies:** 9\
**Last updated:** [February 21, 2025, 11:53pm UTC](https://discourse.julialang.org/t/notebook-specific-target-project-toml-similar-to-test/125972 "2025-02-21T23:53:08Z")

</div>

Greetings, I am developing a Julia package in which I have some Jupyter notebooks. Those notebooks use some packages that I do not want to include as general project dependencies (e.g., Plots.jl). However, I do not seem…

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

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