# Latest

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

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

**Page:** 318

---

## [An easy way to view system-state when a differential equation solver encounters a warning](https://discourse.julialang.org/t/an-easy-way-to-view-system-state-when-a-differential-equation-solver-encounters-a-warning/118944)

<div class="topic-metadata">

**Author:** [@VBtheHun](https://discourse.julialang.org/u/VBtheHun)\
**Replies:** 4\
**Last updated:** [September 19, 2024, 3:47pm UTC](https://discourse.julialang.org/t/an-easy-way-to-view-system-state-when-a-differential-equation-solver-encounters-a-warning/118944 "2024-09-19T15:47:16Z")

</div>

I am trying to solve a system of differential equations where I run into a larger Maxiters needed warning. I suspect that my model has been ill-specified as this appears only for certain parameter values. To figure this …

---

## [Emulate Enzyme.Const with Zygote](https://discourse.julialang.org/t/emulate-enzyme-const-with-zygote/119594)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 3:05pm UTC](https://discourse.julialang.org/t/emulate-enzyme-const-with-zygote/119594 "2024-09-19T15:05:39Z")

</div>

In the next release, DifferentiationInterface.jl will accept constant (non-differentiated) arguments c in addition to the active (differentiated) argument x, I’m wondering how to implement this mechanism optimally for ea…

---

## [How to dynamically import packages and run their functions from a setting file](https://discourse.julialang.org/t/how-to-dynamically-import-packages-and-run-their-functions-from-a-setting-file/119548)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 2:55pm UTC](https://discourse.julialang.org/t/how-to-dynamically-import-packages-and-run-their-functions-from-a-setting-file/119548 "2024-09-19T14:55:33Z")

</div>

I am trying to create a set of packages where I have a main package that know nothing of subpackages but it call a certain function of them, and where the subpackages to use are defined in a configuration file. So, I ha…

---

## [ModelingToolkit -- limits to parameter blocks, etc.?](https://discourse.julialang.org/t/modelingtoolkit-limits-to-parameter-blocks-etc/119608)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 0\
**Last updated:** [September 19, 2024, 2:36pm UTC](https://discourse.julialang.org/t/modelingtoolkit-limits-to-parameter-blocks-etc/119608 "2024-09-19T14:36:39Z")

</div>

Assume I create a ModelingToolkit “instantiator”, say: @mtkmodel Tank begin @structural\_parameters case = :std @parameters begin ... end @variables begin ... end @equations begin ... end end Questions: …

---

## [GLMakie with blocking thread](https://discourse.julialang.org/t/glmakie-with-blocking-thread/119600)

<div class="topic-metadata">

**Author:** [@simonw1](https://discourse.julialang.org/u/simonw1)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 1:56pm UTC](https://discourse.julialang.org/t/glmakie-with-blocking-thread/119600 "2024-09-19T13:56:34Z")

</div>

Hello good people! I am trying to plot and process data in Julia with GLMakie. The data is communicated via a gRPC call and as I am unable to find suitable Julia packages for handling this, I have a python module that h…

---

## [Massive memory leak in Julia due to tiny memory leak in C](https://discourse.julialang.org/t/massive-memory-leak-in-julia-due-to-tiny-memory-leak-in-c/119526)

<div class="topic-metadata">

**Author:** [@Yixiao-Zhang](https://discourse.julialang.org/u/Yixiao-Zhang)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 1:30pm UTC](https://discourse.julialang.org/t/massive-memory-leak-in-julia-due-to-tiny-memory-leak-in-c/119526 "2024-09-19T13:30:14Z")

</div>

The latest version (v4.9.2) of netCDF-C (a C library for outputting data in the network Common Data Form.) is known to have memory leak. The leaked memory is not more than several MBs (see this link). However, when I use…

---

## [Parallelization issues](https://discourse.julialang.org/t/parallelization-issues/119467)

<div class="topic-metadata">

**Author:** [@ditfurth](https://discourse.julialang.org/u/ditfurth)\
**Replies:** 4\
**Last updated:** [September 19, 2024, 12:56pm UTC](https://discourse.julialang.org/t/parallelization-issues/119467 "2024-09-19T12:56:29Z")

</div>

Hi all, I am having parallelization issues. I am trying to utilize multiple computers in an mpi call and have tried a lot of things. So because it is mpi, the memory will not be shared. I can divide my dataset with an i…

---

## [Generate a graph of subtypes](https://discourse.julialang.org/t/generate-a-graph-of-subtypes/119598)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 1:15pm UTC](https://discourse.julialang.org/t/generate-a-graph-of-subtypes/119598 "2024-09-19T13:15:54Z")

</div>

Hello, I find myself manually making (abstract) type diagrams to efficiently explain the hierarchy to collaborators. Supplying a type to a function which prints a nice textual network of types would be very useful. Thi…

---

## [Subdividing a matrix into smaller submatrices for multithreading](https://discourse.julialang.org/t/subdividing-a-matrix-into-smaller-submatrices-for-multithreading/119597)

<div class="topic-metadata">

**Author:** [@BBReactionHooper](https://discourse.julialang.org/u/BBReactionHooper)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 12:02pm UTC](https://discourse.julialang.org/t/subdividing-a-matrix-into-smaller-submatrices-for-multithreading/119597 "2024-09-19T12:02:00Z")

</div>

I would like to perform a multi-threaded operation on a matrix. It makes most sense to subdivide this matrix into smaller submatrices, one for each thread. How do I divide a rectangular matrix into a possible arbitrary n…

---

## [Would it be possible to add temporary dependency graph?](https://discourse.julialang.org/t/would-it-be-possible-to-add-temporary-dependency-graph/119592)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 11:54am UTC](https://discourse.julialang.org/t/would-it-be-possible-to-add-temporary-dependency-graph/119592 "2024-09-19T11:54:16Z")

</div>

For Julia packages dependency graphs are saved in Project/Manifest files. Would it be possible to have a way to add to the dependency graph branches that are session-specific? My user case is a MainPackage that call fu…

---

## [Tsit5 - What is it?](https://discourse.julialang.org/t/tsit5-what-is-it/88237)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 5\
**Last updated:** [September 19, 2024, 11:13am UTC](https://discourse.julialang.org/t/tsit5-what-is-it/88237 "2024-09-19T11:13:42Z")

</div>

I did some poking around – I think this is just a particular implementation of runga-kutta 4(5). Is this correct?

---

## [\[FR\] allow "freezing" an abstract type, making future attempts of adding a subtype throw](https://discourse.julialang.org/t/fr-allow-freezing-an-abstract-type-making-future-attempts-of-adding-a-subtype-throw/119554)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 10:50am UTC](https://discourse.julialang.org/t/fr-allow-freezing-an-abstract-type-making-future-attempts-of-adding-a-subtype-throw/119554 "2024-09-19T10:50:46Z")

</div>

How about allowing an abstract type to be frozen (or, perhaps, closed) at some point? After the abstract type is frozen, any attempt at adding a new subtype to it would throw. Example: abstract type A end struct S \<: A …

---

## [Confirm \`Ctrl-D\` to exit with \`y/n\` prompt like iPython?](https://discourse.julialang.org/t/confirm-ctrl-d-to-exit-with-y-n-prompt-like-ipython/105487)

<div class="topic-metadata">

**Author:** [@bert](https://discourse.julialang.org/u/bert)\
**Replies:** 16\
**Last updated:** [September 19, 2024, 9:28am UTC](https://discourse.julialang.org/t/confirm-ctrl-d-to-exit-with-y-n-prompt-like-ipython/105487 "2024-09-19T09:28:27Z")

</div>

When using the REPL, is there a way to have an ipython-style confirmation when pressing Ctrl-D to exit? Currently Julia does this: julia\> Type ^D again to exit. julia\> I’m not a fan of this because I think it’ll just…

---

## [ERROR: Result index of attribute MathOptInterface.VariablePrimal(1) out of bounds. There are currently 0 solution(s) in the model](https://discourse.julialang.org/t/error-result-index-of-attribute-mathoptinterface-variableprimal-1-out-of-bounds-there-are-currently-0-solution-s-in-the-model/119586)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 9:03am UTC](https://discourse.julialang.org/t/error-result-index-of-attribute-mathoptinterface-variableprimal-1-out-of-bounds-there-are-currently-0-solution-s-in-the-model/119586 "2024-09-19T09:03:46Z")

</div>

ERROR: Result index of attribute MathOptInterface.VariablePrimal(1) out of bounds. There are currently 0 solution(s) in the model. I got this error when solving an MILP model using HiGHS. Do anyone know what it means? T…

---

## [Different test results of @test\_opt inside and outside the @testitem block](https://discourse.julialang.org/t/different-test-results-of-test-opt-inside-and-outside-the-testitem-block/119564)

<div class="topic-metadata">

**Author:** [@aaoo](https://discourse.julialang.org/u/aaoo)\
**Replies:** 0\
**Last updated:** [September 18, 2024, 4:45pm UTC](https://discourse.julialang.org/t/different-test-results-of-test-opt-inside-and-outside-the-testitem-block/119564 "2024-09-18T16:45:58Z")

</div>

I found that when the function contains @warn, the testing results of @test\_opt inside the @testitem block differ from those outside, i.e. in the REPL. Please see the code below. Could someone explain why this happens …

---

## [Optimizing Sparse Matrix Exponential Computation in Julia](https://discourse.julialang.org/t/optimizing-sparse-matrix-exponential-computation-in-julia/119584)

<div class="topic-metadata">

**Author:** [@ZACK\_Z](https://discourse.julialang.org/u/ZACK_Z)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 7:35am UTC](https://discourse.julialang.org/t/optimizing-sparse-matrix-exponential-computation-in-julia/119584 "2024-09-19T07:35:08Z")

</div>

I’m trying to compute the sparse matrix exponential of large matrices (at least 10,000 x 10,000) using Julia packages like Expokit, FastExp, and ExpmV. However, I’m finding that the computation time is significantly long…

---

## [Time differing coefficient ODE](https://discourse.julialang.org/t/time-differing-coefficient-ode/119432)

<div class="topic-metadata">

**Author:** [@gonzalo](https://discourse.julialang.org/u/gonzalo)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 6:50am UTC](https://discourse.julialang.org/t/time-differing-coefficient-ode/119432 "2024-09-19T06:50:24Z")

</div>

Hi everyone, I am wanting to solve the differential equation dx/dt=-x+y; dy/dt=-t\*y+3x x(0)=0; y(0)=1; t(0)=0; note t is a time varying coefficient I tried the subsequent code but I didn’t think it calculate it cor…

---

## [Data Structures for Finite Volumes](https://discourse.julialang.org/t/data-structures-for-finite-volumes/119558)

<div class="topic-metadata">

**Author:** [@afleming](https://discourse.julialang.org/u/afleming)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 6:09am UTC](https://discourse.julialang.org/t/data-structures-for-finite-volumes/119558 "2024-09-19T06:09:29Z")

</div>

I’m working on a (not very sophisticated) finite volume solver for my research, and I’ve run into a perplexing problem around storing the mesh in such a way that minimizes allocations. The basic idea is that every cell …

---

## [How would I use Supposition.jl on computer arithmetic corner cases?](https://discourse.julialang.org/t/how-would-i-use-supposition-jl-on-computer-arithmetic-corner-cases/119418)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 18\
**Last updated:** [September 19, 2024, 5:23am UTC](https://discourse.julialang.org/t/how-would-i-use-supposition-jl-on-computer-arithmetic-corner-cases/119418 "2024-09-19T05:23:13Z")

</div>

How would one implement a Supposition.jl test for something like the following MWE? @check function phased(x = Data.Floats()) cosd(x) == sind(x + 90) end which fails due to floating point stuff x = 1.801439850948189…

---

## [How does RuntimeGeneratedFunction ensure correct dependencies are loaded?](https://discourse.julialang.org/t/how-does-runtimegeneratedfunction-ensure-correct-dependencies-are-loaded/119569)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 4:27am UTC](https://discourse.julialang.org/t/how-does-runtimegeneratedfunction-ensure-correct-dependencies-are-loaded/119569 "2024-09-19T04:27:22Z")

</div>

How does RuntimeGeneratedFunction ensure that the correct dependency libraries are available? This example compiles an expression which includes the constant twoπ which is defined in IrrationalConstants.jl and used in D…

---

## [MTK simulation allocation free?](https://discourse.julialang.org/t/mtk-simulation-allocation-free/119581)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 4:22am UTC](https://discourse.julialang.org/t/mtk-simulation-allocation-free/119581 "2024-09-19T04:22:20Z")

</div>

Is it possible to simulate an MTK model allocation-free? The task is to run a simulation in a control loop with 1ms update interval in real-time.

---

## [Why does OSQP return NaN for convex QP](https://discourse.julialang.org/t/why-does-osqp-return-nan-for-convex-qp/119550)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 2:33am UTC](https://discourse.julialang.org/t/why-does-osqp-return-nan-for-convex-qp/119550 "2024-09-19T02:33:16Z")

</div>

I have a convex QP: using JuMP, OSQP, Clarabel, Ipopt A = \[0.01; -0.01; 3.548942957597223e-5; -3.548942957597223e-5\] b = \[6.998225528521202; 3.0017744714787984; 6.999996851250971; 3.1487490290693643e-6\] solver = optimi…

---

## [Difficulties writing a program that computes PDEs involving Laplacians with AD](https://discourse.julialang.org/t/difficulties-writing-a-program-that-computes-pdes-involving-laplacians-with-ad/98834)

<div class="topic-metadata">

**Author:** [@Hareruya](https://discourse.julialang.org/u/Hareruya)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 1:51am UTC](https://discourse.julialang.org/t/difficulties-writing-a-program-that-computes-pdes-involving-laplacians-with-ad/98834 "2024-09-19T01:51:24Z")

</div>

Greetings, I have been continuously running into an issue with the usage of AD to calculate the Helmholtz equation and the wave equation. My main area of research is acoustic signal processing, specifically concerning e…

---

## [Tokenising using TextAnalysis 0.8](https://discourse.julialang.org/t/tokenising-using-textanalysis-0-8/119573)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 1:21am UTC](https://discourse.julialang.org/t/tokenising-using-textanalysis-0-8/119573 "2024-09-19T01:21:42Z")

</div>

Thanks to the maintainers of TextAnalysis. This works in TextAnalysis 0.7.5, but not here in 0.8.1: julia\> docs = \["Hi my name is Sam.", "How are you today?"\] 2-element Vector{String}: "Hi my name is Sam." "How are y…

---

## [Range Breaks on DateTimeAxis in Makie](https://discourse.julialang.org/t/range-breaks-on-datetimeaxis-in-makie/119334)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 10:56pm UTC](https://discourse.julialang.org/t/range-breaks-on-datetimeaxis-in-makie/119334 "2024-09-18T22:56:36Z")

</div>

Hi I want to plot the following data. I have the last 3 closing prices from one day and the first 3 closing prices from the next day. 6×2 DataFrame Row │ timestamp close │ DateTime Float6…

---

## [Adding package to new environment takes long time?](https://discourse.julialang.org/t/adding-package-to-new-environment-takes-long-time/119518)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 8\
**Last updated:** [September 18, 2024, 10:55pm UTC](https://discourse.julialang.org/t/adding-package-to-new-environment-takes-long-time/119518 "2024-09-18T22:55:17Z")

</div>

I have already installed DifferentialEquations.jl in many different environments. I just created a new environment and did \]add DifferentialEquations This took \> 5 mins, and then precompilation happened for another may…

---

## [REPL hangs at compile](https://discourse.julialang.org/t/repl-hangs-at-compile/119562)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 10:33pm UTC](https://discourse.julialang.org/t/repl-hangs-at-compile/119562 "2024-09-18T22:33:35Z")

</div>

Hi, Can anyone else reproduce the below? The following function just hangs the julia REPL. I’m using 1.11.0-rc3 on Windows 11. import Hypatia import SCS import COSMO using JuMP function getjumpmodel(optimizer\_name::S…

---

## [How to do plotting on WSL (Windows Subsystem Linux)](https://discourse.julialang.org/t/how-to-do-plotting-on-wsl-windows-subsystem-linux/32812)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 8\
**Last updated:** [September 18, 2024, 9:52pm UTC](https://discourse.julialang.org/t/how-to-do-plotting-on-wsl-windows-subsystem-linux/32812 "2024-09-18T21:52:44Z")

</div>

I am using WSL with Julia which makes it more reproducible, but I can’t get plotting to work on WSL. Does anyone have any tips? I can start the Jupyter notebook, but I am referring to plotting in REPL. Plotting by conn…

---

## [How do I code a simple linked list using DataStructures.jl](https://discourse.julialang.org/t/how-do-i-code-a-simple-linked-list-using-datastructures-jl/80929)

<div class="topic-metadata">

**Author:** [@ao222](https://discourse.julialang.org/u/ao222)\
**Replies:** 7\
**Last updated:** [October 23, 2022, 3:18pm UTC](https://discourse.julialang.org/t/how-do-i-code-a-simple-linked-list-using-datastructures-jl/80929 "2022-10-23T15:18:12Z")

</div>

Looking to code a linked list and add a cycle to the list so that I can implement the Floyd cycle detection algorithm. I found LinkedList from DataStructures.jl However I can’t figure out how to: create a list itera…

---

## [Package updated but not in registry](https://discourse.julialang.org/t/package-updated-but-not-in-registry/119451)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 7\
**Last updated:** [September 18, 2024, 7:26pm UTC](https://discourse.julialang.org/t/package-updated-but-not-in-registry/119451 "2024-09-18T19:26:36Z")

</div>

I recently updated HasseDiagrams to version 0.1.1. See this entry in JuliaRegistries and this entry in JuliaHub. No errors were reported in the attempted registration. And yet the update doesn’t seem to be in the regist…

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

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