# Latest

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

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

**Page:** 153

---

## [How should one make a struct that handles a HTTP.jl server?](https://discourse.julialang.org/t/how-should-one-make-a-struct-that-handles-a-http-jl-server/129799)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 0\
**Last updated:** [June 11, 2025, 10:10am UTC](https://discourse.julialang.org/t/how-should-one-make-a-struct-that-handles-a-http-jl-server/129799 "2025-06-11T10:10:21Z")

</div>

HTTP.server says it can’t be finalizerd. ERROR: objects of type HTTP.Servers.Server{HTTP.Servers.Listener{Nothing, Sockets.TCPServer}} cannot be finalized So if I have a struct like mutable struct M reciverClient::HT…

---

## [KeyError on the first time I import my (in development) package with Revise](https://discourse.julialang.org/t/keyerror-on-the-first-time-i-import-my-in-development-package-with-revise/129797)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [June 11, 2025, 9:16am UTC](https://discourse.julialang.org/t/keyerror-on-the-first-time-i-import-my-in-development-package-with-revise/129797 "2025-06-11T09:16:47Z")

</div>

I am developing a package that uses PythonCall. The first time I import my package I get the error: ERROR: InitError: KeyError: key Base.PkgId(Base.UUID("6099a3de-0909-46bc-b1f4-468b9a2dfc0d"), "PythonCall") not found …

---

## [Solving inference problem in quantum error correction with Turing.jl](https://discourse.julialang.org/t/solving-inference-problem-in-quantum-error-correction-with-turing-jl/129753)

<div class="topic-metadata">

**Author:** [@nzy1997](https://discourse.julialang.org/u/nzy1997)\
**Replies:** 4\
**Last updated:** [June 11, 2025, 8:17am UTC](https://discourse.julialang.org/t/solving-inference-problem-in-quantum-error-correction-with-turing-jl/129753 "2025-06-11T08:17:54Z")

</div>

Hi everyone, I am trying to use Turing.jl to solve an inference problem in quantum error correction. Here is a simple problem. Problem Statement: Consider a parity check bit c \\in \\{0,1\\} computed from four binary var…

---

## [JuMP.shadow\_price conveys a misconception?](https://discourse.julialang.org/t/jump-shadow-price-conveys-a-misconception/127503)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [June 11, 2025, 7:44am UTC](https://discourse.julialang.org/t/jump-shadow-price-conveys-a-misconception/127503 "2025-06-11T07:44:19Z")

</div>

In constraint optimization, the shadow price is the change, per infinitesimal unit of the constraint, in the optimal value of the objective function, obtained by relaxing the constraint. This is the wikipedia definiti…

---

## [Citation for definition of unit testing vs integration testing](https://discourse.julialang.org/t/citation-for-definition-of-unit-testing-vs-integration-testing/129786)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [June 11, 2025, 6:15am UTC](https://discourse.julialang.org/t/citation-for-definition-of-unit-testing-vs-integration-testing/129786 "2025-06-11T06:15:03Z")

</div>

I want to use the term integration testing in a paper I am writing (documenting the math behind a Julia package of mine in detail). I was not trained in CS so I don’t know what the standard reference is. Is there a pape…

---

## [Code fails using BoundaryValueDiffEq Version 5.18.0](https://discourse.julialang.org/t/code-fails-using-boundaryvaluediffeq-version-5-18-0/129793)

<div class="topic-metadata">

**Author:** [@ThermionicsGuy](https://discourse.julialang.org/u/ThermionicsGuy)\
**Replies:** 5\
**Last updated:** [June 11, 2025, 3:45am UTC](https://discourse.julialang.org/t/code-fails-using-boundaryvaluediffeq-version-5-18-0/129793 "2025-06-11T03:45:57Z")

</div>

I had a code working using the MIRK4 boundary value problem solver from SciML. Yesterday I updated BoundaryValueDiffEq to Version 5.18.0 and now the same code errors out. I’m using Julia 1.11.5. Here is a code fragment, …

---

## [Defining \`show\` method for all \`MIME\` types at once threw an error for \`display\`](https://discourse.julialang.org/t/defining-show-method-for-all-mime-types-at-once-threw-an-error-for-display/129790)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 2\
**Last updated:** [June 10, 2025, 9:33pm UTC](https://discourse.julialang.org/t/defining-show-method-for-all-mime-types-at-once-threw-an-error-for-display/129790 "2025-06-10T21:33:44Z")

</div>

MWE (tested on Julia 1.11.5): julia\> struct MyT{T} a::T end julia\> import Base: show julia\> Base.show(io::IO, ::MIME, obj::MyT) = print(io, typeof(obj), "(...)") julia\> MyT(1) Error showing value of…

---

## [Reading model parameters and variables from excel](https://discourse.julialang.org/t/reading-model-parameters-and-variables-from-excel/129767)

<div class="topic-metadata">

**Author:** [@Boris](https://discourse.julialang.org/u/Boris)\
**Replies:** 8\
**Last updated:** [June 10, 2025, 8:53pm UTC](https://discourse.julialang.org/t/reading-model-parameters-and-variables-from-excel/129767 "2025-06-10T20:53:32Z")

</div>

Hello everyone! I have been migrating slowly some part of my work from Matlab to Julia and came across a more specific issue. Over the years I have automated some part of my matlab workflow using excel files for reading…

---

## [Iterable signature, revisited](https://discourse.julialang.org/t/iterable-signature-revisited/129647)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 14\
**Last updated:** [June 10, 2025, 8:48pm UTC](https://discourse.julialang.org/t/iterable-signature-revisited/129647 "2025-06-10T20:48:11Z")

</div>

There have been a few threads over the years about how to declare a function argument as “iterable” somehow, for example in Iterable type signature? . For me (at least in my latest situation) the important part isn’t th…

---

## [Mac M2 Ultra brought to its knees](https://discourse.julialang.org/t/mac-m2-ultra-brought-to-its-knees/129747)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 18\
**Last updated:** [June 10, 2025, 3:36am UTC](https://discourse.julialang.org/t/mac-m2-ultra-brought-to-its-knees/129747 "2025-06-10T03:36:26Z")

</div>

This is the platform. I run a simulation which solves repeatedly a sparse system of complex linear equations. It can do ~60k system per frequency in around 4-5 seconds. If I start julia on two of these simultaneously,…

---

## [InexactError when saving compressed CSV file (but not if I save it uncompressed)](https://discourse.julialang.org/t/inexacterror-when-saving-compressed-csv-file-but-not-if-i-save-it-uncompressed/129784)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [June 10, 2025, 3:08pm UTC](https://discourse.julialang.org/t/inexacterror-when-saving-compressed-csv-file-but-not-if-i-save-it-uncompressed/129784 "2025-06-10T15:08:58Z")

</div>

x is a 15M x 243 DataFrame: julia\> x 14259735×243 DataFrame Row │ C R Y pr\_m1\_yl4 pr\_m2\_yl4 pr\_m3\_yl4 pr\_m4\_yl4 p ⋯ │ Int64 Int64 Int64 Float64 Float64 Float64 Float64 F…

---

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

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 11\
**Last updated:** [June 10, 2025, 12:59pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2025-05/129584 "2025-06-10T12:59:37Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what a clique of us found interesting this month, with contributions from the community. For …

---

## [Understanding Tullio performances](https://discourse.julialang.org/t/understanding-tullio-performances/129760)

<div class="topic-metadata">

**Author:** [@mcp](https://discourse.julialang.org/u/mcp)\
**Replies:** 12\
**Last updated:** [June 10, 2025, 12:25pm UTC](https://discourse.julialang.org/t/understanding-tullio-performances/129760 "2025-06-10T12:25:57Z")

</div>

Hi everyone! I’m new to Julia and I’m trying to translate a JAX code in Julia using Tullio macro that makes the code simple and clean. However, I’m not able to get the same performances even with simple functions. Here…

---

## [TuringGLM.jl and offsets / exposure](https://discourse.julialang.org/t/turingglm-jl-and-offsets-exposure/129772)

<div class="topic-metadata">

**Author:** [@DrEntropy](https://discourse.julialang.org/u/DrEntropy)\
**Replies:** 1\
**Last updated:** [June 10, 2025, 8:31am UTC](https://discourse.julialang.org/t/turingglm-jl-and-offsets-exposure/129772 "2025-06-10T08:31:38Z")

</div>

The roaches example, Poisson Regression · TuringGLM.jl ignores the exposure. In BRMS this is done using a formula term like this " … + offset(log(exposure))\` . GLM.jl handles this with an extra argument to the call.…

---

## [GPU/CPU Agnostic FFT code](https://discourse.julialang.org/t/gpu-cpu-agnostic-fft-code/126283)

<div class="topic-metadata">

**Author:** [@bpsomu](https://discourse.julialang.org/u/bpsomu)\
**Replies:** 7\
**Last updated:** [June 10, 2025, 10:21am UTC](https://discourse.julialang.org/t/gpu-cpu-agnostic-fft-code/126283 "2025-06-10T10:21:49Z")

</div>

I am looking to port my Professor’s 15 year old C++ code to Julia in a GPU/CPU Agnostic way maybe by using AcceleratedKernels.jl. The C++ code uses FFTW library, I know CUDA has CUDAFFTs but I don’t know if AcceleratedKe…

---

## [Type stability of \`Lux.batched\_jacobian\`](https://discourse.julialang.org/t/type-stability-of-lux-batched-jacobian/128526)

<div class="topic-metadata">

**Author:** [@NoFishLikeIan](https://discourse.julialang.org/u/NoFishLikeIan)\
**Replies:** 5\
**Last updated:** [June 10, 2025, 8:56am UTC](https://discourse.julialang.org/t/type-stability-of-lux-batched-jacobian/128526 "2025-06-10T08:56:01Z")

</div>

How can I make the call to Lux.batched\_jacobian of a StatefulLuxLayer type stable? I am using Lux v1.12.4. Consider this MWE: using Lux using Random; rng = Xoshiro(42) input, output = 6, 2 model = Chain(Dense(input =\> …

---

## [Ahead of Time Compilation in 1.11](https://discourse.julialang.org/t/ahead-of-time-compilation-in-1-11/115423)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 7\
**Last updated:** [June 10, 2025, 7:30am UTC](https://discourse.julialang.org/t/ahead-of-time-compilation-in-1-11/115423 "2025-06-10T07:30:01Z")

</div>

how to use julia Ahead of Time Compilation in 1.11 version? I have a series of long compiling functions (minimum 15 minut each up to 54 - Enzyme related kernels) would love to save the compiled version locally and then j…

---

## [Feedback on an "Intro to Julia" guide for a university course](https://discourse.julialang.org/t/feedback-on-an-intro-to-julia-guide-for-a-university-course/129573)

<div class="topic-metadata">

**Author:** [@DanielSussman](https://discourse.julialang.org/u/DanielSussman)\
**Replies:** 33\
**Last updated:** [June 9, 2025, 10:26pm UTC](https://discourse.julialang.org/t/feedback-on-an-intro-to-julia-guide-for-a-university-course/129573 "2025-06-09T22:26:10Z")

</div>

Hi all, I’m getting ready to teach a new course in the fall – a 400-level computational physics class – and I’m on the verge of making the (exciting? daunting? rash?) decision to use Julia as the primary language for it…

---

## [NonlinearSolve with in-place mutation of intermediate variables](https://discourse.julialang.org/t/nonlinearsolve-with-in-place-mutation-of-intermediate-variables/129771)

<div class="topic-metadata">

**Author:** [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 9:21pm UTC](https://discourse.julialang.org/t/nonlinearsolve-with-in-place-mutation-of-intermediate-variables/129771 "2025-06-09T21:21:31Z")

</div>

I’m working on an economic model involving a dynamic programming problem. Solving this problem involves mutating several large’ish (e.g., 100 x 3 x 15 x 200) arrays at each iteration. To make the code efficient, I se…

---

## [Gurobi Error 10030: No compatible runtime available for version 12.0.2](https://discourse.julialang.org/t/gurobi-error-10030-no-compatible-runtime-available-for-version-12-0-2/129763)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [June 9, 2025, 8:09pm UTC](https://discourse.julialang.org/t/gurobi-error-10030-no-compatible-runtime-available-for-version-12-0-2/129763 "2025-06-09T20:09:59Z")

</div>

:1st\_place\_medal: i All, Getting this error please help us out. This is for Julia 1.6 \`\`\`Status C:\\Users\\manojkumar.ram\\.julia\\environments\\v1.10\\Project.toml \[a93c6f00\] DataFrames v1.7.0 \[2e9cd046\] Gurobi v1.7.4 \[4…

---

## [TerminateSteadyState callback on DiscreteProblem?](https://discourse.julialang.org/t/terminatesteadystate-callback-on-discreteproblem/129670)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 5\
**Last updated:** [June 9, 2025, 2:27pm UTC](https://discourse.julialang.org/t/terminatesteadystate-callback-on-discreteproblem/129670 "2025-06-09T14:27:20Z")

</div>

Hi all, I’d like to use TerminateSteadyState from DiffEqCallbacks.jl on a DiscreteProblem, but the default test function is based on derivatives (which my model doesn’t have). I see that one can define their own test fu…

---

## [Julia for HEP now available via CVMFS](https://discourse.julialang.org/t/julia-for-hep-now-available-via-cvmfs/129737)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 5\
**Last updated:** [June 9, 2025, 11:48am UTC](https://discourse.julialang.org/t/julia-for-hep-now-available-via-cvmfs/129737 "2025-06-09T11:48:56Z")

</div>

I’m happy to announce that we now have a HEP (particle physics) Julia distribution available via CVMFS (thanks for all the friendly help here!). Two container images registry.cern.ch/juliahep/juliahep-core:latest: A …

---

## [How to rectify a \`v::Vector{Float64}\` so that \`sum(v) == 0\`?](https://discourse.julialang.org/t/how-to-rectify-a-v-vector-float64-so-that-sum-v-0/129633)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 14\
**Last updated:** [June 9, 2025, 11:40am UTC](https://discourse.julialang.org/t/how-to-rectify-a-v-vector-float64-so-that-sum-v-0/129633 "2025-06-09T11:40:07Z")

</div>

I have a vector v::Vector{Float64} which satisfies isapprox(sum(v), 0; atol = 1e-12). Now I want to rectify the v somehow so that sum(v) == 0 becomes true. Is there a nice method? The following is an example where my …

---

## [Examples of tools that embed Julia in the wild?](https://discourse.julialang.org/t/examples-of-tools-that-embed-julia-in-the-wild/129720)

<div class="topic-metadata">

**Author:** [@MDSW](https://discourse.julialang.org/u/MDSW)\
**Replies:** 0\
**Last updated:** [June 7, 2025, 2:44am UTC](https://discourse.julialang.org/t/examples-of-tools-that-embed-julia-in-the-wild/129720 "2025-06-07T02:44:27Z")

</div>

Are there any public examples of apps or tools that use the embedding API? I’m interested in how these have been packaged for deployment, especially the inclusion of the Julia runtime libraries, cross-platform delivery, …

---

## [PackageCompiler app using a lot of RAM](https://discourse.julialang.org/t/packagecompiler-app-using-a-lot-of-ram/129599)

<div class="topic-metadata">

**Author:** [@victor\_vhrn](https://discourse.julialang.org/u/victor_vhrn)\
**Replies:** 3\
**Last updated:** [June 7, 2025, 7:48pm UTC](https://discourse.julialang.org/t/packagecompiler-app-using-a-lot-of-ram/129599 "2025-06-07T19:48:55Z")

</div>

I created an App via PackageCompiler.jl, but running the app is using way more memory than what is used with the code running in the REPL. I removed all using statements from my code and only import what’s necessary. Add…

---

## [Approaches to sentinel values in immutables](https://discourse.julialang.org/t/approaches-to-sentinel-values-in-immutables/129675)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 71\
**Last updated:** [June 9, 2025, 9:25am UTC](https://discourse.julialang.org/t/approaches-to-sentinel-values-in-immutables/129675 "2025-06-09T09:25:06Z")

</div>

What are some approaches to define sentinel values in immutables without introducing type instabilities? Am asking for DynamicExpressions.jl to try to reduce allocations in the branch allowing n-degree nodes. Some conte…

---

## [Issue with Atom Selection mddf calculation (ComplexMixtures.jl from python)](https://discourse.julialang.org/t/issue-with-atom-selection-mddf-calculation-complexmixtures-jl-from-python/129604)

<div class="topic-metadata">

**Author:** [@SnehaSahuvs4](https://discourse.julialang.org/u/SnehaSahuvs4)\
**Replies:** 10\
**Last updated:** [June 9, 2025, 9:43am UTC](https://discourse.julialang.org/t/issue-with-atom-selection-mddf-calculation-complexmixtures-jl-from-python/129604 "2025-06-09T09:43:55Z")

</div>

Hi @lmiq I’m encountering an issue when calculating the center of mass using cm.select(). Specifically, it seems that the selection is not correctly including all the specified residues. For example, whether I use: pr…

---

## [DenseAxisArray in JuMP](https://discourse.julialang.org/t/denseaxisarray-in-jump/129258)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [June 3, 2025, 8:35am UTC](https://discourse.julialang.org/t/denseaxisarray-in-jump/129258 "2025-06-03T08:35:46Z")

</div>

I wonder why is the y below so complicated, unlike x. julia\> using JuMP julia\> model = Model(); julia\> @variable(model, x\[1:3\]); x 3-element Vector{VariableRef}: x\[1\] x\[2\] x\[3\] julia\> R = 1:3 1:3 julia\> @variable…

---

## [Documenting nested functions](https://discourse.julialang.org/t/documenting-nested-functions/129708)

<div class="topic-metadata">

**Author:** [@maxwell3025](https://discourse.julialang.org/u/maxwell3025)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 6:15am UTC](https://discourse.julialang.org/t/documenting-nested-functions/129708 "2025-06-09T06:15:53Z")

</div>

I’m currently working on a project and I came across an issue with using nested functions. In particular, I have a nested function that I want to document, and I am getting a warning about “replacing docs”. This seems …

---

## [Symbolics & MTK Pipeline - Lagrangians](https://discourse.julialang.org/t/symbolics-mtk-pipeline-lagrangians/129730)

<div class="topic-metadata">

**Author:** [@Gray\_GALLANT](https://discourse.julialang.org/u/Gray_GALLANT)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 4:04am UTC](https://discourse.julialang.org/t/symbolics-mtk-pipeline-lagrangians/129730 "2025-06-09T04:04:46Z")

</div>

Hello, I am trying to use Symbolics.jl with ModelingToolkit. I’m confused on how to properly use the two packages together to define a Lagrangian that can be integrated in MTK. I suspect that my approach (broadly) is in…

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

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