# Latest

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

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

**Page:** 478

---

## [What is julia doing with your threads?](https://discourse.julialang.org/t/what-is-julia-doing-with-your-threads/110052)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 23\
**Last updated:** [February 21, 2024, 10:04pm UTC](https://discourse.julialang.org/t/what-is-julia-doing-with-your-threads/110052 "2024-02-21T22:04:26Z")

</div>

As documented here and in this thread, spinning up julia with a certain number of threads, let us say N, and then starting (N-1) tasks does not necessarily mean that all the tasks will have a thread to run on. It appear…

---

## [Macro: extract the method name, arguments and the body](https://discourse.julialang.org/t/macro-extract-the-method-name-arguments-and-the-body/110343)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 3\
**Last updated:** [February 21, 2024, 10:00pm UTC](https://discourse.julialang.org/t/macro-extract-the-method-name-arguments-and-the-body/110343 "2024-02-21T22:00:44Z")

</div>

There are two syntaxes that I know that defines a function: julia\> Meta.@dump function f(x) x end Expr head: Symbol function args: Array{Any}((2,)) 1: Expr head: Symbol call args: Array…

---

## [Error when using LawsonEuler method on SplitODE](https://discourse.julialang.org/t/error-when-using-lawsoneuler-method-on-splitode/110495)

<div class="topic-metadata">

**Author:** [@ian](https://discourse.julialang.org/u/ian)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 9:52pm UTC](https://discourse.julialang.org/t/error-when-using-lawsoneuler-method-on-splitode/110495 "2024-02-21T21:52:32Z")

</div>

Hi all. I have a Split/Semiinear ODE I want to solve efficiently. The docs suggest the LawsonEuler algorithm. I tried to implement but am running into an error I don’t understand. Here is a MWE using DifferentialEquatio…

---

## [Symbolics coefficients](https://discourse.julialang.org/t/symbolics-coefficients/110541)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 9:44pm UTC](https://discourse.julialang.org/t/symbolics-coefficients/110541 "2024-02-21T21:44:54Z")

</div>

What is happening? How do I get 4 out of this? using Symbolics @variables a b julia\> Symbolics.coeff(4a\*b).dict Dict{Any, Any} with 2 entries: a =\> 1 b =\> 1

---

## [How to add other arguments to function turned to LinearOperator?](https://discourse.julialang.org/t/how-to-add-other-arguments-to-function-turned-to-linearoperator/110475)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 3\
**Last updated:** [February 21, 2024, 9:16pm UTC](https://discourse.julialang.org/t/how-to-add-other-arguments-to-function-turned-to-linearoperator/110475 "2024-02-21T21:16:47Z")

</div>

Trying to write a matrix-free solver using LinearOperators.jl and Krylov.jl However, from this: Introduction to Linear Operators I’m seeing that you can only use functions that follow the 5-argument (and 3) mul! operat…

---

## [Plotting ODEProblem solutions with Makie](https://discourse.julialang.org/t/plotting-odeproblem-solutions-with-makie/58096)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 8:39pm UTC](https://discourse.julialang.org/t/plotting-odeproblem-solutions-with-makie/58096 "2024-02-21T20:39:26Z")

</div>

Whatever (plot recipes?) allows for the solution output from solving an ODEProblem in ModelingToolkit.jl (or maybe just OrdinaryDiffEq.jl?) to be just plotted using Plots.jl is wonderful and magical. I love how it’s poss…

---

## [Mul! generates machine noise](https://discourse.julialang.org/t/mul-generates-machine-noise/110477)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 21\
**Last updated:** [February 21, 2024, 8:24pm UTC](https://discourse.julialang.org/t/mul-generates-machine-noise/110477 "2024-02-21T20:24:06Z")

</div>

I have this simple matrix multiplication, but at the last step some machine noise is created and I don’t know why. This doesn’t happen in other programming languages. using LinearAlgebra function myfun1() a = 0.707…

---

## [Get length of a fully represented float](https://discourse.julialang.org/t/get-length-of-a-fully-represented-float/110521)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 12\
**Last updated:** [February 21, 2024, 7:42pm UTC](https://discourse.julialang.org/t/get-length-of-a-fully-represented-float/110521 "2024-02-21T19:42:57Z")

</div>

Hello, I must work with a dataset of float numerical entries. A few of them (like 0.1%) are really small and thus are written in e-notation (e.g. 1.87589e-17). I’m passing this dataset to a C program via Julia and appar…

---

## [Julia Pragma Macros](https://discourse.julialang.org/t/julia-pragma-macros/110532)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 7:33pm UTC](https://discourse.julialang.org/t/julia-pragma-macros/110532 "2024-02-21T19:33:22Z")

</div>

Continuing the discussion from Ifelse vs ternary with tuples: Julia has a few “pragma macros” already and I agree more would be nice. The current collection, such as @inline and @inbounds/@boundscheck, focus on compil…

---

## [Lazy constraints & issues with presolve](https://discourse.julialang.org/t/lazy-constraints-issues-with-presolve/110449)

<div class="topic-metadata">

**Author:** [@salvaguerrero](https://discourse.julialang.org/u/salvaguerrero)\
**Replies:** 3\
**Last updated:** [February 21, 2024, 7:32pm UTC](https://discourse.julialang.org/t/lazy-constraints-issues-with-presolve/110449 "2024-02-21T19:32:55Z")

</div>

Good morning community, I’m trying to use lazy constraints, but I’m finding some issues. I would like to solve a problem iterative (benders decomposition) where in each iteration an additional constraint is added as la…

---

## [Finite difference Laplacian with five-point stencil](https://discourse.julialang.org/t/finite-difference-laplacian-with-five-point-stencil/25014)

<div class="topic-metadata">

**Author:** [@Vortico](https://discourse.julialang.org/u/Vortico)\
**Replies:** 8\
**Last updated:** [February 21, 2024, 7:23pm UTC](https://discourse.julialang.org/t/finite-difference-laplacian-with-five-point-stencil/25014 "2024-02-21T19:23:31Z")

</div>

This is my first day learning Julia, and I’m not sure of an elegant way to compute the finite difference Laplacian on an NxM Float32 array. \\Delta f(x,y) \\approx f(x-1,y) + f(x+1,y) + f(x,y-1) + f(x,y+1) - 4f(x,y) Base…

---

## [Random seed initialization with splitmix](https://discourse.julialang.org/t/random-seed-initialization-with-splitmix/110426)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 7:02pm UTC](https://discourse.julialang.org/t/random-seed-initialization-with-splitmix/110426 "2024-02-21T19:02:16Z")

</div>

I know that to use Xoshiro256++ is better to randomize the seed with a fast rng as splitmix. This enables us to generate the 4 states of xoshiro256++. Is this done by default?

---

## [CairoMakie get 3d plots to respect z order](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 5\
**Last updated:** [February 21, 2024, 6:09pm UTC](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428 "2024-02-21T18:09:59Z")

</div>

I’m trying to export figure as a PDF using CairoMakie. Some of my subplots are 3d axes. I’m plotting several surfaces that wrap around each other, so some parts of surface A are behind surface B and some parts are in fro…

---

## [Help finding a graphic explaining scientific computing that I have seen here before](https://discourse.julialang.org/t/help-finding-a-graphic-explaining-scientific-computing-that-i-have-seen-here-before/110527)

<div class="topic-metadata">

**Author:** [@cmichelenstrofer](https://discourse.julialang.org/u/cmichelenstrofer)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 4:44pm UTC](https://discourse.julialang.org/t/help-finding-a-graphic-explaining-scientific-computing-that-i-have-seen-here-before/110527 "2024-02-21T16:44:27Z")

</div>

There’s this graphic I am pretty sure I saw here (maybe as a link) but I can’t find it now :frowning: . Any help is appreciated! Description: It explains what computational scientist (or Research Software Engineer) is.…

---

## [2024: Tables.jl vs TableTraits.jl/IterableTables.jl?](https://discourse.julialang.org/t/2024-tables-jl-vs-tabletraits-jl-iterabletables-jl/110524)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 4:31pm UTC](https://discourse.julialang.org/t/2024-tables-jl-vs-tabletraits-jl-iterabletables-jl/110524 "2024-02-21T16:31:51Z")

</div>

It is 6 years after Tables.jl appeared and when I am searching for this vs TableTraits.jl / IterableTables.jl I still get pointed to this old thread. It seems that the queryverse never switched to Tables.jl, hence this …

---

## [Help to find package for DSA (Discrete Stochastic Arithmetic) implementation](https://discourse.julialang.org/t/help-to-find-package-for-dsa-discrete-stochastic-arithmetic-implementation/110391)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 5\
**Last updated:** [February 21, 2024, 4:30pm UTC](https://discourse.julialang.org/t/help-to-find-package-for-dsa-discrete-stochastic-arithmetic-implementation/110391 "2024-02-21T16:30:44Z")

</div>

Hi, I’m working in a project where we use DSA method (based-on CESTAC) to validate results of numerical software. Currently, I’m using Cadna (written in C) to solve this problem. The advantage of Cadna is it has example …

---

## [Is there a function inverse of \`Logging.disable\_logging\`?](https://discourse.julialang.org/t/is-there-a-function-inverse-of-logging-disable-logging/110525)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 4:22pm UTC](https://discourse.julialang.org/t/is-there-a-function-inverse-of-logging-disable-logging/110525 "2024-02-21T16:22:21Z")

</div>

Hi, I find the following function very useful for switching my computations from a dev mode to a production mode: Logging.disable\_logging(Logging.Info) Unfortunately, if I want to switch back, I can’t just remove the …

---

## [Passing \`Symbol\` variable allocates when literal does not?](https://discourse.julialang.org/t/passing-symbol-variable-allocates-when-literal-does-not/110518)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 4:04pm UTC](https://discourse.julialang.org/t/passing-symbol-variable-allocates-when-literal-does-not/110518 "2024-02-21T16:04:44Z")

</div>

I have the following snippet: function preparearrays!(arrays, N, L; mode = :all) for n in 0:(length(arrays)-1) if mode === :all for m in 0:(L-1) # run till length L to zero all bits …

---

## [Mean Reversion Strategy in Julia](https://discourse.julialang.org/t/mean-reversion-strategy-in-julia/110523)

<div class="topic-metadata">

**Author:** [@jaketothepast](https://discourse.julialang.org/u/jaketothepast)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 3:53pm UTC](https://discourse.julialang.org/t/mean-reversion-strategy-in-julia/110523 "2024-02-21T15:53:00Z")

</div>

Hello all! I love Julia, I’ve been using it off-and-on for many years. I’m doing a challenge where I ship 12 projects this year, and this month’s project was to dive into Quant. I’m extremely interested in the world of …

---

## [Newbie delete elements from array question](https://discourse.julialang.org/t/newbie-delete-elements-from-array-question/110481)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 10\
**Last updated:** [February 21, 2024, 3:29pm UTC](https://discourse.julialang.org/t/newbie-delete-elements-from-array-question/110481 "2024-02-21T15:29:20Z")

</div>

I have an 1-D array A and an array of integers index that contains some of the indices of array A. I want to compute a new array from A with the elements with indices in index removed. Is there a slick Julia way of doi…

---

## [Julia documentation not available from Firefox](https://discourse.julialang.org/t/julia-documentation-not-available-from-firefox/110502)

<div class="topic-metadata">

**Author:** [@tvali](https://discourse.julialang.org/u/tvali)\
**Replies:** 9\
**Last updated:** [February 21, 2024, 2:00pm UTC](https://discourse.julialang.org/t/julia-documentation-not-available-from-firefox/110502 "2024-02-21T14:00:33Z")

</div>

Hello! I cannot access installed Julia html documentation from firefox - it says Acess Denied. The documentation is located at file:///snap/julia/92/share/doc/julia/html/en/index.html and is the one, which comes with th…

---

## [Storing comparisons](https://discourse.julialang.org/t/storing-comparisons/110513)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 1:58pm UTC](https://discourse.julialang.org/t/storing-comparisons/110513 "2024-02-21T13:58:54Z")

</div>

I have a program which computes a number, stores it and uses it for many times. Then it proceeds to the next iteration (it’s a loop), generates another number, stores it and uses it as well for many times. Considering …

---

## [Non-GPL sparse arrays and/or 3D+ sparse](https://discourse.julialang.org/t/non-gpl-sparse-arrays-and-or-3d-sparse/110510)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 12:21pm UTC](https://discourse.julialang.org/t/non-gpl-sparse-arrays-and-or-3d-sparse/110510 "2024-02-21T12:21:00Z")

</div>

Currently Julia is GPLed, seemingly, even in 1.11-DEV: julia\> Base.USE\_GPL\_LIBS true I thought the SuiteSparse GPL dependency had been dropped (making Julia non-copyleft in 1.10) and SparseArrays.jl independent of it. …

---

## [How to use Registrator.jl for private registry](https://discourse.julialang.org/t/how-to-use-registrator-jl-for-private-registry/110453)

<div class="topic-metadata">

**Author:** [@SunnyUser](https://discourse.julialang.org/u/SunnyUser)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 11:48am UTC](https://discourse.julialang.org/t/how-to-use-registrator-jl-for-private-registry/110453 "2024-02-21T11:48:01Z")

</div>

Hi all :slight\_smile: I’m currently setting up a private registry for our company packages. I checked out LocalRegistry.jl and Registrator.jl. Seems like Registrator.jl is only used for the general registry though. My …

---

## [Subplots CairoMakie](https://discourse.julialang.org/t/subplots-cairomakie/110504)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 4\
**Last updated:** [February 21, 2024, 9:43am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504 "2024-02-21T09:43:43Z")

</div>

Hello, i want plot N subplots and off for all subplots ticks on axis. For example i do it in python with matplotlib. How can i do this with CairoMakie? Thank you for your helps

---

## [Ifelse vs ternary with tuples](https://discourse.julialang.org/t/ifelse-vs-ternary-with-tuples/110423)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 9:03am UTC](https://discourse.julialang.org/t/ifelse-vs-ternary-with-tuples/110423 "2024-02-21T09:03:02Z")

</div>

I believe I have the basic idea of when to use ifelse instead of the ternary operator. Basically, ifelse avoids an expensive branch, but computes the two possibilities — which may be more expensive. (Also ifelse may be…

---

## [How to hand-craft an edge into a Pluto's a computational graph?](https://discourse.julialang.org/t/how-to-hand-craft-an-edge-into-a-plutos-a-computational-graph/108619)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 11\
**Last updated:** [February 21, 2024, 9:00am UTC](https://discourse.julialang.org/t/how-to-hand-craft-an-edge-into-a-plutos-a-computational-graph/108619 "2024-02-21T09:00:33Z")

</div>

Consider the following contrived example of a Pluto notebook: First of all, I have a hard time even to visualise the corresponding computational graph. Below is my attempt to indicate by the dashed arrow that the com…

---

## [How come a struct is type unstable, if too many different field types?](https://discourse.julialang.org/t/how-come-a-struct-is-type-unstable-if-too-many-different-field-types/110447)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 12:38am UTC](https://discourse.julialang.org/t/how-come-a-struct-is-type-unstable-if-too-many-different-field-types/110447 "2024-02-21T00:38:27Z")

</div>

Hello! The real code is a bit of a mess, so just giving an example and looking for a hint. I have defined a struct as: @with\_kw struct CLL{I,T,D} Points::Vector{SVector{D,T}} MaxValidIndex::Base.RefValue{Int} =…

---

## [KrylovKit, syntax issue](https://discourse.julialang.org/t/krylovkit-syntax-issue/110359)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 28\
**Last updated:** [February 21, 2024, 8:25am UTC](https://discourse.julialang.org/t/krylovkit-syntax-issue/110359 "2024-02-21T08:25:37Z")

</div>

So, I’m trying to use Lanczos diagnalization of a sparse marix of float64. Now I don’t want to specify the hint x0, so i just use rand(): Energy\[i\], psi\_ground, info = eigsolve(H\_super, rand(Float64, m\*2), 1, :SR, Lancz…

---

## [List of matrices](https://discourse.julialang.org/t/list-of-matrices/110456)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 7:33am UTC](https://discourse.julialang.org/t/list-of-matrices/110456 "2024-02-21T07:33:14Z")

</div>

Is there something better than this, to hold matrices? (not that i complain, just curious) C = Vector{AbstractMatrix{Float64}}(undef, 2) for i = 1:2 A = rand(Float64, i\*2, i\*2) display(A) C\[i\] = A end displa…

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

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