# Latest

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

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

**Page:** 588

---

## [Language server broken?](https://discourse.julialang.org/t/language-server-broken/104071)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 13\
**Last updated:** [September 29, 2023, 3:12pm UTC](https://discourse.julialang.org/t/language-server-broken/104071 "2023-09-29T15:12:43Z")

</div>

Hi everyone, since today the language server seems to be broken for me. After running julia for a short time it becomes unresponsive. In the output of the Julia language server there are a stack overflow errors: \[ Info…

---

## [Problem fitting a State-space model with matrices in RxInfer.jl](https://discourse.julialang.org/t/problem-fitting-a-state-space-model-with-matrices-in-rxinfer-jl/104400)

<div class="topic-metadata">

**Author:** [@grafaelw](https://discourse.julialang.org/u/grafaelw)\
**Replies:** 0\
**Last updated:** [September 29, 2023, 2:17pm UTC](https://discourse.julialang.org/t/problem-fitting-a-state-space-model-with-matrices-in-rxinfer-jl/104400 "2023-09-29T14:17:49Z")

</div>

Hi everyone, I am trying to recreate a paper from J. Luttinen as follows https://users.ics.aalto.fi/jluttine/ecml2013/ . However, I am having some difficulties to infer A and C matrices due to following reason: It c…

---

## [Faster sum loop when looping through vector multiple times than once](https://discourse.julialang.org/t/faster-sum-loop-when-looping-through-vector-multiple-times-than-once/104388)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 5\
**Last updated:** [September 29, 2023, 1:47pm UTC](https://discourse.julialang.org/t/faster-sum-loop-when-looping-through-vector-multiple-times-than-once/104388 "2023-09-29T13:47:39Z")

</div>

I was benchmarking different ways of summing a matrix by its second dimension and I got some surprising results (for me) when doing it through a for loop. I had thought that in general the loop would be faster if the in…

---

## [\`NaN\` in Statistical Hypothesis Testing](https://discourse.julialang.org/t/nan-in-statistical-hypothesis-testing/104380)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [September 29, 2023, 1:15pm UTC](https://discourse.julialang.org/t/nan-in-statistical-hypothesis-testing/104380 "2023-09-29T13:15:20Z")

</div>

How can we ignore missing values or NaN during testing? A = \[0.1, NaN, 0.16\] B = \[1.0, 0.9, 0.82\] EqualVarianceTTest(A, B) output: Two sample t-test (equal variance) ---------------------------------- Population deta…

---

## [How not to concatenate in hvcat](https://discourse.julialang.org/t/how-not-to-concatenate-in-hvcat/104146)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [September 29, 2023, 12:23pm UTC](https://discourse.julialang.org/t/how-not-to-concatenate-in-hvcat/104146 "2023-09-29T12:23:22Z")

</div>

Is there a way one can use the \[...; ...\] syntax which lowers to hvcat without concatenating the arguments? Ie as a plain vanilla matrix constructor. Eg julia\> \[\[1\] \[2\]; \[3\] \[4\]\] 2×2 Matrix{Int64}: 1 2 3 4 c…

---

## [Control of an ODE using neural network](https://discourse.julialang.org/t/control-of-an-ode-using-neural-network/101206)

<div class="topic-metadata">

**Author:** [@SanAlphaTau](https://discourse.julialang.org/u/SanAlphaTau)\
**Replies:** 3\
**Last updated:** [September 29, 2023, 12:33pm UTC](https://discourse.julialang.org/t/control-of-an-ode-using-neural-network/101206 "2023-09-29T12:33:33Z")

</div>

I recall previous diffeqflux.jl docs having an example of how to train a neural network as a control of a ODE. Essentially subbing the control term for a neural network call. https://docs.juliahub.com/DiffEqFlux/BdO4p/1…

---

## [Help in introduction to julia course](https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379)

<div class="topic-metadata">

**Author:** [@bagge](https://discourse.julialang.org/u/bagge)\
**Replies:** 2\
**Last updated:** [September 29, 2023, 8:00am UTC](https://discourse.julialang.org/t/help-in-introduction-to-julia-course/104379 "2023-09-29T08:00:49Z")

</div>

Hi. In the plotting exercise 8.1 I get an error method I do not understand. Exercises 8.1 Given x = -10:10 plot y vs. x for y = x² When I try the following I get an error: x = -10:10 y = x ^ 2 MethodError: no meth…

---

## [How to save the plot object in file instead of a jpg figure?](https://discourse.julialang.org/t/how-to-save-the-plot-object-in-file-instead-of-a-jpg-figure/93130)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 5\
**Last updated:** [September 29, 2023, 7:45am UTC](https://discourse.julialang.org/t/how-to-save-the-plot-object-in-file-instead-of-a-jpg-figure/93130 "2023-09-29T07:45:29Z")

</div>

Hi, I know that saving the code and data is the best way to reproduce scientific figures, but sometimes I also want to save the figure objects for future modify;like changing the colour scheme, adding text annotations o…

---

## [Hessian of function involving integration of ODE](https://discourse.julialang.org/t/hessian-of-function-involving-integration-of-ode/104339)

<div class="topic-metadata">

**Author:** [@Stefano\_Giampiccolo](https://discourse.julialang.org/u/Stefano_Giampiccolo)\
**Replies:** 2\
**Last updated:** [September 29, 2023, 7:12am UTC](https://discourse.julialang.org/t/hessian-of-function-involving-integration-of-ode/104339 "2023-09-29T07:12:04Z")

</div>

Hi all, I apologize if it’s a possibly stupid question, but I am trying to calculate the Hessian of a function that internally performs the integration of a differential equation. What I am currently doing is this: usi…

---

## [Cholesky with sparse matrices](https://discourse.julialang.org/t/cholesky-with-sparse-matrices/72494)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [September 29, 2023, 6:31am UTC](https://discourse.julialang.org/t/cholesky-with-sparse-matrices/72494 "2023-09-29T06:31:02Z")

</div>

Should the following example work? julia\> using LinearAlgebra julia\> using SparseArrays julia\> # 10x10 sparse matrix A = sprand(10, 10, 1.0) 10×10 SparseMatrixCSC{Float64, Int64} with 100 stored entries: 0.904…

---

## [Running 'scatter' from withing a function does nothing](https://discourse.julialang.org/t/running-scatter-from-withing-a-function-does-nothing/104366)

<div class="topic-metadata">

**Author:** [@ollie\_d](https://discourse.julialang.org/u/ollie_d)\
**Replies:** 8\
**Last updated:** [September 29, 2023, 4:48am UTC](https://discourse.julialang.org/t/running-scatter-from-withing-a-function-does-nothing/104366 "2023-09-29T04:48:24Z")

</div>

I’ve made a function to start my simulation. If I run the line scatter(x,y) outside of the function it works fine and new dots appear. Within the function it runs but nothing appears. Do I always have to start the plot f…

---

## [How to remove image scales() from GLMakie?](https://discourse.julialang.org/t/how-to-remove-image-scales-from-glmakie/104372)

<div class="topic-metadata">

**Author:** [@Luis\_Manuel\_Espinoza](https://discourse.julialang.org/u/Luis_Manuel_Espinoza)\
**Replies:** 1\
**Last updated:** [September 29, 2023, 3:10am UTC](https://discourse.julialang.org/t/how-to-remove-image-scales-from-glmakie/104372 "2023-09-29T03:10:17Z")

</div>

I have the following question, I am putting together some images with GLMakie but I do not have much experience with packaging, but I would like to remove the graduated sides around the images but I do not know how to do…

---

## [Anyone has experiences issues with Mac OS Sonoma 14.0?](https://discourse.julialang.org/t/anyone-has-experiences-issues-with-mac-os-sonoma-14-0/104276)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 3\
**Last updated:** [September 29, 2023, 2:50am UTC](https://discourse.julialang.org/t/anyone-has-experiences-issues-with-mac-os-sonoma-14-0/104276 "2023-09-29T02:50:54Z")

</div>

I’m tempted to upgrade to Mac OS Sonoma 14.0. Is that a good idea? Does anyone experience any Julia issues with the new OS? Thanks

---

## [Unexpected behavior of loop over set](https://discourse.julialang.org/t/unexpected-behavior-of-loop-over-set/104371)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 1\
**Last updated:** [September 29, 2023, 1:34am UTC](https://discourse.julialang.org/t/unexpected-behavior-of-loop-over-set/104371 "2023-09-29T01:34:09Z")

</div>

I have the following (minimized, but perhaps not minimal) code snippet which is intended to group nodes of graph components. The surprising thing is that it seems to imply that elements of a set are not in the set. ns …

---

## [Bell shaped?](https://discourse.julialang.org/t/bell-shaped/104362)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 14\
**Last updated:** [September 28, 2023, 11:07pm UTC](https://discourse.julialang.org/t/bell-shaped/104362 "2023-09-28T23:07:37Z")

</div>

Not a specific question about julia, but I’m sure someone can help me get a correct idea about the following problem. I know that the average tax applied in the various US states on the price of cigarettes is mu=73cents…

---

## [MKLPardiso and Julia GC seg faults](https://discourse.julialang.org/t/mklpardiso-and-julia-gc-seg-faults/104368)

<div class="topic-metadata">

**Author:** [@jdlara-berkeley](https://discourse.julialang.org/u/jdlara-berkeley)\
**Replies:** 0\
**Last updated:** [September 28, 2023, 9:26pm UTC](https://discourse.julialang.org/t/mklpardiso-and-julia-gc-seg-faults/104368 "2023-09-28T21:26:45Z")

</div>

I have been using Pardiso.jl 0.5.4 to solve large linear systems of equations with many RHS (80k x 80k). From time to time depending on the size of the system and wether Julia calls GarbageCollect then it will create a s…

---

## [StackOverflowError() with ModellingToolkit.jl and NaNMath.jl](https://discourse.julialang.org/t/stackoverflowerror-with-modellingtoolkit-jl-and-nanmath-jl/104364)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 6\
**Last updated:** [September 28, 2023, 9:04pm UTC](https://discourse.julialang.org/t/stackoverflowerror-with-modellingtoolkit-jl-and-nanmath-jl/104364 "2023-09-28T21:04:36Z")

</div>

The following code results in a StackOverflowError() in Julia 1.9. Is this expected behavior? using ModelingToolkit using NaNMath #Define Problem @variables t g(t) π(t) r(t) @parameters α\_g α\_π α\_r κ\_g κ\_π κ\_r ϕ\_g ϕ\_π…

---

## [Use ProgressMeter to track an increasing real value?](https://discourse.julialang.org/t/use-progressmeter-to-track-an-increasing-real-value/104361)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 2\
**Last updated:** [September 28, 2023, 8:32pm UTC](https://discourse.julialang.org/t/use-progressmeter-to-track-an-increasing-real-value/104361 "2023-09-28T20:32:28Z")

</div>

I have a calculation which takes an unknown number of steps to increase a real value x from 0.0 to some user-specified target value xmax \> 0.0. I want to use ProgressMeter to show the progress but none of progressmeter…

---

## [Release announcements for DataFrames.jl](https://discourse.julialang.org/t/release-announcements-for-dataframes-jl/18258)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 186\
**Last updated:** [September 28, 2023, 8:26pm UTC](https://discourse.julialang.org/t/release-announcements-for-dataframes-jl/18258 "2023-09-28T20:26:39Z")

</div>

@nalimilan has just tagged the DataFrames.jl package release v0.15.0. It contains many major changes, in particular a significant improvement of split-apply-combine family of functions - both in terms of speed and usabi…

---

## [Julia command line evaluation with string in the expression](https://discourse.julialang.org/t/julia-command-line-evaluation-with-string-in-the-expression/104333)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 8\
**Last updated:** [September 28, 2023, 6:55pm UTC](https://discourse.julialang.org/t/julia-command-line-evaluation-with-string-in-the-expression/104333 "2023-09-28T18:55:54Z")

</div>

I am using PowerShell on Windows. Did not figure out how I can include a string in the expression when evaluating it in the command line. Examples: PS F:\\WJ\\SmartPark\\CMS\\code\\COPT\_HTTP\> julia -e 'x = 123' PS F:\\WJ\\Sm…

---

## [\`+\` not defined!?](https://discourse.julialang.org/t/not-defined/104288)

<div class="topic-metadata">

**Author:** [@ollie\_d](https://discourse.julialang.org/u/ollie_d)\
**Replies:** 9\
**Last updated:** [September 28, 2023, 6:39pm UTC](https://discourse.julialang.org/t/not-defined/104288 "2023-09-28T18:39:02Z")

</div>

I’m new to Julia but this error message has me thinking its not even worth trying. This code: using Plots x= 2.0 y=9.0 dx = 0.1 dy = -0.1 plot((x,y), xlim = (0,10.0), ylim = (0,10.0), markershape=:o) function u…

---

## [Design pattern with enums with some overlapping elements?](https://discourse.julialang.org/t/design-pattern-with-enums-with-some-overlapping-elements/104363)

<div class="topic-metadata">

**Author:** [@myersm0](https://discourse.julialang.org/u/myersm0)\
**Replies:** 0\
**Last updated:** [September 28, 2023, 6:27pm UTC](https://discourse.julialang.org/t/design-pattern-with-enums-with-some-overlapping-elements/104363 "2023-09-28T18:27:33Z")

</div>

I would appreciate it if anyone has any advice on elegantly handling this design problem: I’m writing a package for visualization of some custom types with GLMakie for a specific domain. In the domain, there are several…

---

## [Multithreading increases memory allocations](https://discourse.julialang.org/t/multithreading-increases-memory-allocations/104355)

<div class="topic-metadata">

**Author:** [@Alberto\_Roman](https://discourse.julialang.org/u/Alberto_Roman)\
**Replies:** 3\
**Last updated:** [September 28, 2023, 5:56pm UTC](https://discourse.julialang.org/t/multithreading-increases-memory-allocations/104355 "2023-09-28T17:56:59Z")

</div>

Hi there, I am trying to understand why the number of memory allocations increases with multi threading. I have the following code computing the difference of a vector (it is basically the diff function) ‘’’ function…

---

## [Getting started with HPC and Julia](https://discourse.julialang.org/t/getting-started-with-hpc-and-julia/104213)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.julialang.org/u/kerim)\
**Replies:** 23\
**Last updated:** [September 28, 2023, 4:56pm UTC](https://discourse.julialang.org/t/getting-started-with-hpc-and-julia/104213 "2023-09-28T16:56:23Z")

</div>

Hi, I’ve built small cluster (master node and 4 other nodes) on the cloud and now I need to check whether Julia Distributed is able to use it. Setup: Julia dirpath: ~/julia - all the nodes have it Single shared folde…

---

## [I am seeing strange behavior in NLsolve package. Mutating function is not working](https://discourse.julialang.org/t/i-am-seeing-strange-behavior-in-nlsolve-package-mutating-function-is-not-working/104359)

<div class="topic-metadata">

**Author:** [@Shashank](https://discourse.julialang.org/u/Shashank)\
**Replies:** 2\
**Last updated:** [September 28, 2023, 4:45pm UTC](https://discourse.julialang.org/t/i-am-seeing-strange-behavior-in-nlsolve-package-mutating-function-is-not-working/104359 "2023-09-28T16:45:57Z")

</div>

I am trying to optimize a function that has several contributions. So I need to add several terms to it, but when I pass that function to nlsolve I am getting strange results. I have reproduced a minimal example that rep…

---

## [Why is sum slower than multiplying by vector of ones?](https://discourse.julialang.org/t/why-is-sum-slower-than-multiplying-by-vector-of-ones/104347)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 4\
**Last updated:** [September 28, 2023, 2:05pm UTC](https://discourse.julialang.org/t/why-is-sum-slower-than-multiplying-by-vector-of-ones/104347 "2023-09-28T14:05:04Z")

</div>

So when I try to sum a 10000 x 100 matrix x on its second dimension, using sum(x, dims=2), it takes about 200 microseconds. If I instead do x \* ones(100), this takes only 40 microseconds. What gives? Here’s the full cod…

---

## [Performance comparison, Julia is a slower than Mojo, am I doing something wrong?](https://discourse.julialang.org/t/performance-comparison-julia-is-a-slower-than-mojo-am-i-doing-something-wrong/103870)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 44\
**Last updated:** [September 28, 2023, 1:10pm UTC](https://discourse.julialang.org/t/performance-comparison-julia-is-a-slower-than-mojo-am-i-doing-something-wrong/103870 "2023-09-28T13:10:00Z")

</div>

I am using fibonacci function to the compare the performance between Julia and Mojo. First Julia code: function fib(n::Int64)::Int64 n \<= 2 && return 1 n == 3 && return 2 fib(n - 1) + fib(n - 2) end @time …

---

## [\[Pre-ANN\] JuliaPackageComparisons](https://discourse.julialang.org/t/pre-ann-juliapackagecomparisons/103567)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 22\
**Last updated:** [September 28, 2023, 11:56am UTC](https://discourse.julialang.org/t/pre-ann-juliapackagecomparisons/103567 "2023-09-28T11:56:04Z")

</div>

Edit: New repository. Hello Julia community! I just created a repository to host a vision I have had for a long time: JuliaPackageComparisons The goal of the repository is to create a canonical and updated web resource…

---

## [Washington DC or Northern Virginia Meetups in 2023?](https://discourse.julialang.org/t/washington-dc-or-northern-virginia-meetups-in-2023/104342)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [September 28, 2023, 10:36am UTC](https://discourse.julialang.org/t/washington-dc-or-northern-virginia-meetups-in-2023/104342 "2023-09-28T10:36:52Z")

</div>

Would anyone be interested in Washington DC or Northern Virginia Julia Meetups?

---

## [Size-hinted array declarations](https://discourse.julialang.org/t/size-hinted-array-declarations/100935)

<div class="topic-metadata">

**Author:** [@jonniedie](https://discourse.julialang.org/u/jonniedie)\
**Replies:** 6\
**Last updated:** [September 28, 2023, 10:20am UTC](https://discourse.julialang.org/t/size-hinted-array-declarations/100935 "2023-09-28T10:20:49Z")

</div>

The common way of declaring size-hinted arrays for more efficient append!/push!/etc. seems to be x = SomeElementType\[\] sizehint!(x, expected\_size) But the sizehint! induces an extra allocation. Is there a way to avoid …

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

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