# Latest

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

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

**Page:** 129

---

## [Terribly unoptimized combination of multiset\_permutations() and Iterators.product()](https://discourse.julialang.org/t/terribly-unoptimized-combination-of-multiset-permutations-and-iterators-product/130714)

<div class="topic-metadata">

**Author:** [@jonbir](https://discourse.julialang.org/u/jonbir)\
**Replies:** 9\
**Last updated:** [July 29, 2025, 11:42pm UTC](https://discourse.julialang.org/t/terribly-unoptimized-combination-of-multiset-permutations-and-iterators-product/130714 "2025-07-29T23:42:34Z")

</div>

Since I got great feedback on my first post, I turn to you again with another question. In my larger code base I want to iterate over a special kind of binary matrices. First fact about the binary matrices, they have ex…

---

## [Maxwell-Boltzmann Distribution using Distributions.jl](https://discourse.julialang.org/t/maxwell-boltzmann-distribution-using-distributions-jl/131210)

<div class="topic-metadata">

**Author:** [@prconlin](https://discourse.julialang.org/u/prconlin)\
**Replies:** 1\
**Last updated:** [July 30, 2025, 5:13pm UTC](https://discourse.julialang.org/t/maxwell-boltzmann-distribution-using-distributions-jl/131210 "2025-07-30T17:13:01Z")

</div>

Hello, Distributions.jl does not have an implementation of the Maxwell-Boltzmann distribution, but it does have the Chi distribution, which is a more general form of the Maxwell-Boltzmann case. I’m hoping to simply app…

---

## [\[10757\] signal 11 (1): Segmentation fault](https://discourse.julialang.org/t/10757-signal-11-1-segmentation-fault/131139)

<div class="topic-metadata">

**Author:** [@redti](https://discourse.julialang.org/u/redti)\
**Replies:** 37\
**Last updated:** [July 30, 2025, 4:42pm UTC](https://discourse.julialang.org/t/10757-signal-11-1-segmentation-fault/131139 "2025-07-30T16:42:04Z")

</div>

Hi, I’m completely new to Julia, I’d like to begging by expressing my appreciation for the FreeBSD installation package to the Dev responsible for it. I’m under FreeBSD 14.3 patch 1. I’m using KDE, Plasma 6.4.3. The w…

---

## [REPL display options (such as shorter vector output)?](https://discourse.julialang.org/t/repl-display-options-such-as-shorter-vector-output/9237)

<div class="topic-metadata">

**Author:** [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)\
**Replies:** 3\
**Last updated:** [July 30, 2025, 4:32pm UTC](https://discourse.julialang.org/t/repl-display-options-such-as-shorter-vector-output/9237 "2025-07-30T16:32:31Z")

</div>

dear julia experts—does the REPL have options that set some default parameters on how it prints? (think R’s options(digits=10).) In particular, is it possible to get fewer lines for output of long vectors (e.g., rand(1…

---

## [What is closed module?](https://discourse.julialang.org/t/what-is-closed-module/90463)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 6\
**Last updated:** [July 30, 2025, 1:40pm UTC](https://discourse.julialang.org/t/what-is-closed-module/90463 "2025-07-30T13:40:00Z")

</div>

I have a package named MyPkg, which depends on MyPkg2. When I load MyPkg, I get the following error: julia\> using MyPkg \[ Info: Precompiling MyPkg \[\<MyPkg uuid\>\] ERROR: LoadError: Evaluation into the closed module \`MyP…

---

## [\[ANN\] StableDistributions.jl: stable distributions in Julia](https://discourse.julialang.org/t/ann-stabledistributions-jl-stable-distributions-in-julia/111711)

<div class="topic-metadata">

**Author:** [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Replies:** 12\
**Last updated:** [July 30, 2025, 1:33pm UTC](https://discourse.julialang.org/t/ann-stabledistributions-jl-stable-distributions-in-julia/111711 "2025-07-30T13:33:32Z")

</div>

I am happy to announce that Julia now has a feature-complete stable distributions package (see Wikipedia) StableDistributions.jl. This class of distributions is crucially important when dealing with data exhibiting heavy…

---

## [\[ANN\] StippleCodeMirror.jl - A highlighting editor for the GenieFramework](https://discourse.julialang.org/t/ann-stipplecodemirror-jl-a-highlighting-editor-for-the-genieframework/131127)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 3\
**Last updated:** [July 30, 2025, 12:43pm UTC](https://discourse.julialang.org/t/ann-stipplecodemirror-jl-a-highlighting-editor-for-the-genieframework/131127 "2025-07-30T12:43:02Z")

</div>

I’m happy to announce the release of StippleCodeMirror.jl, a new package in the GenieFramework ecosystem that brings the powerful CodeMirror code editor to your web apps, with built-in syntax highlighting for Julia, Pyth…

---

## [Inspecting the stack](https://discourse.julialang.org/t/inspecting-the-stack/376)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 10\
**Last updated:** [July 30, 2025, 11:03am UTC](https://discourse.julialang.org/t/inspecting-the-stack/376 "2025-07-30T11:03:56Z")

</div>

Hello, Is there any way to inspect the stack when an exception is thrown? This was my top debugging tool in Python and Common Lisp, and I really miss it in Julia. To be clear, I mean going up and down stack frames, and …

---

## [Retrieve a value within a do block](https://discourse.julialang.org/t/retrieve-a-value-within-a-do-block/131121)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 10\
**Last updated:** [July 30, 2025, 10:06am UTC](https://discourse.julialang.org/t/retrieve-a-value-within-a-do-block/131121 "2025-07-30T10:06:15Z")

</div>

julia\> function a\_correct\_way\_to\_build\_with\_multithreading() model = Model() @variable(model, x\[1:10\]) my\_lock = Threads.ReentrantLock() Threads.@threads for i in 1:10 …

---

## [API‑design feedback for DataSplits.jl (dataset‑splitting package)](https://discourse.julialang.org/t/api-design-feedback-for-datasplits-jl-dataset-splitting-package/131193)

<div class="topic-metadata">

**Author:** [@davide.crucitti](https://discourse.julialang.org/u/davide.crucitti)\
**Replies:** 0\
**Last updated:** [July 30, 2025, 9:54am UTC](https://discourse.julialang.org/t/api-design-feedback-for-datasplits-jl-dataset-splitting-package/131193 "2025-07-30T09:54:43Z")

</div>

Hello everyone, In the past month I’ve been working on an article on the effectiveness of dataset splitting algorithms in cheminformatics. Since I didn’t need specific chemistry libraries for this project I decided to u…

---

## [Slicing a matrix of matrices](https://discourse.julialang.org/t/slicing-a-matrix-of-matrices/131161)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 5\
**Last updated:** [July 30, 2025, 7:29am UTC](https://discourse.julialang.org/t/slicing-a-matrix-of-matrices/131161 "2025-07-30T07:29:52Z")

</div>

I would like to better understand how to slice matrices of matrices. For example, I initialise a matrix of matrices this way: M = \[\[1 0; 0 2\] for i = 1:2, j=1:2\] If I slice it this way: M\[1,1\]\[:,:\] I obtain the result…

---

## [Sea of Nodes IR](https://discourse.julialang.org/t/sea-of-nodes-ir/131171)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 4\
**Last updated:** [July 30, 2025, 7:45am UTC](https://discourse.julialang.org/t/sea-of-nodes-ir/131171 "2025-07-30T07:45:26Z")

</div>

This is a very interesting talk on treeless parsing and IR. The first half about treeless parsing doesn’t apply to Julia what without user facing AST. However, the second half is about using a graph of nodes to represent…

---

## [Discourse syntax highlighting?](https://discourse.julialang.org/t/discourse-syntax-highlighting/128013)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 21\
**Last updated:** [July 30, 2025, 3:55am UTC](https://discourse.julialang.org/t/discourse-syntax-highlighting/128013 "2025-07-30T03:55:46Z")

</div>

Surely it’s not just me… Does anyone else feel that the syntax highlighting for Julia on Discourse looks a bit dull compared to other languages? For instance, here’s some simple Julia code: struct Vec{T\<:Real} x::T…

---

## [How to get all the registered variable names of a \`JuMP\` model?](https://discourse.julialang.org/t/how-to-get-all-the-registered-variable-names-of-a-jump-model/113837)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [July 30, 2025, 2:39am UTC](https://discourse.julialang.org/t/how-to-get-all-the-registered-variable-names-of-a-jump-model/113837 "2025-07-30T02:39:45Z")

</div>

Is there any method to obtaining all the registered variable names (symbols) of a JuMP model? And, if the variables have been set String names, how to get their original symbolic names?

---

## [Using Enzyme.jl with Flux: Issues Computing Gradients of a Model with Duplicated Parameters and Mixed Forward/Reverse AD](https://discourse.julialang.org/t/using-enzyme-jl-with-flux-issues-computing-gradients-of-a-model-with-duplicated-parameters-and-mixed-forward-reverse-ad/131135)

<div class="topic-metadata">

**Author:** [@Gianmarco](https://discourse.julialang.org/u/Gianmarco)\
**Replies:** 11\
**Last updated:** [July 29, 2025, 11:23pm UTC](https://discourse.julialang.org/t/using-enzyme-jl-with-flux-issues-computing-gradients-of-a-model-with-duplicated-parameters-and-mixed-forward-reverse-ad/131135 "2025-07-29T23:23:35Z")

</div>

Hi everyone, I’m trying to use Enzyme.jl to compute gradients for a Flux model during training. My goal is to differentiate a custom loss function that combines a regular mean squared error term with an additional gradi…

---

## [Just-in-time gradient optimization idea](https://discourse.julialang.org/t/just-in-time-gradient-optimization-idea/131170)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [July 29, 2025, 10:17pm UTC](https://discourse.julialang.org/t/just-in-time-gradient-optimization-idea/131170 "2025-07-29T22:17:28Z")

</div>

Disclaimer: The idea might look simple in theory, but it might be very hard to implement. Imagine you had a machine learning model comprising multiple batches of parameters. Normally, you differentiate through the entir…

---

## [Cannot convert DocStr in Julia 1.11](https://discourse.julialang.org/t/cannot-convert-docstr-in-julia-1-11/131172)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 1\
**Last updated:** [July 29, 2025, 9:29pm UTC](https://discourse.julialang.org/t/cannot-convert-docstr-in-julia-1-11/131172 "2025-07-29T21:29:03Z")

</div>

This only happens in Julia 1.11 and only before REPL is loaded: method comments require \_\_init\_\_: Test Failed at K:\\DevDocuments\\Raven\_Inherit\\test\\PkgTest1\\test\\runtests.jl:45 Expression: strip(string(#= K:\\DevDocume…

---

## [Idiomatic way of writing function with all named arguments and no defaults](https://discourse.julialang.org/t/idiomatic-way-of-writing-function-with-all-named-arguments-and-no-defaults/131131)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 6\
**Last updated:** [July 29, 2025, 8:51pm UTC](https://discourse.julialang.org/t/idiomatic-way-of-writing-function-with-all-named-arguments-and-no-defaults/131131 "2025-07-29T20:51:09Z")

</div>

There are a few very similar threads but often old(ish) so I’ll add another one. What’s the idiomatic way of writing something like this: function myfun(; x = nothing, y = nothing, z = nothing) @assert !isnothing(x)…

---

## [Plotting in GeoStats](https://discourse.julialang.org/t/plotting-in-geostats/130770)

<div class="topic-metadata">

**Author:** [@beppi](https://discourse.julialang.org/u/beppi)\
**Replies:** 27\
**Last updated:** [July 29, 2025, 8:39pm UTC](https://discourse.julialang.org/t/plotting-in-geostats/130770 "2025-07-29T20:39:52Z")

</div>

Hey, I’ve seen the page here: Visualization · GeoStats.jl However as a newbie I might be unable to understand how to do this. I have a GeoTable of points and I want to plot the points coloured by a column in the GeoTab…

---

## [Determinant of a square random matrix using juliac](https://discourse.julialang.org/t/determinant-of-a-square-random-matrix-using-juliac/131144)

<div class="topic-metadata">

**Author:** [@jbytecode](https://discourse.julialang.org/u/jbytecode)\
**Replies:** 5\
**Last updated:** [July 29, 2025, 7:57pm UTC](https://discourse.julialang.org/t/determinant-of-a-square-random-matrix-using-juliac/131144 "2025-07-29T19:57:35Z")

</div>

The Julia code is using LinearAlgebra function (@main)(args::Vector{String})::Cint m = rand(Float64, 3, 3) for i in 1:3 for j in 1:3 print(Core.stdout, m\[i, j\], " ") end println(Core.stdout) end res…

---

## [Excessive allocations in basic SciMLSensitivity example](https://discourse.julialang.org/t/excessive-allocations-in-basic-scimlsensitivity-example/131145)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 15\
**Last updated:** [July 29, 2025, 7:17pm UTC](https://discourse.julialang.org/t/excessive-allocations-in-basic-scimlsensitivity-example/131145 "2025-07-29T19:17:19Z")

</div>

The first example (copied below) in the SciMLSensitivity docs shows how to optimize the parameters of the Lotka-Volterra system to achieve a steady state. There’s no neural network, or anything, just an ODE system with …

---

## [Animation keeps changing xlims ylims](https://discourse.julialang.org/t/animation-keeps-changing-xlims-ylims/131181)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 2\
**Last updated:** [July 29, 2025, 6:31pm UTC](https://discourse.julialang.org/t/animation-keeps-changing-xlims-ylims/131181 "2025-07-29T18:31:05Z")

</div>

Greetings, I have been struggling for hours to create an animation (particles in a box) where the xlims and ylims of the plot window remain fixed during the run. @userplot SystemPlot @recipe function f(sp::SystemPlo…

---

## [How to check what method is used by dispatch?](https://discourse.julialang.org/t/how-to-check-what-method-is-used-by-dispatch/131178)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [July 29, 2025, 5:27pm UTC](https://discourse.julialang.org/t/how-to-check-what-method-is-used-by-dispatch/131178 "2025-07-29T17:27:44Z")

</div>

Hey, Say I have an abstract type A and many subtypes B, C, D: abstract type A end struct B\<:A end struct C\<:A end should\_return\_one(::A) = 1 should\_return\_one(x::B) = # something else. # remark that, on purpose, I di…

---

## [Groupby generic table-shaped things](https://discourse.julialang.org/t/groupby-generic-table-shaped-things/131074)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 5\
**Last updated:** [July 29, 2025, 4:18pm UTC](https://discourse.julialang.org/t/groupby-generic-table-shaped-things/131074 "2025-07-29T16:18:48Z")

</div>

I know of Query.jl but frankly I hate both its syntaxes \[1, 2\]. (And also weirdly doesn’t depend on Tables.jl?) In the Tables.jl universe, I know of TableOperations.jl and TableTransforms.jl but weirdly neither of them …

---

## [\[ANN\] Makeitso.jl v1.0.0](https://discourse.julialang.org/t/ann-makeitso-jl-v1-0-0/131175)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 0\
**Last updated:** [July 29, 2025, 4:14pm UTC](https://discourse.julialang.org/t/ann-makeitso-jl-v1-0-0/131175 "2025-07-29T16:14:07Z")

</div>

Makeitso.jl v1.0.0 Make-like behavior to facilitate writing long-running scripts. The idea is that the user supplies the dependencies between targets and recipes for how to make a target from those dependencies. If chang…

---

## [Partial world-splitting](https://discourse.julialang.org/t/partial-world-splitting/131114)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 8\
**Last updated:** [July 29, 2025, 3:40pm UTC](https://discourse.julialang.org/t/partial-world-splitting/131114 "2025-07-29T15:40:36Z")

</div>

@topolarity’s talk, Can we achieve “invalidation freedom” for Julia? :: JuliaCon 2025 :: pretalx made me think some more about world-splitting. If I understand correctly, a call that infers to foo(::String, ::Any), where…

---

## [Unwanted clipping at corners of GLMakie 3d plot](https://discourse.julialang.org/t/unwanted-clipping-at-corners-of-glmakie-3d-plot/131053)

<div class="topic-metadata">

**Author:** [@fegomezl](https://discourse.julialang.org/u/fegomezl)\
**Replies:** 7\
**Last updated:** [July 29, 2025, 2:22pm UTC](https://discourse.julialang.org/t/unwanted-clipping-at-corners-of-glmakie-3d-plot/131053 "2025-07-29T14:22:39Z")

</div>

Hi everyone, I am using contour() from GLMakie to create a 3d level plot. My problem occurs when I zoom in; white triangles appear at the edges of the box, which cover my plot: Does someone know how to fix this? I h…

---

## [HPC Engineer at Symbolic Mind](https://discourse.julialang.org/t/hpc-engineer-at-symbolic-mind/131164)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 0\
**Last updated:** [July 29, 2025, 1:08pm UTC](https://discourse.julialang.org/t/hpc-engineer-at-symbolic-mind/131164 "2025-07-29T13:08:05Z")

</div>

We’re hiring! No official posting, but this is us: I can’t go into too much detail on our approach, but at a high level we use discrete encoding instead of high-dimensional vectors, and we’re much more CPU focused tha…

---

## [Cartesian For Loop](https://discourse.julialang.org/t/cartesian-for-loop/130353)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 23\
**Last updated:** [July 29, 2025, 12:55pm UTC](https://discourse.julialang.org/t/cartesian-for-loop/130353 "2025-07-29T12:55:34Z")

</div>

Here are three (I, II, III) implementations. import Random.seed! as seed! import Random.shuffle as shuffle seed!(1); # \[Code I\] for i = shuffle(1:3) for j = shuffle(1:4) println("($i, $j)") end end see…

---

## [DifferentiationInterface+ForwardDiff unable to diff ldiv! (any other options to solve linear system w/o allocations and differentiate?)](https://discourse.julialang.org/t/differentiationinterface-forwarddiff-unable-to-diff-ldiv-any-other-options-to-solve-linear-system-w-o-allocations-and-differentiate/131076)

<div class="topic-metadata">

**Author:** [@r0uv3n](https://discourse.julialang.org/u/r0uv3n)\
**Replies:** 34\
**Last updated:** [July 28, 2025, 4:30pm UTC](https://discourse.julialang.org/t/differentiationinterface-forwarddiff-unable-to-diff-ldiv-any-other-options-to-solve-linear-system-w-o-allocations-and-differentiate/131076 "2025-07-28T16:30:11Z")

</div>

I have a function where both a matrix g as well as a vector q depend on some vector input p. On the way I need to solve for g^{-1} q. I want to use DifferentiationInterface+AutoForwardDiff to take derivatives of this fu…

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

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