# Latest

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

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

**Page:** 369

---

## [\[ANN\] Spehulak.jl: Spy on your GenAI models](https://discourse.julialang.org/t/ann-spehulak-jl-spy-on-your-genai-models/116751)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 0\
**Last updated:** [July 8, 2024, 7:02am UTC](https://discourse.julialang.org/t/ann-spehulak-jl-spy-on-your-genai-models/116751 "2024-07-08T07:02:45Z")

</div>

Introducing Spehulak.jl: Spy on your GenAI models. We’re excited to announce the arrival of Spehulak.jl, a package designed to help you understand what’s happening inside your GenAI model and it’s fully integrated Promp…

---

## [@everywhere works, sort of](https://discourse.julialang.org/t/everywhere-works-sort-of/116746)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 6:29am UTC](https://discourse.julialang.org/t/everywhere-works-sort-of/116746 "2024-07-08T06:29:36Z")

</div>

I am working on setting up a parallel code, and I am putting in one piece at a time to make sure I actually understand how to do this properly. Primarily, I put the following piece of code in to Julia on the front end o…

---

## [Is it possible to run Julia / Turing sampling with multicores without using the command line or the env file](https://discourse.julialang.org/t/is-it-possible-to-run-julia-turing-sampling-with-multicores-without-using-the-command-line-or-the-env-file/116720)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 1\
**Last updated:** [July 8, 2024, 2:01am UTC](https://discourse.julialang.org/t/is-it-possible-to-run-julia-turing-sampling-with-multicores-without-using-the-command-line-or-the-env-file/116720 "2024-07-08T02:01:56Z")

</div>

Might be a silly question, but I am wondering if it is possible to run MCMC sampling from a Turing model using the multiple cores of the CPU without having to start Julia in a particular way / setting environment variabl…

---

## [DataInterpolations.jl and Zygote.jl](https://discourse.julialang.org/t/datainterpolations-jl-and-zygote-jl/113208)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 18\
**Last updated:** [July 8, 2024, 12:30am UTC](https://discourse.julialang.org/t/datainterpolations-jl-and-zygote-jl/113208 "2024-07-08T00:30:49Z")

</div>

Hi everyone, I am trying to differentiate through an interpolation (as offered by DataInterpolations.jl. Here is a MWE x = Array(LinRange(0,10,101)) a = 1 b = 2 c = 3 p(a,b,c) = a.+b.\*x.+c.\*x.^2 gradient(b -\> sum(p(a,b…

---

## [Ensuring certain outputs in an ODE problem reach steady state](https://discourse.julialang.org/t/ensuring-certain-outputs-in-an-ode-problem-reach-steady-state/116610)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 4\
**Last updated:** [July 7, 2024, 11:31pm UTC](https://discourse.julialang.org/t/ensuring-certain-outputs-in-an-ode-problem-reach-steady-state/116610 "2024-07-07T23:31:19Z")

</div>

I am interested in ensuring that certain outputs in an ODE problem reach a steady state except for a few because they follow an oscillatory behavior. I am familiar with the SteadyStateProblem but in my case does not work…

---

## [Quick question about ExcelFiles.jl](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962)

<div class="topic-metadata">

**Author:** [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)\
**Replies:** 6\
**Last updated:** [July 7, 2024, 9:30pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962 "2024-07-07T21:30:58Z")

</div>

Does anybody know if it’s possible to use ExcelFiles.jl to save multiple sheets to a single xlsx file? I have 3 DataFrames that I would like to save as 3 separate sheets in a xlsx file.

---

## [Dispatching on values with constraints](https://discourse.julialang.org/t/dispatching-on-values-with-constraints/116716)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 2\
**Last updated:** [July 7, 2024, 3:33pm UTC](https://discourse.julialang.org/t/dispatching-on-values-with-constraints/116716 "2024-07-07T15:33:54Z")

</div>

Within a where expression, I can create upper bounds on types with \<: Array{T} where {T\<:Real} I am just wondering if it will ever be possible to use :: or isa within where expressions to dispatch on type parameter val…

---

## [MethodError: no method matching (::Base.RedirectStdStream)(::IOBuffer)](https://discourse.julialang.org/t/methoderror-no-method-matching-base-redirectstdstream-iobuffer/116725)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 0\
**Last updated:** [July 7, 2024, 3:10pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-base-redirectstdstream-iobuffer/116725 "2024-07-07T15:10:13Z")

</div>

couldn’t find anything about this using googling Does anyone know, why redirect\_stdout cannot be used with IOBuffer? Is there a simple workarond?

---

## [PackageCompiler crash after 6 hours of compilation, seemingly running out of memory](https://discourse.julialang.org/t/packagecompiler-crash-after-6-hours-of-compilation-seemingly-running-out-of-memory/115711)

<div class="topic-metadata">

**Author:** [@ErikBuer](https://discourse.julialang.org/u/ErikBuer)\
**Replies:** 3\
**Last updated:** [July 7, 2024, 2:08pm UTC](https://discourse.julialang.org/t/packagecompiler-crash-after-6-hours-of-compilation-seemingly-running-out-of-memory/115711 "2024-07-07T14:08:06Z")

</div>

Hi. I am attempting to build an application with create\_app that will run on a Raspberry Pi 5 (8 GB RAM). I am therefore also compiling my application on the PI. The PI is running the latest Rasbian and is a 64-bit devi…

---

## [Progress bar on reading a compressed file](https://discourse.julialang.org/t/progress-bar-on-reading-a-compressed-file/116717)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 3\
**Last updated:** [July 7, 2024, 1:50pm UTC](https://discourse.julialang.org/t/progress-bar-on-reading-a-compressed-file/116717 "2024-07-07T13:50:32Z")

</div>

I’m trying to have a progress bar (like ProgressMeter.jl) on reading a file. The file might or might not be compressed and a priori the only thing I know is the total number of bytes of the file. Right now I have open(…

---

## [HyperTuning.jl with multiple GPUs](https://discourse.julialang.org/t/hypertuning-jl-with-multiple-gpus/116721)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 0\
**Last updated:** [July 7, 2024, 1:44pm UTC](https://discourse.julialang.org/t/hypertuning-jl-with-multiple-gpus/116721 "2024-07-07T13:44:00Z")

</div>

Cheers, I’m working with a machine with two GPUs. The search execution process in parallel for the package is pretty much straightforward and runs smoothly, except for the fact that multiple threads are executed on a si…

---

## [Threads.@threads does not work properly](https://discourse.julialang.org/t/threads-threads-does-not-work-properly/116701)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 6\
**Last updated:** [July 7, 2024, 12:58pm UTC](https://discourse.julialang.org/t/threads-threads-does-not-work-properly/116701 "2024-07-07T12:58:06Z")

</div>

Hi everyone, for the first time I am trying to exploit multi-threading in Julia. However, it seems I am doing some rookie mistake, since it does not work. I am running this very simple code (not a MWE) t = 0.0 ℓ = 1000…

---

## [Summing a vector is faster than summing a multi-dimensional array of the same length using CUDA](https://discourse.julialang.org/t/summing-a-vector-is-faster-than-summing-a-multi-dimensional-array-of-the-same-length-using-cuda/116711)

<div class="topic-metadata">

**Author:** [@lance\_xwq](https://discourse.julialang.org/u/lance_xwq)\
**Replies:** 2\
**Last updated:** [July 7, 2024, 9:32am UTC](https://discourse.julialang.org/t/summing-a-vector-is-faster-than-summing-a-multi-dimensional-array-of-the-same-length-using-cuda/116711 "2024-07-07T09:32:40Z")

</div>

A MWE: using BenchmarkTools using CUDA CUDA.allowscalar(false) function foo(dims) x = rand(Float32, dims) print("\\nCPU sum: ") @btime sum($x) print("CPU vec + sum: ") @btime sum(vec($x)) y = C…

---

## [Details about the blocks after symmetry reduction or Wedderburn decomposition](https://discourse.julialang.org/t/details-about-the-blocks-after-symmetry-reduction-or-wedderburn-decomposition/116687)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 3\
**Last updated:** [July 7, 2024, 6:49am UTC](https://discourse.julialang.org/t/details-about-the-blocks-after-symmetry-reduction-or-wedderburn-decomposition/116687 "2024-07-07T06:49:01Z")

</div>

For each irreducible representation, I want to know its degree and the number of times it occurs in the Wedderburn decomposition of the underlying algebra of equivariant maps using SymbolicWedderburn.jl . I also want to …

---

## [Sports Data in Julia](https://discourse.julialang.org/t/sports-data-in-julia/115384)

<div class="topic-metadata">

**Author:** [@dlshew19](https://discourse.julialang.org/u/dlshew19)\
**Replies:** 3\
**Last updated:** [July 7, 2024, 2:39am UTC](https://discourse.julialang.org/t/sports-data-in-julia/115384 "2024-07-07T02:39:10Z")

</div>

I was wondering if anyone knew of any packages similar to the ones offered by python and r sportsdataverse or stuff like nflfastr, fastf1… basically any packages that are focused on easy access to sports data? Right now …

---

## [Using metaprogramming to combine multiple functions and construct a composite temporary function](https://discourse.julialang.org/t/using-metaprogramming-to-combine-multiple-functions-and-construct-a-composite-temporary-function/116647)

<div class="topic-metadata">

**Author:** [@chooron](https://discourse.julialang.org/u/chooron)\
**Replies:** 10\
**Last updated:** [July 7, 2024, 2:35am UTC](https://discourse.julialang.org/t/using-metaprogramming-to-combine-multiple-functions-and-construct-a-composite-temporary-function/116647 "2024-07-07T02:35:04Z")

</div>

I can identify the input and output variable names of the functions. Using this information, I want to combine these functions to construct a composite function. I hope to obtain the result with the specified variable na…

---

## [This month in Julia world - 2024-06](https://discourse.julialang.org/t/this-month-in-julia-world-2024-06/116704)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 1\
**Last updated:** [July 6, 2024, 11:11pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2024-06/116704 "2024-07-06T23:11:03Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. “Internals” Fora …

---

## [Nonlinear Least Squares Problems with ModelingToolkit](https://discourse.julialang.org/t/nonlinear-least-squares-problems-with-modelingtoolkit/116680)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 4\
**Last updated:** [July 6, 2024, 9:40pm UTC](https://discourse.julialang.org/t/nonlinear-least-squares-problems-with-modelingtoolkit/116680 "2024-07-06T21:40:25Z")

</div>

I’m trying set up a nonlinear least squares problem with variables and parameters defined by ModelingToolkit.jl. However, I’m getting an error because I have more equations than variables. Here is an example: using Nonl…

---

## [How to manage Fortran file units in Julia?](https://discourse.julialang.org/t/how-to-manage-fortran-file-units-in-julia/116688)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 1:06pm UTC](https://discourse.julialang.org/t/how-to-manage-fortran-file-units-in-julia/116688 "2024-07-06T13:06:38Z")

</div>

I’m calling a Fortran subroutine through @ccall which is declared as subroutine data\_input(..., fileunit) integer, intent(out) :: fileunit ... open(newunit = fileunit, ...) ... end subroutine And various other Fortran …

---

## [Does \`@atomic\` syntax support non-primitive-type fields in a \`mutable struct\`?](https://discourse.julialang.org/t/does-atomic-syntax-support-non-primitive-type-fields-in-a-mutable-struct/116703)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 7:30pm UTC](https://discourse.julialang.org/t/does-atomic-syntax-support-non-primitive-type-fields-in-a-mutable-struct/116703 "2024-07-06T19:30:30Z")

</div>

I was reading the documentation on per-field atomics, and it seems that @atomic can be put in front of any type of field (unlike Base.Threads.Atomic) as long as the struct is mutable. I also tested it with the following …

---

## [Does NonlinearSolve use the analytical jacobian?](https://discourse.julialang.org/t/does-nonlinearsolve-use-the-analytical-jacobian/116508)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 6\
**Last updated:** [July 6, 2024, 7:05pm UTC](https://discourse.julialang.org/t/does-nonlinearsolve-use-the-analytical-jacobian/116508 "2024-07-06T19:05:26Z")

</div>

This question came up when I did some tests related to this post. Imagine I have the code using NonlinearSolve function f(u, p) return u^2 - 2 end function df(u, p) println("Hey") return 2u end fn = Nonl…

---

## [Installing GLMakie on Linux fails](https://discourse.julialang.org/t/installing-glmakie-on-linux-fails/116468)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 14\
**Last updated:** [July 6, 2024, 6:52pm UTC](https://discourse.julialang.org/t/installing-glmakie-on-linux-fails/116468 "2024-07-06T18:52:02Z")

</div>

I did: mkdir glmakie cd glmakie julia --project="." and then in Julia using Pkg Pkg.add("GLMakie") This results in the following error: julia\> err PkgPrecompileError: The following 1 direct dependency failed to prec…

---

## [Juliacon lodging available](https://discourse.julialang.org/t/juliacon-lodging-available/116702)

<div class="topic-metadata">

**Author:** [@efficiencynuts](https://discourse.julialang.org/u/efficiencynuts)\
**Replies:** 1\
**Last updated:** [July 6, 2024, 6:43pm UTC](https://discourse.julialang.org/t/juliacon-lodging-available/116702 "2024-07-06T18:43:22Z")

</div>

I have booked an airbnb nearby (walking distance) that I can share with another attendee. Message me if you are still looking for an option. It is for 8th-14th if I remember correctly.

---

## [\`findmax\` and friends: confusing behaviour to be introduced in 1.7](https://discourse.julialang.org/t/findmax-and-friends-confusing-behaviour-to-be-introduced-in-1-7/61904)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 96\
**Last updated:** [July 6, 2024, 6:16pm UTC](https://discourse.julialang.org/t/findmax-and-friends-confusing-behaviour-to-be-introduced-in-1-7/61904 "2024-07-06T18:16:19Z")

</div>

Several people, including myself, have tried to raise this issue during last months. There were multiple posts on slack, and even a GH issue (https://github.com/JuliaLang/julia/issues/39203). I’ll try to raise it once mo…

---

## [BoundaryValueDiffEq hanging during precompilation](https://discourse.julialang.org/t/boundaryvaluediffeq-hanging-during-precompilation/116700)

<div class="topic-metadata">

**Author:** [@ampalski](https://discourse.julialang.org/u/ampalski)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 5:23pm UTC](https://discourse.julialang.org/t/boundaryvaluediffeq-hanging-during-precompilation/116700 "2024-07-06T17:23:31Z")

</div>

Occurs when trying to add DifferentialEquations either to the global environment or any local environment. During the precompilation step it ends up hanging on BoundaryValueDiffEq… I’ve tried a few different times for ov…

---

## [Registering Finite Difference Derivatives with Symbolics.jl](https://discourse.julialang.org/t/registering-finite-difference-derivatives-with-symbolics-jl/116636)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 4:31pm UTC](https://discourse.julialang.org/t/registering-finite-difference-derivatives-with-symbolics-jl/116636 "2024-07-06T16:31:18Z")

</div>

I’m trying to take the gradient of the Power Law Cutoff Potential using Symbolics and ModelingToolkit. My end goal is to define an ODESystem with this gradient. The Power Law Cutoff Potential equation is shown below. Her…

---

## [Type instabilities when using broadcasting with splat operator](https://discourse.julialang.org/t/type-instabilities-when-using-broadcasting-with-splat-operator/116698)

<div class="topic-metadata">

**Author:** [@danielelamberto](https://discourse.julialang.org/u/danielelamberto)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 4:03pm UTC](https://discourse.julialang.org/t/type-instabilities-when-using-broadcasting-with-splat-operator/116698 "2024-07-06T16:03:39Z")

</div>

Hi, I’m trying to optimize my code and I noticed a type instability when using broadcasting together with the splat operator, as in the following code: function f(x, p1, p2) return x \* p1 + p2 end x = rand(1000) p…

---

## [My install using the (new?) curl method failed in a freakish way](https://discourse.julialang.org/t/my-install-using-the-new-curl-method-failed-in-a-freakish-way/116685)

<div class="topic-metadata">

**Author:** [@MoorparkPaul](https://discourse.julialang.org/u/MoorparkPaul)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 2:35pm UTC](https://discourse.julialang.org/t/my-install-using-the-new-curl-method-failed-in-a-freakish-way/116685 "2024-07-06T14:35:04Z")

</div>

My Mac Julia installation was about two years old, so I thought I should update it. When I got to Download Julia I saw that it is now recommended that one use $ curl -fsSL https://install.julialang.org | sh When I issu…

---

## [Julia in Formula 1](https://discourse.julialang.org/t/julia-in-formula-1/79145)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 1:10pm UTC](https://discourse.julialang.org/t/julia-in-formula-1/79145 "2024-07-06T13:10:17Z")

</div>

I saw that the Juliahub logo is on the halo of Williams cars. I used to work for McLaren F1 - I would love to hear about how Julia is being used in F1.

---

## [SymbolicWedderburn examples](https://discourse.julialang.org/t/symbolicwedderburn-examples/116682)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 9:24am UTC](https://discourse.julialang.org/t/symbolicwedderburn-examples/116682 "2024-07-06T09:24:53Z")

</div>

Hi @abulak When I run ex\_C2\_linear or runtest in SymbolicWedderburn.jl, I get ERROR: UndefVarError: \`Monomial\` not defined Stacktrace: \[1\] top-level scope @ c:\\Users\\raven\\.julia\\packages\\SymbolicWedderburn\\lbiby\\e…

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

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