# Latest

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

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

**Page:** 176

---

## [Does importing a submodule do anything?](https://discourse.julialang.org/t/does-importing-a-submodule-do-anything/86689)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 5\
**Last updated:** [April 29, 2025, 2:28pm UTC](https://discourse.julialang.org/t/does-importing-a-submodule-do-anything/86689 "2025-04-29T14:28:48Z")

</div>

The following codes do the same thing: module A x = 3 end @show A.x # 3 and module A x = 3 end import .A @show A.x # 3 Does import .A do anything at all in the second example? If not, why is it allowed?

---

## [Problems with stacked environments](https://discourse.julialang.org/t/problems-with-stacked-environments/128518)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 11\
**Last updated:** [April 29, 2025, 2:16pm UTC](https://discourse.julialang.org/t/problems-with-stacked-environments/128518 "2025-04-29T14:16:38Z")

</div>

I often see this: Why? WARNING: redefinition of constant OpenSSL\_jll.PATH. This may fail, cause incorrect answers, or produce other errors. WARNING: redefinition of constant OpenSSL\_jll.LIBPATH. This may fail, cause inc…

---

## [Defining variable with varying number of index sets](https://discourse.julialang.org/t/defining-variable-with-varying-number-of-index-sets/128478)

<div class="topic-metadata">

**Author:** [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Replies:** 8\
**Last updated:** [April 29, 2025, 2:15pm UTC](https://discourse.julialang.org/t/defining-variable-with-varying-number-of-index-sets/128478 "2025-04-29T14:15:48Z")

</div>

I want to create a JuMP variable with the syntax @variable(model, \[U\]) such that it is equivalent to @variable(model, \[S,T\]) How can I ‘pack’ S,T into U such that it exapnds to S,T in the @variable syntax? What I wo…

---

## [\[ANN\] Announcing DICEModel.jl - DICE 2023 Integrated Assessment Model port to Julia](https://discourse.julialang.org/t/ann-announcing-dicemodel-jl-dice-2023-integrated-assessment-model-port-to-julia/125842)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 2:14pm UTC](https://discourse.julialang.org/t/ann-announcing-dicemodel-jl-dice-2023-integrated-assessment-model-port-to-julia/125842 "2025-04-29T14:14:15Z")

</div>

DICEModel.jl provides a practical, full open-source (using all open-source tools) implementation of the latest version of the Nordhaus’s DICE (Dynamic Integrated Climate-Economy model) model, keeping the model readable,…

---

## [How to interface between functional and macro syntax in MTK](https://discourse.julialang.org/t/how-to-interface-between-functional-and-macro-syntax-in-mtk/128501)

<div class="topic-metadata">

**Author:** [@Matthew1](https://discourse.julialang.org/u/Matthew1)\
**Replies:** 4\
**Last updated:** [April 29, 2025, 12:56pm UTC](https://discourse.julialang.org/t/how-to-interface-between-functional-and-macro-syntax-in-mtk/128501 "2025-04-29T12:56:25Z")

</div>

How does one pass structural parameters from a @mtkmodel to a @component function? Is it possible to sort of convert between the positional syntax of @component function to the keyword syntax of @mtkmodel (for structural…

---

## [Mean‐Field Games “Crowd Control” Problem in Julia: HJB OK, but Struggling With Fokker‐Planck Positivity in Gridap](https://discourse.julialang.org/t/mean-field-games-crowd-control-problem-in-julia-hjb-ok-but-struggling-with-fokker-planck-positivity-in-gridap/128134)

<div class="topic-metadata">

**Author:** [@Ciccisio](https://discourse.julialang.org/u/Ciccisio)\
**Replies:** 2\
**Last updated:** [April 29, 2025, 10:21am UTC](https://discourse.julialang.org/t/mean-field-games-crowd-control-problem-in-julia-hjb-ok-but-struggling-with-fokker-planck-positivity-in-gridap/128134 "2025-04-29T10:21:30Z")

</div>

Hi everyone, I’m relatively new to Julia and I’m trying to solve a crowd control Mean Field Game (MFG) problem (inspired by Yves Achdou’s work " Mean Field Games for Modeling Crowd Motion") consisting of: A Hamilton–J…

---

## [Fitting a projection DPP by maximizing a sum of log determinants](https://discourse.julialang.org/t/fitting-a-projection-dpp-by-maximizing-a-sum-of-log-determinants/128502)

<div class="topic-metadata">

**Author:** [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Replies:** 5\
**Last updated:** [April 29, 2025, 10:16am UTC](https://discourse.julialang.org/t/fitting-a-projection-dpp-by-maximizing-a-sum-of-log-determinants/128502 "2025-04-29T10:16:39Z")

</div>

Hi! I am trying to solve the following optimization problem where I am trying to estimate the L-matrix of a projection determinantal point process (DPP) which is known to be of form U U^T where U is an M \\times N matrix …

---

## [Redistribute workload from in-homogeneous local workers to BLAS threads](https://discourse.julialang.org/t/redistribute-workload-from-in-homogeneous-local-workers-to-blas-threads/128515)

<div class="topic-metadata">

**Author:** [@VinceNeede](https://discourse.julialang.org/u/VinceNeede)\
**Replies:** 0\
**Last updated:** [April 29, 2025, 8:56am UTC](https://discourse.julialang.org/t/redistribute-workload-from-in-homogeneous-local-workers-to-blas-threads/128515 "2025-04-29T08:56:21Z")

</div>

I have some expensive function that I’m executing on local workers, something like: @everywhere begin using LinearAlgebra BLAS.set\_num\_threads(1) function expensive\_fun() #some in-homogeneous task …

---

## [Are Julia programmers still needed?](https://discourse.julialang.org/t/are-julia-programmers-still-needed/128499)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [April 29, 2025, 8:17am UTC](https://discourse.julialang.org/t/are-julia-programmers-still-needed/128499 "2025-04-29T08:17:54Z")

</div>

Uf. Looks like we could hold on to our jobs for a while longer… An Entire Company Was Staffed With AI Agents and You’ll Never Guess What Happened

---

## [How to force a small allocation?](https://discourse.julialang.org/t/how-to-force-a-small-allocation/128487)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 18\
**Last updated:** [April 29, 2025, 3:49am UTC](https://discourse.julialang.org/t/how-to-force-a-small-allocation/128487 "2025-04-29T03:49:21Z")

</div>

A MWE: function test() Bool\[\] return nothing end @time test() results in 0.000007 seconds (1 allocation: 64 bytes) as desired in Julia 1.7.3. But this method doesn’t work in 1.10.9, resulting in no allocat…

---

## [Jupyter doesn't find Julia 1.11 kernel](https://discourse.julialang.org/t/jupyter-doesnt-find-julia-1-11-kernel/121914)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 17\
**Last updated:** [April 29, 2025, 1:13am UTC](https://discourse.julialang.org/t/jupyter-doesnt-find-julia-1-11-kernel/121914 "2025-04-29T01:13:34Z")

</div>

Hi, after upgrading my Mac (to Sequoia 15.0.1) and its Xcode and Homebrew packages I found that I cannot run Julia notebooks in Jupyter anymore, because the upgraded kernel (Julia 1.11.1) is apparently not found. Starti…

---

## [Access node in custom\_recorders during historical simulation (SDDP.jl)](https://discourse.julialang.org/t/access-node-in-custom-recorders-during-historical-simulation-sddp-jl/128507)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 12:40am UTC](https://discourse.julialang.org/t/access-node-in-custom-recorders-during-historical-simulation-sddp-jl/128507 "2025-04-29T00:40:14Z")

</div>

Hey, I am calculating the dual values of some constraints during historical simulation, and the constraint index depends on the node in the body of the problem. Therefore, in the simulation part, I need to refer to the n…

---

## [\[ANN\] \`BandlimitedOperators.jl\`: fast actions of bandlimited kernel matrices](https://discourse.julialang.org/t/ann-bandlimitedoperators-jl-fast-actions-of-bandlimited-kernel-matrices/128505)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 0\
**Last updated:** [April 28, 2025, 11:06pm UTC](https://discourse.julialang.org/t/ann-bandlimitedoperators-jl-fast-actions-of-bandlimited-kernel-matrices/128505 "2025-04-28T23:06:53Z")

</div>

Hi all— Just a quick announcement here of some code I’ve finally cleaned up into a proper package. BandlimitedOperators.jl gives you fast methods for implicitly representing the action of matrices of the form pts1 = \[.…

---

## [Getting MATLAB.jl on Windows to work](https://discourse.julialang.org/t/getting-matlab-jl-on-windows-to-work/124575)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 5\
**Last updated:** [April 28, 2025, 8:41pm UTC](https://discourse.julialang.org/t/getting-matlab-jl-on-windows-to-work/124575 "2025-04-28T20:41:10Z")

</div>

Hello everyone, I raised an issue on the GitHub repo but looks like it’s not very active so just wanted to see if anyone else had this problem and a fix. I’ve added MATLAB in Julia v1.11 through the package manager. I a…

---

## [Infinite array](https://discourse.julialang.org/t/infinite-array/128455)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 10\
**Last updated:** [April 28, 2025, 8:12pm UTC](https://discourse.julialang.org/t/infinite-array/128455 "2025-04-28T20:12:33Z")

</div>

Hello, How can I define an infinite array? For example, I don’t know the number of data that will be entered into the array and I want to have an infinite array where no matter how much data I put into it, the length of…

---

## [Correct way to set MKL threads at runtime](https://discourse.julialang.org/t/correct-way-to-set-mkl-threads-at-runtime/128470)

<div class="topic-metadata">

**Author:** [@VinceNeede](https://discourse.julialang.org/u/VinceNeede)\
**Replies:** 4\
**Last updated:** [April 28, 2025, 6:50pm UTC](https://discourse.julialang.org/t/correct-way-to-set-mkl-threads-at-runtime/128470 "2025-04-28T18:50:01Z")

</div>

What is the correct way to set MKL threads at runtime? Documentation seems to be misleading, it says to use BLAS.set\_num\_threads(1) to be single threaded, but it does not work. The only way I have found to actually make …

---

## [Errors reported during Pkg.test("CUDA")](https://discourse.julialang.org/t/errors-reported-during-pkg-test-cuda/128316)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 6\
**Last updated:** [April 28, 2025, 5:45pm UTC](https://discourse.julialang.org/t/errors-reported-during-pkg-test-cuda/128316 "2025-04-28T17:45:17Z")

</div>

Hello, While I’ve been using Julia for a number of years now, this is my first attempt to use CUDA with Julia. I’ve encountered some errors while running the tests. OS: Windows 11 | Version 10.0.26120 Build 26120 juli…

---

## [Automatic precompiling after juliaup update](https://discourse.julialang.org/t/automatic-precompiling-after-juliaup-update/128493)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 2\
**Last updated:** [April 28, 2025, 4:05pm UTC](https://discourse.julialang.org/t/automatic-precompiling-after-juliaup-update/128493 "2025-04-28T16:05:04Z")

</div>

Continuing the discussion from Startup time of 1000 packages – 53% slower in Julia 1.12 vs 1.10: I’ve been looking for something like PrecompileAfterUpdate.jl! Is this functionality something that could be integrated in…

---

## [Makie parent/children relationships](https://discourse.julialang.org/t/makie-parent-children-relationships/128457)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.julialang.org/u/turtle)\
**Replies:** 5\
**Last updated:** [April 28, 2025, 2:24pm UTC](https://discourse.julialang.org/t/makie-parent-children-relationships/128457 "2025-04-28T14:24:28Z")

</div>

I am new to Makie, so I am still on the learning curve. I am trying to understand the parent/children relationships. Assume that I have a Figure with several Axes, and each Axis contains several Plots. Assume that I …

---

## [How to catch TestResult on failures?](https://discourse.julialang.org/t/how-to-catch-testresult-on-failures/128492)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 0\
**Last updated:** [April 28, 2025, 3:06pm UTC](https://discourse.julialang.org/t/how-to-catch-testresult-on-failures/128492 "2025-04-28T15:06:41Z")

</div>

I’m trying to grab the results after running tests, so I can send emails or slack messages based on the results. However, if there are any failures, @testset does not return the test set: julia\> using OhMyREPL; using T…

---

## [How can I use Makie to create a complex composite figure?](https://discourse.julialang.org/t/how-can-i-use-makie-to-create-a-complex-composite-figure/128480)

<div class="topic-metadata">

**Author:** [@cocolar201](https://discourse.julialang.org/u/cocolar201)\
**Replies:** 5\
**Last updated:** [April 28, 2025, 2:48pm UTC](https://discourse.julialang.org/t/how-can-i-use-makie-to-create-a-complex-composite-figure/128480 "2025-04-28T14:48:09Z")

</div>

How can I use Makie to create a complex composite figure? A plot like this：

---

## [Built-in binary search for sorted collections](https://discourse.julialang.org/t/built-in-binary-search-for-sorted-collections/128374)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 15\
**Last updated:** [April 28, 2025, 2:26pm UTC](https://discourse.julialang.org/t/built-in-binary-search-for-sorted-collections/128374 "2025-04-28T14:26:43Z")

</div>

Given integers N and k, I’d like to elegantly find the largest integer n for which binomial(n,k) \<= N. A way to do this is function max\_n\_binom\_leq(N::Integer, k::Integer) return maximum(n for n=k:N if binomial(big…

---

## [Enzyme custom rule alloactions](https://discourse.julialang.org/t/enzyme-custom-rule-alloactions/128491)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 0\
**Last updated:** [April 28, 2025, 2:11pm UTC](https://discourse.julialang.org/t/enzyme-custom-rule-alloactions/128491 "2025-04-28T14:11:20Z")

</div>

Hello, I got a problem with allocations when using custom rules in Enzyme. The example below is just a toy example but the same problem arises there. In total I get 4 alloactions. 2 by the line primal = func.val(y.va…

---

## [How to add legend that overlays marker and line color](https://discourse.julialang.org/t/how-to-add-legend-that-overlays-marker-and-line-color/61571)

<div class="topic-metadata">

**Author:** [@vjd](https://discourse.julialang.org/u/vjd)\
**Replies:** 9\
**Last updated:** [April 28, 2025, 9:09am UTC](https://discourse.julialang.org/t/how-to-add-legend-that-overlays-marker-and-line-color/61571 "2025-04-28T09:09:08Z")

</div>

is it possible to have a the legend for marker and line overlay on top each other if they follow the same color as in the code and figure below. I am still not sure exactly on the thinking behind creating the legend f…

---

## [Network socket appears open, but then immediately closes](https://discourse.julialang.org/t/network-socket-appears-open-but-then-immediately-closes/128481)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 1\
**Last updated:** [April 28, 2025, 9:08am UTC](https://discourse.julialang.org/t/network-socket-appears-open-but-then-immediately-closes/128481 "2025-04-28T09:08:24Z")

</div>

I’m writing a program which connects to a similar program on another computer; right now my desktop connects to my laptop. Both have IPv4 and IPv6 addresses; the IPv4 address is local-only, while the IPv6 address is glob…

---

## [How does SDDP provide decision for an out-of-sample state?](https://discourse.julialang.org/t/how-does-sddp-provide-decision-for-an-out-of-sample-state/128433)

<div class="topic-metadata">

**Author:** [@petr-a](https://discourse.julialang.org/u/petr-a)\
**Replies:** 2\
**Last updated:** [April 28, 2025, 8:47am UTC](https://discourse.julialang.org/t/how-does-sddp-provide-decision-for-an-out-of-sample-state/128433 "2025-04-28T08:47:04Z")

</div>

Hello! I’m new to SDDP and Julia and I wonder how the policy evaluation works (math behind it) for states which are out of the scenario lattice which is used to train the algorithm? For context: I’m solving the problem…

---

## [How to make a variable available on all processes (when using Distributed)](https://discourse.julialang.org/t/how-to-make-a-variable-available-on-all-processes-when-using-distributed/128460)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 21\
**Last updated:** [April 28, 2025, 8:43am UTC](https://discourse.julialang.org/t/how-to-make-a-variable-available-on-all-processes-when-using-distributed/128460 "2025-04-28T08:43:21Z")

</div>

I have a workflow which first does some preparations. Next, it does a heavy bit of computing which I would like to carry out in parallel. In practise it looks something like: # Fetch packages. @everwhere using Distribut…

---

## [Is JuliaCon worth it for beginners?](https://discourse.julialang.org/t/is-juliacon-worth-it-for-beginners/128476)

<div class="topic-metadata">

**Author:** [@jowsky](https://discourse.julialang.org/u/jowsky)\
**Replies:** 5\
**Last updated:** [April 28, 2025, 7:22am UTC](https://discourse.julialang.org/t/is-juliacon-worth-it-for-beginners/128476 "2025-04-28T07:22:44Z")

</div>

Hello community, Since I am french, I’m think about going to JuliaCon Local Paris 2025, since it would be pretty easy and cheap for me to attend. However, I don’t have much of a programmation background and I am just s…

---

## [Troubles using sparse autodifferentiation](https://discourse.julialang.org/t/troubles-using-sparse-autodifferentiation/128337)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 11\
**Last updated:** [April 28, 2025, 7:12am UTC](https://discourse.julialang.org/t/troubles-using-sparse-autodifferentiation/128337 "2025-04-28T07:12:32Z")

</div>

Hi all, I am following Advanced tutorial · DifferentiationInterface.jl and to try out some of the modern AD features it provides. My test case is here FunWithSplines/workspace/MLE/core-5\_4\_1.jl at main · slwu89/FunWithSp…

---

## [Julia code/package to read and write RDF/OWL turtle files](https://discourse.julialang.org/t/julia-code-package-to-read-and-write-rdf-owl-turtle-files/128350)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 4\
**Last updated:** [April 28, 2025, 6:09am UTC](https://discourse.julialang.org/t/julia-code-package-to-read-and-write-rdf-owl-turtle-files/128350 "2025-04-28T06:09:26Z")

</div>

Does anyone know where to find a package or example code to read and write turtle files containing RDF or OWL ontologies? There is a package (JuliaPackageMirrors/RDF.jl: Julia package mirror.), but it has not been update…

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

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