# Latest

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

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

**Page:** 163

---

## [\[ANN\] SankeyMakie.jl](https://discourse.julialang.org/t/ann-sankeymakie-jl/129209)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 3\
**Last updated:** [May 22, 2025, 2:25pm UTC](https://discourse.julialang.org/t/ann-sankeymakie-jl/129209 "2025-05-22T14:25:01Z")

</div>

Hey all, Thanks to the help of @simonsteiger I’ve finally gotten SankeyMakie.jl over the registration threshold, it now has docs and is available in the General registry: Its purpose is to make Sankey plots, which lo…

---

## [IKEA-style visual algorithm explanation](https://discourse.julialang.org/t/ikea-style-visual-algorithm-explanation/129248)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [May 22, 2025, 1:14pm UTC](https://discourse.julialang.org/t/ikea-style-visual-algorithm-explanation/129248 "2025-05-22T13:14:39Z")

</div>

I actually consult the graph search instructions each time I want a nonrecursive (with an explicit stack) DFS:

---

## [Trouble Precompiling GLMakie.jl using ShareAdd.jl - Using Shared Environments](https://discourse.julialang.org/t/trouble-precompiling-glmakie-jl-using-shareadd-jl-using-shared-environments/126999)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 2\
**Last updated:** [May 22, 2025, 12:57pm UTC](https://discourse.julialang.org/t/trouble-precompiling-glmakie-jl-using-shareadd-jl-using-shared-environments/126999 "2025-05-22T12:57:40Z")

</div>

I tried using ShareAdd.jl to use packages from a shared environment. All other packages load and precompile successfully except GLMakie. First, I see if GLMakie.jl has been added to the environment successfully: …

---

## [How to make the most of SIMD.jl when number of data elements is not divisible by SIMD width](https://discourse.julialang.org/t/how-to-make-the-most-of-simd-jl-when-number-of-data-elements-is-not-divisible-by-simd-width/129226)

<div class="topic-metadata">

**Author:** [@davidbp](https://discourse.julialang.org/u/davidbp)\
**Replies:** 5\
**Last updated:** [May 22, 2025, 10:51am UTC](https://discourse.julialang.org/t/how-to-make-the-most-of-simd-jl-when-number-of-data-elements-is-not-divisible-by-simd-width/129226 "2025-05-22T10:51:36Z")

</div>

Consider the following MWE that simply stores in c an elementwise vector multiplication (so c=a.\*b). Here I want to take SIMD chunks and do the operation in SIMD vectors. But the “naive solution” that I get is around 2x…

---

## [Question about the future of JuliaC](https://discourse.julialang.org/t/question-about-the-future-of-juliac/129228)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 10\
**Last updated:** [May 22, 2025, 9:05am UTC](https://discourse.julialang.org/t/question-about-the-future-of-juliac/129228 "2025-05-22T09:05:53Z")

</div>

Hi everyone, I’m definitely not a professional programmer and I don’t have a degree in computer engineering, so please forgive any naive questions — this post comes purely from curiosity. I’ve been using Julia for rese…

---

## [Weird behavior of Keyboard events under Gtk4 on Linux](https://discourse.julialang.org/t/weird-behavior-of-keyboard-events-under-gtk4-on-linux/129219)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 7:37am UTC](https://discourse.julialang.org/t/weird-behavior-of-keyboard-events-under-gtk4-on-linux/129219 "2025-05-22T07:37:08Z")

</div>

After testing my application on a Linux system I get some strange behavior of keyboard events. Here is a MWE to illustrate it: win = GtkWindow("Key Test", 300, 300) eck = GtkEventControllerKey(win) signal\_c…

---

## [Thought: Move GC to packages](https://discourse.julialang.org/t/thought-move-gc-to-packages/129225)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [May 22, 2025, 5:18am UTC](https://discourse.julialang.org/t/thought-move-gc-to-packages/129225 "2025-05-22T05:18:35Z")

</div>

Here’s some thought. Provide an abstract interface for writing a custom garbage collection. Objects created under garbage collector A gets managed by A (perhaps unless transfer ownership or something). Now, things might…

---

## [Help training a NN that's used as a parameter in an ODE](https://discourse.julialang.org/t/help-training-a-nn-thats-used-as-a-parameter-in-an-ode/129231)

<div class="topic-metadata">

**Author:** [@alexl123](https://discourse.julialang.org/u/alexl123)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 2:01am UTC](https://discourse.julialang.org/t/help-training-a-nn-thats-used-as-a-parameter-in-an-ode/129231 "2025-05-22T02:01:42Z")

</div>

Hello! I’ve been pulling my hair out trying to implement an ODE where one of the parameters is the output of a NN net. ChatGPT has me going in circles. Depending on what fixes I try I either get a: Error in epoch 1: Me…

---

## [\[ANN\] EmojiSymbols.jl v0.1.9](https://discourse.julialang.org/t/ann-emojisymbols-jl-v0-1-9/129235)

<div class="topic-metadata">

**Author:** [@wookyoung](https://discourse.julialang.org/u/wookyoung)\
**Replies:** 0\
**Last updated:** [May 22, 2025, 12:57am UTC](https://discourse.julialang.org/t/ann-emojisymbols-jl-v0-1-9/129235 "2025-05-22T00:57:09Z")

</div>

do you know that the most important merged commit in yesterday? I think that is REPL: Show input alias (e.g., \\:cat:) for Char display EmojiSymbols.jl v0.1.9 supports it for julia v1.11 or higher version. it also su…

---

## [Permuting the rows of a matrix based on given a given permutation](https://discourse.julialang.org/t/permuting-the-rows-of-a-matrix-based-on-given-a-given-permutation/41444)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 12\
**Last updated:** [November 20, 2022, 11:11pm UTC](https://discourse.julialang.org/t/permuting-the-rows-of-a-matrix-based-on-given-a-given-permutation/41444 "2022-11-20T23:11:01Z")

</div>

Suppose I am given an mXn matrix A, and I have a permutation of {1,…,m}, for example by p = sortperm(A\[:,1\]); I now wish to rearrange the wors of A based on p. How do I do that ? The permute!() function only applies to…

---

## [ERROR: OutOfMemoryError()](https://discourse.julialang.org/t/error-outofmemoryerror/129229)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 10\
**Last updated:** [May 21, 2025, 9:44pm UTC](https://discourse.julialang.org/t/error-outofmemoryerror/129229 "2025-05-21T21:44:37Z")

</div>

I got ERROR: OutOfMemoryError() while running this code. How can i mitigate it? Here 872 is number of mesh blocks of whose coordinates are x, y and z. x = rand(16,872); y = rand(4,872); z = rand(18,872); r = reshape(x,…

---

## [What does the network constraint look like in the capacity expansion problem](https://discourse.julialang.org/t/what-does-the-network-constraint-look-like-in-the-capacity-expansion-problem/129214)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 1\
**Last updated:** [May 21, 2025, 9:31pm UTC](https://discourse.julialang.org/t/what-does-the-network-constraint-look-like-in-the-capacity-expansion-problem/129214 "2025-05-21T21:31:31Z")

</div>

I’m looking for help on the modeling issue of a power system capacity expansion problem. Here is a related tutorial Power Balance · GenX.jl. The z there is a “node” (electrical bus) quantity, and t there is an index of…

---

## ["I don't like NumPy" - Julia equivalents to the numpy code?](https://discourse.julialang.org/t/i-dont-like-numpy-julia-equivalents-to-the-numpy-code/129052)

<div class="topic-metadata">

**Author:** [@MDSW](https://discourse.julialang.org/u/MDSW)\
**Replies:** 19\
**Last updated:** [May 21, 2025, 7:46pm UTC](https://discourse.julialang.org/t/i-dont-like-numpy-julia-equivalents-to-the-numpy-code/129052 "2025-05-21T19:46:36Z")

</div>

I came across this post and, not being an expert in either NumPy or the how it would be done in Julia, was curious if anyone here could weigh in with idiomatic Julia versions of some of these examples for comparison. No…

---

## [Struct with read-only and write-only properties](https://discourse.julialang.org/t/struct-with-read-only-and-write-only-properties/129179)

<div class="topic-metadata">

**Author:** [@mattsignorelli](https://discourse.julialang.org/u/mattsignorelli)\
**Replies:** 7\
**Last updated:** [May 21, 2025, 7:15pm UTC](https://discourse.julialang.org/t/struct-with-read-only-and-write-only-properties/129179 "2025-05-21T19:15:16Z")

</div>

Suppose I have the following mutable struct @kwdef mutable struct Rectangle{T} x::T = 0 y::T = 0 function Rectangle(args...) return new{promote\_type(typeof.(args)...)}(args...) end end I would like for this…

---

## [What's the plan for JuliaHub?](https://discourse.julialang.org/t/whats-the-plan-for-juliahub/129222)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [May 21, 2025, 5:17pm UTC](https://discourse.julialang.org/t/whats-the-plan-for-juliahub/129222 "2025-05-21T17:17:00Z")

</div>

Does JuliaHub have a plan to reach a billion-dollar valuation or is the current plan something else? (Or is it top secret?) I understand that the Julia ecosystem still doesn’t have XYZ, and it might not be a good idea t…

---

## [Draw a random number through a probability distribution defined as an array](https://discourse.julialang.org/t/draw-a-random-number-through-a-probability-distribution-defined-as-an-array/129210)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 5\
**Last updated:** [May 21, 2025, 10:40am UTC](https://discourse.julialang.org/t/draw-a-random-number-through-a-probability-distribution-defined-as-an-array/129210 "2025-05-21T10:40:30Z")

</div>

If I have an NxM matrix with decimal values (normalised so that the sum is 1): prob\_dens::Matrix{Float64.Float64} is there a good way to randomly draw an index i,j with probability corresponding to the probability dist…

---

## [AR(1) correlation structure on errors with MixedModels.jl](https://discourse.julialang.org/t/ar-1-correlation-structure-on-errors-with-mixedmodels-jl/128066)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 5\
**Last updated:** [May 21, 2025, 4:34pm UTC](https://discourse.julialang.org/t/ar-1-correlation-structure-on-errors-with-mixedmodels-jl/128066 "2025-05-21T16:34:07Z")

</div>

Hi all, I’m looking at the MixedModels.jl package and I’m curious if it (or something similar in Julia) can fit the following type of model I used nlme to fit in R. The part I can’t figure out is if there is a simple way…

---

## [Launching REPL with older version in VSCode](https://discourse.julialang.org/t/launching-repl-with-older-version-in-vscode/129218)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 4\
**Last updated:** [May 21, 2025, 3:36pm UTC](https://discourse.julialang.org/t/launching-repl-with-older-version-in-vscode/129218 "2025-05-21T15:36:37Z")

</div>

Hello all. I have an older julia project that I need to work on. My current latest julia version is v1.11 but my project environment is built around v1.9. I want to launch a julia REPL within VSCode (e.g. Julia: Start RE…

---

## [CSV fails to precompile](https://discourse.julialang.org/t/csv-fails-to-precompile/129192)

<div class="topic-metadata">

**Author:** [@jcc3508](https://discourse.julialang.org/u/jcc3508)\
**Replies:** 3\
**Last updated:** [May 21, 2025, 3:15pm UTC](https://discourse.julialang.org/t/csv-fails-to-precompile/129192 "2025-05-21T15:15:48Z")

</div>

Packages currently installed: ⌃ \[336ed68f\] CSV v0.10.11 ⌃ \[a93c6f00\] DataFrames v1.6.1 ⌃ \[4c0ca9eb\] Gtk v1.3.0 \[9a3f8284\] Random Please submit a bug report with steps to reproduce this fault, and any error messages …

---

## [Please explain LinearAlgebra.\_\_normalize!](https://discourse.julialang.org/t/please-explain-linearalgebra-normalize/128636)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [May 21, 2025, 3:10pm UTC](https://discourse.julialang.org/t/please-explain-linearalgebra-normalize/128636 "2025-05-21T15:10:47Z")

</div>

I am trying to understand LinearAlgebra.\_\_normalize!, quoted in full here: @inline function \_\_normalize!(a::AbstractArray, nrm) # The largest positive floating point number whose inverse is less than infinity δ …

---

## [Is it possible to force a task to have a particular thread id?](https://discourse.julialang.org/t/is-it-possible-to-force-a-task-to-have-a-particular-thread-id/129172)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 4\
**Last updated:** [May 21, 2025, 3:08pm UTC](https://discourse.julialang.org/t/is-it-possible-to-force-a-task-to-have-a-particular-thread-id/129172 "2025-05-21T15:08:37Z")

</div>

I’m trying to make a GUI in QML.jl that does a lot of things asynchronously. In order to improve performance I would like to run Julia with multiple threads since everything is organized into tasks anyway. But QML.jl do…

---

## [Kwargs... and allocations](https://discourse.julialang.org/t/kwargs-and-allocations/129183)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 26\
**Last updated:** [May 21, 2025, 3:05pm UTC](https://discourse.julialang.org/t/kwargs-and-allocations/129183 "2025-05-21T15:05:49Z")

</div>

I recently was trying to overload some real-time code (meaning I don’t want any GC or allocations). I needed to add in some kwargs to the help with overloading some intermediate functions. This causes allocations becau…

---

## [What happens when a contributor does not own the copyright of the code?](https://discourse.julialang.org/t/what-happens-when-a-contributor-does-not-own-the-copyright-of-the-code/129208)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [May 21, 2025, 1:39pm UTC](https://discourse.julialang.org/t/what-happens-when-a-contributor-does-not-own-the-copyright-of-the-code/129208 "2025-05-21T13:39:47Z")

</div>

I recently got a PR with a minor contribution to one of my (MIT-licensed) Julia packages. The author honestly disclosed that it was made using an AI tool. I checked the licensing of said tool (Claude) and it actually sa…

---

## [A generic function (using higher order functions) with special implementation for specific functions (as input)?](https://discourse.julialang.org/t/a-generic-function-using-higher-order-functions-with-special-implementation-for-specific-functions-as-input/129213)

<div class="topic-metadata">

**Author:** [@Daniel\_Lincke](https://discourse.julialang.org/u/Daniel_Lincke)\
**Replies:** 6\
**Last updated:** [May 21, 2025, 1:14pm UTC](https://discourse.julialang.org/t/a-generic-function-using-higher-order-functions-with-special-implementation-for-specific-functions-as-input/129213 "2025-05-21T13:14:56Z")

</div>

Hi, I have the following situation: A complicated algorithm that works with a function as input parameter: function cool\_stuff(f :: Function, a::Real, b::Real) ... end cool\_stuff could be something like integrati…

---

## [Problem with VSCode connecting to language server](https://discourse.julialang.org/t/problem-with-vscode-connecting-to-language-server/129024)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 5\
**Last updated:** [May 21, 2025, 1:10pm UTC](https://discourse.julialang.org/t/problem-with-vscode-connecting-to-language-server/129024 "2025-05-21T13:10:55Z")

</div>

This morning, I’m having a problem with VS Code. It seems unable to connect to the language server. It was fine yesterday. This is a work computer (but working from home). I do not see the same problem on my home compute…

---

## [Automatically generate default instances for all concrete subtypes of a type](https://discourse.julialang.org/t/automatically-generate-default-instances-for-all-concrete-subtypes-of-a-type/129212)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 6\
**Last updated:** [May 21, 2025, 12:21pm UTC](https://discourse.julialang.org/t/automatically-generate-default-instances-for-all-concrete-subtypes-of-a-type/129212 "2025-05-21T12:21:29Z")

</div>

TL; DR: for a given abstract type, generate a vector/tuple/whatever containing a default instance for each of its concrete subtypes. un-XY: I have several concrete types that subtype an abstract supertype (possibly indi…

---

## [Multi-argument Jacobian and gradient](https://discourse.julialang.org/t/multi-argument-jacobian-and-gradient/129029)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [May 21, 2025, 12:04pm UTC](https://discourse.julialang.org/t/multi-argument-jacobian-and-gradient/129029 "2025-05-21T12:04:31Z")

</div>

I have a function that takes multiple arguments (all of them vectors), and I want to obtain the Jacobian in each parameter (or, similarly, the gradient if the function maps to \\mathbb{R}). Is it best to unpack/pack like…

---

## [DocstringTranslation.jl: Translate docstrings in Julia using your preferred language](https://discourse.julialang.org/t/docstringtranslation-jl-translate-docstrings-in-julia-using-your-preferred-language/123276)

<div class="topic-metadata">

**Author:** [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Replies:** 8\
**Last updated:** [May 21, 2025, 10:35am UTC](https://discourse.julialang.org/t/docstringtranslation-jl-translate-docstrings-in-julia-using-your-preferred-language/123276 "2025-05-21T10:35:47Z")

</div>

TL;DR I’m happy to annouce the release of following packages. Have a try! GitHub - AtelierArith/DocstringTranslation.jl: Translate docstrings in Julia into your preferred language. GitHub - AtelierArith/DocstringTransl…

---

## [Cannot convert Time to Time](https://discourse.julialang.org/t/cannot-convert-time-to-time/129207)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 3\
**Last updated:** [May 21, 2025, 10:23am UTC](https://discourse.julialang.org/t/cannot-convert-time-to-time/129207 "2025-05-21T10:23:26Z")

</div>

Any idea what\`s happening? julia\> s = "18:59:00" "18:59:00" julia\> t0 = Time(s) 18:59:00 julia\> t = Time(t0) ERROR: MethodError: no method matching Int64(::Time) The type \`Int64\` exists, but no method is defined for t…

---

## [Grouped Bar Plots](https://discourse.julialang.org/t/grouped-bar-plots/129170)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 2\
**Last updated:** [May 21, 2025, 9:47am UTC](https://discourse.julialang.org/t/grouped-bar-plots/129170 "2025-05-21T09:47:39Z")

</div>

How do I get my grouped bar plot bars to be next to each other and not on top of each other? code pulling data from dataframe: plot\_vio = bar( categorical(analysis.type), analysis.val, group = categorical(string.…

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

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