# Latest

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

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

**Page:** 297

---

## [GLMakie precompilation fails ( julia 1.10.2; WSL2)](https://discourse.julialang.org/t/glmakie-precompilation-fails-julia-1-10-2-wsl2/118981)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 8\
**Last updated:** [October 20, 2024, 3:18am UTC](https://discourse.julialang.org/t/glmakie-precompilation-fails-julia-1-10-2-wsl2/118981 "2024-10-20T03:18:12Z")

</div>

Hi, The precompilation of GLMakie is failing: show(err) 1-element ExceptionStack: The following 1 direct dependency failed to precompile: GLMakie \[e9467ef8-e4e7-5192-8a1a-b1aee30e663a\] Failed to precompile GLMakie …

---

## [Switching behaviour of implicit ODEs](https://discourse.julialang.org/t/switching-behaviour-of-implicit-odes/121472)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 7\
**Last updated:** [October 20, 2024, 12:19am UTC](https://discourse.julialang.org/t/switching-behaviour-of-implicit-odes/121472 "2024-10-20T00:19:51Z")

</div>

I have two coupled nonlinear ODEs where I’m aiming to find x(t) and y(t), defined generally as: f(x,y,x',y') = 0, \\min(g(x,y,x',y'),h(x,y,x',y')) = 0, where I expect that I will switch between g\<h and g\>h at least onc…

---

## [Error with @discrete\_events for composite model (reeval\_internals\_due\_to\_modification!)](https://discourse.julialang.org/t/error-with-discrete-events-for-composite-model-reeval-internals-due-to-modification/121486)

<div class="topic-metadata">

**Author:** [@jmaedler](https://discourse.julialang.org/u/jmaedler)\
**Replies:** 2\
**Last updated:** [October 19, 2024, 10:42pm UTC](https://discourse.julialang.org/t/error-with-discrete-events-for-composite-model-reeval-internals-due-to-modification/121486 "2024-10-19T22:42:47Z")

</div>

Hi everyone, I am building a composite model in order to test my binary valve model and I am running into an error, which I do not understand. This is the code for building up the system and running it. I can also provi…

---

## [PauliStrings.jl - Quantum many-body simulations with Pauli strings](https://discourse.julialang.org/t/paulistrings-jl-quantum-many-body-simulations-with-pauli-strings/121490)

<div class="topic-metadata">

**Author:** [@Nichola](https://discourse.julialang.org/u/Nichola)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 7:37pm UTC](https://discourse.julialang.org/t/paulistrings-jl-quantum-many-body-simulations-with-pauli-strings/121490 "2024-10-19T19:37:44Z")

</div>

Hi all ! I’m happy to announce PauliStrings.jl a quantum many body simulation package based on the Pauli strings representation. Docs : https://paulistrings.org/ Paper : \[2410.09654\] Quantum many-body simulations with…

---

## [Julia code on a cluster without Julia installed](https://discourse.julialang.org/t/julia-code-on-a-cluster-without-julia-installed/121267)

<div class="topic-metadata">

**Author:** [@uri](https://discourse.julialang.org/u/uri)\
**Replies:** 9\
**Last updated:** [October 19, 2024, 7:28pm UTC](https://discourse.julialang.org/t/julia-code-on-a-cluster-without-julia-installed/121267 "2024-10-19T19:28:28Z")

</div>

Hi. I need to run some Julia code on a cluster without Julia installed. I don’t have root permission. Any suggestions. Thanks a lot

---

## [Perspectives from 2024 GSoC Mentor Summit!](https://discourse.julialang.org/t/perspectives-from-2024-gsoc-mentor-summit/121488)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 6:15pm UTC](https://discourse.julialang.org/t/perspectives-from-2024-gsoc-mentor-summit/121488 "2024-10-19T18:15:54Z")

</div>

Hi folks! :wave: Your friendly Julia GSoC Co-Admin here! Wanted to share my own update about this year’s GSoC Mentor Summit. This year, @avik, @mortenpi, and I went to Google HQ in Mountain View to meet other GSoC proje…

---

## [How use eval to define macros that involve function definitions](https://discourse.julialang.org/t/how-use-eval-to-define-macros-that-involve-function-definitions/93773)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 3\
**Last updated:** [October 19, 2024, 6:12pm UTC](https://discourse.julialang.org/t/how-use-eval-to-define-macros-that-involve-function-definitions/93773 "2024-10-19T18:12:58Z")

</div>

I want to define a bunch of macros that define function methods in a private module. module MyModule function f() end function g() end end using Main.MyModule struct T i end macro f(T, expr) esc(:(MyModule.…

---

## [I made a Pong tutorial for my game library in Julia!](https://discourse.julialang.org/t/i-made-a-pong-tutorial-for-my-game-library-in-julia/121483)

<div class="topic-metadata">

**Author:** [@Sabe](https://discourse.julialang.org/u/Sabe)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 3:29pm UTC](https://discourse.julialang.org/t/i-made-a-pong-tutorial-for-my-game-library-in-julia/121483 "2024-10-19T15:29:02Z")

</div>

So I just released a little tutorial on how to make Pong in my game library. You can check it out here: https://www.youtube.com/watch?v=zp04en2ZCBg and check out the library here: GitHub - SabeDoesThings/Nexa.jl: A sim…

---

## [How feasible is it to create a DuckDB clone in Julia?](https://discourse.julialang.org/t/how-feasible-is-it-to-create-a-duckdb-clone-in-julia/120944)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [October 19, 2024, 3:14pm UTC](https://discourse.julialang.org/t/how-feasible-is-it-to-create-a-duckdb-clone-in-julia/120944 "2024-10-19T15:14:03Z")

</div>

There’s no real need for this but the only remaining friction is that it’s hard to use Julia UDFs with DuckDB. If Julia was built in Julia then it might be easier to use Julia with it. However not sure if this is still t…

---

## [Windows COM in Julia](https://discourse.julialang.org/t/windows-com-in-julia/121473)

<div class="topic-metadata">

**Author:** [@Ibrahim-a-Ibrahim](https://discourse.julialang.org/u/Ibrahim-a-Ibrahim)\
**Replies:** 1\
**Last updated:** [October 19, 2024, 2:57pm UTC](https://discourse.julialang.org/t/windows-com-in-julia/121473 "2024-10-19T14:57:47Z")

</div>

I want to use some Windows apps in Julia and this required installing Windows COM, which seems that it is not available in the standard Julia Package Registry. There was a suggestion to install PyCall in Julia and then u…

---

## [\`ifelse\` query](https://discourse.julialang.org/t/ifelse-query/121466)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 9\
**Last updated:** [October 19, 2024, 2:26pm UTC](https://discourse.julialang.org/t/ifelse-query/121466 "2024-10-19T14:26:20Z")

</div>

Hello, I have the following code function test(x,y) ifelse(x\>y,return x, throw(error("err"))) end For me the function is always returning error. This does not make sense to me as for test(2,1) it should return 2. …

---

## [StyledStrings and maintainability of reproducible project environments](https://discourse.julialang.org/t/styledstrings-and-maintainability-of-reproducible-project-environments/121471)

<div class="topic-metadata">

**Author:** [@jwortmann](https://discourse.julialang.org/u/jwortmann)\
**Replies:** 7\
**Last updated:** [October 19, 2024, 8:01am UTC](https://discourse.julialang.org/t/styledstrings-and-maintainability-of-reproducible-project-environments/121471 "2024-10-19T08:01:47Z")

</div>

I have a Julia project environment at LSP-julia/server at main · sublimelsp/LSP-julia · GitHub with a single dependency (LanguageServer.jl) that I update more or less regularly. After updating to Julia 1.11 I noticed tha…

---

## [Custom Flux.jl Layer Not Updating (problem with Flux.trainable?)](https://discourse.julialang.org/t/custom-flux-jl-layer-not-updating-problem-with-flux-trainable/112842)

<div class="topic-metadata">

**Author:** [@eahenle](https://discourse.julialang.org/u/eahenle)\
**Replies:** 2\
**Last updated:** [October 19, 2024, 7:59am UTC](https://discourse.julialang.org/t/custom-flux-jl-layer-not-updating-problem-with-flux-trainable/112842 "2024-10-19T07:59:48Z")

</div>

I am having a problem getting a custom layer to update, and have tracked the issue to an apparent disconnect between Flux.trainable and Flux.setup. I read through related-sounding posts and issues, which seem to general…

---

## [The manual's section on variable scope sucks](https://discourse.julialang.org/t/the-manuals-section-on-variable-scope-sucks/119522)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 46\
**Last updated:** [October 19, 2024, 6:35am UTC](https://discourse.julialang.org/t/the-manuals-section-on-variable-scope-sucks/119522 "2024-10-19T06:35:14Z")

</div>

I know it’s not for the lack of trying, but the manual’s section on scope is unclear if not outright wrong. Issue 1 The manual says: If you assign to an existing local, it always \[emphasis not mine\] updates that exis…

---

## [Embedding julia: jl\_atexit\_hook always segfaults](https://discourse.julialang.org/t/embedding-julia-jl-atexit-hook-always-segfaults/108722)

<div class="topic-metadata">

**Author:** [@xapkohheh](https://discourse.julialang.org/u/xapkohheh)\
**Replies:** 10\
**Last updated:** [October 19, 2024, 12:32am UTC](https://discourse.julialang.org/t/embedding-julia-jl-atexit-hook-always-segfaults/108722 "2024-10-19T00:32:12Z")

</div>

Hello there! I’ve been trying to embed julia into a digital content creation software named Houdini (I’ve asked questions about this about two years ago, finally got back at it :slight\_smile: ) So everything seems to w…

---

## [Device RNG - Passes BigCrush](https://discourse.julialang.org/t/device-rng-passes-bigcrush/120976)

<div class="topic-metadata">

**Author:** [@MrBelette](https://discourse.julialang.org/u/MrBelette)\
**Replies:** 21\
**Last updated:** [October 18, 2024, 8:33pm UTC](https://discourse.julialang.org/t/device-rng-passes-bigcrush/120976 "2024-10-18T20:33:38Z")

</div>

I resurrected the SharedTauswortheGenerator device RNG from CUDA.jl v3.0.0 and, after some adjustment, it appears to pass the TestU01 BigCrush battery of tests! It would be nice if this can be independently tested. The…

---

## [Using \`download\` during dep build (Julia v1.11)](https://discourse.julialang.org/t/using-download-during-dep-build-julia-v1-11/121393)

<div class="topic-metadata">

**Author:** [@felipenoris](https://discourse.julialang.org/u/felipenoris)\
**Replies:** 6\
**Last updated:** [October 18, 2024, 8:28pm UTC](https://discourse.julialang.org/t/using-download-during-dep-build-julia-v1-11/121393 "2024-10-18T20:28:58Z")

</div>

Hi! The build script from package Oracle uses download function defined in the stdlib (Oracle.jl/deps/build.jl at cad6bc5bde0f1bd65cff493ca2113d7fe3f2d9e2 · felipenoris/Oracle.jl · GitHub). When migrating to Julia v1.11…

---

## [Macro to reorder conditional nested loop](https://discourse.julialang.org/t/macro-to-reorder-conditional-nested-loop/93588)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [October 18, 2024, 5:31pm UTC](https://discourse.julialang.org/t/macro-to-reorder-conditional-nested-loop/93588 "2024-10-18T17:31:33Z")

</div>

I have a loop of the form for j=1:n for k = max(1,j-d\_u):min(j-u-1,m) f(j, k) end end and it turns out that computing the limits on k in each iteration is adding a lot of overhead. Turns ou…

---

## [How to query the number of arguments passed to a CLI program?](https://discourse.julialang.org/t/how-to-query-the-number-of-arguments-passed-to-a-cli-program/121461)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 5:13pm UTC](https://discourse.julialang.org/t/how-to-query-the-number-of-arguments-passed-to-a-cli-program/121461 "2024-10-18T17:13:33Z")

</div>

I am trying to find a way to query the number of arguments passed to a Julia CLI program. This is what I have come up with, but it doesn’t quite make sense. (Explanation below.) function main() if size(ARGS) != 1 …

---

## [No longer a place here for sharing Julia projects?](https://discourse.julialang.org/t/no-longer-a-place-here-for-sharing-julia-projects/121453)

<div class="topic-metadata">

**Author:** [@benslinux](https://discourse.julialang.org/u/benslinux)\
**Replies:** 5\
**Last updated:** [October 18, 2024, 4:44pm UTC](https://discourse.julialang.org/t/no-longer-a-place-here-for-sharing-julia-projects/121453 "2024-10-18T16:44:57Z")

</div>

If I’m not mistaken, there used to be a subcategory of Community named Showcase where projects could be shared - I haven’t been back to the forum for awhile - seems this is gone? Also, projects could be shared on JuliaHu…

---

## [Using trained neural networks inside GPU computations](https://discourse.julialang.org/t/using-trained-neural-networks-inside-gpu-computations/121463)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 4:31pm UTC](https://discourse.julialang.org/t/using-trained-neural-networks-inside-gpu-computations/121463 "2024-10-18T16:31:01Z")

</div>

Hi all, We run simulations which rely on iterative solvers on GPU using tools like ParallelStencil or Chmy. Part of computations involve the evaluation of heavy non-linear functions that can be shortcut by (1) training…

---

## [Unstacking/pivoting Turing results](https://discourse.julialang.org/t/unstacking-pivoting-turing-results/121462)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 4:22pm UTC](https://discourse.julialang.org/t/unstacking-pivoting-turing-results/121462 "2024-10-18T16:22:29Z")

</div>

I am working with inference results from Turing.jl. My data is uneven so I’m modeling it in the “long” format while in the Turing model, but after the inference is done, I’d like to reshape the data into a more structure…

---

## [Best practice for handling "same" types between different packages](https://discourse.julialang.org/t/best-practice-for-handling-same-types-between-different-packages/121451)

<div class="topic-metadata">

**Author:** [@mattsignorelli](https://discourse.julialang.org/u/mattsignorelli)\
**Replies:** 17\
**Last updated:** [October 18, 2024, 2:59pm UTC](https://discourse.julialang.org/t/best-practice-for-handling-same-types-between-different-packages/121451 "2024-10-18T14:59:54Z")

</div>

My organization is writing a small ecosystem of packages for physics simulations. The goal is to make them as modular as possible, of course. One issue we’ve run into is the following: Package A contains some useful stu…

---

## [Unexpected Results for Code Coverage with Julia Tests](https://discourse.julialang.org/t/unexpected-results-for-code-coverage-with-julia-tests/119195)

<div class="topic-metadata">

**Author:** [@janneshb](https://discourse.julialang.org/u/janneshb)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 12:50pm UTC](https://discourse.julialang.org/t/unexpected-results-for-code-coverage-with-julia-tests/119195 "2024-10-18T12:50:23Z")

</div>

Hi, I’ve written a bunch of unit tests for my Julia package that are run by a GitHub action and uploaded to codecov.io. However, lines marked as “uncovered” seem to be wrong at a few spots. Especially, when macros are…

---

## [StackOverflowError in AltroTutorials.jl](https://discourse.julialang.org/t/stackoverflowerror-in-altrotutorials-jl/121448)

<div class="topic-metadata">

**Author:** [@jay\_Gao](https://discourse.julialang.org/u/jay_Gao)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 11:23am UTC](https://discourse.julialang.org/t/stackoverflowerror-in-altrotutorials-jl/121448 "2024-10-18T11:23:43Z")

</div>

When I set up a model, I am getting： StackOverflowError: Stacktrace: \[1\] SizedMatrix{6, 3, Float64, 2, Matrix{Float64}}(a::SparseArrays.SparseMatrixCSC{Float64, Int64}) (repeats 79984 times) @ StaticArrays C:\\Use…

---

## [VSCode Debugger bugs (are these known issues?)](https://discourse.julialang.org/t/vscode-debugger-bugs-are-these-known-issues/119790)

<div class="topic-metadata">

**Author:** [@Arlo](https://discourse.julialang.org/u/Arlo)\
**Replies:** 8\
**Last updated:** [October 18, 2024, 7:54am UTC](https://discourse.julialang.org/t/vscode-debugger-bugs-are-these-known-issues/119790 "2024-10-18T07:54:55Z")

</div>

I’ve been trying out the Julia debugger in VSCode and found a few issues with it. Windows 11, VSCode 1.93.1, julia-vscode v1.123.2 Are these all known issues? If not, where should I report them, the VScode plugin proje…

---

## [How can I implement the TRIAD algorithm in Julia](https://discourse.julialang.org/t/how-can-i-implement-the-triad-algorithm-in-julia/121151)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 32\
**Last updated:** [October 11, 2024, 3:02pm UTC](https://discourse.julialang.org/t/how-can-i-implement-the-triad-algorithm-in-julia/121151 "2024-10-11T15:02:25Z")

</div>

I try to calculate the rotation matrix that needs to applied on one reference frame to match a second reference frame. I have the following code: # test calculation of the orientation using LinearAlgebra, Rotations, Sta…

---

## [Fails to start the version v1.11.0](https://discourse.julialang.org/t/fails-to-start-the-version-v1-11-0/121074)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 1\
**Last updated:** [October 18, 2024, 2:29am UTC](https://discourse.julialang.org/t/fails-to-start-the-version-v1-11-0/121074 "2024-10-18T02:29:03Z")

</div>

I just upgraded to the latest version v1.11.0, and failed to start the Julia.exe. Errors prompt like this: How can I fix this?

---

## [IDE: step-through debugging for macro-generated function?](https://discourse.julialang.org/t/ide-step-through-debugging-for-macro-generated-function/63899)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 0\
**Last updated:** [July 1, 2021, 2:59pm UTC](https://discourse.julialang.org/t/ide-step-through-debugging-for-macro-generated-function/63899 "2021-07-01T14:59:52Z")

</div>

I recently tried using VSCode debugger to “step into” a function from an external package, but VSCode pointed me to a strange code location. Eventually I figured out that the function was not written out, but was generat…

---

## [Unexpected result from setprecision](https://discourse.julialang.org/t/unexpected-result-from-setprecision/89336)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 3\
**Last updated:** [October 18, 2024, 1:55am UTC](https://discourse.julialang.org/t/unexpected-result-from-setprecision/89336 "2024-10-18T01:55:09Z")

</div>

I expected the following to return 512, rather than 256. Could someone please explain why this is happening? julia\> setprecision(512) do thisbig = big"1.0" @show precision(thisbig) end prec…

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

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