# Latest

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

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

**Page:** 281

---

## [TuringGLM random effect variable format requirement](https://discourse.julialang.org/t/turingglm-random-effect-variable-format-requirement/122424)

<div class="topic-metadata">

**Author:** [@Cong](https://discourse.julialang.org/u/Cong)\
**Replies:** 0\
**Last updated:** [November 8, 2024, 4:20pm UTC](https://discourse.julialang.org/t/turingglm-random-effect-variable-format-requirement/122424 "2024-11-08T16:20:08Z")

</div>

I’m using TuringGLM to fit a hierarchical logistic model on my choice data, but kept getting this type FunctionTerm has no field args error which I think complains about the variable type of my random effect variable sub…

---

## [LinearAlgebra.mul! for complex vectors very slow on Apple Silicon](https://discourse.julialang.org/t/linearalgebra-mul-for-complex-vectors-very-slow-on-apple-silicon/122404)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 5\
**Last updated:** [November 8, 2024, 4:00pm UTC](https://discourse.julialang.org/t/linearalgebra-mul-for-complex-vectors-very-slow-on-apple-silicon/122404 "2024-11-08T16:00:06Z")

</div>

I usually run my computations on a Linux workstation via SSH from my MacBook. However, the specs of the recent M4 Macbook Pro would seem to promise rather extreme performance. But, just testing out basic matrix-vector m…

---

## [\[ANN\] JuliaPhysics/ABCDMatrixOptics.jl - Ray Transfer Matrix Analysis](https://discourse.julialang.org/t/ann-juliaphysics-abcdmatrixoptics-jl-ray-transfer-matrix-analysis/104107)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 2:24pm UTC](https://discourse.julialang.org/t/ann-juliaphysics-abcdmatrixoptics-jl-ray-transfer-matrix-analysis/104107 "2024-11-08T14:24:58Z")

</div>

Hi all, ABCDMatrixOptics.jl is small package which implements linear tracing of simple optical systems based on the Ray transfer matrix analysis. The convention of the optical elements is identical to those on Wikipedi…

---

## [gRPC API (community request)](https://discourse.julialang.org/t/grpc-api-community-request/51029)

<div class="topic-metadata">

**Author:** [@mks](https://discourse.julialang.org/u/mks)\
**Replies:** 13\
**Last updated:** [November 8, 2024, 2:11pm UTC](https://discourse.julialang.org/t/grpc-api-community-request/51029 "2024-11-08T14:11:18Z")

</div>

Hello, for a Julia pkg I work on, there is the requirement of a gRPC library. I found the grpc.jl and although the creator has a great reputation, it seems that his time to work on this project is limited, which leads t…

---

## [Animations with multiple procs/threads](https://discourse.julialang.org/t/animations-with-multiple-procs-threads/122418)

<div class="topic-metadata">

**Author:** [@JWRSTZ](https://discourse.julialang.org/u/JWRSTZ)\
**Replies:** 0\
**Last updated:** [November 8, 2024, 1:18pm UTC](https://discourse.julialang.org/t/animations-with-multiple-procs-threads/122418 "2024-11-08T13:18:35Z")

</div>

Hello everyone, I am currently using Julia Plots in order to make some animations of my plots, I’m using the @animate macro for this. Unfortunately it seems like the animation routine is not multithreadable, running the…

---

## [Strange text output from running Julia tests](https://discourse.julialang.org/t/strange-text-output-from-running-julia-tests/122379)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 9\
**Last updated:** [November 8, 2024, 1:02pm UTC](https://discourse.julialang.org/t/strange-text-output-from-running-julia-tests/122379 "2024-11-08T13:02:52Z")

</div>

I’m getting this somewhat mysterious output when running some of my Julia tests. I don’t recall seeing this yesterday. Test.DefaultTestSet("someModule", Any\[\], 8, false, false, true, 1.730981062858112e9, 1.7309810628609…

---

## [Read Gurobi's .sol file format with JuMP](https://discourse.julialang.org/t/read-gurobis-sol-file-format-with-jump/122387)

<div class="topic-metadata">

**Author:** [@Jean\_F](https://discourse.julialang.org/u/Jean_F)\
**Replies:** 5\
**Last updated:** [November 8, 2024, 12:23pm UTC](https://discourse.julialang.org/t/read-gurobis-sol-file-format-with-jump/122387 "2024-11-08T12:23:58Z")

</div>

Is there a way to read with JuMP , a .sol file with as ones produced by Gurobi?

---

## [What does it mean to define a function inside a function? Will this result in additional performance overhead?](https://discourse.julialang.org/t/what-does-it-mean-to-define-a-function-inside-a-function-will-this-result-in-additional-performance-overhead/122409)

<div class="topic-metadata">

**Author:** [@Blumenkranz](https://discourse.julialang.org/u/Blumenkranz)\
**Replies:** 6\
**Last updated:** [November 8, 2024, 11:49am UTC](https://discourse.julialang.org/t/what-does-it-mean-to-define-a-function-inside-a-function-will-this-result-in-additional-performance-overhead/122409 "2024-11-08T11:49:04Z")

</div>

function test\_inner(x,y) x+y end function test\_outer(x,y) return test\_inner(x,y) end function test\_outer2(x,y) function test\_inner2(x,y) x+y end test\_inner2(x,y) end x = 1.;y = 2. @btime test\_…

---

## [Is there a package for monitoring Julia CPU mean usage?](https://discourse.julialang.org/t/is-there-a-package-for-monitoring-julia-cpu-mean-usage/117094)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 2\
**Last updated:** [November 8, 2024, 10:57am UTC](https://discourse.julialang.org/t/is-there-a-package-for-monitoring-julia-cpu-mean-usage/117094 "2024-11-08T10:57:13Z")

</div>

Julia doesn’t seem to exist and thus doesn’t report CPU usage. I do not know if it is an issue related to the .sh script or to Julia Pardon-me if it is not Julia related, and let me know, I’ll ask StackExchange instead. …

---

## [Is it possible to avoid these excess allocations when using @batch or @threads?](https://discourse.julialang.org/t/is-it-possible-to-avoid-these-excess-allocations-when-using-batch-or-threads/122208)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 4\
**Last updated:** [November 8, 2024, 10:37am UTC](https://discourse.julialang.org/t/is-it-possible-to-avoid-these-excess-allocations-when-using-batch-or-threads/122208 "2024-11-08T10:37:37Z")

</div>

It took some effort to come up with a short MWE for this issue. The goal is to avoid a few small allocations when mutating (an argument of an inner function) in parallel: MWEusing BenchmarkTools, Parameters, Polyester, …

---

## [Copy image from VSCODE](https://discourse.julialang.org/t/copy-image-from-vscode/64204)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 9\
**Last updated:** [November 8, 2024, 9:24am UTC](https://discourse.julialang.org/t/copy-image-from-vscode/64204 "2024-11-08T09:24:46Z")

</div>

What is the correct way to copy an image from the edit area, in VSCode? When using the copy command (right click on the image) the image is not copied, to be able to copy it in Word, Paint, …, etc.

---

## [Plots.jl: Plotting a graph such that it has multiple possible values corresponding to a single x value](https://discourse.julialang.org/t/plots-jl-plotting-a-graph-such-that-it-has-multiple-possible-values-corresponding-to-a-single-x-value/122408)

<div class="topic-metadata">

**Author:** [@GiovanniPaiela](https://discourse.julialang.org/u/GiovanniPaiela)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 9:21am UTC](https://discourse.julialang.org/t/plots-jl-plotting-a-graph-such-that-it-has-multiple-possible-values-corresponding-to-a-single-x-value/122408 "2024-11-08T09:21:58Z")

</div>

Say that I have an x and y dimensions. The value of y however, can have 2 possible values for a single x. How would one go about plotting such thing? So far I have tried defining y as an array of 2-element tuples and pl…

---

## [Number of plots in makie Axis object](https://discourse.julialang.org/t/number-of-plots-in-makie-axis-object/122337)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 3\
**Last updated:** [November 8, 2024, 5:47am UTC](https://discourse.julialang.org/t/number-of-plots-in-makie-axis-object/122337 "2024-11-08T05:47:29Z")

</div>

Using makie, if we type the name of an Axis object in the repl, we get something like: Axis with 2 plots: ┣━ Scatter{Tuple{Vector{Point{2, Float64}}}} ┗━ Lines{Tuple{Vector{Point{2, Float64}}}} Is there a way to get …

---

## [How to know when objects are stack or heap allocated](https://discourse.julialang.org/t/how-to-know-when-objects-are-stack-or-heap-allocated/103056)

<div class="topic-metadata">

**Author:** [@opiateblush](https://discourse.julialang.org/u/opiateblush)\
**Replies:** 7\
**Last updated:** [November 8, 2024, 1:12am UTC](https://discourse.julialang.org/t/how-to-know-when-objects-are-stack-or-heap-allocated/103056 "2024-11-08T01:12:20Z")

</div>

I’m currently writing some performance critical code and got a bit confused about stack and heap allocation in Julia. I thought that immutables are usually stack allocated but apparently that is not the case. I’ve made a…

---

## [Preferred implementation of a lookup table](https://discourse.julialang.org/t/preferred-implementation-of-a-lookup-table/116267)

<div class="topic-metadata">

**Author:** [@Matthijs\_1971](https://discourse.julialang.org/u/Matthijs_1971)\
**Replies:** 10\
**Last updated:** [November 6, 2024, 11:45pm UTC](https://discourse.julialang.org/t/preferred-implementation-of-a-lookup-table/116267 "2024-11-06T23:45:37Z")

</div>

Here is some code that studies performances of some implementations of effectively a lookup table. #!/usr/bin/env julia import BenchmarkTools module Enums @enum COLORS begin RED GREEN BLUE …

---

## [Using OrdinaryDiffEQ Integrator interface for split step](https://discourse.julialang.org/t/using-ordinarydiffeq-integrator-interface-for-split-step/122313)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 12\
**Last updated:** [November 7, 2024, 11:06pm UTC](https://discourse.julialang.org/t/using-ordinarydiffeq-integrator-interface-for-split-step/122313 "2024-11-07T23:06:20Z")

</div>

hi all, Looking to see if someone can help me out. Currently working with Trixi.jl and it’s great. However, because it’s fairly new, there are some things that have not been implemented. For example, handling nonlinear…

---

## [Need help using ForwardDiff gradient with numerical loop](https://discourse.julialang.org/t/need-help-using-forwarddiff-gradient-with-numerical-loop/122352)

<div class="topic-metadata">

**Author:** [@dameka](https://discourse.julialang.org/u/dameka)\
**Replies:** 11\
**Last updated:** [November 7, 2024, 10:55pm UTC](https://discourse.julialang.org/t/need-help-using-forwarddiff-gradient-with-numerical-loop/122352 "2024-11-07T22:55:28Z")

</div>

I’m testing ways to get the gradient of a function which at its core is a numerical loop. I’m trying to use ForwardDiff currently to see if it’s any faster than Zygote reverse diff. I can’t get ForwardDiff to perform AD …

---

## [GLMakie saving Axis](https://discourse.julialang.org/t/glmakie-saving-axis/122358)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 9\
**Last updated:** [November 7, 2024, 9:56pm UTC](https://discourse.julialang.org/t/glmakie-saving-axis/122358 "2024-11-07T21:56:09Z")

</div>

I have a complex figure with several Axis and I want to save an image of just one Axis. One of the Axis is named SpreadGrid\_ax and I have tried… FileIO.save("SpreadGrid\_ax.png", SpreadGrid\_ax.scene; size = size(SpreadG…

---

## [Best practice code generation](https://discourse.julialang.org/t/best-practice-code-generation/122384)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [November 7, 2024, 8:16pm UTC](https://discourse.julialang.org/t/best-practice-code-generation/122384 "2024-11-07T20:16:21Z")

</div>

I want to auto-generate some structs and functions of my package KiteUtils.jl. As input I have a .yaml file. I have a file build.jl that creates a few files that are then included in the package. How can I achieve that …

---

## [GSA with the Sobol method for steady-state solution error](https://discourse.julialang.org/t/gsa-with-the-sobol-method-for-steady-state-solution-error/122264)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 4\
**Last updated:** [November 7, 2024, 6:04pm UTC](https://discourse.julialang.org/t/gsa-with-the-sobol-method-for-steady-state-solution-error/122264 "2024-11-07T18:04:36Z")

</div>

I perform GSA with the Sobol method for a system of ODEs for steady-state but I get the following error: ERROR: TaskFailedException nested task error: MethodError: Cannot \`convert\` an object of type Vector{Float64} to…

---

## [Creating the instance of a function type](https://discourse.julialang.org/t/creating-the-instance-of-a-function-type/122355)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 13\
**Last updated:** [November 7, 2024, 3:53pm UTC](https://discourse.julialang.org/t/creating-the-instance-of-a-function-type/122355 "2024-11-07T15:53:41Z")

</div>

The type of a standard Julia function f is typeof(f), which is a singleton. julia\> function f end f (generic function with 0 methods) julia\> typeof(f) typeof(f) (singleton type of function f, subtype of Function) But …

---

## [Spooky allocations - linked to Varargs?](https://discourse.julialang.org/t/spooky-allocations-linked-to-varargs/122373)

<div class="topic-metadata">

**Author:** [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Replies:** 8\
**Last updated:** [November 7, 2024, 4:31pm UTC](https://discourse.julialang.org/t/spooky-allocations-linked-to-varargs/122373 "2024-11-07T16:31:24Z")

</div>

Hi folks, today I found a strange behavior that eludes my understanding. Would someone please tell me where the allocations are coming from in this example? I am probably overlooking something but I have been staring at…

---

## [Better way to have "filled" ranges?](https://discourse.julialang.org/t/better-way-to-have-filled-ranges/122383)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 4:11pm UTC](https://discourse.julialang.org/t/better-way-to-have-filled-ranges/122383 "2024-11-07T16:11:26Z")

</div>

Is there a better (more elegant) way of the one below in order to obtain a vector representing ranges filled with the first element of the range ? years = collect(2000:2019) step = 5 desired\_res = \[2000,2000,2000,2000,…

---

## [Status of WebAssembly (for Julia), e.g. threads and GC](https://discourse.julialang.org/t/status-of-webassembly-for-julia-e-g-threads-and-gc/89331)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [November 7, 2024, 2:45pm UTC](https://discourse.julialang.org/t/status-of-webassembly-for-julia-e-g-threads-and-gc/89331 "2024-11-07T14:45:48Z")

</div>

I see threads are going up to Phase 3 - Implementation Phase (where GC already is): proposals/README.md at d2f6ce711249d37fc21a8933de1f7903cb521302 · WebAssembly/proposals · GitHub It’s not done but both would help Juli…

---

## [I want to read files with mingw64 in pluto notebooks](https://discourse.julialang.org/t/i-want-to-read-files-with-mingw64-in-pluto-notebooks/122343)

<div class="topic-metadata">

**Author:** [@selinguler94](https://discourse.julialang.org/u/selinguler94)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 3:46pm UTC](https://discourse.julialang.org/t/i-want-to-read-files-with-mingw64-in-pluto-notebooks/122343 "2024-11-07T15:46:45Z")

</div>

output = read(mingw64 $FORTRANexe, String) I tried this but it doesn’t work. I am a windows user and I am trying to execute some fortran files in pluto, so I need mingw64. I failed to do it with wsl too, I’m starting to…

---

## [Random numbers, with MersenneTwister, not stable across major releases](https://discourse.julialang.org/t/random-numbers-with-mersennetwister-not-stable-across-major-releases/122284)

<div class="topic-metadata">

**Author:** [@leolo](https://discourse.julialang.org/u/leolo)\
**Replies:** 8\
**Last updated:** [November 7, 2024, 3:24pm UTC](https://discourse.julialang.org/t/random-numbers-with-mersennetwister-not-stable-across-major-releases/122284 "2024-11-07T15:24:13Z")

</div>

Hi, after updating to Julia 1.11, I have an issue with a random number sequence that changed. using Random rng = Random.MersenneTwister(42) v = rng.rand(10) println(v) This gives different results under 1.10.2 and 1.11…

---

## [Is there a way to get a UnionAll base type from a concrete type?](https://discourse.julialang.org/t/is-there-a-way-to-get-a-unionall-base-type-from-a-concrete-type/122328)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 15\
**Last updated:** [November 7, 2024, 2:02pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-get-a-unionall-base-type-from-a-concrete-type/122328 "2024-11-07T14:02:19Z")

</div>

I ran into a minor obstacle where I needed the UnionAll base type of a value, but I couldn’t figure out how to do it (without explicit isa checks). I.e., julia\> p = :a =\> 1 :a =\> 1 julia\> typeof(p) Pair{Symbol, Int64} …

---

## [Implementation of Periodic Boundary Conditions](https://discourse.julialang.org/t/implementation-of-periodic-boundary-conditions/122318)

<div class="topic-metadata">

**Author:** [@priyanshuFSI](https://discourse.julialang.org/u/priyanshuFSI)\
**Replies:** 10\
**Last updated:** [November 7, 2024, 1:51pm UTC](https://discourse.julialang.org/t/implementation-of-periodic-boundary-conditions/122318 "2024-11-07T13:51:39Z")

</div>

Hi, I am writing my Finite Element Solver for CFD simulations. I encounter a what should be like an easy problem but I cant figure out how to do it. In my code, I want to account for periodic boundary conditions. For th…

---

## [Plotting on Raspberry Pi](https://discourse.julialang.org/t/plotting-on-raspberry-pi/24122)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 7\
**Last updated:** [November 7, 2024, 1:47pm UTC](https://discourse.julialang.org/t/plotting-on-raspberry-pi/24122 "2024-11-07T13:47:56Z")

</div>

Hi, I’m exploring the use of Julia for prototyping of embedded systems on Raspberry Pi (yes, that’s a bit of a niche) and would like to know if anyone has plotting working (other than UnicodePlots) on the Raspberry Pi. I…

---

## [AC Optimal Power Flow in Various Nonlinear Optimization Frameworks](https://discourse.julialang.org/t/ac-optimal-power-flow-in-various-nonlinear-optimization-frameworks/78486)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 101\
**Last updated:** [November 7, 2024, 1:12pm UTC](https://discourse.julialang.org/t/ac-optimal-power-flow-in-various-nonlinear-optimization-frameworks/78486 "2024-11-07T13:12:00Z")

</div>

As a follow up to my NLP modeling survey post, I am please to announce the release of the Rosetta OPF project. The goal of this project is to highlight the basic technical requirements for solving the kinds of continuous…

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

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