# Latest

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

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

**Page:** 551

---

## [Recommendation for CI benchmark to catch regression](https://discourse.julialang.org/t/recommendation-for-ci-benchmark-to-catch-regression/104698)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 6\
**Last updated:** [November 19, 2023, 9:33pm UTC](https://discourse.julialang.org/t/recommendation-for-ci-benchmark-to-catch-regression/104698 "2023-11-19T21:33:29Z")

</div>

It’s pretty common for Julia package developers to want to monitor key usage latency / performance to avoid regression in PRs. Julia itself has nanosoldier, and some big package such as Makie has their own bot: Hardcode …

---

## [PlotlyJS: subplots with subplot\_titles + annotations](https://discourse.julialang.org/t/plotlyjs-subplots-with-subplot-titles-annotations/106417)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 3\
**Last updated:** [November 19, 2023, 9:30pm UTC](https://discourse.julialang.org/t/plotlyjs-subplots-with-subplot-titles-annotations/106417 "2023-11-19T21:30:35Z")

</div>

I need to create a figure with subplots using PlotlyJS. In particular, I need one with annotations and individual titles in the different subplots. I searched the internet and found an excellent example by @empet, which …

---

## [Unexpected array VariableRef\[c\[1\] c\[2\] c\[3\]\] in nonlinear expression](https://discourse.julialang.org/t/unexpected-array-variableref-c-1-c-2-c-3-in-nonlinear-expression/106419)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 6\
**Last updated:** [November 19, 2023, 8:55pm UTC](https://discourse.julialang.org/t/unexpected-array-variableref-c-1-c-2-c-3-in-nonlinear-expression/106419 "2023-11-19T20:55:29Z")

</div>

Code: function b̂ₜfunc( x̂ₜ₊₁::AbstractVector, Σ̂ₜ₊₁::AbstractMatrix, γ::AbstractFloat, ξ::AbstractFloat, b̂ₜ::AbstractVector ) n\_assets = length(x̂ₜ₊₁) model = Model(optimizer\_with\_attributes(Ipopt.Optimi…

---

## [Vancouver (BC) Meetup](https://discourse.julialang.org/t/vancouver-bc-meetup/105673)

<div class="topic-metadata">

**Author:** [@mia\_kramer](https://discourse.julialang.org/u/mia_kramer)\
**Replies:** 1\
**Last updated:** [November 19, 2023, 6:53pm UTC](https://discourse.julialang.org/t/vancouver-bc-meetup/105673 "2023-11-19T18:53:46Z")

</div>

Hi all! We’re announcing an unofficial Julia users group in Vancouver, BC for people of all skill levels. The idea is to meet about once a month and learn some Julia together! The format will be: A half-hour informal …

---

## [Optimizing counting number of occurrences of a given number in an array](https://discourse.julialang.org/t/optimizing-counting-number-of-occurrences-of-a-given-number-in-an-array/106418)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 10\
**Last updated:** [November 19, 2023, 6:47pm UTC](https://discourse.julialang.org/t/optimizing-counting-number-of-occurrences-of-a-given-number-in-an-array/106418 "2023-11-19T18:47:09Z")

</div>

Is there a way to optimize the counter function? I’ve tried using LoopVectorization it complained saying ERROR: LoadError: Don't know how to handle expression. …

---

## [Julia ranking fairly good in code generating using ChatGPT](https://discourse.julialang.org/t/julia-ranking-fairly-good-in-code-generating-using-chatgpt/106410)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 3\
**Last updated:** [November 19, 2023, 4:27pm UTC](https://discourse.julialang.org/t/julia-ranking-fairly-good-in-code-generating-using-chatgpt/106410 "2023-11-19T16:27:22Z")

</div>

I still haven’t really used LLMs to assist me on writing code. One of my internal arguments was that since I code mostly in Julia, the LLM will not be half as good as assisting with more popular languages due to the dat…

---

## [Output distribution of rand(Float32) and rand(Float64), thread 2](https://discourse.julialang.org/t/output-distribution-of-rand-float32-and-rand-float64-thread-2/105184)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 437\
**Last updated:** [November 19, 2023, 12:45pm UTC](https://discourse.julialang.org/t/output-distribution-of-rand-float32-and-rand-float64-thread-2/105184 "2023-11-19T12:45:38Z")

</div>

A recent hackernews post lead me to necro https://discourse.julialang.org/t/output-distribution-of-rand/12192. If we want to reopen that can, I think a new thread is in order. Summary rand(), and much more acutely rand(…

---

## [\[ANN\] BioMakie.jl v0.3.0 - Stable with examples](https://discourse.julialang.org/t/ann-biomakie-jl-v0-3-0-stable-with-examples/106428)

<div class="topic-metadata">

**Author:** [@kool7d](https://discourse.julialang.org/u/kool7d)\
**Replies:** 2\
**Last updated:** [November 19, 2023, 3:52pm UTC](https://discourse.julialang.org/t/ann-biomakie-jl-v0-3-0-stable-with-examples/106428 "2023-11-19T15:52:59Z")

</div>

BioMakie.jl seems to be in a stable state with possibly useful examples available and a little bit of documentation. Test it out when you get a chance! :slight\_smile: Package: https://github.com/BioJulia/BioMakie.jl Do…

---

## [Return types of function is Any\[Float64\], although I defined return type to be Float64](https://discourse.julialang.org/t/return-types-of-function-is-any-float64-although-i-defined-return-type-to-be-float64/106438)

<div class="topic-metadata">

**Author:** [@zarkoivkovic](https://discourse.julialang.org/u/zarkoivkovic)\
**Replies:** 2\
**Last updated:** [November 19, 2023, 2:35pm UTC](https://discourse.julialang.org/t/return-types-of-function-is-any-float64-although-i-defined-return-type-to-be-float64/106438 "2023-11-19T14:35:02Z")

</div>

Hello everyone, I have a function whose return type is defined and it’s Float64. However, when I check with Base.return\_types(f), it says Any\[Float64\]. What does it mean and will it affect performance?

---

## [Why traits?](https://discourse.julialang.org/t/why-traits/105591)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 5\
**Last updated:** [November 19, 2023, 12:30pm UTC](https://discourse.julialang.org/t/why-traits/105591 "2023-11-19T12:30:20Z")

</div>

I’ve been trying to teach my students traits, only to realize that there is something I don’t fully understand. Is there any different between these two approaches to dispatch? struct A end struct B end ## Holy trait …

---

## [Julia and NumPy are linked with MKL, which may cause conflicts and crashes](https://discourse.julialang.org/t/julia-and-numpy-are-linked-with-mkl-which-may-cause-conflicts-and-crashes/105908)

<div class="topic-metadata">

**Author:** [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Replies:** 8\
**Last updated:** [November 19, 2023, 11:39am UTC](https://discourse.julialang.org/t/julia-and-numpy-are-linked-with-mkl-which-may-cause-conflicts-and-crashes/105908 "2023-11-19T11:39:18Z")

</div>

I installed Julia 1.9.3 and made “\]update” on Windows. This gave the following warning: ┌ Warning: both Julia and NumPy are linked with MKL, which may cause conflicts and crashes (#433). └ @ PyCall D:\\otter\\home\\.julia\\…

---

## [Handling Dynamical system with trigonometric function](https://discourse.julialang.org/t/handling-dynamical-system-with-trigonometric-function/106429)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 14\
**Last updated:** [November 19, 2023, 10:45am UTC](https://discourse.julialang.org/t/handling-dynamical-system-with-trigonometric-function/106429 "2023-11-19T10:45:30Z")

</div>

using DynamicalSystems, GLMakie, OrdinaryDiffEq function rotor\_1( u, params, t) # @inbounds begin θ1,pθ1,θ2,pθ2 = u k,l = params…

---

## [How diffractor hooks to the compiler and what is the role of OpaqueClosuer and IRCode?](https://discourse.julialang.org/t/how-diffractor-hooks-to-the-compiler-and-what-is-the-role-of-opaqueclosuer-and-ircode/106421)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 4\
**Last updated:** [November 19, 2023, 10:44am UTC](https://discourse.julialang.org/t/how-diffractor-hooks-to-the-compiler-and-what-is-the-role-of-opaqueclosuer-and-ircode/106421 "2023-11-19T10:44:06Z")

</div>

Hi, Zygote hooks to the compiler through generated functions. According to my understanding, when calling gradient(foo, (1.0,1.0)) it calls fval, pullback = forward(foo, 1.0, 1.0) calls pullback(1.0) The forward(foo…

---

## [Automatic complex valued differentiation for adjoint method](https://discourse.julialang.org/t/automatic-complex-valued-differentiation-for-adjoint-method/106408)

<div class="topic-metadata">

**Author:** [@marco\_menarini](https://discourse.julialang.org/u/marco_menarini)\
**Replies:** 0\
**Last updated:** [November 18, 2023, 3:11pm UTC](https://discourse.julialang.org/t/automatic-complex-valued-differentiation-for-adjoint-method/106408 "2023-11-18T15:11:14Z")

</div>

Is there a package that supports automatic differentiation for complex-valued functions (non-holomorphic)? So far I used a workaround of defining my own Wirtinger derivative in Zygote and I use the result as the input fo…

---

## [Minimizing a untidy multiparam function](https://discourse.julialang.org/t/minimizing-a-untidy-multiparam-function/106132)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 6\
**Last updated:** [November 14, 2023, 3:43am UTC](https://discourse.julialang.org/t/minimizing-a-untidy-multiparam-function/106132 "2023-11-14T03:43:31Z")

</div>

I have an untidy objective function that takes 4 vectors (34, 120, 120, 120 floats) and evaluates to a float, and an slow update function (~2 secs) that takes the same 4 vectors, alters and returns them. There is little …

---

## [F(x) = x::Int64 or f(x)::Int64 = x?](https://discourse.julialang.org/t/f-x-x-int64-or-f-x-int64-x/106395)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 2\
**Last updated:** [November 18, 2023, 8:32pm UTC](https://discourse.julialang.org/t/f-x-x-int64-or-f-x-int64-x/106395 "2023-11-18T20:32:48Z")

</div>

If I want to define a function that always returns the same type, is it better to typeassert the returned value before returning it as in f(x) = x::Int64? Or is it better to convert what is returned to a desired type as …

---

## [Looking for feedback from users that currently can't install Juliaup from the Windows Store](https://discourse.julialang.org/t/looking-for-feedback-from-users-that-currently-cant-install-juliaup-from-the-windows-store/85507)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 26\
**Last updated:** [November 18, 2023, 8:11pm UTC](https://discourse.julialang.org/t/looking-for-feedback-from-users-that-currently-cant-install-juliaup-from-the-windows-store/85507 "2023-11-18T20:11:08Z")

</div>

If you are a Windows user who currently can’t install Juliaup from the Windows Store, please continue reading and consider helping out :slight\_smile: I have a new setup option for Juliaup on Windows that might work for …

---

## [Drop Length 1 Index in ITensors](https://discourse.julialang.org/t/drop-length-1-index-in-itensors/106305)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 3\
**Last updated:** [November 18, 2023, 8:07pm UTC](https://discourse.julialang.org/t/drop-length-1-index-in-itensors/106305 "2023-11-18T20:07:42Z")

</div>

What’s the canonical way to drop length 1 Indices in ITensors? Specifically, I for tensor train algorithms, it is convenient to have order-3 tensors on both ends, but with the first and last index being of length 1. Is t…

---

## [Julia 1.10 introduces "Tuple field type cannot be Union{}" error in AlgebraOfGraphics.jl](https://discourse.julialang.org/t/julia-1-10-introduces-tuple-field-type-cannot-be-union-error-in-algebraofgraphics-jl/106389)

<div class="topic-metadata">

**Author:** [@rdboyes](https://discourse.julialang.org/u/rdboyes)\
**Replies:** 5\
**Last updated:** [November 18, 2023, 6:41pm UTC](https://discourse.julialang.org/t/julia-1-10-introduces-tuple-field-type-cannot-be-union-error-in-algebraofgraphics-jl/106389 "2023-11-18T18:41:07Z")

</div>

Hi All - I’m trying to fix an error introduced in AlgebraOfGraphics by Julia 1.10 and I’m having a hard time understanding what is actually happening. The error is now thrown any time the function AlgebraOfGraphics.dens…

---

## [FEniCS Wrapper works with FEniCSx?](https://discourse.julialang.org/t/fenics-wrapper-works-with-fenicsx/106376)

<div class="topic-metadata">

**Author:** [@emmanuellfc](https://discourse.julialang.org/u/emmanuellfc)\
**Replies:** 1\
**Last updated:** [November 18, 2023, 6:15pm UTC](https://discourse.julialang.org/t/fenics-wrapper-works-with-fenicsx/106376 "2023-11-18T18:15:05Z")

</div>

Hello, I’m trying to use the wrapper FEniCS, but I have some questions, the chip of my computer is an M2 model and as far as I know, there are some issues installing the FEniCS legacy version on that kind of architecture…

---

## [MethodOfLines - numerical instability for example in docs](https://discourse.julialang.org/t/methodoflines-numerical-instability-for-example-in-docs/106359)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 1\
**Last updated:** [November 18, 2023, 5:57pm UTC](https://discourse.julialang.org/t/methodoflines-numerical-instability-for-example-in-docs/106359 "2023-11-18T17:57:57Z")

</div>

I am using the steady state heat equation example in the MethodOfLines.jl package. When I reduce the step side below 0.1 I have a numerical blow-up of the solution. I do not know if this is only on my end or other user…

---

## [ReverseDiff + SciMLSensitivity method ambiguity](https://discourse.julialang.org/t/reversediff-scimlsensitivity-method-ambiguity/105718)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 7\
**Last updated:** [November 18, 2023, 5:47pm UTC](https://discourse.julialang.org/t/reversediff-scimlsensitivity-method-ambiguity/105718 "2023-11-18T17:47:38Z")

</div>

Hi, I’m getting a method ambiguity when trying to use ReverseDiff + SciMLSensitivity. ERROR: MethodError: kwcall( ::NamedTuple{(:save\_everystep,), Tuple{Bool}}, ::typeof(DiffEqBase.solve\_up), ::ODEProblem{SVector{…

---

## [Function as argument](https://discourse.julialang.org/t/function-as-argument/106385)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 7\
**Last updated:** [November 18, 2023, 1:47am UTC](https://discourse.julialang.org/t/function-as-argument/106385 "2023-11-18T01:47:55Z")

</div>

Please direct me to documentation on how to pass a function as argument to another function in type stable manner. Thx!

---

## [Pkg: not sure whats going on](https://discourse.julialang.org/t/pkg-not-sure-whats-going-on/106071)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 7\
**Last updated:** [November 18, 2023, 9:49am UTC](https://discourse.julialang.org/t/pkg-not-sure-whats-going-on/106071 "2023-11-18T09:49:23Z")

</div>

Hi I have a dockerfile with the below lines: WORKDIR /data/code/Olorin/ ENV JULIA\_PROJECT="/data/code/Olorin/" RUN cd /data/code/Olorin/ && \\ julia --project="/data/code/Olorin" -e 'using Pkg; Pkg.instantiate()' \> …

---

## [Why does arrayref throw?](https://discourse.julialang.org/t/why-does-arrayref-throw/104283)

<div class="topic-metadata">

**Author:** [@tmpo](https://discourse.julialang.org/u/tmpo)\
**Replies:** 89\
**Last updated:** [November 18, 2023, 8:21am UTC](https://discourse.julialang.org/t/why-does-arrayref-throw/104283 "2023-11-18T08:21:25Z")

</div>

Hi, I’m confused! This code function test(a::Vector{Vector{Int}}) return @inbounds a\[1\] end turns into the typed code test(a::Vector{Vector{Int64}}) Body::Vector{Int64} (!c,+e,!n,+t,+s,?m,+i) 2 1 ─ %1 = Base.arra…

---

## [Flattening view of \`Vector{SVector{N}}\`](https://discourse.julialang.org/t/flattening-view-of-vector-svector-n/106353)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 11\
**Last updated:** [November 18, 2023, 7:39am UTC](https://discourse.julialang.org/t/flattening-view-of-vector-svector-n/106353 "2023-11-18T07:39:34Z")

</div>

Suppose that v is a Vector of SVector (a concrete type), eg using StaticArrays v = \[rand(SVector{3}) for \_ in 1:10\] Is there a package that implements a non-allocationg view equivalent to reduce(vcat, v)::Vector? Note…

---

## [Interpolation](https://discourse.julialang.org/t/interpolation/106382)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 7\
**Last updated:** [November 18, 2023, 6:47am UTC](https://discourse.julialang.org/t/interpolation/106382 "2023-11-18T06:47:53Z")

</div>

Hi, I am suing simple interpolation within a optimization problem by interpolation.jl I have a 3\*3 grid value matrix Val\_grid. Then I implemented this simple code: i\_values = \[1.0, 1.2, 1.3\] j\_values = \[1.0, 1.2, 1.3…

---

## [Lazily fetch/load data into a DataFrame](https://discourse.julialang.org/t/lazily-fetch-load-data-into-a-dataframe/106283)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [November 17, 2023, 10:35pm UTC](https://discourse.julialang.org/t/lazily-fetch-load-data-into-a-dataframe/106283 "2023-11-17T22:35:50Z")

</div>

What’s the best way to lazily fetch/load data into a DataFrame, only if/when needed? For example, if a user calls a function use\_data\_set1(), then I want to fetch/load data\_set1 from some remote URL and make it available…

---

## [Altman fired](https://discourse.julialang.org/t/altman-fired/106390)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 4\
**Last updated:** [November 18, 2023, 2:02am UTC](https://discourse.julialang.org/t/altman-fired/106390 "2023-11-18T02:02:37Z")

</div>

Altman has been fired by the board of OpenAI. Apparently he used ChatGPT to write his reports to the board.

---

## [Error after whole script runs](https://discourse.julialang.org/t/error-after-whole-script-runs/106393)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 0\
**Last updated:** [November 18, 2023, 1:36am UTC](https://discourse.julialang.org/t/error-after-whole-script-runs/106393 "2023-11-18T01:36:14Z")

</div>

I am running a threaded script on a server managed by slurm. When the whole script finishes (the output from the last line of code is displayed in the outfile), the script doesn’t terminate, but continues until the allot…

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

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