# Latest

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

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

**Page:** 225

---

## [Markdown supported code-block languages](https://discourse.julialang.org/t/markdown-supported-code-block-languages/69293)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 5:22pm UTC](https://discourse.julialang.org/t/markdown-supported-code-block-languages/69293 "2025-02-06T17:22:14Z")

</div>

What are the language supported for synthax highlighting in markdown? Like this in a Pluto notebook for example: I have seen javascript and julia being used but didn’t find any reference saying which languages are s…

---

## [Any updates on using AMDGPU in WSL?](https://discourse.julialang.org/t/any-updates-on-using-amdgpu-in-wsl/125617)

<div class="topic-metadata">

**Author:** [@ed123](https://discourse.julialang.org/u/ed123)\
**Replies:** 8\
**Last updated:** [February 6, 2025, 4:46pm UTC](https://discourse.julialang.org/t/any-updates-on-using-amdgpu-in-wsl/125617 "2025-02-06T16:46:22Z")

</div>

I have seen the previous question here which said that AMDGPU was still unsupported in Windows as of a year ago. Is this possible in 2025? I have done the following steps so far: installed WSL2 (Ubuntu 24.04) installe…

---

## [Segfault using Flux + Intel integrated GPU](https://discourse.julialang.org/t/segfault-using-flux-intel-integrated-gpu/125626)

<div class="topic-metadata">

**Author:** [@ed123](https://discourse.julialang.org/u/ed123)\
**Replies:** 2\
**Last updated:** [February 6, 2025, 4:17pm UTC](https://discourse.julialang.org/t/segfault-using-flux-intel-integrated-gpu/125626 "2025-02-06T16:17:44Z")

</div>

I am trying to use Flux on my laptop’s GPU (Intel Iris Xe, Linux) and it immediately segfaults. I realise that this isn’t a powerful GPU but it even happens on a trivial model (see Quick Start · Flux from the Flux docs). …

---

## [Should one use Julia to create libraries?](https://discourse.julialang.org/t/should-one-use-julia-to-create-libraries/125622)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 4\
**Last updated:** [February 6, 2025, 4:01pm UTC](https://discourse.julialang.org/t/should-one-use-julia-to-create-libraries/125622 "2025-02-06T16:01:53Z")

</div>

I was browsing the thread on why LoopVectorization.jl is deprecated, and I came across LoopModels, which is a successor to LoopVectorization.jl, and this made me wonder if one should be writing general purpose libraries …

---

## [Structural hash collisions](https://discourse.julialang.org/t/structural-hash-collisions/125613)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 5\
**Last updated:** [February 6, 2025, 3:37pm UTC](https://discourse.julialang.org/t/structural-hash-collisions/125613 "2025-02-06T15:37:06Z")

</div>

There is some discussion over at github about switching out murmur3 for a different hash function. If we open such a can of worms, then we might also address structural pecularities of our hash construction. I’ll start …

---

## [Reducing RAM usage when solving large set of differential equations](https://discourse.julialang.org/t/reducing-ram-usage-when-solving-large-set-of-differential-equations/125610)

<div class="topic-metadata">

**Author:** [@diffeqslvr](https://discourse.julialang.org/u/diffeqslvr)\
**Replies:** 5\
**Last updated:** [February 6, 2025, 3:27pm UTC](https://discourse.julialang.org/t/reducing-ram-usage-when-solving-large-set-of-differential-equations/125610 "2025-02-06T15:27:57Z")

</div>

I am solving a large system of differential equations (O(500 000) equations). Unsurprisingly, I run into RAM issues. I already tried to only save a subset of O(13 000) variables using a SavingCallback saved\_values = Sav…

---

## [Circular dependencies in Julia 1.10.8](https://discourse.julialang.org/t/circular-dependencies-in-julia-1-10-8/125587)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 2:33pm UTC](https://discourse.julialang.org/t/circular-dependencies-in-julia-1-10-8/125587 "2025-02-06T14:33:40Z")

</div>

With the following using BandedMatrices, Colors, Distributions, GLMakie, Infiltrator, Intervals, Images, JuMP, LinearAlgebra, Parameters, OSQP, Random, SparseArrays, StaticArrays, StatsBase, StructArrays…

---

## [How to iterate over Vector{String} elements and append a string to them](https://discourse.julialang.org/t/how-to-iterate-over-vector-string-elements-and-append-a-string-to-them/125616)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 4\
**Last updated:** [February 6, 2025, 1:56pm UTC](https://discourse.julialang.org/t/how-to-iterate-over-vector-string-elements-and-append-a-string-to-them/125616 "2025-02-06T13:56:03Z")

</div>

Hi, I have the Vector{String}, e.g., vec = \["P1", "P2", ..., "Pn", "SC", "TC"\] and I would like therefrom to create the corresponding modified Vector{String}: vec\_mod = \["P1\_O", "P1\_D", "P2\_O", "P2\_D", ..., "Pn\_O", "…

---

## [Is it possible to simulate SDDE with modeling toolkit?](https://discourse.julialang.org/t/is-it-possible-to-simulate-sdde-with-modeling-toolkit/125420)

<div class="topic-metadata">

**Author:** [@NinaOmejc](https://discourse.julialang.org/u/NinaOmejc)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 1:31pm UTC](https://discourse.julialang.org/t/is-it-possible-to-simulate-sdde-with-modeling-toolkit/125420 "2025-02-06T13:31:24Z")

</div>

Hi, I’ve come across Chris Rackauckas post that it is possible to simulate DDEs using Modeling Toolkit (ModelingToolkit: (Transport) delay? Example: Inflow to one water reservoir is a delayed outflow from another - #7 b…

---

## [Declaring (non-parametric) type with unspecified types inside](https://discourse.julialang.org/t/declaring-non-parametric-type-with-unspecified-types-inside/125620)

<div class="topic-metadata">

**Author:** [@azoviktor](https://discourse.julialang.org/u/azoviktor)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 1:04pm UTC](https://discourse.julialang.org/t/declaring-non-parametric-type-with-unspecified-types-inside/125620 "2025-02-06T13:04:36Z")

</div>

If I declare a type as struct Test x::T where T end is it identical to declaring it as struct Test x::Any end ?

---

## [Working with Julia REPL + Vscode + WSL](https://discourse.julialang.org/t/working-with-julia-repl-vscode-wsl/125313)

<div class="topic-metadata">

**Author:** [@ed123](https://discourse.julialang.org/u/ed123)\
**Replies:** 6\
**Last updated:** [February 6, 2025, 11:20am UTC](https://discourse.julialang.org/t/working-with-julia-repl-vscode-wsl/125313 "2025-02-06T11:20:25Z")

</div>

I’ve read previous questions on this topic but I’m still stuck: apologies if this is off-topic. System info: I have the following setup: Hardware: AMD GPU Windows 10 Julia v1.11.2 installed in Windows VSCodium inst…

---

## [ModelingToolkit -- if statements?](https://discourse.julialang.org/t/modelingtoolkit-if-statements/125609)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 11:02am UTC](https://discourse.julialang.org/t/modelingtoolkit-if-statements/125609 "2025-02-06T11:02:32Z")

</div>

Silly question… I need to create a function that I call within an MTK model (computing friction force), and the friction depends on the direction of the velocity… two very different expressions if v\> 0, or whether v \<= 0…

---

## [Lux.jl QuickStart: why \`Lux.apply\` returns the state?](https://discourse.julialang.org/t/lux-jl-quickstart-why-lux-apply-returns-the-state/125607)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 9:55am UTC](https://discourse.julialang.org/t/lux-jl-quickstart-why-lux-apply-returns-the-state/125607 "2025-02-06T09:55:10Z")

</div>

In the QuickStart section of Lux.jl documentation, there is the line y, st = Lux.apply(model, x, ps, st) Why does Lux.apply return not only y but also st? How can inference computations change the neural network state?…

---

## [Is the Julia registry down?](https://discourse.julialang.org/t/is-the-julia-registry-down/125603)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 9:26am UTC](https://discourse.julialang.org/t/is-the-julia-registry-down/125603 "2025-02-06T09:26:12Z")

</div>

It seems that the registry can’t be downloaded or updated… julia\> Pkg.update() Updating registry at \`~/.julia/registries/General.toml\` ┌ Error: Some registries failed to update: │ — /home/lobianco/.julia/registr…

---

## [BoundaryValueDiffEq: How to restart to exploit initial guess?](https://discourse.julialang.org/t/boundaryvaluediffeq-how-to-restart-to-exploit-initial-guess/125552)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 7\
**Last updated:** [February 6, 2025, 7:46am UTC](https://discourse.julialang.org/t/boundaryvaluediffeq-how-to-restart-to-exploit-initial-guess/125552 "2025-02-06T07:46:36Z")

</div>

My boundary value problem has a parameter that renders the problem easy or hard. Is there a way to restart the solve function for the hard problem by specifying the solution of the easy problem as initial guess? Below …

---

## [This month in Julia world - 2025-01](https://discourse.julialang.org/t/this-month-in-julia-world-2025-01/125593)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 5:44am UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2025-01/125593 "2025-02-06T05:44:07Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. The deadline for s…

---

## [Trouble with Optimization.jl errors](https://discourse.julialang.org/t/trouble-with-optimization-jl-errors/125410)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 2\
**Last updated:** [February 6, 2025, 3:46am UTC](https://discourse.julialang.org/t/trouble-with-optimization-jl-errors/125410 "2025-02-06T03:46:24Z")

</div>

Hello all. I’m running into an issue with Optimization.jl when trying to estimate parameters of ODEs. The specific issue is that some optimizers work while others don’t. Furthermore, different optimizers throw different …

---

## [How to quantitatively analyze the impact of memory bandwidth on multithreading](https://discourse.julialang.org/t/how-to-quantitatively-analyze-the-impact-of-memory-bandwidth-on-multithreading/125059)

<div class="topic-metadata">

**Author:** [@quantumdreamer](https://discourse.julialang.org/u/quantumdreamer)\
**Replies:** 10\
**Last updated:** [February 6, 2025, 3:20am UTC](https://discourse.julialang.org/t/how-to-quantitatively-analyze-the-impact-of-memory-bandwidth-on-multithreading/125059 "2025-02-06T03:20:15Z")

</div>

When I increased the number of threads in my Julia project, I noticed that the performance of the project did not scale linearly with the number of threads. Currently, the multi-threaded performance is twice that of the …

---

## [Agents.jl: Interactive plotting - agent traits controllable on a slider](https://discourse.julialang.org/t/agents-jl-interactive-plotting-agent-traits-controllable-on-a-slider/92735)

<div class="topic-metadata">

**Author:** [@sea\_slug](https://discourse.julialang.org/u/sea_slug)\
**Replies:** 7\
**Last updated:** [February 6, 2025, 2:34am UTC](https://discourse.julialang.org/t/agents-jl-interactive-plotting-agent-traits-controllable-on-a-slider/92735 "2025-02-06T02:34:49Z")

</div>

I want to generate an interactive plot for the wolf-sheep model. I want to make it so that agent traits can be controlled on an interactive slider, for example: the initial number of sheep (n\_sheep) vary between 1 and 2…

---

## [How To Quickly Iterate over a Collection of Dictionaries?](https://discourse.julialang.org/t/how-to-quickly-iterate-over-a-collection-of-dictionaries/125588)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [February 5, 2025, 9:35pm UTC](https://discourse.julialang.org/t/how-to-quickly-iterate-over-a-collection-of-dictionaries/125588 "2025-02-05T21:35:51Z")

</div>

Hi folks! :wave: I have a rather large JSON file. The good news is that the JSON is not heavily nested (only 2 levels deep). What is the most efficient way to filter relevant parts of a JSON structure I need based on a …

---

## [Best practices of simple multithreading in Agents.jl](https://discourse.julialang.org/t/best-practices-of-simple-multithreading-in-agents-jl/125580)

<div class="topic-metadata">

**Author:** [@kockahonza](https://discourse.julialang.org/u/kockahonza)\
**Replies:** 2\
**Last updated:** [February 5, 2025, 8:47pm UTC](https://discourse.julialang.org/t/best-practices-of-simple-multithreading-in-agents-jl/125580 "2025-02-05T20:47:20Z")

</div>

Hi! I’m a still relatively new julia user and a completely fresh Agents.jl user. For a bit of background, I’m working on a pretty simple model where the agents are independent and hence I was hoping to parallelize the c…

---

## [Solving 2D PDE similar to advection-diffusion on unstructured mesh with Trixi](https://discourse.julialang.org/t/solving-2d-pde-similar-to-advection-diffusion-on-unstructured-mesh-with-trixi/125462)

<div class="topic-metadata">

**Author:** [@Liris](https://discourse.julialang.org/u/Liris)\
**Replies:** 6\
**Last updated:** [February 5, 2025, 5:41pm UTC](https://discourse.julialang.org/t/solving-2d-pde-similar-to-advection-diffusion-on-unstructured-mesh-with-trixi/125462 "2025-02-05T17:41:52Z")

</div>

Dear all, I am trying to solve the following equation: \\frac{\\partial \\phi}{\\partial t} + \\nabla\\cdot(\\phi \\boldsymbol{u}) - \\frac{\\partial}{\\partial z} \\left\[\\mathcal{F} \\phi(1-\\phi)\\right\] = \\nabla \\cdot (\\mathcal{D}…

---

## [Implementation of Octave functions in Julia](https://discourse.julialang.org/t/implementation-of-octave-functions-in-julia/39631)

<div class="topic-metadata">

**Author:** [@alejandrovpm](https://discourse.julialang.org/u/alejandrovpm)\
**Replies:** 16\
**Last updated:** [February 5, 2025, 5:27pm UTC](https://discourse.julialang.org/t/implementation-of-octave-functions-in-julia/39631 "2025-02-05T17:27:15Z")

</div>

Hello everyone, I wonder if there is a way to implement Matlab functions via Octave in Julia. I know there exists Matlab.jl but for using it you need to install a Matlab version in your computer. I ask this question be…

---

## [Cannot install Concorde.jl on Mac OS M3](https://discourse.julialang.org/t/cannot-install-concorde-jl-on-mac-os-m3/125505)

<div class="topic-metadata">

**Author:** [@mposs](https://discourse.julialang.org/u/mposs)\
**Replies:** 3\
**Last updated:** [February 5, 2025, 5:03pm UTC](https://discourse.julialang.org/t/cannot-install-concorde-jl-on-mac-os-m3/125505 "2025-02-05T17:03:40Z")

</div>

Hi Would someone happen to know how to solve the problem when installing Concorde.jl: (@v1.11) pkg\> add Concorde Resolving package versions... No Changes to \`~/.julia/environments/v1.11/Project.toml\` No Changes …

---

## [Makie force update, refresh, or redraw of figure or screen](https://discourse.julialang.org/t/makie-force-update-refresh-or-redraw-of-figure-or-screen/125586)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 0\
**Last updated:** [February 5, 2025, 4:56pm UTC](https://discourse.julialang.org/t/makie-force-update-refresh-or-redraw-of-figure-or-screen/125586 "2025-02-05T16:56:42Z")

</div>

i programmatically update the text of a Label and it is not reliably shown. simple cases work fine, and i’m having trouble coming up with an MWE that shows this bad behavior, but the structure of my production code is s…

---

## [How can I check if step!() was successful?](https://discourse.julialang.org/t/how-can-i-check-if-step-was-successful/125581)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [February 5, 2025, 3:36pm UTC](https://discourse.julialang.org/t/how-can-i-check-if-step-was-successful/125581 "2025-02-05T15:36:32Z")

</div>

In my code I have the line: OrdinaryDiffEqCore.step!(integrator, dt, true) Normally it works, but sometimes it doesn’t. How can I check if an error occurred, and if yes which one? The integrator was created using: s…

---

## [Reduce allocations in row-by-row dotproduct](https://discourse.julialang.org/t/reduce-allocations-in-row-by-row-dotproduct/125579)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 5\
**Last updated:** [February 5, 2025, 3:16pm UTC](https://discourse.julialang.org/t/reduce-allocations-in-row-by-row-dotproduct/125579 "2025-02-05T15:16:10Z")

</div>

Hi, I was wondering if there is a better way of writing the function add\_and\_mul below, which is effectively (up to some scaling and addition) trying to compute the dot-product between the various row-vectors in two matr…

---

## [Polars: Our Big Missed Opportunity](https://discourse.julialang.org/t/polars-our-big-missed-opportunity/125556)

<div class="topic-metadata">

**Author:** [@Patricio\_R](https://discourse.julialang.org/u/Patricio_R)\
**Replies:** 11\
**Last updated:** [February 5, 2025, 2:27pm UTC](https://discourse.julialang.org/t/polars-our-big-missed-opportunity/125556 "2025-02-05T14:27:51Z")

</div>

Why was the Polars library for Python developed in Rust instead of Julia? Why did we miss this great opportunity to make our beloved language famous and win the sympathy of the huge Python community? I propose to popula…

---

## [Argument error : invalid NLopt arguments: finite domain required for global algorithm](https://discourse.julialang.org/t/argument-error-invalid-nlopt-arguments-finite-domain-required-for-global-algorithm/125427)

<div class="topic-metadata">

**Author:** [@Somya](https://discourse.julialang.org/u/Somya)\
**Replies:** 13\
**Last updated:** [February 5, 2025, 1:40pm UTC](https://discourse.julialang.org/t/argument-error-invalid-nlopt-arguments-finite-domain-required-for-global-algorithm/125427 "2025-02-05T13:40:16Z")

</div>

Hi, I am trying to run a Julia code to fit a LinearMixedModel and facing an Argument error : invalid NLopt arguments: finite domain required for global algorithm. Julia version I am working on is 1.8.5 Any help will b…

---

## [Keep array elements that are NOT in a list of indexes](https://discourse.julialang.org/t/keep-array-elements-that-are-not-in-a-list-of-indexes/125555)

<div class="topic-metadata">

**Author:** [@JM\_Beckers](https://discourse.julialang.org/u/JM_Beckers)\
**Replies:** 8\
**Last updated:** [February 5, 2025, 12:40pm UTC](https://discourse.julialang.org/t/keep-array-elements-that-are-not-in-a-list-of-indexes/125555 "2025-02-05T12:40:55Z")

</div>

Suppose I have a list of indexes mylist, is there an equivalent of setdiff(myarray, myarray\[mylist\]) but using directly the fact that I know which elements are to the eliminated (through mylist) in order to be more ef…

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

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