# Latest

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

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

**Page:** 132

---

## [RMSE vague in 2D particle filtering with LowLevelParticleFilters.jl?](https://discourse.julialang.org/t/rmse-vague-in-2d-particle-filtering-with-lowlevelparticlefilters-jl/131042)

<div class="topic-metadata">

**Author:** [@Tanya123](https://discourse.julialang.org/u/Tanya123)\
**Replies:** 1\
**Last updated:** [July 25, 2025, 6:37am UTC](https://discourse.julialang.org/t/rmse-vague-in-2d-particle-filtering-with-lowlevelparticlefilters-jl/131042 "2025-07-25T06:37:13Z")

</div>

Hi all, I’m applying particle filtering to a 2D linear advection problem (60x60 grid, 3600 states) using LowLevelParticleFilters.jl with: \*Particles: 10,000 \*Process noise: 0.01 \*Measurement noise: 0.1 at 100 random …

---

## [Why does it always recompile a package?](https://discourse.julialang.org/t/why-does-it-always-recompile-a-package/131037)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 2\
**Last updated:** [July 25, 2025, 1:11am UTC](https://discourse.julialang.org/t/why-does-it-always-recompile-a-package/131037 "2025-07-25T01:11:50Z")

</div>

I have a locally developed package Inherit.jl. It has a \_\_precompile\_\_(true) statement. When I open the package project, importing it does not show any compilation time: K:\\DevDocuments\\fourthwave\\pkg\\Inherit\>more Mani…

---

## [How to properly nest parametrically typed structs while using @kwdef](https://discourse.julialang.org/t/how-to-properly-nest-parametrically-typed-structs-while-using-kwdef/131036)

<div class="topic-metadata">

**Author:** [@askprash](https://discourse.julialang.org/u/askprash)\
**Replies:** 0\
**Last updated:** [July 24, 2025, 11:29pm UTC](https://discourse.julialang.org/t/how-to-properly-nest-parametrically-typed-structs-while-using-kwdef/131036 "2025-07-24T23:29:59Z")

</div>

How to use @kwdef with parametric structs and default constructors? I’m trying to understand how to best use @kwdef with parametric structs in Julia, particularly when I want to define some default constructors and have …

---

## [Getting Graphical Output from Catlab.jl](https://discourse.julialang.org/t/getting-graphical-output-from-catlab-jl/131014)

<div class="topic-metadata">

**Author:** [@rogms223](https://discourse.julialang.org/u/rogms223)\
**Replies:** 3\
**Last updated:** [July 24, 2025, 9:53pm UTC](https://discourse.julialang.org/t/getting-graphical-output-from-catlab-jl/131014 "2025-07-24T21:53:40Z")

</div>

:::::::::::::: Project.toml :::::::::::::: \[deps\] Catlab = “134e5e36-593f-5add-ad60-77f754baafbe” GATlab = “f0ffcf3b-d13a-433e-917c-cc44ccf5ead2” can supply Manifest.toml if of interest running snippet below from…

---

## [Compile time memory management](https://discourse.julialang.org/t/compile-time-memory-management/39139)

<div class="topic-metadata">

**Author:** [@datnamer](https://discourse.julialang.org/u/datnamer)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 9:06pm UTC](https://discourse.julialang.org/t/compile-time-memory-management/39139 "2020-05-08T21:06:26Z")

</div>

There was some talk of compile time memory management to help with GPU etc allocations. In a similar vein: GitHub - doctorn/micro-mitten: You might not need your garbage collector " Like Rust, micro-mitten offers a s…

---

## [Why is accessing an SMatrix from a struct allocating?](https://discourse.julialang.org/t/why-is-accessing-an-smatrix-from-a-struct-allocating/131016)

<div class="topic-metadata">

**Author:** [@r0uv3n](https://discourse.julialang.org/u/r0uv3n)\
**Replies:** 4\
**Last updated:** [July 24, 2025, 7:04pm UTC](https://discourse.julialang.org/t/why-is-accessing-an-smatrix-from-a-struct-allocating/131016 "2025-07-24T19:04:08Z")

</div>

Considering the following simple MWE: using StaticArrays, BenchmarkTools struct SomeStruct matrix::SMatrix{3,3,Float64} end function testing\_allocation(g::MMatrix{3,3,Float64}, struct\_matrix::SomeStruct) fill!(g,…

---

## [Difference between dates, in years](https://discourse.julialang.org/t/difference-between-dates-in-years/130997)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 3\
**Last updated:** [July 24, 2025, 4:00pm UTC](https://discourse.julialang.org/t/difference-between-dates-in-years/130997 "2025-07-24T16:00:28Z")

</div>

The difference between Dates.Date returns a Day object. I want to get that number of days “in years”. I’ve been doing stuff like this d/Day(1)/365.25, but repeatedly typing number literals is so ripe for a typo, let alon…

---

## [Solving a free-boundary PDE by mapping to a fixed domain](https://discourse.julialang.org/t/solving-a-free-boundary-pde-by-mapping-to-a-fixed-domain/131006)

<div class="topic-metadata">

**Author:** [@naoufelcre](https://discourse.julialang.org/u/naoufelcre)\
**Replies:** 0\
**Last updated:** [July 24, 2025, 2:21pm UTC](https://discourse.julialang.org/t/solving-a-free-boundary-pde-by-mapping-to-a-fixed-domain/131006 "2025-07-24T14:21:34Z")

</div>

Hello everyone, I’m trying to solve a 1-D Free Boundary PDE using Julia and it is my first time manipulating the language for such a complex problem so I apologize if this sounds trivial to most of you. Basically, the …

---

## [Threads with Channels sometimes lead to weird code excecution](https://discourse.julialang.org/t/threads-with-channels-sometimes-lead-to-weird-code-excecution/130975)

<div class="topic-metadata">

**Author:** [@ncxst](https://discourse.julialang.org/u/ncxst)\
**Replies:** 11\
**Last updated:** [July 24, 2025, 12:23pm UTC](https://discourse.julialang.org/t/threads-with-channels-sometimes-lead-to-weird-code-excecution/130975 "2025-07-24T12:23:14Z")

</div>

Background story I had the problem, that I wanted to generate a certain object from random seeds, which only with a very low probability gives me the result I want. Too speed the calculation up I wanted to parallelize th…

---

## [Catalyst.jl - what is the appropriate way to model equilibrium (i.e. pKa?)](https://discourse.julialang.org/t/catalyst-jl-what-is-the-appropriate-way-to-model-equilibrium-i-e-pka/130149)

<div class="topic-metadata">

**Author:** [@spackman](https://discourse.julialang.org/u/spackman)\
**Replies:** 8\
**Last updated:** [July 24, 2025, 11:28am UTC](https://discourse.julialang.org/t/catalyst-jl-what-is-the-appropriate-way-to-model-equilibrium-i-e-pka/130149 "2025-07-24T11:28:16Z")

</div>

Hello again, I’m working to add some additional equilibrium conditions to a reaction network, particularly pKa. I’m inclined to think that algebraic constraint equations are the appropriate choice here assuming that th…

---

## [Numerical artifact in solution of system of ODEs](https://discourse.julialang.org/t/numerical-artifact-in-solution-of-system-of-odes/130941)

<div class="topic-metadata">

**Author:** [@Gako](https://discourse.julialang.org/u/Gako)\
**Replies:** 12\
**Last updated:** [July 24, 2025, 10:09am UTC](https://discourse.julialang.org/t/numerical-artifact-in-solution-of-system-of-odes/130941 "2025-07-24T10:09:46Z")

</div>

I am currently solving the following system of ODEs: \\begin{cases} \\ddot\\phi=-3H\\dot{\\phi}-\\phi\\\\ \\dot{a}=Ha\\\\ \\ddot\\sigma=-H\\dot{\\sigma}-\\frac{m\_{Eff}^2}{a^2}\\sigma\\\\ \\ddot{\\rho}\_0=\\frac{4\\rho\_2}{a^2}-H\\dot{\\rho}\_{0}-…

---

## [Ideal Diode and Ideal Switch instability problem](https://discourse.julialang.org/t/ideal-diode-and-ideal-switch-instability-problem/107769)

<div class="topic-metadata">

**Author:** [@luca.andriotto](https://discourse.julialang.org/u/luca.andriotto)\
**Replies:** 11\
**Last updated:** [July 24, 2025, 9:44am UTC](https://discourse.julialang.org/t/ideal-diode-and-ideal-switch-instability-problem/107769 "2025-07-24T09:44:11Z")

</div>

Greetings, I am new to Julia community and, in particular, to the use of ModelingToolkit package. I would like to implement an IdealDiode component to be replaced by a short circuit when the controlled variable (i.e. i…

---

## [How to programmatically inspect variable in VS Code Table View?](https://discourse.julialang.org/t/how-to-programmatically-inspect-variable-in-vs-code-table-view/130990)

<div class="topic-metadata">

**Author:** [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Replies:** 2\
**Last updated:** [July 24, 2025, 3:48am UTC](https://discourse.julialang.org/t/how-to-programmatically-inspect-variable-in-vs-code-table-view/130990 "2025-07-24T03:48:19Z")

</div>

Julia has Table View to inspect REPL variables. Is there a way to open it programmatically? Usually it opened by opening Workspace Inspector, finding variable, and clicking on its icon. I want to do it programmatically…

---

## [Second-order cone constraint in JuMP](https://discourse.julialang.org/t/second-order-cone-constraint-in-jump/130927)

<div class="topic-metadata">

**Author:** [@Z\_M](https://discourse.julialang.org/u/Z_M)\
**Replies:** 9\
**Last updated:** [July 24, 2025, 3:14am UTC](https://discourse.julialang.org/t/second-order-cone-constraint-in-jump/130927 "2025-07-24T03:14:58Z")

</div>

Hi guys! How to solve this constraint in Julia in JuMP, where the Q is a 2×2 Hessian matrix of a convex function, so it is a positive semidefinite matrix. I know it can be reformulated as a second-order cone constraint…

---

## [JIT Compiler for CPython](https://discourse.julialang.org/t/jit-compiler-for-cpython/108055)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 13\
**Last updated:** [July 24, 2025, 1:10am UTC](https://discourse.julialang.org/t/jit-compiler-for-cpython/108055 "2025-07-24T01:10:03Z")

</div>

Some Python core developers are floating the idea of a JIT compiler for Python. By the way, the speaker has created a PR and used poetry to describe it.

---

## [Crash of eigenvalues calculations with arpack](https://discourse.julialang.org/t/crash-of-eigenvalues-calculations-with-arpack/130983)

<div class="topic-metadata">

**Author:** [@Choleva](https://discourse.julialang.org/u/Choleva)\
**Replies:** 1\
**Last updated:** [July 23, 2025, 8:07pm UTC](https://discourse.julialang.org/t/crash-of-eigenvalues-calculations-with-arpack/130983 "2025-07-23T20:07:26Z")

</div>

I have a problem of crash of eigenvalues calculations by Arpack.v0.5.4 only if the size of the array becomes very large The bugging line of the program is (line 99) ‘’‘Eigen = eigs(Sierp3, nev=1, which=:LM, sigma=1.7)…

---

## [Extension is updated?](https://discourse.julialang.org/t/extension-is-updated/130045)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 11\
**Last updated:** [July 23, 2025, 10:27pm UTC](https://discourse.julialang.org/t/extension-is-updated/130045 "2025-07-23T22:27:35Z")

</div>

I noticed that a version 1.146.2 of the VS Code extension was released a few days ago. Is there a summary of what’s updated? I’m still pinning myself to 1.127.2, since the version after that broke test-running (see VS …

---

## [Sparsity of SimpleChains Errors](https://discourse.julialang.org/t/sparsity-of-simplechains-errors/130947)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 6\
**Last updated:** [July 23, 2025, 8:31pm UTC](https://discourse.julialang.org/t/sparsity-of-simplechains-errors/130947 "2025-07-23T20:31:58Z")

</div>

I’ve been playing around with SimpleChains.jl for potential use in a larger sparse model, but I’m having some issues figuring out how to obtain a sparsity pattern. After some testing with both SparseConnectivityTracer.jl…

---

## [Indexing an array of arbitrary dimension](https://discourse.julialang.org/t/indexing-an-array-of-arbitrary-dimension/130977)

<div class="topic-metadata">

**Author:** [@prconlin](https://discourse.julialang.org/u/prconlin)\
**Replies:** 4\
**Last updated:** [July 23, 2025, 4:07pm UTC](https://discourse.julialang.org/t/indexing-an-array-of-arbitrary-dimension/130977 "2025-07-23T16:07:59Z")

</div>

I’m trying to write a function which returns a random index for each dimension of an array. It’s easy to do this if the dimensions of the array are known, but I want to abstract my function to work on arrays of arbitrar…

---

## [Parametric Structs](https://discourse.julialang.org/t/parametric-structs/130960)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 10\
**Last updated:** [July 23, 2025, 2:45pm UTC](https://discourse.julialang.org/t/parametric-structs/130960 "2025-07-23T14:45:01Z")

</div>

From a performance stand point, which is better: struct FlexibleSystem{D, S, TCELL} \<: AbstractSystem{D} particles::AbstractVector{S} cell::TCELL data::Dict{Symbol, Any} # Store arbitrary data about the ato…

---

## [Set distribution for function parameters](https://discourse.julialang.org/t/set-distribution-for-function-parameters/130963)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 2:18pm UTC](https://discourse.julialang.org/t/set-distribution-for-function-parameters/130963 "2025-07-23T14:18:24Z")

</div>

Hi, all. I am stucked by the problems of building a @model for a parameters of a function when using Turing. Such as for function f(x; b, c), I want to obtain a model like @model fuction(x,y) b ~ truncated(Normal(1., 1)…

---

## [Export enum](https://discourse.julialang.org/t/export-enum/5396)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 5\
**Last updated:** [July 23, 2025, 2:06pm UTC](https://discourse.julialang.org/t/export-enum/5396 "2025-07-23T14:06:35Z")

</div>

Hi I am defining an enum such as @enum myenum enumname1 enumname2 in a module using Julia 0.6. it seems I have to explicitly export both enum type name(myenum) and enum elements(enumname1,enumname2). I know this way is …

---

## [ReentrantLock: generate once, or every time before \`for\`](https://discourse.julialang.org/t/reentrantlock-generate-once-or-every-time-before-for/130965)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [July 23, 2025, 1:24pm UTC](https://discourse.julialang.org/t/reentrantlock-generate-once-or-every-time-before-for/130965 "2025-07-23T13:24:38Z")

</div>

I learnt about ReentrantLock in JuMP’s doc. function a\_correct\_way\_to\_build\_with\_multithreading() model = Model() @variable(model, x\[1:10\]) my\_lock = Threads.ReentrantLock() T…

---

## [An infeasibility that seems to be dependent on the state of HiGHS (or JuMP)](https://discourse.julialang.org/t/an-infeasibility-that-seems-to-be-dependent-on-the-state-of-highs-or-jump/130969)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 5\
**Last updated:** [July 23, 2025, 12:52pm UTC](https://discourse.julialang.org/t/an-infeasibility-that-seems-to-be-dependent-on-the-state-of-highs-or-jump/130969 "2025-07-23T12:52:12Z")

</div>

Hi all, I’m working on a water allocation optimization code with JuMP + HiGHS, and I came across an infeasibility. The weird thing is: HiGHS concludes that my model is infeasible when it runs embedded in my code, but whe…

---

## [How to add information of unregistered packages on Project.toml instead of Manifest.toml?](https://discourse.julialang.org/t/how-to-add-information-of-unregistered-packages-on-project-toml-instead-of-manifest-toml/114773)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 7\
**Last updated:** [July 23, 2025, 12:02pm UTC](https://discourse.julialang.org/t/how-to-add-information-of-unregistered-packages-on-project-toml-instead-of-manifest-toml/114773 "2025-07-23T12:02:53Z")

</div>

Hi, I am working on a set of packages that I don’t want yet to register. The issue is that when I add one as a dependency of another one, like add git@github.com:forestmod/GenFSM\_resources.jl.git in the environment of G…

---

## [DocumenterVitepress examples (list of packages that use it)](https://discourse.julialang.org/t/documentervitepress-examples-list-of-packages-that-use-it/130795)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 5\
**Last updated:** [July 23, 2025, 11:32am UTC](https://discourse.julialang.org/t/documentervitepress-examples-list-of-packages-that-use-it/130795 "2025-07-23T11:32:07Z")

</div>

I made an appreciation post for DocumenterVitepress on Slack a couple of months ago, and several people shared examples of docs generated using it in the replies. (For context, DocumenterVitepress is a special backend fo…

---

## [Annotation (annotation!() and text!()) not working as expected for longitude and latitude input in GeoMakie geoaxis with Tyler map tiles](https://discourse.julialang.org/t/annotation-annotation-and-text-not-working-as-expected-for-longitude-and-latitude-input-in-geomakie-geoaxis-with-tyler-map-tiles/130971)

<div class="topic-metadata">

**Author:** [@ewillcox](https://discourse.julialang.org/u/ewillcox)\
**Replies:** 3\
**Last updated:** [July 23, 2025, 11:02am UTC](https://discourse.julialang.org/t/annotation-annotation-and-text-not-working-as-expected-for-longitude-and-latitude-input-in-geomakie-geoaxis-with-tyler-map-tiles/130971 "2025-07-23T11:02:02Z")

</div>

Problem description I am attempting to annotate some points in a scatter plot in a GeoMakie.jl geoaxis that contains a Tyler.jl maptile. None of my efforts so far turned out as expected. I suspect I need to find the appr…

---

## [Window title for Plots.jl](https://discourse.julialang.org/t/window-title-for-plots-jl/130929)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 9:27am UTC](https://discourse.julialang.org/t/window-title-for-plots-jl/130929 "2025-07-23T09:27:25Z")

</div>

By default, the window title of my plot seems to be “GKS QtTerm”, is there a way to set this to something that I choose? I tried using Plots plot(; window\_title="Abc") but this does not change the anything that I can s…

---

## [\-0.0 == 0.0, but issorted(\[0.0, -0.0\]) returns false](https://discourse.julialang.org/t/0-0-0-0-but-issorted-0-0-0-0-returns-false/130966)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 4\
**Last updated:** [July 23, 2025, 8:43am UTC](https://discourse.julialang.org/t/0-0-0-0-but-issorted-0-0-0-0-returns-false/130966 "2025-07-23T08:43:44Z")

</div>

There is some kind of sorting order between positive and negative zeros of float types: julia\> issorted(\[-0.0, 0.0\]) true julia\> issorted(\[0.0, -0.0\]) false But this is not observed when those numbers are compared to …

---

## [Rigorous establishment of the feasibility of the trained policies in SDDP.jl using constraint violation penalties in the objective function](https://discourse.julialang.org/t/rigorous-establishment-of-the-feasibility-of-the-trained-policies-in-sddp-jl-using-constraint-violation-penalties-in-the-objective-function/130961)

<div class="topic-metadata">

**Author:** [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)\
**Replies:** 10\
**Last updated:** [July 23, 2025, 8:32am UTC](https://discourse.julialang.org/t/rigorous-establishment-of-the-feasibility-of-the-trained-policies-in-sddp-jl-using-constraint-violation-penalties-in-the-objective-function/130961 "2025-07-23T08:32:16Z")

</div>

I am working with a multi-stage mixed-integer stochastic global supply chain optimization problem. In this regard, under realistic parameter settings, some constraints are making the instances violate the relatively com…

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

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