# Latest

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

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

**Page:** 574

---

## [ArrayFire on macOS](https://discourse.julialang.org/t/arrayfire-on-macos/105181)

<div class="topic-metadata">

**Author:** [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Replies:** 5\
**Last updated:** [October 19, 2023, 1:50pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181 "2023-10-19T13:50:00Z")

</div>

I am trying to use the ArrayFire package on macOS and the problem is that it cannot load the libaf library installed using Homebrew because it cannot find it. The only way I could make this work was to specify the enviro…

---

## [Problems with signature changes of imported local modules on include](https://discourse.julialang.org/t/problems-with-signature-changes-of-imported-local-modules-on-include/104842)

<div class="topic-metadata">

**Author:** [@hijit](https://discourse.julialang.org/u/hijit)\
**Replies:** 26\
**Last updated:** [October 19, 2023, 1:47pm UTC](https://discourse.julialang.org/t/problems-with-signature-changes-of-imported-local-modules-on-include/104842 "2023-10-19T13:47:27Z")

</div>

Hi I realized during the development of a Julia package that one of the big drawbacks of importing/using local modules is that the signatures of all functions tied to a Modules namespace are changed to be nested in the i…

---

## [Why the function nroots returns a Matrix{Array{Int64,0}}](https://discourse.julialang.org/t/why-the-function-nroots-returns-a-matrix-array-int64-0/105167)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 1:17pm UTC](https://discourse.julialang.org/t/why-the-function-nroots-returns-a-matrix-array-int64-0/105167 "2023-10-19T13:17:44Z")

</div>

import Polynomials: Polynomial, derivative import StatsBase: sample function nroots!(p, z; eps=1e-05, maxiter=50) dp= derivative(p) ddp=derivative(dp) prod=ddp\*p nr=zeros(Int, size(z)) for \_ in 1:maxite…

---

## [Output distribution of rand()](https://discourse.julialang.org/t/output-distribution-of-rand/12192)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 6\
**Last updated:** [October 19, 2023, 1:13pm UTC](https://discourse.julialang.org/t/output-distribution-of-rand/12192 "2023-10-19T13:13:41Z")

</div>

I wanted to ask about the output distribution of floating-point rand(): Naively, I would have expected the following distribution: -the sign bit is zero -the mantissa is a random bitstring -the signigicant is an expon…

---

## [Julia IRs, and how to have Julia compile user-generated IR code](https://discourse.julialang.org/t/julia-irs-and-how-to-have-julia-compile-user-generated-ir-code/105073)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 6\
**Last updated:** [October 19, 2023, 12:45pm UTC](https://discourse.julialang.org/t/julia-irs-and-how-to-have-julia-compile-user-generated-ir-code/105073 "2023-10-19T12:45:39Z")

</div>

In a recently registered tiny package, I have a function whose body is basically just an llvmcall that calls the LLVM unreachable instruction: Core.Intrinsics.llvmcall("unreachable", Cvoid, Tuple{}). The goal is to convi…

---

## [Modules Management like FromFile](https://discourse.julialang.org/t/modules-management-like-fromfile/105179)

<div class="topic-metadata">

**Author:** [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Replies:** 1\
**Last updated:** [October 19, 2023, 12:36pm UTC](https://discourse.julialang.org/t/modules-management-like-fromfile/105179 "2023-10-19T12:36:12Z")

</div>

Are there any plans to improve the modules management in Julia by implementing as a standard part of the language something similar to the excellent FromFile package which makes development so much easier?

---

## [Get signature of function](https://discourse.julialang.org/t/get-signature-of-function/105156)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 9\
**Last updated:** [October 19, 2023, 12:06pm UTC](https://discourse.julialang.org/t/get-signature-of-function/105156 "2023-10-19T12:06:42Z")

</div>

Is there any code analysis tool that can infer the signature of f(x) = \[x\] without requiring a call site? eg something that can tell me f(x::T) returns Vector{T}? Afaik Cthulhu and JET require a concrete arglist for a…

---

## [About migrating packages from private registry to the General registry](https://discourse.julialang.org/t/about-migrating-packages-from-private-registry-to-the-general-registry/105165)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 5\
**Last updated:** [October 19, 2023, 11:49am UTC](https://discourse.julialang.org/t/about-migrating-packages-from-private-registry-to-the-general-registry/105165 "2023-10-19T11:49:38Z")

</div>

My team has developed several Julia packages that have already evolved to a relatively stable version, i.e., not v0.1. They’ve been working well for commercial cases, and we’ve just decided to make some packages public t…

---

## [Compilation of a function with constant arguments](https://discourse.julialang.org/t/compilation-of-a-function-with-constant-arguments/105168)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 1\
**Last updated:** [October 19, 2023, 11:45am UTC](https://discourse.julialang.org/t/compilation-of-a-function-with-constant-arguments/105168 "2023-10-19T11:45:30Z")

</div>

I struggle to understand the following behaviour of Julia’s compilation process: according to the @time output, the sum of squares function defined below is not compiled when called with a constant argument. I wonder wh…

---

## [Julia script for datamining timeseries from Yahoo Finance](https://discourse.julialang.org/t/julia-script-for-datamining-timeseries-from-yahoo-finance/105177)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 11:32am UTC](https://discourse.julialang.org/t/julia-script-for-datamining-timeseries-from-yahoo-finance/105177 "2023-10-19T11:32:34Z")

</div>

Hey guys, some students of mine are working on applying timeseries analysis tools (from JuliaDynamics) to stock market timeseries. I am wondering if anyone has an already made Julia script for downloading (e.g.,) SnP500 …

---

## [Julia 1.9, same depot with different machines?](https://discourse.julialang.org/t/julia-1-9-same-depot-with-different-machines/103463)

<div class="topic-metadata">

**Author:** [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Replies:** 22\
**Last updated:** [October 19, 2023, 11:06am UTC](https://discourse.julialang.org/t/julia-1-9-same-depot-with-different-machines/103463 "2023-10-19T11:06:58Z")

</div>

Hi! I’m using Julia 1.9 on an HPC cluster and ran into a strange error on some of the machines. I have a hunch that it’s related to native code caching and the fact that I currently use the same depot for all machines, b…

---

## [Error in my code](https://discourse.julialang.org/t/error-in-my-code/104930)

<div class="topic-metadata">

**Author:** [@Alex\_Beck](https://discourse.julialang.org/u/Alex_Beck)\
**Replies:** 4\
**Last updated:** [October 19, 2023, 10:39am UTC](https://discourse.julialang.org/t/error-in-my-code/104930 "2023-10-19T10:39:42Z")

</div>

I have this code :slight\_smile: ‘’'function virus\_spread(transmission\_rate, initial\_infected, total\_population, simulation\_duration) # Initialize arrays to track data time = 1:simulation\_duration susceptibles = Int\[t…

---

## [Best practice for Binder in 2023?](https://discourse.julialang.org/t/best-practice-for-binder-in-2023/105173)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 10:22am UTC](https://discourse.julialang.org/t/best-practice-for-binder-in-2023/105173 "2023-10-19T10:22:18Z")

</div>

Since: Using Julia in Binder: interactive web environment for running your code I haven’t seen many Binder demo or links from Julia packages. And in fact some of Binder’s own Julia demo is now broken: https://mybinder…

---

## [ERROR: SystemError: close: Input/output error (related to CSV package)](https://discourse.julialang.org/t/error-systemerror-close-input-output-error-related-to-csv-package/105162)

<div class="topic-metadata">

**Author:** [@Siv\_Soerensen](https://discourse.julialang.org/u/Siv_Soerensen)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 10:03am UTC](https://discourse.julialang.org/t/error-systemerror-close-input-output-error-related-to-csv-package/105162 "2023-10-19T10:03:13Z")

</div>

I’m simulating some data sets (60 in total), where I loop over the same procedure 60 times, saving each data set as a CSV file before moving on to the next data set. After doing this procedure 13 times (out of the 60), …

---

## [How to properly run julia 1.9 on LSF cluster](https://discourse.julialang.org/t/how-to-properly-run-julia-1-9-on-lsf-cluster/104999)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 8:48am UTC](https://discourse.julialang.org/t/how-to-properly-run-julia-1-9-on-lsf-cluster/104999 "2023-10-19T08:48:02Z")

</div>

I updated to julia 1.9.3, and I am unable to run my code on a cluster. The 1st issue is the precompilation. It seems to me that every time I open a new session with the cluster, I need to precompile my project. As far a…

---

## [Dev packages based on different versions of julia, what to do?](https://discourse.julialang.org/t/dev-packages-based-on-different-versions-of-julia-what-to-do/105157)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 1\
**Last updated:** [October 19, 2023, 8:18am UTC](https://discourse.julialang.org/t/dev-packages-based-on-different-versions-of-julia-what-to-do/105157 "2023-10-19T08:18:44Z")

</div>

In my project I have created various dev packages in the past. I’ve been working with mainly a couple packages lately (which depend on most older packages). As Julia get updated, these couple new packages get updated w…

---

## [Using an ITensors sysimage when starting the Julia REPL in VS Code?](https://discourse.julialang.org/t/using-an-itensors-sysimage-when-starting-the-julia-repl-in-vs-code/98625)

<div class="topic-metadata">

**Author:** [@Ludwig\_Hruza](https://discourse.julialang.org/u/Ludwig_Hruza)\
**Replies:** 8\
**Last updated:** [October 19, 2023, 6:58am UTC](https://discourse.julialang.org/t/using-an-itensors-sysimage-when-starting-the-julia-repl-in-vs-code/98625 "2023-10-19T06:58:43Z")

</div>

Hi, I am using the library ITensors, which suggests on its website (Running ITensor and Julia Codes · ITensors.jl) to generate a sysimage for faster startup times julia\> using ITensors; ITensors.compile() In a terminal…

---

## [How to convert a Matrix{Array{Int64, 0}} to a Matrix{Int64}](https://discourse.julialang.org/t/how-to-convert-a-matrix-array-int64-0-to-a-matrix-int64/105136)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 11\
**Last updated:** [October 19, 2023, 6:01am UTC](https://discourse.julialang.org/t/how-to-convert-a-matrix-array-int64-0-to-a-matrix-int64/105136 "2023-10-19T06:01:23Z")

</div>

A function returns a matrix nr, like this: 3×3 Matrix{Array{Int64, 0}}: fill(4) fill(2) fill(1) fill(1) fill(2) fill(2) fill(2) fill(1) fill(1) fill(4)\[\] is displayed as 4. How to get from the matrix nr the …

---

## [PRIMA: a package for solving general nonlinear optimization problems without using derivatives](https://discourse.julialang.org/t/prima-a-package-for-solving-general-nonlinear-optimization-problems-without-using-derivatives/105134)

<div class="topic-metadata">

**Author:** [@Zaikun](https://discourse.julialang.org/u/Zaikun)\
**Replies:** 4\
**Last updated:** [October 19, 2023, 2:05am UTC](https://discourse.julialang.org/t/prima-a-package-for-solving-general-nonlinear-optimization-problems-without-using-derivatives/105134 "2023-10-19T02:05:19Z")

</div>

Hi everyone, I am very glad to announce PRIMA, a package for solving general nonlinear optimization problems without using derivatives. PRIMA provides the reference implementation for M.J.D. Powell’s renowned derivativ…

---

## [Makie - how to align text in a Button](https://discourse.julialang.org/t/makie-how-to-align-text-in-a-button/104685)

<div class="topic-metadata">

**Author:** [@ultradian](https://discourse.julialang.org/u/ultradian)\
**Replies:** 4\
**Last updated:** [October 18, 2023, 7:24pm UTC](https://discourse.julialang.org/t/makie-how-to-align-text-in-a-button/104685 "2023-10-18T19:24:26Z")

</div>

How do you align text in a Button? I didn’t see any way to do it in the docs. Only using valign and halign to align the button in its bbox. In a related question, I tried to change the padding, but didn’t notice an effe…

---

## [How to efficiently empty Makie figure / delete widgets?](https://discourse.julialang.org/t/how-to-efficiently-empty-makie-figure-delete-widgets/103612)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 22\
**Last updated:** [October 18, 2023, 5:31pm UTC](https://discourse.julialang.org/t/how-to-efficiently-empty-makie-figure-delete-widgets/103612 "2023-10-18T17:31:34Z")

</div>

I’m very new to Makie, so there is probably something I did not understand. I’m trying to build some sort of UI with Makie, in which the number of widgets will change over time. In order to handle this I tried an approa…

---

## [\[ANN\] QML.jl 0.8.1 released](https://discourse.julialang.org/t/ann-qml-jl-0-8-1-released/105051)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [October 17, 2023, 6:21am UTC](https://discourse.julialang.org/t/ann-qml-jl-0-8-1-released/105051 "2023-10-17T06:21:35Z")

</div>

The GUI library QML.jl was just released in version 0.8.1. It allows to create complex and beautiful GUIs using a syntax similar to JavaScript. It has GR and Makie integration. This release contains mainly bug-fixes an…

---

## [Why doesn’t Julia fma automatically?](https://discourse.julialang.org/t/why-doesn-t-julia-fma-automatically/104982)

<div class="topic-metadata">

**Author:** [@mj2984](https://discourse.julialang.org/u/mj2984)\
**Replies:** 43\
**Last updated:** [October 18, 2023, 4:17pm UTC](https://discourse.julialang.org/t/why-doesn-t-julia-fma-automatically/104982 "2023-10-18T16:17:35Z")

</div>

Is there any reason why the compiler doesn’t optimize these? I feel like having to do this is a detriment to high level programming, and especially the math like syntax that I can write in Julia (same expression I use i…

---

## [Announcing Julia Gender Inclusive’s Community Hour!](https://discourse.julialang.org/t/announcing-julia-gender-inclusive-s-community-hour/105100)

<div class="topic-metadata">

**Author:** [@Xuan](https://discourse.julialang.org/u/Xuan)\
**Replies:** 0\
**Last updated:** [October 18, 2023, 1:28am UTC](https://discourse.julialang.org/t/announcing-julia-gender-inclusive-s-community-hour/105100 "2023-10-18T01:28:52Z")

</div>

Hey everyone, Julia Gender Inclusive is excited to announce a new series of online meet-ups, with our very first Community Hour happening this Sunday, 22 October at 9AM EDT / 1PM UTC / 3PM CEST / 6.30PM IST. Sign-up her…

---

## [Smoothing spline fit through a set of (x,y) points](https://discourse.julialang.org/t/smoothing-spline-fit-through-a-set-of-x-y-points/104873)

<div class="topic-metadata">

**Author:** [@hanshinlee77](https://discourse.julialang.org/u/hanshinlee77)\
**Replies:** 7\
**Last updated:** [October 18, 2023, 3:09pm UTC](https://discourse.julialang.org/t/smoothing-spline-fit-through-a-set-of-x-y-points/104873 "2023-10-18T15:09:38Z")

</div>

Hello, I have a set of (x,y) points (shown in the attached dpng) which I would like to create a smoothing spline through. Normally, I don’t have a problem doing a fit like this using Spline1D() from Dierckx.jl or inte…

---

## [Is there a tool to detect non-concrete struct fields in type definitions?](https://discourse.julialang.org/t/is-there-a-tool-to-detect-non-concrete-struct-fields-in-type-definitions/105127)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [October 18, 2023, 2:57pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-detect-non-concrete-struct-fields-in-type-definitions/105127 "2023-10-18T14:57:37Z")

</div>

As it says: JuliaFormatter can detect untyped fields; what I’m looking for is something to detect fields which are not completely nailed down.

---

## [Plots and display](https://discourse.julialang.org/t/plots-and-display/105060)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 7\
**Last updated:** [October 18, 2023, 2:29pm UTC](https://discourse.julialang.org/t/plots-and-display/105060 "2023-10-18T14:29:52Z")

</div>

I am doing a cheap animation by displaying a plot every 1/60th of a second using the Plots package. Unfortunately, it is not very fast. It happens that this is the call to the display function that is slow. This can be …

---

## [Set the same colour for every \`@series\` in a loop of a plot recipe](https://discourse.julialang.org/t/set-the-same-colour-for-every-series-in-a-loop-of-a-plot-recipe/105117)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 0\
**Last updated:** [October 18, 2023, 12:16pm UTC](https://discourse.julialang.org/t/set-the-same-colour-for-every-series-in-a-loop-of-a-plot-recipe/105117 "2023-10-18T12:16:36Z")

</div>

Take the following dummy plot-recipe: using Plots struct Example end @recipe function f(ex::Example) @series begin seriescolor --\> 1 \[1:10, 1:10\] end for n in 1:10 @series begin …

---

## [Conversion from string to matrix](https://discourse.julialang.org/t/conversion-from-string-to-matrix/105109)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 3\
**Last updated:** [October 18, 2023, 12:15pm UTC](https://discourse.julialang.org/t/conversion-from-string-to-matrix/105109 "2023-10-18T12:15:33Z")

</div>

I saved a complex matrix to a text file, e.g. ComplexF64\[1.0 + 1.0im 1.0 + 0.0im; 5.0 + 0.0im 0.0 + 0.0im\] but struggle to read it again. Is there an easy way to parse this?

---

## [Finding some undocumented JuMP optimizers](https://discourse.julialang.org/t/finding-some-undocumented-jump-optimizers/105102)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [October 18, 2023, 11:04am UTC](https://discourse.julialang.org/t/finding-some-undocumented-jump-optimizers/105102 "2023-10-18T11:04:38Z")

</div>

Sometimes, the developers did not add the solver to the documentation. However, if JuMP is a hub for optimization solvers, we might consider adding them. Searching for Ising optimization, I found one. https://github.co…

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

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