# Latest

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

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

**Page:** 161

---

## [Condition number of sparse matrix](https://discourse.julialang.org/t/condition-number-of-sparse-matrix/77131)

<div class="topic-metadata">

**Author:** [@jecs](https://discourse.julialang.org/u/jecs)\
**Replies:** 6\
**Last updated:** [May 27, 2025, 7:08am UTC](https://discourse.julialang.org/t/condition-number-of-sparse-matrix/77131 "2025-05-27T07:08:48Z")

</div>

Hello. Early adopter (v0.4-v0.5) coming back to Julia after wrangling with other languages for too long. I am trying to compute the condition number of a sparse matrix but cannot find a method overloaded for sparse matr…

---

## [Ferrite.jl Stokes Flow Example: Windows-Specific File Locking Issue](https://discourse.julialang.org/t/ferrite-jl-stokes-flow-example-windows-specific-file-locking-issue/129099)

<div class="topic-metadata">

**Author:** [@sumor](https://discourse.julialang.org/u/sumor)\
**Replies:** 3\
**Last updated:** [May 27, 2025, 2:43am UTC](https://discourse.julialang.org/t/ferrite-jl-stokes-flow-example-windows-specific-file-locking-issue/129099 "2025-05-27T02:43:28Z")

</div>

Hello everyone, I’m a begineer to Julia! I’m working through the Stokes flow tutorial using Ferrite.jl and encountering an issue specifically on my Windows machine. The example code stokes-flow.jl runs fine on Linux (e.…

---

## [ApproxFun with Robin boundary conditions](https://discourse.julialang.org/t/approxfun-with-robin-boundary-conditions/113938)

<div class="topic-metadata">

**Author:** [@HankelGretel](https://discourse.julialang.org/u/HankelGretel)\
**Replies:** 8\
**Last updated:** [May 26, 2025, 10:33pm UTC](https://discourse.julialang.org/t/approxfun-with-robin-boundary-conditions/113938 "2025-05-26T22:33:51Z")

</div>

Hi, I am new to Julia and am interested in using the ApproxFun package to solve 1D boundary value problems. I found interesting examples here : ApproxFunExamples/PDEs/Manipulate ODEs and PDEs.ipynb at master · JuliaAppr…

---

## [Ordering of unknowns(system) in MTK when array-valued variables are scalarized via structural\_simplify](https://discourse.julialang.org/t/ordering-of-unknowns-system-in-mtk-when-array-valued-variables-are-scalarized-via-structural-simplify/129358)

<div class="topic-metadata">

**Author:** [@sass-jacob](https://discourse.julialang.org/u/sass-jacob)\
**Replies:** 3\
**Last updated:** [May 26, 2025, 9:41pm UTC](https://discourse.julialang.org/t/ordering-of-unknowns-system-in-mtk-when-array-valued-variables-are-scalarized-via-structural-simplify/129358 "2025-05-26T21:41:01Z")

</div>

What is the current rule for ordering of array-valued variables once structural\_simplify has been called and sort\_eqs is set to false? My current array has something like this: unknowns(sys)\[221:230\] (Φ\_s\_c(t))\[2\] (Φ…

---

## [Can't remove process when added on different thread](https://discourse.julialang.org/t/cant-remove-process-when-added-on-different-thread/129357)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 9:05pm UTC](https://discourse.julialang.org/t/cant-remove-process-when-added-on-different-thread/129357 "2025-05-26T21:05:05Z")

</div>

It seems that when a worker process is added on a thread with threadid != 1 (probably), it can’t be naively removed. For example using Distributed new\_proc = fetch(Threads.@spawn addprocs(1)) |\> only rmprocs(new\_proc)…

---

## [The ongoing Mathworks outage](https://discourse.julialang.org/t/the-ongoing-mathworks-outage/129310)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 11\
**Last updated:** [May 26, 2025, 8:32pm UTC](https://discourse.julialang.org/t/the-ongoing-mathworks-outage/129310 "2025-05-26T20:32:29Z")

</div>

Mathworks, the company behind MATLAB, is entering week two of a huge service outage: https://status.mathworks.com/ (if this is why you are here, welcome! :slight\_smile: ) It affects downloads, package installation, the …

---

## [Getting docs in C embedding](https://discourse.julialang.org/t/getting-docs-in-c-embedding/129137)

<div class="topic-metadata">

**Author:** [@alexkolzov](https://discourse.julialang.org/u/alexkolzov)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 8:08pm UTC](https://discourse.julialang.org/t/getting-docs-in-c-embedding/129137 "2025-05-26T20:08:42Z")

</div>

Hello everyone! I am trying to extract documentation from module items. I am trying to use the doc function to do this: jl\_module\_t \*m = jl\_new\_module(jl\_symbol(name), nullptr); jl\_module\_using(m, jl\_base\_module); jl\_m…

---

## [DiffMatic.jl: Symbolic differentiation of vector/matrix/tensor expressions](https://discourse.julialang.org/t/diffmatic-jl-symbolic-differentiation-of-vector-matrix-tensor-expressions/129326)

<div class="topic-metadata">

**Author:** [@asterycs](https://discourse.julialang.org/u/asterycs)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 7:21pm UTC](https://discourse.julialang.org/t/diffmatic-jl-symbolic-differentiation-of-vector-matrix-tensor-expressions/129326 "2025-05-26T19:21:11Z")

</div>

DiffMatic.jl is a package for symbolic differentiation of matrix expressions. Input an expression involving matrices and vectors and obtain the derivative also in terms of matrices and vectors. In case you have used the…

---

## [\[ANN\] Mousetrap, the new Julia GUI Engine, now supports GLMakie & macOS](https://discourse.julialang.org/t/ann-mousetrap-the-new-julia-gui-engine-now-supports-glmakie-macos/105252)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 13\
**Last updated:** [May 26, 2025, 5:16pm UTC](https://discourse.julialang.org/t/ann-mousetrap-the-new-julia-gui-engine-now-supports-glmakie-macos/105252 "2025-05-26T17:16:20Z")

</div>

Available here: https://github.com/Clemapfel/Mousetrap.jl Mousetrap, a GUI engine designed for Julia, just released version 0.3.0. This version makes Mousetrap fully portable, meaning it will now run on any 64-bit desk…

---

## [UpperTriangular arrays in RecursiveArrayTools](https://discourse.julialang.org/t/uppertriangular-arrays-in-recursivearraytools/129352)

<div class="topic-metadata">

**Author:** [@Menno](https://discourse.julialang.org/u/Menno)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 6:32pm UTC](https://discourse.julialang.org/t/uppertriangular-arrays-in-recursivearraytools/129352 "2025-05-26T18:32:15Z")

</div>

Hi all, In the (otherwise absolutely wonderful) RecursiveArrayTools package, I’m fairly sure it must be possible to use UpperTriangular or LowerTriangular arrays as parts of an ArrayPartition. The source code (Recursive…

---

## [Continuation of Equilibria with Bifurcation Kit - model specific issue or wrong initial conditions?](https://discourse.julialang.org/t/continuation-of-equilibria-with-bifurcation-kit-model-specific-issue-or-wrong-initial-conditions/129277)

<div class="topic-metadata">

**Author:** [@AP9](https://discourse.julialang.org/u/AP9)\
**Replies:** 3\
**Last updated:** [May 26, 2025, 6:21pm UTC](https://discourse.julialang.org/t/continuation-of-equilibria-with-bifurcation-kit-model-specific-issue-or-wrong-initial-conditions/129277 "2025-05-26T18:21:36Z")

</div>

I am using BifurcationKit.jl to analyze the steady states of my system varying a parameter A. In the figure, the bifurcation diagram predicts a stable steady state before the first Hopf bifurcation. However, when I plot …

---

## [Tests as contracts?](https://discourse.julialang.org/t/tests-as-contracts/129350)

<div class="topic-metadata">

**Author:** [@mvsoom](https://discourse.julialang.org/u/mvsoom)\
**Replies:** 6\
**Last updated:** [May 26, 2025, 5:47pm UTC](https://discourse.julialang.org/t/tests-as-contracts/129350 "2025-05-26T17:47:22Z")

</div>

Just a braindump from my blog, I’m interested in your thoughts on this. In many programming languages, when you define a new type or object, you can also define how it behaves. But often, there’s no automatic way to c…

---

## [Beginner | Basic Cyclic Scheduling | New To Julia and Scheduling](https://discourse.julialang.org/t/beginner-basic-cyclic-scheduling-new-to-julia-and-scheduling/129344)

<div class="topic-metadata">

**Author:** [@Ely](https://discourse.julialang.org/u/Ely)\
**Replies:** 8\
**Last updated:** [May 26, 2025, 5:32pm UTC](https://discourse.julialang.org/t/beginner-basic-cyclic-scheduling-new-to-julia-and-scheduling/129344 "2025-05-26T17:32:13Z")

</div>

Hi, i am trying to work on some cyclic scheduling problems with CPLEX and Julia and i need to admit i am quite new to both. Any idea please how a similar program can be solved: With the following data: Tasks from 1…

---

## [Bug with filtering DataFrames in combination with ShiftedArrays](https://discourse.julialang.org/t/bug-with-filtering-dataframes-in-combination-with-shiftedarrays/129302)

<div class="topic-metadata">

**Author:** [@PeterDM](https://discourse.julialang.org/u/PeterDM)\
**Replies:** 6\
**Last updated:** [May 26, 2025, 2:33pm UTC](https://discourse.julialang.org/t/bug-with-filtering-dataframes-in-combination-with-shiftedarrays/129302 "2025-05-26T14:33:46Z")

</div>

It seems filtering DataFrames is not compatible with ShiftedArrays in a way one would expect it to be: using DataFrames using ShiftedArrays issquare(n::Integer)=(n==round(sqrt(n))^2) N=20 numbers=collect(1:N) successo…

---

## [Can't reopen socket (EADDRINUSE)](https://discourse.julialang.org/t/cant-reopen-socket-eaddrinuse/129345)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 2:06pm UTC](https://discourse.julialang.org/t/cant-reopen-socket-eaddrinuse/129345 "2025-05-26T14:06:34Z")

</div>

I’m writing a script where I open some TCP sockets to communicate with an external process. Once that process is finished I close the sockets and then I want to do the same thing again. When I try to open the sockets the…

---

## [Enzyme.jl Critical Issues with Basic Arithmetic Operations in Automatic Differentiation](https://discourse.julialang.org/t/enzyme-jl-critical-issues-with-basic-arithmetic-operations-in-automatic-differentiation/129216)

<div class="topic-metadata">

**Author:** [@mra](https://discourse.julialang.org/u/mra)\
**Replies:** 7\
**Last updated:** [May 26, 2025, 12:59pm UTC](https://discourse.julialang.org/t/enzyme-jl-critical-issues-with-basic-arithmetic-operations-in-automatic-differentiation/129216 "2025-05-26T12:59:59Z")

</div>

According to the Enzyme.jl documentation the “Enzyme differentiates arbitrary multivariate vector functions as the most general case in automatic differentiation”, however I encountered critical errors (including the ker…

---

## [Extra square brackets appended when sending lines using both vim-slime and ToggleTerm in neovim](https://discourse.julialang.org/t/extra-square-brackets-appended-when-sending-lines-using-both-vim-slime-and-toggleterm-in-neovim/128368)

<div class="topic-metadata">

**Author:** [@gottacatchenall](https://discourse.julialang.org/u/gottacatchenall)\
**Replies:** 6\
**Last updated:** [May 26, 2025, 10:20am UTC](https://discourse.julialang.org/t/extra-square-brackets-appended-when-sending-lines-using-both-vim-slime-and-toggleterm-in-neovim/128368 "2025-05-26T10:20:21Z")

</div>

I’m trying to use neovim as an editor while sending lines to a REPL in a separate window. I’ve tried using both vim-slime and ToggleTerm.nvim, and everything works fine except for when I send lines that contain square-br…

---

## [Problem with upper absorbing boundary with MethodOfLines.jl](https://discourse.julialang.org/t/problem-with-upper-absorbing-boundary-with-methodoflines-jl/129333)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 10:16am UTC](https://discourse.julialang.org/t/problem-with-upper-absorbing-boundary-with-methodoflines-jl/129333 "2025-05-26T10:16:41Z")

</div>

Hi everyone, the following code runs, but my system leaks mass, due to the upper boundary - N should be constant. using ModelingToolkit using DifferentialEquations using MethodOfLines using DomainSets using Plots @para…

---

## [Training a Neural ODE system using the output of a Method-Of-Lines computation](https://discourse.julialang.org/t/training-a-neural-ode-system-using-the-output-of-a-method-of-lines-computation/129313)

<div class="topic-metadata">

**Author:** [@Rajat\_Shirali](https://discourse.julialang.org/u/Rajat_Shirali)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 9:51am UTC](https://discourse.julialang.org/t/training-a-neural-ode-system-using-the-output-of-a-method-of-lines-computation/129313 "2025-05-26T09:51:53Z")

</div>

Hello everyone! I’m currently looking to develop my own customised Julia code for training Neural ODEs using a Physics-Informed approach. I want to create an interactive PDE-based model; however, there are two constraint…

---

## [C Embedding: Crash on exception check](https://discourse.julialang.org/t/c-embedding-crash-on-exception-check/129319)

<div class="topic-metadata">

**Author:** [@MDSW](https://discourse.julialang.org/u/MDSW)\
**Replies:** 0\
**Last updated:** [May 25, 2025, 4:06pm UTC](https://discourse.julialang.org/t/c-embedding-crash-on-exception-check/129319 "2025-05-25T16:06:05Z")

</div>

Following the embedding guide, I’m getting a crash when attempting to retrieve the results of an exception. This is the generic handler code (it is not C): \*ex= jl\_eval\_string(code) If jl\_exception\_occurred() sptr = …

---

## [Obtaining the ND version of a 1D type](https://discourse.julialang.org/t/obtaining-the-nd-version-of-a-1d-type/129307)

<div class="topic-metadata">

**Author:** [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Replies:** 7\
**Last updated:** [May 25, 2025, 6:02pm UTC](https://discourse.julialang.org/t/obtaining-the-nd-version-of-a-1d-type/129307 "2025-05-25T18:02:39Z")

</div>

I have an AbstractVector type x and want to get the type of the 2D version. For example, if I’m passed a x::CuArray{T,1,device}, I’d like to end up with a type CuArray{T,2,device}. One (type-unstable?) way to do this is…

---

## [Anyone uses GR framework for plotting extensively?](https://discourse.julialang.org/t/anyone-uses-gr-framework-for-plotting-extensively/129324)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 0\
**Last updated:** [May 25, 2025, 7:27pm UTC](https://discourse.julialang.org/t/anyone-uses-gr-framework-for-plotting-extensively/129324 "2025-05-25T19:27:07Z")

</div>

I’m just curious about how people think about this framework. The GR framework https://gr-framework.org/ is the default backend for Plots.jl, but little information and discussion can be found.

---

## [Return handles to functions from caller-namespace from a macro](https://discourse.julialang.org/t/return-handles-to-functions-from-caller-namespace-from-a-macro/129315)

<div class="topic-metadata">

**Author:** [@wave\_and\_matter](https://discourse.julialang.org/u/wave_and_matter)\
**Replies:** 3\
**Last updated:** [May 25, 2025, 3:18pm UTC](https://discourse.julialang.org/t/return-handles-to-functions-from-caller-namespace-from-a-macro/129315 "2025-05-25T15:18:56Z")

</div>

I have made a minimal working example of a macro that returns a list of handles for the functions it receives as input. Obviously this can be achieved more easily without a macro, but let us assume there is a more compli…

---

## [Destructuring of NamedTuple in julia 1.10](https://discourse.julialang.org/t/destructuring-of-namedtuple-in-julia-1-10/129308)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 3\
**Last updated:** [May 25, 2025, 2:35pm UTC](https://discourse.julialang.org/t/destructuring-of-namedtuple-in-julia-1-10/129308 "2025-05-25T14:35:13Z")

</div>

I wonder if there is a way to destructure a namedtuple with splatting like this (; a, nt...) = (; a=1, b=2, c=3) where one is expecting to get a = 1 and nt = (; b=2, c=3) setted This forms fails @ home with julia v1.1…

---

## [How can i make Julia array index to start from zero 0 and not from one 1?](https://discourse.julialang.org/t/how-can-i-make-julia-array-index-to-start-from-zero-0-and-not-from-one-1/129268)

<div class="topic-metadata">

**Author:** [@stefaniecg](https://discourse.julialang.org/u/stefaniecg)\
**Replies:** 31\
**Last updated:** [May 25, 2025, 12:27pm UTC](https://discourse.julialang.org/t/how-can-i-make-julia-array-index-to-start-from-zero-0-and-not-from-one-1/129268 "2025-05-25T12:27:31Z")

</div>

For a = \[0,1,2\] the index starts at a\[1\]=0 I want all my arrays to allways start at index zero a\[0\]=0. How can configure Julia to do this?

---

## [Lack of conexionist NN package?](https://discourse.julialang.org/t/lack-of-conexionist-nn-package/129304)

<div class="topic-metadata">

**Author:** [@PepeRoConde](https://discourse.julialang.org/u/PepeRoConde)\
**Replies:** 1\
**Last updated:** [May 25, 2025, 9:48am UTC](https://discourse.julialang.org/t/lack-of-conexionist-nn-package/129304 "2025-05-25T09:48:58Z")

</div>

I found SOM.jl, NetworkDynamics.jl and Boltzmann.jl to be alone of other packages but not together between themselves. Wouldn’t it be nice a Conexionist Neural Networks pacake? or it be more appropiate to add those into …

---

## [Help needed with tracking autocomplete/IntelliSense issue in VS Code](https://discourse.julialang.org/t/help-needed-with-tracking-autocomplete-intellisense-issue-in-vs-code/129311)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 0\
**Last updated:** [May 25, 2025, 6:25am UTC](https://discourse.julialang.org/t/help-needed-with-tracking-autocomplete-intellisense-issue-in-vs-code/129311 "2025-05-25T06:25:52Z")

</div>

I am not sure if this is a VSCode-only issue or something more general. I inspected some packages and didn’t find my pattern used at all - maybe I’m doing something anti-pattern-ish here. I’m open to a more idiomatic wa…

---

## [Destructuring syntax in julia 1.7](https://discourse.julialang.org/t/destructuring-syntax-in-julia-1-7/68236)

<div class="topic-metadata">

**Author:** [@xfcjscn](https://discourse.julialang.org/u/xfcjscn)\
**Replies:** 66\
**Last updated:** [October 27, 2022, 7:21am UTC](https://discourse.julialang.org/t/destructuring-syntax-in-julia-1-7/68236 "2022-10-27T07:21:46Z")

</div>

1.7 introduced new language feature: (; a, b) = x can now be used to destructure properties a and b of x . This syntax is equivalent to a = getproperty(x, :a); b = getproperty(x, :b) From a reader perspective(much more…

---

## [The question about Turing likelihood](https://discourse.julialang.org/t/the-question-about-turing-likelihood/129293)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 3\
**Last updated:** [May 24, 2025, 7:24pm UTC](https://discourse.julialang.org/t/the-question-about-turing-likelihood/129293 "2025-05-24T19:24:41Z")

</div>

Hi, all. I am new to Julia, I am trying to fit an image model, I aim to minimize the model image and observed image: minimize(sum(model\_intensity - data\_obs)) both model\_intensity and data\_obs are 2d-array. I am not s…

---

## [Slow deserialization of booleans](https://discourse.julialang.org/t/slow-deserialization-of-booleans/129260)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 8\
**Last updated:** [May 25, 2025, 12:58am UTC](https://discourse.julialang.org/t/slow-deserialization-of-booleans/129260 "2025-05-25T00:58:38Z")

</div>

When a Vector{Bool} is deserialized, stdlib/Serialization/src/Serialization.jl:1338 allocates for each element deserialized. I changed the A = Array{Bool, length(dims)}(undef, dims) to A = Vector{Bool}(undef, n) and I wa…

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

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