# Latest

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

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

**Page:** 53

---

## [Why does RefValue has allocation?](https://discourse.julialang.org/t/why-does-refvalue-has-allocation/135720)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [February 20, 2026, 8:57am UTC](https://discourse.julialang.org/t/why-does-refvalue-has-allocation/135720 "2026-02-20T08:57:44Z")

</div>

How to explain that only by adding one line r\[\] I had one more allocation? I don’t understand. You can neglect the packages, just focus on the function \_grbval and grbval, and r. Thanks. import JuMP, Gurobi \_grbval(o, …

---

## [Automatic Differentiation of the flow of an ode : DifferentiationInterface, SciMLSensitivity](https://discourse.julialang.org/t/automatic-differentiation-of-the-flow-of-an-ode-differentiationinterface-scimlsensitivity/135730)

<div class="topic-metadata">

**Author:** [@joseph-gergaud](https://discourse.julialang.org/u/joseph-gergaud)\
**Replies:** 1\
**Last updated:** [February 20, 2026, 6:23am UTC](https://discourse.julialang.org/t/automatic-differentiation-of-the-flow-of-an-ode-differentiationinterface-scimlsensitivity/135730 "2026-02-20T06:23:04Z")

</div>

When I use the backend Zygote for the automatic differentiation with DifferentiationInterface for the flow of an ordinary differentiation equation, I have an error : Here is the code : using Pkg Pkg.activate(".") #Pkg.…

---

## [Turing constrain on observations of deterministic function](https://discourse.julialang.org/t/turing-constrain-on-observations-of-deterministic-function/135718)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 3\
**Last updated:** [February 20, 2026, 4:00am UTC](https://discourse.julialang.org/t/turing-constrain-on-observations-of-deterministic-function/135718 "2026-02-20T04:00:05Z")

</div>

I have the following model function f(x) x^2 end @model function simplemodel() x ~ Normal(5, 1) y := f(x) return y end sample(simplemodel(), NUTS(), 50) |\> histogram As can be seen it involves the de…

---

## [Combining reshape and view sometimes allocates](https://discourse.julialang.org/t/combining-reshape-and-view-sometimes-allocates/135725)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 2\
**Last updated:** [February 20, 2026, 2:31am UTC](https://discourse.julialang.org/t/combining-reshape-and-view-sometimes-allocates/135725 "2026-02-20T02:31:05Z")

</div>

I have some complicated code that uses a combination of reshape() and view(), and in my complicated code both reshape() and view() allocates. Trying to reduce my code to an MRE, I came up with this: function profile\_all…

---

## [Test package with dev-ed dependency](https://discourse.julialang.org/t/test-package-with-dev-ed-dependency/135740)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [February 20, 2026, 12:54am UTC](https://discourse.julialang.org/t/test-package-with-dev-ed-dependency/135740 "2026-02-20T00:54:50Z")

</div>

Package P depends on package D. I want to run the test suite of package P with a specific version of package D in the manifest. To be specific, I have D dev-ed, I want the dev-ed variant to be loaded for the test suite. …

---

## [How to create a differential model at run time?](https://discourse.julialang.org/t/how-to-create-a-differential-model-at-run-time/135704)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 6\
**Last updated:** [February 20, 2026, 12:50am UTC](https://discourse.julialang.org/t/how-to-create-a-differential-model-at-run-time/135704 "2026-02-20T00:50:48Z")

</div>

I want to create a differential algebraic model by reading information from a file, thus I can only construct the model at run time. But I don’t know how to do this because the example models from documentation of Differ…

---

## [Jupyter Notebooks in VSCode](https://discourse.julialang.org/t/jupyter-notebooks-in-vscode/135743)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [February 20, 2026, 12:42am UTC](https://discourse.julialang.org/t/jupyter-notebooks-in-vscode/135743 "2026-02-20T00:42:34Z")

</div>

Is anyone else having latex rendering issues in VSCode? Does the following markdown cell render properly for you? ### This is another markdown cell with Latex This equation defines eigenvalues and eigenvectors: $Mx = …

---

## [Get varRefs of whole container](https://discourse.julialang.org/t/get-varrefs-of-whole-container/135726)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 4\
**Last updated:** [February 19, 2026, 7:44pm UTC](https://discourse.julialang.org/t/get-varrefs-of-whole-container/135726 "2026-02-19T19:44:16Z")

</div>

Is there a way to get the variable refs of the whole container? julia\> @variable(model, u\[1:2\]) 2-element Vector{VariableRef}: u\[1\] u\[2\] julia\> variable\_by\_name(model, "u\[2\]") u\[2\] How do I get all u as Vector{Varia…

---

## [\[Ann\] MakiePatterns: augments Makie.Pattern](https://discourse.julialang.org/t/ann-makiepatterns-augments-makie-pattern/135738)

<div class="topic-metadata">

**Author:** [@technocrat](https://discourse.julialang.org/u/technocrat)\
**Replies:** 0\
**Last updated:** [February 19, 2026, 7:31pm UTC](https://discourse.julialang.org/t/ann-makiepatterns-augments-makie-pattern/135738 "2026-02-19T19:31:05Z")

</div>

---

## [\[ANN\] FlexUnits.jl 0.4 Mixed-Unit Linear Algebra Support](https://discourse.julialang.org/t/ann-flexunits-jl-0-4-mixed-unit-linear-algebra-support/135649)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 1\
**Last updated:** [February 19, 2026, 2:54pm UTC](https://discourse.julialang.org/t/ann-flexunits-jl-0-4-mixed-unit-linear-algebra-support/135649 "2026-02-19T14:54:22Z")

</div>

FlexUnits.jl While the previous FlexUnits.jl focused on performance increases for static inference to match the performance of Unitful.jl, this release focuses on mixed-unit linear algebra, something that Unitful a…

---

## [Benchmarking and Pkg.test()](https://discourse.julialang.org/t/benchmarking-and-pkg-test/27719)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 5\
**Last updated:** [February 19, 2026, 2:18pm UTC](https://discourse.julialang.org/t/benchmarking-and-pkg-test/27719 "2026-02-19T14:18:28Z")

</div>

This post is an offspring of the following discussion, where I reported inconsistencies in the benchmarked performances of Base.sum between machines. To summarize the issue (which is illustrated a bit more clearly bel…

---

## [Why do the density plots with Unitful display units on the "wrong" axis?](https://discourse.julialang.org/t/why-do-the-density-plots-with-unitful-display-units-on-the-wrong-axis/135727)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 0\
**Last updated:** [February 19, 2026, 1:38pm UTC](https://discourse.julialang.org/t/why-do-the-density-plots-with-unitful-display-units-on-the-wrong-axis/135727 "2026-02-19T13:38:56Z")

</div>

Hi all! I noticed that, when plotting the probability distribution of some data with Plots.jl with density(x), the axis representing the “underlying” data, is on the x axis: using Plots using StatsPlots x = \[1,1,1,2,2\] …

---

## [Documented \`const\` fields of a \`mutable struct\` does not show up in documentation](https://discourse.julialang.org/t/documented-const-fields-of-a-mutable-struct-does-not-show-up-in-documentation/135723)

<div class="topic-metadata">

**Author:** [@pmc4](https://discourse.julialang.org/u/pmc4)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 12:19pm UTC](https://discourse.julialang.org/t/documented-const-fields-of-a-mutable-struct-does-not-show-up-in-documentation/135723 "2026-02-19T12:19:38Z")

</div>

Hello, everyone. While I was adding some docstrings to a mutable struct, I’ve realized that when the field is set as constant, the documentation doesn’t work. Take, for example, the following mutable struct: "Some rando…

---

## [STL Meshing in Julia](https://discourse.julialang.org/t/stl-meshing-in-julia/58580)

<div class="topic-metadata">

**Author:** [@graham](https://discourse.julialang.org/u/graham)\
**Replies:** 9\
**Last updated:** [February 19, 2026, 12:00pm UTC](https://discourse.julialang.org/t/stl-meshing-in-julia/58580 "2026-02-19T12:00:43Z")

</div>

Hi all, As the first step in implementing an mass-spring-damper simulator in Julia, I’m trying to generate a volume mesh from .STL file type. Hoping to achieve this using TetGen. However, I’m not sure how to process th…

---

## [Quarto, Pluto.jl, TypstJlyfish.jl, BonitoBook.jl, Weave.jl?](https://discourse.julialang.org/t/quarto-pluto-jl-typstjlyfish-jl-bonitobook-jl-weave-jl/135716)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 8\
**Last updated:** [February 19, 2026, 12:30am UTC](https://discourse.julialang.org/t/quarto-pluto-jl-typstjlyfish-jl-bonitobook-jl-weave-jl/135716 "2026-02-19T00:30:39Z")

</div>

I want to make a document integrating math, code, and prose, interpolating code results into math. I’ve heard of Quarto, Pluto.jl, TypstJlyfish.jl, BonitoBook.jl, Weave.jl. Can anyone comment on choosing between them? A…

---

## [Creating looping matrixes (Torus-like) with type inheritance](https://discourse.julialang.org/t/creating-looping-matrixes-torus-like-with-type-inheritance/135475)

<div class="topic-metadata">

**Author:** [@Daeltam](https://discourse.julialang.org/u/Daeltam)\
**Replies:** 7\
**Last updated:** [February 18, 2026, 11:36pm UTC](https://discourse.julialang.org/t/creating-looping-matrixes-torus-like-with-type-inheritance/135475 "2026-02-18T23:36:13Z")

</div>

Context : I am trying to create a cellular automata and want its behaviour on edges to be looping (ex : neighbour of the cell at \[0,0\] are the cells at \[0,end\] and \[end, 0\] (as well as \[0,1\] and \[1,0\] ) Some kind of tor…

---

## [Unsupported constraint only in infeasibility analysis](https://discourse.julialang.org/t/unsupported-constraint-only-in-infeasibility-analysis/135721)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 5\
**Last updated:** [February 18, 2026, 7:39pm UTC](https://discourse.julialang.org/t/unsupported-constraint-only-in-infeasibility-analysis/135721 "2026-02-18T19:39:32Z")

</div>

I have a JuMP.jl model that I solve using Gurobi. For some cases (data) it is infeasible. I am using MathOptAnalyzer.jl to generate an infeasibility report: MathOptAnalyzer.analyze(MathOptAnalyzer.Infeasibility.Analyze…

---

## [Help with IR Manipulation](https://discourse.julialang.org/t/help-with-ir-manipulation/135724)

<div class="topic-metadata">

**Author:** [@charlesknipp](https://discourse.julialang.org/u/charlesknipp)\
**Replies:** 0\
**Last updated:** [February 18, 2026, 4:31pm UTC](https://discourse.julialang.org/t/help-with-ir-manipulation/135724 "2026-02-18T16:31:55Z")

</div>

Since this is a relatively complex stack, I will begin with an overarching explanation of my problem, then contextualize it further. Keeping it Vague Suppose I have a misty closure (MistyClosures.jl), where I want to sp…

---

## [VSCode and LangServer don't recognize local package](https://discourse.julialang.org/t/vscode-and-langserver-dont-recognize-local-package/113709)

<div class="topic-metadata">

**Author:** [@feribg](https://discourse.julialang.org/u/feribg)\
**Replies:** 10\
**Last updated:** [February 18, 2026, 2:50pm UTC](https://discourse.julialang.org/t/vscode-and-langserver-dont-recognize-local-package/113709 "2026-02-18T14:50:30Z")

</div>

I am working on a package locally and it seems like VSCode + LangServer don’t recognize the references to the package and it’s exported methods. For example: using TestPackage using CSV using DataFrames using Benchmark…

---

## [Why does \`JuMP.set\_objective\_coefficient(m, x, c::Float64)\` have allocations?](https://discourse.julialang.org/t/why-does-jump-set-objective-coefficient-m-x-c-float64-have-allocations/135717)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [February 18, 2026, 1:31pm UTC](https://discourse.julialang.org/t/why-does-jump-set-objective-coefficient-m-x-c-float64-have-allocations/135717 "2026-02-18T13:31:43Z")

</div>

I’m very curious here. Where can this API lead to allocations so that it has even more allocations that @objective (in number of allocations, though not in total memory size) when I want to reset the objective function? …

---

## [\[ANN\] SymBasis.jl: Symmetry-conserving bases for Julia](https://discourse.julialang.org/t/ann-symbasis-jl-symmetry-conserving-bases-for-julia/135653)

<div class="topic-metadata">

**Author:** [@cevenkadir](https://discourse.julialang.org/u/cevenkadir)\
**Replies:** 3\
**Last updated:** [February 18, 2026, 12:11pm UTC](https://discourse.julialang.org/t/ann-symbasis-jl-symmetry-conserving-bases-for-julia/135653 "2026-02-18T12:11:15Z")

</div>

SymBasis.jl is a Julia package for generating bases that conserve symmetries in systems with a discrete number of degrees of freedom, with a focus on quantum many-body applications. Key features Simple API to generate…

---

## [Splitting qml file into several files](https://discourse.julialang.org/t/splitting-qml-file-into-several-files/135553)

<div class="topic-metadata">

**Author:** [@HVinther](https://discourse.julialang.org/u/HVinther)\
**Replies:** 8\
**Last updated:** [February 18, 2026, 10:17am UTC](https://discourse.julialang.org/t/splitting-qml-file-into-several-files/135553 "2026-02-18T10:17:57Z")

</div>

Following https://stackoverflow.com/questions/45652525/qml-filling-menu-with-model-items I made a menu that behaves similarly to standard Makie menu. To make my project more manageable I am trying to split my files into …

---

## [How to install Pytorch with cuda support through CondaPkg](https://discourse.julialang.org/t/how-to-install-pytorch-with-cuda-support-through-condapkg/135690)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 4\
**Last updated:** [February 18, 2026, 5:25am UTC](https://discourse.julialang.org/t/how-to-install-pytorch-with-cuda-support-through-condapkg/135690 "2026-02-18T05:25:12Z")

</div>

Hi All, I would like to ask, if anyone knows how to install pytorch with cuda support through CondaPkg. It has to happen that I need to call some language models and I have opted to use transformers from HuggingFace, as…

---

## [DAE‑safe bounding for CoolProp property calls in Julia](https://discourse.julialang.org/t/dae-safe-bounding-for-coolprop-property-calls-in-julia/135416)

<div class="topic-metadata">

**Author:** [@TimGyx](https://discourse.julialang.org/u/TimGyx)\
**Replies:** 7\
**Last updated:** [February 18, 2026, 3:38am UTC](https://discourse.julialang.org/t/dae-safe-bounding-for-coolprop-property-calls-in-julia/135416 "2026-02-18T03:38:45Z")

</div>

I am building a large DAE-based vapor‑compression refrigeration loop in Julia using DifferentialEquations.jl and CoolProp for thermodynamic properties, and I am running into repeated CoolProp crashes during DAE initializ…

---

## [Equivalent of PreallocationTools.jl for functions](https://discourse.julialang.org/t/equivalent-of-preallocationtools-jl-for-functions/135707)

<div class="topic-metadata">

**Author:** [@densmojd](https://discourse.julialang.org/u/densmojd)\
**Replies:** 4\
**Last updated:** [February 18, 2026, 1:35am UTC](https://discourse.julialang.org/t/equivalent-of-preallocationtools-jl-for-functions/135707 "2026-02-18T01:35:09Z")

</div>

A Julia design paradigm I often see to avoid allocating temporary arrays in repeated calculations is to use a struct that contains the temporary array and a “functor” for performing the calculation: struct MyStruct …

---

## [How do I print hello world in Julia?](https://discourse.julialang.org/t/how-do-i-print-hello-world-in-julia/54691)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 3\
**Last updated:** [February 18, 2026, 1:01am UTC](https://discourse.julialang.org/t/how-do-i-print-hello-world-in-julia/54691 "2026-02-18T01:01:02Z")

</div>

How do I print hello world in Julia? I tried doing: julia&gt; hello world ERROR: syntax: extra token "world" after end of expression Stacktrace: \[1\] top-level scope at none:1 \[This is a test\] Note that the original …

---

## [New package: Collects.jl - meant to improve upon and generalize the interface of collect](https://discourse.julialang.org/t/new-package-collects-jl-meant-to-improve-upon-and-generalize-the-interface-of-collect/129468)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 9\
**Last updated:** [February 17, 2026, 11:36pm UTC](https://discourse.julialang.org/t/new-package-collects-jl-meant-to-improve-upon-and-generalize-the-interface-of-collect/129468 "2026-02-17T23:36:31Z")

</div>

Just requested the registration of the new package, Collects.jl, meaning it should be registered after three days pass. Basically it’s meant to replace collect, especially when the desired output container type is not A…

---

## [The mathematical mystery inside the legendary ’90s shooter Quake 3](https://discourse.julialang.org/t/the-mathematical-mystery-inside-the-legendary-90s-shooter-quake-3/135713)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 5\
**Last updated:** [February 17, 2026, 10:56pm UTC](https://discourse.julialang.org/t/the-mathematical-mystery-inside-the-legendary-90s-shooter-quake-3/135713 "2026-02-17T22:56:54Z")

</div>

I enjoyed this and I think some folks around here will too: I used Gemini to throw together some Julia code so I could see it in action: function fast\_inv\_sqrt(x::Float32) x2 = x \* 0.5f0 y = x …

---

## [Double sum over two identical variables](https://discourse.julialang.org/t/double-sum-over-two-identical-variables/135703)

<div class="topic-metadata">

**Author:** [@Saki](https://discourse.julialang.org/u/Saki)\
**Replies:** 3\
**Last updated:** [February 17, 2026, 10:39pm UTC](https://discourse.julialang.org/t/double-sum-over-two-identical-variables/135703 "2026-02-17T22:39:06Z")

</div>

I am trying to implement a mathematical model in JuMP but cant seem to figure out how i should write this constraint because i needs to be in both A and P @constraint(m, \[(i,j) in data.A, i in data.P\], sum(xs\[(i, j), …

---

## [Is there an interactive CLI tool to learn Julia like rustlings for Rust?](https://discourse.julialang.org/t/is-there-an-interactive-cli-tool-to-learn-julia-like-rustlings-for-rust/135715)

<div class="topic-metadata">

**Author:** [@mpampuch](https://discourse.julialang.org/u/mpampuch)\
**Replies:** 1\
**Last updated:** [February 17, 2026, 9:25pm UTC](https://discourse.julialang.org/t/is-there-an-interactive-cli-tool-to-learn-julia-like-rustlings-for-rust/135715 "2026-02-17T21:25:47Z")

</div>

I’m just wondering more out of curiosity than for necessity because I’ve been learning Julia through MIT’s computational thinking course and it’s been a great way to learn, but it’s very lecture heavy and time consuming.…

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

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