# Latest

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

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

**Page:** 334

---

## [How to efficiently generate a distribution for every element in matrix](https://discourse.julialang.org/t/how-to-efficiently-generate-a-distribution-for-every-element-in-matrix/118695)

<div class="topic-metadata">

**Author:** [@ZC\_H](https://discourse.julialang.org/u/ZC_H)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 7:23am UTC](https://discourse.julialang.org/t/how-to-efficiently-generate-a-distribution-for-every-element-in-matrix/118695 "2024-08-28T07:23:21Z")

</div>

for example, I have two matrix which separately represent mu and std: mu = \[1.0 2.0; 3.0 4.0\] std = \[0.1 0.2; 0.3 0.4\] I want to generate a matrix Normal Distribution like this: dist = \[Normal(1.0, 0.1) Normal(2.0, 0.…

---

## [BeeDeeDee.jl - 0.2.0](https://discourse.julialang.org/t/beedeedee-jl-0-2-0/118686)

<div class="topic-metadata">

**Author:** [@BrianDouglasIE](https://discourse.julialang.org/u/BrianDouglasIE)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 8:57pm UTC](https://discourse.julialang.org/t/beedeedee-jl-0-2-0/118686 "2024-08-27T20:57:51Z")

</div>

Version 0.2.0 of BeeDeeDee.jl released.

---

## [From Common Lisp to Julia](https://discourse.julialang.org/t/from-common-lisp-to-julia/86866)

<div class="topic-metadata">

**Author:** [@mfiano](https://discourse.julialang.org/u/mfiano)\
**Replies:** 6\
**Last updated:** [August 28, 2024, 1:49am UTC](https://discourse.julialang.org/t/from-common-lisp-to-julia/86866 "2024-08-28T01:49:56Z")

</div>

I wrote an article to describe what attracted me to Julia. I am still very much a Julia beginner, having only written CoherentNoise.jl. I am loving every minute I get to write Julia. Thanks for reading!

---

## [Warnings when pre-compiling GLMakie](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [August 27, 2024, 10:41pm UTC](https://discourse.julialang.org/t/warnings-when-pre-compiling-glmakie/118615 "2024-08-27T22:41:31Z")

</div>

If I freshly install GLMakie I get the following warnings: ┌ GLMakie │ \[pid 70482\] waiting for IO to finish: │ Handle type uv\_handle\_t-\>data │ timer 0x60503c7f60f0-\>0x714926932110 │ This means …

---

## [Unexpected problem with previously working code - multiple dispatch seems to be failing](https://discourse.julialang.org/t/unexpected-problem-with-previously-working-code-multiple-dispatch-seems-to-be-failing/118622)

<div class="topic-metadata">

**Author:** [@benoitseron](https://discourse.julialang.org/u/benoitseron)\
**Replies:** 5\
**Last updated:** [August 27, 2024, 5:43pm UTC](https://discourse.julialang.org/t/unexpected-problem-with-previously-working-code-multiple-dispatch-seems-to-be-failing/118622 "2024-08-27T17:43:48Z")

</div>

I came back from vacations and started to work on my code again. Some code that was working previously doesn’t seem to work anymore, while I don’t think I made any modifications to the code (updated my machine, but nothi…

---

## [@code\_warntype in CUDA](https://discourse.julialang.org/t/code-warntype-in-cuda/118679)

<div class="topic-metadata">

**Author:** [@Jason\_Meziere](https://discourse.julialang.org/u/Jason_Meziere)\
**Replies:** 1\
**Last updated:** [August 27, 2024, 5:38pm UTC](https://discourse.julialang.org/t/code-warntype-in-cuda/118679 "2024-08-27T17:38:18Z")

</div>

I am working on profiling my code, and have run into some trouble when trying to ensure type stability of some code that uses CuArrays. When using mapreduce, if I pass in two multidimensional CuArrays, @code\_warntype fai…

---

## [Significantly different parameter estimates when using Static Array (MVector) as initial guess](https://discourse.julialang.org/t/significantly-different-parameter-estimates-when-using-static-array-mvector-as-initial-guess/118645)

<div class="topic-metadata">

**Author:** [@DylanEsguerra](https://discourse.julialang.org/u/DylanEsguerra)\
**Replies:** 5\
**Last updated:** [August 27, 2024, 5:19pm UTC](https://discourse.julialang.org/t/significantly-different-parameter-estimates-when-using-static-array-mvector-as-initial-guess/118645 "2024-08-27T17:19:41Z")

</div>

Hello I am ODE model fitting using autodiff with Optimization.jl and was looking to improve my code with the use of StaticArrays. The code runs slower than I hoped and has a lot of memory allocations (initially 4G befo…

---

## [DynamicQuantities.jl v0.7.0: efficient and type-stable physical quantities](https://discourse.julialang.org/t/dynamicquantities-jl-v0-7-0-efficient-and-type-stable-physical-quantities/103709)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 48\
**Last updated:** [August 27, 2024, 3:21pm UTC](https://discourse.julialang.org/t/dynamicquantities-jl-v0-7-0-efficient-and-type-stable-physical-quantities/103709 "2024-08-27T15:21:50Z")

</div>

Happy to share DynamicQuantities.jl v0.7.0! The package has had some major changes over the last few versions, so I think it deserved a new post. DynamicQuantities defines a simple statically-typed Quantity ty…

---

## [Video posted: Intro to FluxML and Machine Learning in Julia](https://discourse.julialang.org/t/video-posted-intro-to-fluxml-and-machine-learning-in-julia/118672)

<div class="topic-metadata">

**Author:** [@reshamas](https://discourse.julialang.org/u/reshamas)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 3:02pm UTC](https://discourse.julialang.org/t/video-posted-intro-to-fluxml-and-machine-learning-in-julia/118672 "2024-08-27T15:02:25Z")

</div>

The video has been posted for this webinar: Intro to FluxML and Machine Learning in Julia About Julia is a high-level, general-purpose dynamic programming language. Its features are well suited for numerical analysis a…

---

## [Capture docstring using Macrotools](https://discourse.julialang.org/t/capture-docstring-using-macrotools/118670)

<div class="topic-metadata">

**Author:** [@aramend](https://discourse.julialang.org/u/aramend)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 2:57pm UTC](https://discourse.julialang.org/t/capture-docstring-using-macrotools/118670 "2024-08-27T14:57:01Z")

</div>

Hoping this is trivial, but let’s see. The task is to extract documentation from a parsed struct definition using MacroTools. I also checked that splitstructdef fails in this case. using MacroTools sexpr = Meta.parse("…

---

## [Manage tasks from Threads.@spawn without using map()](https://discourse.julialang.org/t/manage-tasks-from-threads-spawn-without-using-map/118493)

<div class="topic-metadata">

**Author:** [@felipe\_1](https://discourse.julialang.org/u/felipe_1)\
**Replies:** 16\
**Last updated:** [August 27, 2024, 2:55pm UTC](https://discourse.julialang.org/t/manage-tasks-from-threads-spawn-without-using-map/118493 "2024-08-27T14:55:57Z")

</div>

Hi, I need to analyze a long vector and calculate the occurrences of certain letters, as it will be very long it will be better to use parallel processing for this. The thing is, I can do this with map(), storing tasks…

---

## [Weird problem: Symbolics crashes on first import then works on second](https://discourse.julialang.org/t/weird-problem-symbolics-crashes-on-first-import-then-works-on-second/118633)

<div class="topic-metadata">

**Author:** [@AronT](https://discourse.julialang.org/u/AronT)\
**Replies:** 4\
**Last updated:** [August 27, 2024, 2:39pm UTC](https://discourse.julialang.org/t/weird-problem-symbolics-crashes-on-first-import-then-works-on-second/118633 "2024-08-27T14:39:04Z")

</div>

I just start playing around with Symbolics. Great package! So I added it using pkg and now every time I enter the REPL and issue the command using Symbolics the first time round I get the stack trace below. And even thou…

---

## [Tips on implementing a hybrid system](https://discourse.julialang.org/t/tips-on-implementing-a-hybrid-system/118649)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 4\
**Last updated:** [August 27, 2024, 2:26pm UTC](https://discourse.julialang.org/t/tips-on-implementing-a-hybrid-system/118649 "2024-08-27T14:26:01Z")

</div>

I’d like to implement a hybrid model using the SciML ecosystem, that switches between a jump process (at ‘low’ population sizes) and an SDE. Individual examples of these models are here and here. Any suggestions on best …

---

## [Comparing Symbolics.jl with Mathematica](https://discourse.julialang.org/t/comparing-symbolics-jl-with-mathematica/118656)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 2:17pm UTC](https://discourse.julialang.org/t/comparing-symbolics-jl-with-mathematica/118656 "2024-08-27T14:17:46Z")

</div>

Here I compare performing some simple CAS calculations on Mathematica and on Julia using Symbolics On Mathematica On Julia using Pkg Pkg.activate("/Users/ssiew/juliascript/Symbolics") # Pkg.add("Symbolics") # Pkg.ad…

---

## [Proposed Julia Docker workflow to use a "persistent" depot](https://discourse.julialang.org/t/proposed-julia-docker-workflow-to-use-a-persistent-depot/97963)

<div class="topic-metadata">

**Author:** [@omus](https://discourse.julialang.org/u/omus)\
**Replies:** 11\
**Last updated:** [August 27, 2024, 2:02pm UTC](https://discourse.julialang.org/t/proposed-julia-docker-workflow-to-use-a-persistent-depot/97963 "2024-08-27T14:02:01Z")

</div>

When developing a Julia library or application I typically find myself incrementally adding or modifying my package dependencies. If the particular Julia application also needs to be included in a Docker image this itera…

---

## [RxInfer Domain Logic](https://discourse.julialang.org/t/rxinfer-domain-logic/117355)

<div class="topic-metadata">

**Author:** [@spolk](https://discourse.julialang.org/u/spolk)\
**Replies:** 3\
**Last updated:** [August 27, 2024, 12:46pm UTC](https://discourse.julialang.org/t/rxinfer-domain-logic/117355 "2024-08-27T12:46:45Z")

</div>

Hello! I am trying to modify this example from RxInfer.jl’s documentation and get an error saying I didn’t initialize marginals when two unobserved states influence multiple observable results in the domain logic in a B…

---

## [Flux: if shuffle=false in DataLoader, is Descent "not" SGD?](https://discourse.julialang.org/t/flux-if-shuffle-false-in-dataloader-is-descent-not-sgd/118659)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 12:33pm UTC](https://discourse.julialang.org/t/flux-if-shuffle-false-in-dataloader-is-descent-not-sgd/118659 "2024-08-27T12:33:46Z")

</div>

Sorry for the stupid question, but it’s like in the title: When using DataLoader, if we don’t set shuffle=true, will the gradient descent algorithm from Descent always go through the batches/samples in the same order fo…

---

## [GLMakie legend 2 columns](https://discourse.julialang.org/t/glmakie-legend-2-columns/118657)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 1\
**Last updated:** [August 27, 2024, 9:09am UTC](https://discourse.julialang.org/t/glmakie-legend-2-columns/118657 "2024-08-27T09:09:50Z")

</div>

Hi there ! I am using GLMakie to plot some data and I would like to plot a legend with 2 colums. How can I do this ? Thanks :slight\_smile: f = Figure(fontsize=26, fonts = (; regular = "Times New Roman")) ax1 = …

---

## [Change fonts using GLMakie](https://discourse.julialang.org/t/change-fonts-using-glmakie/118619)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 8:01am UTC](https://discourse.julialang.org/t/change-fonts-using-glmakie/118619 "2024-08-27T08:01:31Z")

</div>

Hello :slight\_smile: I am trying to change the font style of my plot (I use GLMakie for plotting). I would like to change all (labels, titles …). I tried that but it doesn’t work :confused: # Figure : f = Figure(fon…

---

## [Julia v1.11.0-rc3 is now available](https://discourse.julialang.org/t/julia-v1-11-0-rc3-is-now-available/118653)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 4:10am UTC](https://discourse.julialang.org/t/julia-v1-11-0-rc3-is-now-available/118653 "2024-08-27T04:10:38Z")

</div>

The Julia developers are pleased to announce that the third release candidate for Julia v1.11.0 is now available. You can download binaries using JuliaUp or from https://julialang.org/downloads/ in the “upcoming release”…

---

## [PythonCall.jl style regarding type conversion](https://discourse.julialang.org/t/pythoncall-jl-style-regarding-type-conversion/117626)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 6\
**Last updated:** [July 31, 2024, 8:48am UTC](https://discourse.julialang.org/t/pythoncall-jl-style-regarding-type-conversion/117626 "2024-07-31T08:48:40Z")

</div>

I’m migrating some code from PyCall.jl to PythonCall.jl. While so far I’m loving the integration with CondaPkg.jl to handle the Python environment, I’m finding the lack of automatic type conversion quite cumbersome. I un…

---

## [Subscript in label](https://discourse.julialang.org/t/subscript-in-label/118620)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 11:56pm UTC](https://discourse.julialang.org/t/subscript-in-label/118620 "2024-08-26T23:56:31Z")

</div>

Hello! I have a very simple question but unfortunatly, I don’t find any solution only. I am plotting using GLMakie and I want to write the labels of my plot : ax2 = GLMakie.Axis(f\[2,1\], xlabel = "Time since start of CO…

---

## [Parameter inference for agents based model](https://discourse.julialang.org/t/parameter-inference-for-agents-based-model/118613)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 11:41pm UTC](https://discourse.julialang.org/t/parameter-inference-for-agents-based-model/118613 "2024-08-26T23:41:39Z")

</div>

Hello everyone, Im doing parameter inference for my agent based model. At the moment, Im using NUTS() from Turing package. Im not sure if its the right choice as model is stochastic in nature. I was wondering that if a A…

---

## [Trying to understand performance of closure from @code\_llvm](https://discourse.julialang.org/t/trying-to-understand-performance-of-closure-from-code-llvm/49361)

<div class="topic-metadata">

**Author:** [@tomohiro\_soejima](https://discourse.julialang.org/u/tomohiro_soejima)\
**Replies:** 2\
**Last updated:** [August 26, 2024, 8:17pm UTC](https://discourse.julialang.org/t/trying-to-understand-performance-of-closure-from-code-llvm/49361 "2024-08-26T20:17:55Z")

</div>

Hi, I am trying to better understand how closure works. I’ve inspected captured variable section of the manual, and tried inspecting the following functions. function abmult(r::Int) if r \< 0 r = -r end …

---

## [\[ANN\] CClosure.jl: C closures like what C does](https://discourse.julialang.org/t/ann-cclosure-jl-c-closures-like-what-c-does/81234)

<div class="topic-metadata">

**Author:** [@melonedo](https://discourse.julialang.org/u/melonedo)\
**Replies:** 0\
**Last updated:** [May 18, 2022, 6:16am UTC](https://discourse.julialang.org/t/ann-cclosure-jl-c-closures-like-what-c-does/81234 "2022-05-18T06:16:11Z")

</div>

Julia has a very powerful @cfunction macro that can make any pure Julia function callable to C. However, it only produces a single function pointer, contrary to modern C libraries where a pair of function pointer and a p…

---

## [Closure not shipping to remote workers except from Main?](https://discourse.julialang.org/t/closure-not-shipping-to-remote-workers-except-from-main/38831)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 8:45pm UTC](https://discourse.julialang.org/t/closure-not-shipping-to-remote-workers-except-from-main/38831 "2020-05-05T20:45:39Z")

</div>

Consider the following code which generates a closure via an @eval (needed in my non-MWE), and then ships it to a remote worker to evaluate: module Foo using Distributed make\_closure(x) = @eval let x=$x; () -\> x; end …

---

## [Opaque closure and code\_typed](https://discourse.julialang.org/t/opaque-closure-and-code-typed/102690)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 0\
**Last updated:** [August 10, 2023, 6:25pm UTC](https://discourse.julialang.org/t/opaque-closure-and-code-typed/102690 "2023-08-10T18:25:38Z")

</div>

I’m playing around with opaque closures. I’ve have managed to construct the following toy example: struct Foo x::Float64 end (x::Foo)(y) = cos(sin(getfield(x, 1) \* y)) @eval function make\_opaque\_closure(x) ret…

---

## [Why Random.jl is fixed to version 0.0.0?](https://discourse.julialang.org/t/why-random-jl-is-fixed-to-version-0-0-0/105957)

<div class="topic-metadata">

**Author:** [@bicycle1885](https://discourse.julialang.org/u/bicycle1885)\
**Replies:** 8\
**Last updated:** [August 26, 2024, 7:17pm UTC](https://discourse.julialang.org/t/why-random-jl-is-fixed-to-version-0-0-0/105957 "2024-08-26T19:17:59Z")

</div>

I’m trying to explicitly specify the compatibilities of some standard packages as recently required by the General registry. I added Random = "1.9" (or "1", I tried both, resulting in the same error) to Project.toml of N…

---

## [Pinv and autodiff error](https://discourse.julialang.org/t/pinv-and-autodiff-error/118636)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 2\
**Last updated:** [August 26, 2024, 6:27pm UTC](https://discourse.julialang.org/t/pinv-and-autodiff-error/118636 "2024-08-26T18:27:12Z")

</div>

Hi, I’m getting the following error in the following MWE: (I’m aware that I could implement Moore-Penrose by hand to circumvent the issue; I’d rather not do this, as I’m trying to understand why exactly I get this error…

---

## [Current solution for reading Fixed Width files (2024)](https://discourse.julialang.org/t/current-solution-for-reading-fixed-width-files-2024/118635)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 5:37pm UTC](https://discourse.julialang.org/t/current-solution-for-reading-fixed-width-files-2024/118635 "2024-08-26T17:37:22Z")

</div>

I’ve done the due diligence searching the forum for solutions to read fixed width files, but found mostly things from 2017, 2019, 2020… and referencing packages that don’t seem to exist anymore (FWF.jl). Julia has been m…

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

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