# Latest

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

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

**Page:** 435

---

## [Vector operation to vector of structures](https://discourse.julialang.org/t/vector-operation-to-vector-of-structures/112927)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 1\
**Last updated:** [April 14, 2024, 5:47pm UTC](https://discourse.julialang.org/t/vector-operation-to-vector-of-structures/112927 "2024-04-14T17:47:13Z")

</div>

Good morning, If I have a vector of structs say s, I know I can set and get a field for all elements at once by using setfield!. and getfield. . Is there a convenient way of ensuring that I can use s.x . I guess th…

---

## [Dynamical system of modelling two particle collisions](https://discourse.julialang.org/t/dynamical-system-of-modelling-two-particle-collisions/112922)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 4\
**Last updated:** [April 14, 2024, 5:40pm UTC](https://discourse.julialang.org/t/dynamical-system-of-modelling-two-particle-collisions/112922 "2024-04-14T17:40:05Z")

</div>

Hello, I’m trying to model a system with collision dynamics. I’m well aware of Datseris’s DynamicalBillards, contrary to that what I’m studying is collision between 2 particles rather than the fixed geometry as in billa…

---

## [Setting up multi-output Gaussian process with Surrogates.jl](https://discourse.julialang.org/t/setting-up-multi-output-gaussian-process-with-surrogates-jl/112881)

<div class="topic-metadata">

**Author:** [@epi\_hannah](https://discourse.julialang.org/u/epi_hannah)\
**Replies:** 2\
**Last updated:** [April 14, 2024, 1:39pm UTC](https://discourse.julialang.org/t/setting-up-multi-output-gaussian-process-with-surrogates-jl/112881 "2024-04-14T13:39:51Z")

</div>

Hi all, I am trying to use Surrogates to train a Gaussian process surrogate to a model with 2 different outputs (i.e., a multi-output model). According to the Surrogates documentation I can use custom kriging in Stheno…

---

## [Combining multi-processing and multi-threading](https://discourse.julialang.org/t/combining-multi-processing-and-multi-threading/112695)

<div class="topic-metadata">

**Author:** [@sschlenkrich](https://discourse.julialang.org/u/sschlenkrich)\
**Replies:** 8\
**Last updated:** [April 14, 2024, 8:57am UTC](https://discourse.julialang.org/t/combining-multi-processing-and-multi-threading/112695 "2024-04-14T08:57:02Z")

</div>

I have a complex numerical simulation which I want to parallelise on large machines. I struggle a bit with the optimal parallelisation strategy. And I am hoping to get some hints what to try/avoid from the community. To…

---

## [Using \`bboptimize\` with a function containing \`JuMP\` calls](https://discourse.julialang.org/t/using-bboptimize-with-a-function-containing-jump-calls/112846)

<div class="topic-metadata">

**Author:** [@Rick](https://discourse.julialang.org/u/Rick)\
**Replies:** 2\
**Last updated:** [April 14, 2024, 6:52am UTC](https://discourse.julialang.org/t/using-bboptimize-with-a-function-containing-jump-calls/112846 "2024-04-14T06:52:53Z")

</div>

Hi everyone, I am trying blackbox optimization with a function that contains JuMP functions. So, this is like a nested optimization where the “inner problem” is evaluated using JuMP functions and the “outer problem” is …

---

## [Julia starts in system32 by default](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877)

<div class="topic-metadata">

**Author:** [@Donald](https://discourse.julialang.org/u/Donald)\
**Replies:** 9\
**Last updated:** [April 14, 2024, 12:26am UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877 "2024-04-14T00:26:05Z")

</div>

I installed Julia using the recommended winget method. When I launch Julia from the start menu, the default working directory is julia\> pwd() "C:\\\\WINDOWS\\\\system32" This causes problems when trying to install packages…

---

## [Is there a faster way to perform this reduction?](https://discourse.julialang.org/t/is-there-a-faster-way-to-perform-this-reduction/112915)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [April 13, 2024, 11:39pm UTC](https://discourse.julialang.org/t/is-there-a-faster-way-to-perform-this-reduction/112915 "2024-04-13T23:39:36Z")

</div>

Hello! I’ve wondered if there is faster/straight-forward way to improve the speed of this way of performing reduction? using BenchmarkTools using Random # Define the function reduce\_sum! function reduce\_sum!(target\_ar…

---

## [Franklin.jl — automatically evaluate \`.jl\` file on change](https://discourse.julialang.org/t/franklin-jl-automatically-evaluate-jl-file-on-change/92580)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 8\
**Last updated:** [April 13, 2024, 7:39pm UTC](https://discourse.julialang.org/t/franklin-jl-automatically-evaluate-jl-file-on-change/92580 "2024-04-13T19:39:08Z")

</div>

I understand that Franklin’s offline evaluation is meant to manually and outside of the live-evaluation workflow. Is there a way, however, to make Franklin watch for changes in a directory, and execute generate\_results.j…

---

## [\[ANN\] Asynchronous Workflow Using Julia Tutorial](https://discourse.julialang.org/t/ann-asynchronous-workflow-using-julia-tutorial/92756)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [April 13, 2024, 7:36pm UTC](https://discourse.julialang.org/t/ann-asynchronous-workflow-using-julia-tutorial/92756 "2024-04-13T19:36:58Z")

</div>

Hi folks :wave: I recently wrote a blog post on an asynchronous workflow within Julia that can be used for data science, literate programming, and other sorts of work flows. I was inspired by a discussion here: Franklin…

---

## [JuliaCon 2024 Sponsorships start at €1000](https://discourse.julialang.org/t/juliacon-2024-sponsorships-start-at-1000/112914)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [April 13, 2024, 7:10pm UTC](https://discourse.julialang.org/t/juliacon-2024-sponsorships-start-at-1000/112914 "2024-04-13T19:10:25Z")

</div>

JuliaCon Sponsorships start at €1000 Did you know that you can sponsor JuliaCon Global 2024 for just €1000? If you have a small business or startup that may be of interest to Julia users, contact us at juliacon@julialan…

---

## [UnicodePlots.jl not working when running scripts from the command line](https://discourse.julialang.org/t/unicodeplots-jl-not-working-when-running-scripts-from-the-command-line/112912)

<div class="topic-metadata">

**Author:** [@Justin\_Booth](https://discourse.julialang.org/u/Justin_Booth)\
**Replies:** 1\
**Last updated:** [April 13, 2024, 6:48pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-not-working-when-running-scripts-from-the-command-line/112912 "2024-04-13T18:48:16Z")

</div>

I’ve been running into some issues with UnicodePlots.jl and have isolated a test case: When I run this script from the command line (I’ve tried PowerShell, windows cmd, and the integrated terminal in VSCode), nothing…

---

## [Reading EDFs in Julia preserving floating point values](https://discourse.julialang.org/t/reading-edfs-in-julia-preserving-floating-point-values/112911)

<div class="topic-metadata">

**Author:** [@Santiago\_Lopez](https://discourse.julialang.org/u/Santiago_Lopez)\
**Replies:** 5\
**Last updated:** [April 13, 2024, 5:49pm UTC](https://discourse.julialang.org/t/reading-edfs-in-julia-preserving-floating-point-values/112911 "2024-04-13T17:49:17Z")

</div>

The EDF.jl currently has a limitation; namely, that it automatically converts signals into integers. This is exlicitly stated in the \[official documentation:\] (API · EDF.jl) under EDF.file. I’m interested in reading EDF…

---

## [Gtk stopped working on MacOS in March or April 2024](https://discourse.julialang.org/t/gtk-stopped-working-on-macos-in-march-or-april-2024/112904)

<div class="topic-metadata">

**Author:** [@JeffFessler](https://discourse.julialang.org/u/JeffFessler)\
**Replies:** 2\
**Last updated:** [April 13, 2024, 4:38pm UTC](https://discourse.julialang.org/t/gtk-stopped-working-on-macos-in-march-or-april-2024/112904 "2024-04-13T16:38:41Z")

</div>

Gtk stopped working for me on MacOS sometime this semester (I am teaching a music signal processing course using Julia with \>60 students). Here is a MWE of code that worked a month or so ago and now does not work on Mac…

---

## [Regex assistance converting from R to Julia](https://discourse.julialang.org/t/regex-assistance-converting-from-r-to-julia/112852)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 12\
**Last updated:** [April 13, 2024, 3:12pm UTC](https://discourse.julialang.org/t/regex-assistance-converting-from-r-to-julia/112852 "2024-04-13T15:12:23Z")

</div>

I am working on converting a regular expression from the R format to Julia format. I have made a fair bit of progress, but I am kinda stuck. I was hoping that someone with greater regex mojo might be able to help out. I…

---

## [Preallocating memory for a 3 dimensional array](https://discourse.julialang.org/t/preallocating-memory-for-a-3-dimensional-array/112874)

<div class="topic-metadata">

**Author:** [@Jay](https://discourse.julialang.org/u/Jay)\
**Replies:** 5\
**Last updated:** [April 13, 2024, 11:47am UTC](https://discourse.julialang.org/t/preallocating-memory-for-a-3-dimensional-array/112874 "2024-04-13T11:47:36Z")

</div>

Hi, I am new to Julia. I am writing a code where a 3 dimensional array, say A, each index with an initial size “chi”, is modified, and in the due course of time iteratively, (say 1000 times) the size of each index will…

---

## [Optimization, from MATLAB to Julia](https://discourse.julialang.org/t/optimization-from-matlab-to-julia/111212)

<div class="topic-metadata">

**Author:** [@cu2mauro](https://discourse.julialang.org/u/cu2mauro)\
**Replies:** 10\
**Last updated:** [April 13, 2024, 11:43am UTC](https://discourse.julialang.org/t/optimization-from-matlab-to-julia/111212 "2024-04-13T11:43:23Z")

</div>

Hi there! I am fairly new to Julia, I was converted after seeing some awesome performance compared to MATLAB, which I currently use. I tried rewriting in Julia an optimization problem that I had in MATLAB, and everythin…

---

## [How to avoid "Julia is not responding" when using a file dialog](https://discourse.julialang.org/t/how-to-avoid-julia-is-not-responding-when-using-a-file-dialog/112075)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [March 25, 2024, 12:14pm UTC](https://discourse.julialang.org/t/how-to-avoid-julia-is-not-responding-when-using-a-file-dialog/112075 "2024-03-25T12:14:47Z")

</div>

I have a GLMakie based GUI app and want to load a file using a native file dialog. This is my code: using GLMakie, NativeFileDialog fig = Figure(size=(200, 200), backgroundcolor=RGBf(0.7, 0.8, 1)) btn\_RUN = Button(fig…

---

## [Problem with hover display in heatmap with plotlyjs backend](https://discourse.julialang.org/t/problem-with-hover-display-in-heatmap-with-plotlyjs-backend/107586)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 7\
**Last updated:** [April 13, 2024, 1:56am UTC](https://discourse.julialang.org/t/problem-with-hover-display-in-heatmap-with-plotlyjs-backend/107586 "2024-04-13T01:56:59Z")

</div>

if i use the plotly backend to make a heatmap with a small number of categorical variables then everything is fine using Plots plotly() categories = string.(collect('a':'e')) n = length(categories) #5 heatmap(categorie…

---

## [AliasTables.jl](https://discourse.julialang.org/t/aliastables-jl/112884)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 3\
**Last updated:** [April 12, 2024, 9:59pm UTC](https://discourse.julialang.org/t/aliastables-jl/112884 "2024-04-12T21:59:25Z")

</div>

Heyo! I’m announcing a state of the art high performance implementation of the alias method for categorical non-uniform random sampling over 1:n with O(1) sampling time and O(n) setup time. Docs: https://aliastables.li…

---

## [Escaping the inference length limit for tuples](https://discourse.julialang.org/t/escaping-the-inference-length-limit-for-tuples/108265)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [April 12, 2024, 8:17pm UTC](https://discourse.julialang.org/t/escaping-the-inference-length-limit-for-tuples/108265 "2024-04-12T20:17:07Z")

</div>

A lot of functions limit tuple for which they specialize at 32 elements. It is easy to run into non-inferred code because of this, eg z = NamedTuple{ntuple(i -\> Symbol("a" \* string(i)), 33)}(ntuple(i -\> (1, 2.0, π, 3f0)…

---

## [How to do "reactive conditional plotting" in Makie recipes?](https://discourse.julialang.org/t/how-to-do-reactive-conditional-plotting-in-makie-recipes/112871)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 6\
**Last updated:** [April 12, 2024, 8:00pm UTC](https://discourse.julialang.org/t/how-to-do-reactive-conditional-plotting-in-makie-recipes/112871 "2024-04-12T20:00:26Z")

</div>

I want to show a plot in the recipe if any condition is true and do something else otherwise, maybe another plot, or do nothing in the case of my MWE. How can I do this in Makie recipes? MWE: using Makie using GLMakie…

---

## [How to test if a function is continuous](https://discourse.julialang.org/t/how-to-test-if-a-function-is-continuous/112737)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 18\
**Last updated:** [April 12, 2024, 4:54pm UTC](https://discourse.julialang.org/t/how-to-test-if-a-function-is-continuous/112737 "2024-04-12T16:54:10Z")

</div>

I am writing some tests for a package (not yet public) where I want to test that a function f(x::Real)::Real is continuous at some x. Is there a numerical way of doing this? A solution I thought of is finding the left-…

---

## [Task scheduling puzzle](https://discourse.julialang.org/t/task-scheduling-puzzle/112876)

<div class="topic-metadata">

**Author:** [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Replies:** 0\
**Last updated:** [April 12, 2024, 12:58pm UTC](https://discourse.julialang.org/t/task-scheduling-puzzle/112876 "2024-04-12T12:58:41Z")

</div>

I have a somewhat puzzling behaviour with task scheduling. I’ve this example: using BenchmarkTools using Base.Threads function work(n) x = pi/4 for i in 1:n x \*= 4\*(1-x) (i & 0x3ff == 0) && yiel…

---

## [Maintaining structures across workers](https://discourse.julialang.org/t/maintaining-structures-across-workers/112820)

<div class="topic-metadata">

**Author:** [@Utkarsh\_Sharma](https://discourse.julialang.org/u/Utkarsh_Sharma)\
**Replies:** 1\
**Last updated:** [April 12, 2024, 4:07pm UTC](https://discourse.julialang.org/t/maintaining-structures-across-workers/112820 "2024-04-12T16:07:29Z")

</div>

I created a struct params to be used across different workers as - @everywhere params = parameters(Int64\[\], ...) I initialise params.mapping\_ping as params.mapping\_ping = rand(1:params.q\_datacenters, dimensions.num\_fu…

---

## [Fitting a 1D distribution using Gaussian Mixtures](https://discourse.julialang.org/t/fitting-a-1d-distribution-using-gaussian-mixtures/28113)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 18\
**Last updated:** [April 12, 2024, 3:51pm UTC](https://discourse.julialang.org/t/fitting-a-1d-distribution-using-gaussian-mixtures/28113 "2024-04-12T15:51:21Z")

</div>

I struggle to fit my data using Gaussian mixtures with Julia. I found the package GitHub - davidavdav/GaussianMixtures.jl: Large scale Gaussian Mixture Models which seems to work similarly to the scikit-stuff I used befo…

---

## [Computing matrix derivatives for eigenvaule sensitivity analysis](https://discourse.julialang.org/t/computing-matrix-derivatives-for-eigenvaule-sensitivity-analysis/112845)

<div class="topic-metadata">

**Author:** [@jwalker](https://discourse.julialang.org/u/jwalker)\
**Replies:** 6\
**Last updated:** [April 12, 2024, 3:29pm UTC](https://discourse.julialang.org/t/computing-matrix-derivatives-for-eigenvaule-sensitivity-analysis/112845 "2024-04-12T15:29:01Z")

</div>

I have a problem where I would like to apply eigenvalue sensitivity analysis, using Enzyme to compute the derivatives of the matrix A(\\mathbf{p}), where \\mathbf{p} = (p\_1,\\ldots,p\_n). Per @stevengj’s notes, if I want the…

---

## [Using Julia to solving ODE switched systems?](https://discourse.julialang.org/t/using-julia-to-solving-ode-switched-systems/112678)

<div class="topic-metadata">

**Author:** [@tridane](https://discourse.julialang.org/u/tridane)\
**Replies:** 4\
**Last updated:** [April 12, 2024, 3:24pm UTC](https://discourse.julialang.org/t/using-julia-to-solving-ode-switched-systems/112678 "2024-04-12T15:24:36Z")

</div>

Hi All, I am new to Julia. I was wondering if there is any effort in solving ODE switched systems? Thank You. A. Tridane

---

## [UndefVarError: \`##272\` not defined](https://discourse.julialang.org/t/undefvarerror-272-not-defined/112813)

<div class="topic-metadata">

**Author:** [@queueyong](https://discourse.julialang.org/u/queueyong)\
**Replies:** 2\
**Last updated:** [April 12, 2024, 12:41pm UTC](https://discourse.julialang.org/t/undefvarerror-272-not-defined/112813 "2024-04-12T12:41:52Z")

</div>

I installed latest julia version 1.10.2 and encountered error messages for every line of code with “UndefVarError: ##272 not defined.” Cannot find someone who has similar issue by searching.

---

## [Testing multimodal distribution](https://discourse.julialang.org/t/testing-multimodal-distribution/44346)

<div class="topic-metadata">

**Author:** [@Dario\_Sarra](https://discourse.julialang.org/u/Dario_Sarra)\
**Replies:** 5\
**Last updated:** [April 12, 2024, 12:21pm UTC](https://discourse.julialang.org/t/testing-multimodal-distribution/44346 "2024-04-12T12:21:42Z")

</div>

I am trying to find implementations of any statistical method to test whether a sample is unimodal or multimodal distributed. From Wikipedia Multimodal Distribution, you can find multiple example of such tests. In parti…

---

## [Basic guide on making things that dominate in Julia](https://discourse.julialang.org/t/basic-guide-on-making-things-that-dominate-in-julia/112873)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [April 12, 2024, 12:06pm UTC](https://discourse.julialang.org/t/basic-guide-on-making-things-that-dominate-in-julia/112873 "2024-04-12T12:06:18Z")

</div>

Here is my analysis on making your product in Julia that’s the best. Julia’s promise has been two solve two cultures problem. However, while that is a broad guideline, that alone does NOT make a competitive product with…

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

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