# Latest

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

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

**Page:** 197

---

## [Plots and plot result in strange messages in the REPL](https://discourse.julialang.org/t/plots-and-plot-result-in-strange-messages-in-the-repl/127317)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 4\
**Last updated:** [March 25, 2025, 3:42pm UTC](https://discourse.julialang.org/t/plots-and-plot-result-in-strange-messages-in-the-repl/127317 "2025-03-25T15:42:28Z")

</div>

I have reported this at the Plots github repository but maybe someone here has already seen this. A new, seemingly incorrect plots behavior. In the repl, just use Plots and make any plot: using Plots plot(1:5). # or a…

---

## [Minimum Spanning Tree Problem - Constrained by total edge sum](https://discourse.julialang.org/t/minimum-spanning-tree-problem-constrained-by-total-edge-sum/127351)

<div class="topic-metadata">

**Author:** [@mast-lfl](https://discourse.julialang.org/u/mast-lfl)\
**Replies:** 2\
**Last updated:** [March 25, 2025, 3:32pm UTC](https://discourse.julialang.org/t/minimum-spanning-tree-problem-constrained-by-total-edge-sum/127351 "2025-03-25T15:32:21Z")

</div>

Assume that I have an undirected graph. Several of the vertices in the graph serve as waste disposal sites, while the other vertices produce the waste. Producing vertices have a weight (corresponding to the amount of was…

---

## [Subtyping FieldVector from StaticArrays.jl](https://discourse.julialang.org/t/subtyping-fieldvector-from-staticarrays-jl/127312)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 2\
**Last updated:** [March 25, 2025, 3:12pm UTC](https://discourse.julialang.org/t/subtyping-fieldvector-from-staticarrays-jl/127312 "2025-03-25T15:12:18Z")

</div>

I am using this approach in a couple of projects: julia\> import StaticArrays: FieldVector, Size, similar\_type julia\> struct Direction{T\<:AbstractFloat} \<: FieldVector{3, T} x::T y::T z:…

---

## [Literate programming workflow with ordinary jl scripts](https://discourse.julialang.org/t/literate-programming-workflow-with-ordinary-jl-scripts/104598)

<div class="topic-metadata">

**Author:** [@martin.d.maas](https://discourse.julialang.org/u/martin.d.maas)\
**Replies:** 6\
**Last updated:** [March 25, 2025, 2:58pm UTC](https://discourse.julialang.org/t/literate-programming-workflow-with-ordinary-jl-scripts/104598 "2025-03-25T14:58:58Z")

</div>

I am trying to do some literate programming. The workflow I want to pursue is writing valid Julia code in a script that I can execute with VSCode to see the results, add markdown content in comments, and then produce so…

---

## [Functionality like the SAVE statement in Fortran?](https://discourse.julialang.org/t/functionality-like-the-save-statement-in-fortran/127268)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 30\
**Last updated:** [March 25, 2025, 2:37pm UTC](https://discourse.julialang.org/t/functionality-like-the-save-statement-in-fortran/127268 "2025-03-25T14:37:38Z")

</div>

I am converting some Fortran code to Julia, and I noticed the fortran code uses the SAVE statement (SAVE (FORTRAN 77 Language Reference)). I have very little experience in Fortran, but it seems like this statement allow…

---

## [IPNewton (suddenly) fails on trivial example](https://discourse.julialang.org/t/ipnewton-suddenly-fails-on-trivial-example/127337)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 2\
**Last updated:** [March 25, 2025, 1:26pm UTC](https://discourse.julialang.org/t/ipnewton-suddenly-fails-on-trivial-example/127337 "2025-03-25T13:26:48Z")

</div>

Hi, I’ve ran into a problem where interior-point newton fails on the following easy example: using ForwardDiff, Optim norm\_c!(c, x) = (c\[1\] = sum(y -\> y^2, x); c) constraints(d) = TwiceDifferentiableConstraints(norm\_c…

---

## [Solution not converging for advection PDE](https://discourse.julialang.org/t/solution-not-converging-for-advection-pde/123349)

<div class="topic-metadata">

**Author:** [@Alma\_Thindberg](https://discourse.julialang.org/u/Alma_Thindberg)\
**Replies:** 9\
**Last updated:** [March 25, 2025, 1:05pm UTC](https://discourse.julialang.org/t/solution-not-converging-for-advection-pde/123349 "2025-03-25T13:05:01Z")

</div>

using Pkg #Pkg.add("ModelingToolkit") #Pkg.add("MethodOfLines") #Pkg.add("DomainSets") #Pkg.add("OrdinaryDiffEq") Pkg.add("NonlinearSolve") using ModelingToolkit, MethodOfLines, DomainSets, OrdinaryDiffEq, LinearAlge…

---

## [A naive explanation of infeasibility and unboundedness](https://discourse.julialang.org/t/a-naive-explanation-of-infeasibility-and-unboundedness/127343)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 12:37pm UTC](https://discourse.julialang.org/t/a-naive-explanation-of-infeasibility-and-unboundedness/127343 "2025-03-25T12:37:48Z")

</div>

I demo the process “From unboundedness to an infeasibility system” Say, let’s employ y \\in \\mathbb{R} as our decision variable. We know +\\infty = \\sup \\{y | y \\ge 0\\} Given any y \\ge 0, we know 0 = \\inf \\{yx |x \\g…

---

## [How to link color axes of heatmaps?](https://discourse.julialang.org/t/how-to-link-color-axes-of-heatmaps/62511)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 12:37pm UTC](https://discourse.julialang.org/t/how-to-link-color-axes-of-heatmaps/62511 "2025-03-25T12:37:46Z")

</div>

For example, using CairoMakie function testfig() fig = Figure() heatmaps = \[\] for i = 1:4 h = heatmap!(Axis(fig\[i, 1\]), i .+ rand(200, 200)) push!(heatmaps, h) end Colorbar(fig\[:, 2\],…

---

## [Initializing a matrix-valued species in Catalyst](https://discourse.julialang.org/t/initializing-a-matrix-valued-species-in-catalyst/127345)

<div class="topic-metadata">

**Author:** [@Menno](https://discourse.julialang.org/u/Menno)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 12:36pm UTC](https://discourse.julialang.org/t/initializing-a-matrix-valued-species-in-catalyst/127345 "2025-03-25T12:36:21Z")

</div>

Sometimes when setting up a reaction network in Catalyst it is useful to have a matrix of species of which only some participate in reactions. In this case when setting up the ODEProblem I run into an ‘initialization inc…

---

## [@threads and vmap](https://discourse.julialang.org/t/threads-and-vmap/127340)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 12:13pm UTC](https://discourse.julialang.org/t/threads-and-vmap/127340 "2025-03-25T12:13:46Z")

</div>

Is it possible to speed this up further? f(x) = sin(x)cos(x)sin(x)cos(x) X = repeat( \[randn(10^7)\], 5 ) @time for x in X; map(f,x) end # 1.0s @time Threads.@threads for x in X; map…

---

## [Solving a linear system without modifying and allocating arrays](https://discourse.julialang.org/t/solving-a-linear-system-without-modifying-and-allocating-arrays/127315)

<div class="topic-metadata">

**Author:** [@cneverett](https://discourse.julialang.org/u/cneverett)\
**Replies:** 3\
**Last updated:** [March 25, 2025, 10:48am UTC](https://discourse.julialang.org/t/solving-a-linear-system-without-modifying-and-allocating-arrays/127315 "2025-03-25T10:48:41Z")

</div>

Hi, I have a setup where I need to repeatedly solve a linear system like A \\ B = C every timestep of a system. A is a matrix, B is a vector and both changing each timestep and more importantly A is reused later each time…

---

## [Solving large scale NLP problem on HPC cluster](https://discourse.julialang.org/t/solving-large-scale-nlp-problem-on-hpc-cluster/127134)

<div class="topic-metadata">

**Author:** [@J-Holger](https://discourse.julialang.org/u/J-Holger)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 8:50am UTC](https://discourse.julialang.org/t/solving-large-scale-nlp-problem-on-hpc-cluster/127134 "2025-03-25T08:50:42Z")

</div>

Hello, I’m trying to solve a maximization problem for maximizing profit in river hydroelectricity power production. The problem is non-linear and non-convex. I’m using the solution from a simplified, linear and convex, …

---

## [Alternative to systune in Julia](https://discourse.julialang.org/t/alternative-to-systune-in-julia/126583)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [March 25, 2025, 8:20am UTC](https://discourse.julialang.org/t/alternative-to-systune-in-julia/126583 "2025-03-25T08:20:31Z")

</div>

Is there an alternative to the Matlab command systune in Julia? systune tunes fixed-structure control systems subject to both soft and hard design goals. systune can tune multiple fixed-order, fixed-structure control e…

---

## [Should I learn C++ to better understand and use Julia multi-threading and GPU programming package?](https://discourse.julialang.org/t/should-i-learn-c-to-better-understand-and-use-julia-multi-threading-and-gpu-programming-package/127298)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 7:51am UTC](https://discourse.julialang.org/t/should-i-learn-c-to-better-understand-and-use-julia-multi-threading-and-gpu-programming-package/127298 "2025-03-25T07:51:12Z")

</div>

Sorry for the potentially opinionated question here, but I figured that the folks on Julia discourse have the best insights into this question. So I want to start using more of the Julia multi-threading and GPU packages…

---

## [MIPLearn.BasicCollector() error why](https://discourse.julialang.org/t/miplearn-basiccollector-error-why/127335)

<div class="topic-metadata">

**Author:** [@daiyucan](https://discourse.julialang.org/u/daiyucan)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 7:43am UTC](https://discourse.julialang.org/t/miplearn-basiccollector-error-why/127335 "2025-03-25T07:43:16Z")

</div>

code running ok until to -4-5-part using MIPLearn.BasicCollector() collect data error :The terminal process "julia ‘-i’,‘–banner=no’,“project=C:\\Userslxx,julialenvironmentslv1.11’‘c:\\Users\\xx.vscodelextensionsyjulialan…

---

## [@inbounds slower](https://discourse.julialang.org/t/inbounds-slower/126634)

<div class="topic-metadata">

**Author:** [@eldee](https://discourse.julialang.org/u/eldee)\
**Replies:** 8\
**Last updated:** [March 25, 2025, 1:52am UTC](https://discourse.julialang.org/t/inbounds-slower/126634 "2025-03-25T01:52:00Z")

</div>

Hi, I’m encountering some situations in my GPU code where adding @inbounds increases execution time by 10%-20%. Of course it would be great if we would never need @inbounds, but on the other hand there are certainly als…

---

## [How to handle compat when a dep is only used in an extension?](https://discourse.julialang.org/t/how-to-handle-compat-when-a-dep-is-only-used-in-an-extension/127284)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 7\
**Last updated:** [March 24, 2025, 8:37pm UTC](https://discourse.julialang.org/t/how-to-handle-compat-when-a-dep-is-only-used-in-an-extension/127284 "2025-03-24T20:37:30Z")

</div>

I’m using Julia’s extensions system (with ext/ and \[extensions\] in Project.toml), and I ran into a small issue. I use a package like QuadGK only inside an extension (e.g. for DataInterpolationsExt), but Aqua marks it as …

---

## [Achieving Maximum Algebraic Simplification in Symbolic Computation](https://discourse.julialang.org/t/achieving-maximum-algebraic-simplification-in-symbolic-computation/127288)

<div class="topic-metadata">

**Author:** [@theo.bruelhart](https://discourse.julialang.org/u/theo.bruelhart)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 8:55pm UTC](https://discourse.julialang.org/t/achieving-maximum-algebraic-simplification-in-symbolic-computation/127288 "2025-03-24T20:55:54Z")

</div>

Observation The result of the mathematical operation (see code section) is not in its simplest algebraic form. Obtained results: \[(1//2)\*√(4y), (-1//2)\*√(4y)\] Expected result: \[√(y), -√(y)\] Question Does anyone have…

---

## [I32 indexing](https://discourse.julialang.org/t/i32-indexing/126702)

<div class="topic-metadata">

**Author:** [@MrBelette](https://discourse.julialang.org/u/MrBelette)\
**Replies:** 8\
**Last updated:** [March 24, 2025, 3:04pm UTC](https://discourse.julialang.org/t/i32-indexing/126702 "2025-03-24T15:04:46Z")

</div>

I’m currently exploring using different precision (fp32, fp64, doublefloat) calculations in the financial domain using RTX 4090 gpus. These gpus have great fp32 performance but fp64 performance isn’t so hot due to there …

---

## [Reading data with 0 row groups](https://discourse.julialang.org/t/reading-data-with-0-row-groups/127318)

<div class="topic-metadata">

**Author:** [@phchavesmaia](https://discourse.julialang.org/u/phchavesmaia)\
**Replies:** 0\
**Last updated:** [March 24, 2025, 7:07pm UTC](https://discourse.julialang.org/t/reading-data-with-0-row-groups/127318 "2025-03-24T19:07:45Z")

</div>

Hello everyone, I am trying to work with big data in Julia. I just exported a .parquet file/folder using python’s dask library and wanted to load it in Julia. It follows a representation of my code using Parquet2: Data…

---

## [Modélisation de la taxe carbone](https://discourse.julialang.org/t/modelisation-de-la-taxe-carbone/127306)

<div class="topic-metadata">

**Author:** [@omar\_diouf](https://discourse.julialang.org/u/omar_diouf)\
**Replies:** 4\
**Last updated:** [March 24, 2025, 4:20pm UTC](https://discourse.julialang.org/t/modelisation-de-la-taxe-carbone/127306 "2025-03-24T16:20:28Z")

</div>

Bonjour cher communauté, je suis nouveau dans julia et j’aimerais avoir un code gams sur la modélisation du secteur de l’énergie afin de faciliter la compréhension du code julia. Merci

---

## [Indirect Dependency on non-registered Package](https://discourse.julialang.org/t/indirect-dependency-on-non-registered-package/127304)

<div class="topic-metadata">

**Author:** [@PatrickHaecker](https://discourse.julialang.org/u/PatrickHaecker)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 3:57pm UTC](https://discourse.julialang.org/t/indirect-dependency-on-non-registered-package/127304 "2025-03-24T15:57:39Z")

</div>

I want to create unregistered package A. A depends on unregistered package B which is in the same Git repository as A (monorepo), so this should not be a problem using develop in the package manager. B depends on the u…

---

## [ERROR: Unable to load dependent library ... libopenlibm.so](https://discourse.julialang.org/t/error-unable-to-load-dependent-library-libopenlibm-so/127308)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [March 24, 2025, 3:38pm UTC](https://discourse.julialang.org/t/error-unable-to-load-dependent-library-libopenlibm-so/127308 "2025-03-24T15:38:32Z")

</div>

I am trying to bisect an issue with Julia, it is fixed in master and present in v11.4. My problem is that if I try to compile anything in the release-1.11 branch, I get an error like ERROR: Unable to load dependent libr…

---

## [What is in your startup.jl?](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 35\
**Last updated:** [March 24, 2025, 3:04pm UTC](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228 "2025-03-24T15:04:00Z")

</div>

I now have a fair bit in my startup.jl I am wondering if anyone else also has cool things. What mine does: Load Revise and OhMyRepl. - installing them if they are not already installed Update all packages - It doe…

---

## [\[ANN\] LikelihoodProfiler.jl Major Upgrade](https://discourse.julialang.org/t/ann-likelihoodprofiler-jl-major-upgrade/127050)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 2:36pm UTC](https://discourse.julialang.org/t/ann-likelihoodprofiler-jl-major-upgrade/127050 "2025-03-24T14:36:45Z")

</div>

Hi everyone, We have released a new version of LikelihoodProfiler.jl, which represents a major redevelopment of the package. In its initial (old) version, LikelihoodProfiler.jl provided a method (CICO) for estimating c…

---

## [How to sample many ordered iid variables in turing](https://discourse.julialang.org/t/how-to-sample-many-ordered-iid-variables-in-turing/127205)

<div class="topic-metadata">

**Author:** [@swsw](https://discourse.julialang.org/u/swsw)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 2:34pm UTC](https://discourse.julialang.org/t/how-to-sample-many-ordered-iid-variables-in-turing/127205 "2025-03-24T14:34:56Z")

</div>

Hi there, I’d like to sample many ordered iid varialbles but i find when the number of samples is large the efficiency gets very low. For the subsequent code it works when the number of variables is 30 or so but not whe…

---

## [Static Array type syntax](https://discourse.julialang.org/t/static-array-type-syntax/21927)

<div class="topic-metadata">

**Author:** [@Alex\_Ellison](https://discourse.julialang.org/u/Alex_Ellison)\
**Replies:** 15\
**Last updated:** [March 24, 2025, 2:01pm UTC](https://discourse.julialang.org/t/static-array-type-syntax/21927 "2025-03-24T14:01:53Z")

</div>

If we look at the documentation for StaticArrays we see this: SArray{S}(a::Array) Construct a statically-sized array of dimensions S (expressed as a Tuple{...} ) using the data from a . The S parameter is mandator…

---

## [Dynamical systems with AbstractArray Interface](https://discourse.julialang.org/t/dynamical-systems-with-abstractarray-interface/127073)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 1:32pm UTC](https://discourse.julialang.org/t/dynamical-systems-with-abstractarray-interface/127073 "2025-03-24T13:32:26Z")

</div>

Dear all, I am interested in a “survey” of which packages, in the context of dynamical systems (Trixi, VoronoiFVM, Gridap…), linear solvers, etc is using AbstractArray as a state space and which one is not. Bifurcation…

---

## [Strange type constructor quirk](https://discourse.julialang.org/t/strange-type-constructor-quirk/127265)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 7\
**Last updated:** [March 24, 2025, 12:26pm UTC](https://discourse.julialang.org/t/strange-type-constructor-quirk/127265 "2025-03-24T12:26:31Z")

</div>

\*Edit: changed title to be more accurate Hi, everyone. So, I\`m not exactly new to julia but this feels like it belongs here as it is quite basic and still puzzles me. Let’s consider the MWE in following code snippet: s…

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

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