# Latest

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

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

**Page:** 126

---

## [Trinary/Ternary Variables](https://discourse.julialang.org/t/trinary-ternary-variables/87679)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 4\
**Last updated:** [August 6, 2025, 11:43pm UTC](https://discourse.julialang.org/t/trinary-ternary-variables/87679 "2025-08-06T23:43:56Z")

</div>

I am looking to efficiently implement trinary/ternary variables in a JuMP model. I am considering the following options: An integer variable with lb=-1, ub=1 (set of values {-1,0,1}) A semi-integer variable…(can take 0…

---

## [Pure-Julia Sparse Cholesky](https://discourse.julialang.org/t/pure-julia-sparse-cholesky/131293)

<div class="topic-metadata">

**Author:** [@samuelsonric](https://discourse.julialang.org/u/samuelsonric)\
**Replies:** 31\
**Last updated:** [August 6, 2025, 10:01pm UTC](https://discourse.julialang.org/t/pure-julia-sparse-cholesky/131293 "2025-08-06T22:01:33Z")

</div>

I implemented the Cholesky decomposition of sparse positive-definite matrices in CliqueTrees.jl. The implementation is pure-Julia, except for some calls to BLAS and LAPACK kernels. Even the column-ordering algorithm is w…

---

## [Are non-scoping \`begin ... end\` blocks useful?](https://discourse.julialang.org/t/are-non-scoping-begin-end-blocks-useful/131338)

<div class="topic-metadata">

**Author:** [@Vasily\_Pisarev](https://discourse.julialang.org/u/Vasily_Pisarev)\
**Replies:** 13\
**Last updated:** [August 6, 2025, 9:05pm UTC](https://discourse.julialang.org/t/are-non-scoping-begin-end-blocks-useful/131338 "2025-08-06T21:05:04Z")

</div>

I’ve started writing a Julia tutorial for my colleagues and have come to an unexpected realization that I can’t construct a justified example when a non-scoping begin ... end block would be really useful. Am I missing so…

---

## [New package: SimplexTableaux](https://discourse.julialang.org/t/new-package-simplextableaux/131422)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 0\
**Last updated:** [August 6, 2025, 7:49pm UTC](https://discourse.julialang.org/t/new-package-simplextableaux/131422 "2025-08-06T19:49:53Z")

</div>

Primarily for educational purposes, announcing SimplexTableaux: a package for creating and working with linear programming tableaux. Users can create a tableau for a linear program, specify a basis (or have the computer …

---

## [Advice on library to solve generalized eigenvalue problem of very large, sparse, hermitian matrices](https://discourse.julialang.org/t/advice-on-library-to-solve-generalized-eigenvalue-problem-of-very-large-sparse-hermitian-matrices/131294)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 8:12pm UTC](https://discourse.julialang.org/t/advice-on-library-to-solve-generalized-eigenvalue-problem-of-very-large-sparse-hermitian-matrices/131294 "2025-08-06T20:12:32Z")

</div>

I would like to ask for advice for people with experience in computing very large eigenvalue problems on sparse, hermitian matrices. Basically, I would like to compute the smallest eigenvalues using routines that can ha…

---

## [Type-Stable Function to Return Plots.Plot](https://discourse.julialang.org/t/type-stable-function-to-return-plots-plot/131359)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 9\
**Last updated:** [August 6, 2025, 6:11pm UTC](https://discourse.julialang.org/t/type-stable-function-to-return-plots-plot/131359 "2025-08-06T18:11:25Z")

</div>

The question below was already raised at This post. This code using Plots function foo() #..Initialize the plot.. p = plot() return p end function gnu() #..Initialize the plot.. p = …

---

## [How to handle missing values in Turing.jl](https://discourse.julialang.org/t/how-to-handle-missing-values-in-turing-jl/131395)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [August 6, 2025, 6:01pm UTC](https://discourse.julialang.org/t/how-to-handle-missing-values-in-turing-jl/131395 "2025-08-06T18:01:33Z")

</div>

I am attempting a problem where my observed variable (tested\_positive) has missing values. I am wondering how to attempt such a problem using Turing.jl. In my cases I have popn covariates which have no missing values, t…

---

## [Plot Shape by Value](https://discourse.julialang.org/t/plot-shape-by-value/131183)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 17\
**Last updated:** [August 6, 2025, 6:02pm UTC](https://discourse.julialang.org/t/plot-shape-by-value/131183 "2025-08-06T18:02:08Z")

</div>

Greetings. I am seeking to extend using Plots p1 = \[(0., 0.), (1., 0.), (2., 0.)\]; p2 = \[(1., 0.), (2., 0.), (3., 0.)\]; p3 = \[(1., 1.), (2., 1.), (3., 1.)\]; p = Plots.plot(xlabel = "x", ylabel = "y",legend = false,a…

---

## [This month in Julia world - 2025-06&07](https://discourse.julialang.org/t/this-month-in-julia-world-2025-06-07/131412)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 5\
**Last updated:** [August 6, 2025, 5:54pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2025-06-07/131412 "2025-08-06T17:54:02Z")

</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 …

---

## [JuliaCon Global 2025 Main Program has Begun!](https://discourse.julialang.org/t/juliacon-global-2025-main-program-has-begun/130973)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 4\
**Last updated:** [August 1, 2025, 4:16pm UTC](https://discourse.julialang.org/t/juliacon-global-2025-main-program-has-begun/130973 "2025-08-01T16:16:47Z")

</div>

Check out the main stage for Day 1 here: https://www.youtube.com/watch?v=3o0lAXCa9Wg As always the rest of our tracks can be found on our YouTube channel: https://www.youtube.com/@TheJuliaLanguage The schedule can be f…

---

## [Graphics Learning in Julia](https://discourse.julialang.org/t/graphics-learning-in-julia/131407)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 4:04pm UTC](https://discourse.julialang.org/t/graphics-learning-in-julia/131407 "2025-08-06T16:04:40Z")

</div>

I saw this course of Ray Tracing. I thing it would be good to have such courses in Julia. Do we have such other graphics learning resources in Julia? Please tell resources/books that you think would be good for learning …

---

## [Problems with Intel oneMKL](https://discourse.julialang.org/t/problems-with-intel-onemkl/131410)

<div class="topic-metadata">

**Author:** [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Replies:** 0\
**Last updated:** [August 6, 2025, 2:50pm UTC](https://discourse.julialang.org/t/problems-with-intel-onemkl/131410 "2025-08-06T14:50:28Z")

</div>

This morning, I updated to Julia version 1.11.6 (2025-07-09), and I’ve been encountering the following recurring error: Intel oneMKL ERROR: Parameter 6 was incorrect on entry to DLASWP. This message repeats multiple ti…

---

## [Catalyst.jl - @observables usage](https://discourse.julialang.org/t/catalyst-jl-observables-usage/131377)

<div class="topic-metadata">

**Author:** [@Mindy](https://discourse.julialang.org/u/Mindy)\
**Replies:** 3\
**Last updated:** [August 6, 2025, 2:22pm UTC](https://discourse.julialang.org/t/catalyst-jl-observables-usage/131377 "2025-08-06T14:22:39Z")

</div>

Hi, I have a question about using @observables inside @reaction\_network - How to write the observable contains both parameters and species? For example, what’s the correct syntax for writing Tree? function model() …

---

## [Optimization-based PI controller tuning for a delay system](https://discourse.julialang.org/t/optimization-based-pi-controller-tuning-for-a-delay-system/131405)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 3\
**Last updated:** [August 6, 2025, 2:06pm UTC](https://discourse.julialang.org/t/optimization-based-pi-controller-tuning-for-a-delay-system/131405 "2025-08-06T14:06:28Z")

</div>

Hi, I am trying to find a good tuning for a PI controler on a first-order-plus-delay system using Optimization. A naive first try combining ControlSystems.jl and Optimization.jl did not work and gave some errors. I wond…

---

## [Choosing suitable options for solver ODE](https://discourse.julialang.org/t/choosing-suitable-options-for-solver-ode/77843)

<div class="topic-metadata">

**Author:** [@Camilo\_Chaparro](https://discourse.julialang.org/u/Camilo_Chaparro)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 1:28pm UTC](https://discourse.julialang.org/t/choosing-suitable-options-for-solver-ode/77843 "2025-08-06T13:28:41Z")

</div>

Hello everyone, I want about the most suitable ODE solver for the following problem: using DifferentialEquations using Plots; plotly() #Parameters omega\_m = 1.6e6 N = 1 Delta\_mw = -0.7 …

---

## [Bend: a new GPU-native language](https://discourse.julialang.org/t/bend-a-new-gpu-native-language/114440)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 44\
**Last updated:** [August 6, 2025, 1:12pm UTC](https://discourse.julialang.org/t/bend-a-new-gpu-native-language/114440 "2025-08-06T13:12:04Z")

</div>

I thought this new language looked cool: GitHub - HigherOrderCO/Bend: A massively parallel, high-level programming language. It’s still in the research stages but presents some interesting ideas. It compiles a Python-li…

---

## [Is it possible to evaluate the objective function within the "Optimisers.apply!" function?](https://discourse.julialang.org/t/is-it-possible-to-evaluate-the-objective-function-within-the-optimisers-apply-function/130826)

<div class="topic-metadata">

**Author:** [@lorena](https://discourse.julialang.org/u/lorena)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 11:35am UTC](https://discourse.julialang.org/t/is-it-possible-to-evaluate-the-objective-function-within-the-optimisers-apply-function/130826 "2025-08-06T11:35:08Z")

</div>

I am working on implementing the MoMo method for adaptive learning rates in momentum optimizers, and it requires an evaluation of the objective function within the update rule. Until now I have been implementing my own …

---

## [Using Different Julia Version per Project in VSCode](https://discourse.julialang.org/t/using-different-julia-version-per-project-in-vscode/108127)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 8\
**Last updated:** [July 23, 2025, 6:38pm UTC](https://discourse.julialang.org/t/using-different-julia-version-per-project-in-vscode/108127 "2025-07-23T18:38:52Z")

</div>

Hi there, I just installed juliaup to manage Julia versions - really great tool! I have a bunch of older projects running on Julia 1.7/8/9, and I can switch the default Julia version in the command line before I run th…

---

## [Precompile llvm errors](https://discourse.julialang.org/t/precompile-llvm-errors/131393)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 1\
**Last updated:** [August 6, 2025, 7:58am UTC](https://discourse.julialang.org/t/precompile-llvm-errors/131393 "2025-08-06T07:58:45Z")

</div>

When precompiling a project on a new cluster, I have now seen this somewhat scary llvm error twice. I am happy to bug report it (as the error suggests), but I am wondering if any once else has experienced this. It comple…

---

## [Type stability and OffsetArray components of a struct](https://discourse.julialang.org/t/type-stability-and-offsetarray-components-of-a-struct/131313)

<div class="topic-metadata">

**Author:** [@billmclean](https://discourse.julialang.org/u/billmclean)\
**Replies:** 5\
**Last updated:** [August 6, 2025, 2:03am UTC](https://discourse.julialang.org/t/type-stability-and-offsetarray-components-of-a-struct/131313 "2025-08-06T02:03:33Z")

</div>

I found that @code\_warntype indicated a type instability in a finite difference code. The same issue arises in the following simple example. using OffsetArrays abstract type AbstractGrid end struct Grid \<: AbstractGr…

---

## [Deconstruct NamedTupleColumn with Prefix](https://discourse.julialang.org/t/deconstruct-namedtuplecolumn-with-prefix/131297)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 5\
**Last updated:** [August 5, 2025, 9:17pm UTC](https://discourse.julialang.org/t/deconstruct-namedtuplecolumn-with-prefix/131297 "2025-08-05T21:17:23Z")

</div>

Similar to this one: Transform! to destructure NamedTuple into columns I’d like to do the same, but be able to programmatically prefix the "child"columns with the “parent” prefix. That is in the linked MWE, I would lik…

---

## [Setting \`abstol\` and \`reltol\` when solving the Schrödinger equation with OrdinaryDiffEq](https://discourse.julialang.org/t/setting-abstol-and-reltol-when-solving-the-schrodinger-equation-with-ordinarydiffeq/125534)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 27\
**Last updated:** [August 5, 2025, 9:10pm UTC](https://discourse.julialang.org/t/setting-abstol-and-reltol-when-solving-the-schrodinger-equation-with-ordinarydiffeq/125534 "2025-08-05T21:10:57Z")

</div>

Note: This topic was originally title “DiffEqOrdinaryDiffEq fails to preserve norm in simple Schrödinger equation”, which was solved by setting reltol. The more interesting part of the discussion is how to set abstol and…

---

## [Should Rationals be explicitly converted?](https://discourse.julialang.org/t/should-rationals-be-explicitly-converted/131350)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 11\
**Last updated:** [August 5, 2025, 5:56pm UTC](https://discourse.julialang.org/t/should-rationals-be-explicitly-converted/131350 "2025-08-05T17:56:46Z")

</div>

The question is basically, which is “better” in terms of intermediate type-stability and/or performance: function half\_promote(x :: T) :: T where T \<: AbstractFloat half = 1//2 return half \* x end or function …

---

## [Are there any Julia parallel frameworks which allow adding workers while a computation is running?](https://discourse.julialang.org/t/are-there-any-julia-parallel-frameworks-which-allow-adding-workers-while-a-computation-is-running/131258)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 8\
**Last updated:** [August 5, 2025, 3:58pm UTC](https://discourse.julialang.org/t/are-there-any-julia-parallel-frameworks-which-allow-adding-workers-while-a-computation-is-running/131258 "2025-08-05T15:58:32Z")

</div>

I have a large trivially parallel computation I’m running with pmap. Say its been going for a while with 64 workers, then another 64 cores become available on a shared cluster. Are there any Julia frameworks that allow …

---

## [Genie modularize @app logic](https://discourse.julialang.org/t/genie-modularize-app-logic/131373)

<div class="topic-metadata">

**Author:** [@vh94](https://discourse.julialang.org/u/vh94)\
**Replies:** 0\
**Last updated:** [August 5, 2025, 12:40pm UTC](https://discourse.julialang.org/t/genie-modularize-app-logic/131373 "2025-08-05T12:40:21Z")

</div>

Is there a way to programmatically initialize @in and @out vars in GenieFramework.jl ? I would like to call a type of constructor from a module sever logic using namespaces , :tree, :ghost, to not have to initialize ev…

---

## [How can I restart Julia](https://discourse.julialang.org/t/how-can-i-restart-julia/129840)

<div class="topic-metadata">

**Author:** [@Smara\_Kazenango](https://discourse.julialang.org/u/Smara_Kazenango)\
**Replies:** 9\
**Last updated:** [August 5, 2025, 12:37pm UTC](https://discourse.julialang.org/t/how-can-i-restart-julia/129840 "2025-08-05T12:37:54Z")

</div>

What command can I run to restart Julia and does this have impact on any of the packages already installed.

---

## [Differentiation of struct based simulations and applications](https://discourse.julialang.org/t/differentiation-of-struct-based-simulations-and-applications/131319)

<div class="topic-metadata">

**Author:** [@stevenhughes](https://discourse.julialang.org/u/stevenhughes)\
**Replies:** 5\
**Last updated:** [August 5, 2025, 12:03pm UTC](https://discourse.julialang.org/t/differentiation-of-struct-based-simulations-and-applications/131319 "2025-08-05T12:03:54Z")

</div>

Hello, I’m building an aerospace simulator and solver in Julia. It’s coming together well, and I plan to release the first public version in about a month. The system models spacecraft, maneuvers, events, and so on, and…

---

## [Loading Lux params and states in a new script](https://discourse.julialang.org/t/loading-lux-params-and-states-in-a-new-script/131370)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [August 5, 2025, 11:49am UTC](https://discourse.julialang.org/t/loading-lux-params-and-states-in-a-new-script/131370 "2025-08-05T11:49:29Z")

</div>

To save a model the Training a Simple Lstm tutorial shows the following using JDL2 package # train.jl using JLD2 @save "trained\_model.jld2" ps\_trained st\_trained @load "trained\_model.jld2" ps\_trained st\_trained But th…

---

## [ERROR: LoadError: UndefVarError: \`local\_d\` not defined in \`Main\`](https://discourse.julialang.org/t/error-loaderror-undefvarerror-local-d-not-defined-in-main/131296)

<div class="topic-metadata">

**Author:** [@darkg3n3sis](https://discourse.julialang.org/u/darkg3n3sis)\
**Replies:** 2\
**Last updated:** [August 5, 2025, 11:37am UTC](https://discourse.julialang.org/t/error-loaderror-undefvarerror-local-d-not-defined-in-main/131296 "2025-08-05T11:37:32Z")

</div>

I’m making a project for my university i have many problems with julia but this i can’t understand. The problem is local\_d = @ private(1) i try also to write local\_d = 1 but same error, if i write @ private local\_d = 1 …

---

## [Understanding abstol and reltol in DifferentialEquations.jl](https://discourse.julialang.org/t/understanding-abstol-and-reltol-in-differentialequations-jl/129250)

<div class="topic-metadata">

**Author:** [@diffeqslvr](https://discourse.julialang.org/u/diffeqslvr)\
**Replies:** 10\
**Last updated:** [August 5, 2025, 9:31am UTC](https://discourse.julialang.org/t/understanding-abstol-and-reltol-in-differentialequations-jl/129250 "2025-08-05T09:31:28Z")

</div>

I am solving a set of differential equations, see eqs C3a-C3e from https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.5.013091 I separated the equations into real and imaginary parts and propagate them u…

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

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