# Latest

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

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

**Page:** 519

---

## [Learning materials and outreach to the programming beginners](https://discourse.julialang.org/t/learning-materials-and-outreach-to-the-programming-beginners/108041)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 20\
**Last updated:** [January 3, 2024, 11:15pm UTC](https://discourse.julialang.org/t/learning-materials-and-outreach-to-the-programming-beginners/108041 "2024-01-03T23:15:12Z")

</div>

To make my post understandable, I need to first write few boring things about my background. I’m daily C++ programmer, with some Rust on the horizon and teacher in one polish college, when I teach first year students how…

---

## [Enable Parallel Processing of Garbage Collections](https://discourse.julialang.org/t/enable-parallel-processing-of-garbage-collections/108308)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 11\
**Last updated:** [January 3, 2024, 10:47pm UTC](https://discourse.julialang.org/t/enable-parallel-processing-of-garbage-collections/108308 "2024-01-03T22:47:05Z")

</div>

Here is my code: using IJulia installkernel("Julia (4 threads)", env=Dict("JULIA\_NUM\_THREADS"=\>"4")) Threads.nthreads() This code creates a new kernel with multiple threads and works How can I modify this kernel so th…

---

## [Beta-Binomial Bayesian Model - larger samples result in more uncertainty?](https://discourse.julialang.org/t/beta-binomial-bayesian-model-larger-samples-result-in-more-uncertainty/108314)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 1\
**Last updated:** [January 3, 2024, 6:43pm UTC](https://discourse.julialang.org/t/beta-binomial-bayesian-model-larger-samples-result-in-more-uncertainty/108314 "2024-01-03T18:43:23Z")

</div>

I have a question about the Beta-Binomial Bayesian model. Let’s say I’d like to implement some quality control using this method. Based on a previous review of 10 widgets, I start with the prior belief that 90% of widget…

---

## [Deserialize a dictionnary and removing one element](https://discourse.julialang.org/t/deserialize-a-dictionnary-and-removing-one-element/108312)

<div class="topic-metadata">

**Author:** [@virgile-baudrot](https://discourse.julialang.org/u/virgile-baudrot)\
**Replies:** 0\
**Last updated:** [January 3, 2024, 5:33pm UTC](https://discourse.julialang.org/t/deserialize-a-dictionnary-and-removing-one-element/108312 "2024-01-03T17:33:06Z")

</div>

I saved a dictionnary using the Serialization package. It worked well. Unfortunatelly one of the element was bad defined (a function with elements not recognize… which I do not understand why since I thought it was comp…

---

## [Gtk GUI + returning a value from a function](https://discourse.julialang.org/t/gtk-gui-returning-a-value-from-a-function/108299)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 5:00pm UTC](https://discourse.julialang.org/t/gtk-gui-returning-a-value-from-a-function/108299 "2024-01-03T17:00:48Z")

</div>

Hi, I’m using Gtk to display GUI inside my function. I’d like the function to return a value generated in that GUI, e.g. Gtk.GtkSpinButton value. How can this be done? I need to keep the window open until the value is s…

---

## [Best practices for organizing objects](https://discourse.julialang.org/t/best-practices-for-organizing-objects/108305)

<div class="topic-metadata">

**Author:** [@Gast](https://discourse.julialang.org/u/Gast)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 4:45pm UTC](https://discourse.julialang.org/t/best-practices-for-organizing-objects/108305 "2024-01-03T16:45:47Z")

</div>

I wonder if how I call objects through different functions is the ‘best way’ of doing it (or if at least is in line with Julia’s best practices). A general example of what I am doing is below. All objects needed in my p…

---

## [ProfileView.jl makes my computer lag](https://discourse.julialang.org/t/profileview-jl-makes-my-computer-lag/98729)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 10\
**Last updated:** [January 3, 2024, 4:27pm UTC](https://discourse.julialang.org/t/profileview-jl-makes-my-computer-lag/98729 "2024-01-03T16:27:18Z")

</div>

Hello, Since I’ve updated to 1.9, julia makes my computer extremely slow. Note that I also tried with 1.8.5 and it also happens, it coincides with me upgrading to 1.9, but doesn’t seem linked to the version itself. I’m…

---

## [Incorrect output when using Base.Threads](https://discourse.julialang.org/t/incorrect-output-when-using-base-threads/108290)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 4:14pm UTC](https://discourse.julialang.org/t/incorrect-output-when-using-base-threads/108290 "2024-01-03T16:14:46Z")

</div>

I am trying to write a code which has a computationally expensive triply nested loop. I am trying to parallelize the top lop using the @threads macro from Base.Threads. The loops involve calling to two functions GFC and G…

---

## [Adaptive time-stepping for semi-linear ODE (Kuramoto-Sivashinsky)](https://discourse.julialang.org/t/adaptive-time-stepping-for-semi-linear-ode-kuramoto-sivashinsky/108274)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 2:34pm UTC](https://discourse.julialang.org/t/adaptive-time-stepping-for-semi-linear-ode-kuramoto-sivashinsky/108274 "2024-01-03T14:34:33Z")

</div>

Hello, I am interested in solving the 1D Kuramoto-Sivashinsky equation for a field u(x,t) with periodic BCs: \\frac{\\partial u}{\\partial t} = - \\frac{\\partial^2 u}{\\partial x^2} - \\frac{\\partial^4 u}{\\partial x^4} - …

---

## [Is there a package that supports gamut calculations for the xyY color space?](https://discourse.julialang.org/t/is-there-a-package-that-supports-gamut-calculations-for-the-xyy-color-space/108128)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [January 3, 2024, 1:52pm UTC](https://discourse.julialang.org/t/is-there-a-package-that-supports-gamut-calculations-for-the-xyy-color-space/108128 "2024-01-03T13:52:48Z")

</div>

Is there a Julia package that allows checking if a color in XYZ or xyY space is valid, and if not, allow finding a nearest point (eg by bisecting the ray from the white point)?

---

## [To use the bifuraction kit, how much minimum theory must i know?](https://discourse.julialang.org/t/to-use-the-bifuraction-kit-how-much-minimum-theory-must-i-know/108279)

<div class="topic-metadata">

**Author:** [@Ananya\_Hazarika](https://discourse.julialang.org/u/Ananya_Hazarika)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 1:42pm UTC](https://discourse.julialang.org/t/to-use-the-bifuraction-kit-how-much-minimum-theory-must-i-know/108279 "2024-01-03T13:42:08Z")

</div>

any links references,like books ,concepts? I have downloaded a lot of books but , if you @ChrisRackauckas could give me a more narrowed down approach? Thank you, Regards

---

## [Get path of system image from within Julia?](https://discourse.julialang.org/t/get-path-of-system-image-from-within-julia/108257)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 1:29pm UTC](https://discourse.julialang.org/t/get-path-of-system-image-from-within-julia/108257 "2024-01-03T13:29:09Z")

</div>

If I create a custom system image using PackageCompiler, and then start julia using that image like $ julia -Jcustom\_sysimage.so is there a way to get the path to custom\_sysimage.so from within julia? The reason I ask…

---

## [Get the diagonal of a matrix](https://discourse.julialang.org/t/get-the-diagonal-of-a-matrix/108286)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 6\
**Last updated:** [January 3, 2024, 12:09pm UTC](https://discourse.julialang.org/t/get-the-diagonal-of-a-matrix/108286 "2024-01-03T12:09:06Z")

</div>

In matlab, we have d = diag(D) It seems that there is no such function in julia? help?\> diag search: spdiagm blockdiag OrdinalRange disable\_sigint ENDIAN\_BOM dirname isdirpath isdispatchtuple display displaysize displ…

---

## [How to understand thread count as reported by versioninfo()?](https://discourse.julialang.org/t/how-to-understand-thread-count-as-reported-by-versioninfo/108289)

<div class="topic-metadata">

**Author:** [@vnegi10](https://discourse.julialang.org/u/vnegi10)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 11:07am UTC](https://discourse.julialang.org/t/how-to-understand-thread-count-as-reported-by-versioninfo/108289 "2024-01-03T11:07:54Z")

</div>

Before Julia 1.10, number of threads reported by versioninfo() was correct. For example, when started with 8 threads, Julia 1.9.4 shows the following: julia\> versioninfo() Julia Version 1.9.4 Commit 8e5136fa297 (2023-11…

---

## [\[ANN\] Announcing LongMemory.jl A package for Generating, Estimating, and Forecasting Long Memory Models](https://discourse.julialang.org/t/ann-announcing-longmemory-jl-a-package-for-generating-estimating-and-forecasting-long-memory-models/108255)

<div class="topic-metadata">

**Author:** [@everval](https://discourse.julialang.org/u/everval)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 9:28am UTC](https://discourse.julialang.org/t/ann-announcing-longmemory-jl-a-package-for-generating-estimating-and-forecasting-long-memory-models/108255 "2024-01-03T09:28:16Z")

</div>

Hi All, Long time listener, first time caller… I am happy to announce that after several months of getting to understand the language better, I have finally published my first Julia registered package: LongMemory.jl. …

---

## [Failed test of CUDA package](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378)

<div class="topic-metadata">

**Author:** [@nihil](https://discourse.julialang.org/u/nihil)\
**Replies:** 6\
**Last updated:** [January 3, 2024, 8:27am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378 "2024-01-03T08:27:19Z")

</div>

There are a fair few failed tests from ‘test CUDA’ in the package manager. Is this normal, or is this from a miss-match of driver and julia pagage? CUDA.versioninfo() CUDA runtime 12.3, artifact installation CUDA dri…

---

## [\[ANN\] PkgToSoftwareBOM v0.1.8: Generate a Software BOM of your environment, now including artifacts!](https://discourse.julialang.org/t/ann-pkgtosoftwarebom-v0-1-8-generate-a-software-bom-of-your-environment-now-including-artifacts/108282)

<div class="topic-metadata">

**Author:** [@SamuraiAku](https://discourse.julialang.org/u/SamuraiAku)\
**Replies:** 1\
**Last updated:** [January 3, 2024, 7:26am UTC](https://discourse.julialang.org/t/ann-pkgtosoftwarebom-v0-1-8-generate-a-software-bom-of-your-environment-now-including-artifacts/108282 "2024-01-03T07:26:07Z")

</div>

Version 0.1.8 of the PkgToSoftwareBOM.jl package has been released. PkgToSoftwareBOM.jl produces a Software Bill of Materials (SBOM) describing your Julia environment. At this time, the SBOM produced is in the (SPDX) fo…

---

## [How to get location of sequence in GenomicAnnotations](https://discourse.julialang.org/t/how-to-get-location-of-sequence-in-genomicannotations/106731)

<div class="topic-metadata">

**Author:** [@michikazjp](https://discourse.julialang.org/u/michikazjp)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 3:02am UTC](https://discourse.julialang.org/t/how-to-get-location-of-sequence-in-genomicannotations/106731 "2024-01-03T03:02:54Z")

</div>

Hello I am newcomer in BioJulia and getting interested in it. Now I am starting to use GenomicAnnotations package. For example, I open a genbank file of E. coli K12 as using GenomicAnnotations K12 = readgbk(“K12.gbff”…

---

## [How to ensure :sum of state varaibles remain a constant value , dde with constant lags](https://discourse.julialang.org/t/how-to-ensure-sum-of-state-varaibles-remain-a-constant-value-dde-with-constant-lags/108244)

<div class="topic-metadata">

**Author:** [@Ananya\_Hazarika](https://discourse.julialang.org/u/Ananya_Hazarika)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 12:52am UTC](https://discourse.julialang.org/t/how-to-ensure-sum-of-state-varaibles-remain-a-constant-value-dde-with-constant-lags/108244 "2024-01-03T00:52:04Z")

</div>

how can i make sure that none of the values become negative and at the same time their sum to be constant? solving a dde with constant lags.

---

## [OrdinaryDiffEq fails to precompile in Julia 1.9.3](https://discourse.julialang.org/t/ordinarydiffeq-fails-to-precompile-in-julia-1-9-3/107005)

<div class="topic-metadata">

**Author:** [@Pranav\_Vinod](https://discourse.julialang.org/u/Pranav_Vinod)\
**Replies:** 5\
**Last updated:** [January 2, 2024, 10:52pm UTC](https://discourse.julialang.org/t/ordinarydiffeq-fails-to-precompile-in-julia-1-9-3/107005 "2024-01-02T22:52:58Z")

</div>

I am suddenly getting an error while precompiling the OrdinaryDiffEq package. I am using Julia on a cluster and it had been working fine until last night. But I tried to run my code using it and I get the following error…

---

## [Examples of programs (simulations, etc.) sped up with StaticArrays](https://discourse.julialang.org/t/examples-of-programs-simulations-etc-sped-up-with-staticarrays/108270)

<div class="topic-metadata">

**Author:** [@awiersdorf](https://discourse.julialang.org/u/awiersdorf)\
**Replies:** 2\
**Last updated:** [January 2, 2024, 9:56pm UTC](https://discourse.julialang.org/t/examples-of-programs-simulations-etc-sped-up-with-staticarrays/108270 "2024-01-02T21:56:24Z")

</div>

Hey folks, I’m looking for some examples of programs that got sped up by using StaticArrays—do any of you have an example (preferably real-world or close to real-world) of a time when dropping StaticArrays into your pro…

---

## [Piecewise linear regression with automatic knot selection](https://discourse.julialang.org/t/piecewise-linear-regression-with-automatic-knot-selection/93984)

<div class="topic-metadata">

**Author:** [@meghapatnaik](https://discourse.julialang.org/u/meghapatnaik)\
**Replies:** 9\
**Last updated:** [January 2, 2024, 8:42pm UTC](https://discourse.julialang.org/t/piecewise-linear-regression-with-automatic-knot-selection/93984 "2024-01-02T20:42:04Z")

</div>

Hi everyone, I am new to Julia, mostly work with R. I am looking for the equivalent of the “segmented” package in R, to fit a piecewise linear (constant in my special case) regression where the knot location is automate…

---

## [Connections for Yale freshmen?](https://discourse.julialang.org/t/connections-for-yale-freshmen/108272)

<div class="topic-metadata">

**Author:** [@bobcassels](https://discourse.julialang.org/u/bobcassels)\
**Replies:** 0\
**Last updated:** [January 2, 2024, 8:36pm UTC](https://discourse.julialang.org/t/connections-for-yale-freshmen/108272 "2024-01-02T20:36:56Z")

</div>

I have been proselytizing Julia to a couple of smart Yale freshmen. I am hoping they can find someone or ideally a group in the New Haven area to chat and/or work with. Any ideas?

---

## [Should functions only have one docstring per arity?](https://discourse.julialang.org/t/should-functions-only-have-one-docstring-per-arity/108266)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 4\
**Last updated:** [January 2, 2024, 8:14pm UTC](https://discourse.julialang.org/t/should-functions-only-have-one-docstring-per-arity/108266 "2024-01-02T20:14:53Z")

</div>

This question is a bit philosophical, but it’s probably worth thinking about. Given that we strive for generic functions in Julia, it seems that functions should only have one docstring per arity, each of which describes…

---

## [Mutating function parameters](https://discourse.julialang.org/t/mutating-function-parameters/108268)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 8\
**Last updated:** [January 2, 2024, 7:48pm UTC](https://discourse.julialang.org/t/mutating-function-parameters/108268 "2024-01-02T19:48:12Z")

</div>

using DataFrames function doit!(flag, df) if flag==true flag=false end if df\[1, :flag\]==true df\[1, :flag\]=false end println("Within doit, flag=",flag,", df=",df\[1, :flag\]) end functi…

---

## [Safety Download files](https://discourse.julialang.org/t/safety-download-files/108233)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 3\
**Last updated:** [January 2, 2024, 4:19pm UTC](https://discourse.julialang.org/t/safety-download-files/108233 "2024-01-02T16:19:41Z")

</div>

This might be a stupid question as I am not a network/security guy. I am thinking about implementing a feature in a package I develop that downloads a file from an external server. Should safety be a concern here? Spec…

---

## [The sort！function](https://discourse.julialang.org/t/the-sort-function/108261)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 8\
**Last updated:** [January 2, 2024, 4:19pm UTC](https://discourse.julialang.org/t/the-sort-function/108261 "2024-01-02T16:19:02Z")

</div>

In matlab, with the code \[table, ind\]= sort(table) we get not only the sorted ‘table’, but also the ‘ind’ that contains the information of the positions of the sorted elements in the original table. What is the counte…

---

## [Problem in installing FFTW package due to dependancy on MKL\_jll](https://discourse.julialang.org/t/problem-in-installing-fftw-package-due-to-dependancy-on-mkl-jll/108254)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 2\
**Last updated:** [January 2, 2024, 4:12pm UTC](https://discourse.julialang.org/t/problem-in-installing-fftw-package-due-to-dependancy-on-mkl-jll/108254 "2024-01-02T16:12:22Z")

</div>

I am trying to run my code on a fresh machine with a fresh install of Julia. I am trying to install the FFTW package for a code I am trying to run. But when installing it is showing a problem as attached below related t…

---

## [Taking gradients of a matrix exponential](https://discourse.julialang.org/t/taking-gradients-of-a-matrix-exponential/107865)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 10\
**Last updated:** [January 2, 2024, 3:48pm UTC](https://discourse.julialang.org/t/taking-gradients-of-a-matrix-exponential/107865 "2024-01-02T15:48:45Z")

</div>

I’m having trouble differentiating simple matrix exponentials. ForwardDiff and ReverseDiff can’t really do it, while Zygote’s result is type-unstable. using Zygote, ForwardDiff, ReverseDiff M = rand(2,2) ReverseDiff.gr…

---

## [Adding arbitrary text to Plots.jl output](https://discourse.julialang.org/t/adding-arbitrary-text-to-plots-jl-output/108262)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 3\
**Last updated:** [January 2, 2024, 3:35pm UTC](https://discourse.julialang.org/t/adding-arbitrary-text-to-plots-jl-output/108262 "2024-01-02T15:35:26Z")

</div>

I’d like to add some footer text to my plots (I’m already using two lines of title), but can’t seem to find a way to do it. I know about annotate!(), but that only adds text within the plot region in the plot coordinate …

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

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