# Latest

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

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

**Page:** 285

---

## [Using @fastmath](https://discourse.julialang.org/t/using-fastmath/122203)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 1\
**Last updated:** [November 3, 2024, 7:09pm UTC](https://discourse.julialang.org/t/using-fastmath/122203 "2024-11-03T19:09:24Z")

</div>

Hi, I have started to use @fastmath to have fast computations for polynomials. It was great when I pass Float64. But when i pass dual number (e.g. ForwardDiff.Dual(1., 1.)), i noticed that there is no any speed up. Do y…

---

## [Makie - How do I calculate the pixel length of a formatted string?](https://discourse.julialang.org/t/makie-how-do-i-calculate-the-pixel-length-of-a-formatted-string/122182)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 4\
**Last updated:** [November 3, 2024, 4:59pm UTC](https://discourse.julialang.org/t/makie-how-do-i-calculate-the-pixel-length-of-a-formatted-string/122182 "2024-11-03T16:59:38Z")

</div>

It seems like the best way is to render the text somewhere and then get the size of the rendered object. I’ve chosen Makie for this, but am open to alternatives. The best I’ve managed is this code, but the width is Auto(…

---

## [What is Memory? Does it have a documentation page?](https://discourse.julialang.org/t/what-is-memory-does-it-have-a-documentation-page/122164)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 9\
**Last updated:** [November 3, 2024, 4:48pm UTC](https://discourse.julialang.org/t/what-is-memory-does-it-have-a-documentation-page/122164 "2024-11-03T16:48:32Z")

</div>

I have been looking at the source for Dict.jl to see how Dictionaries are implemented in Julia. julia/base/dict.jl at 8f5b7ca12ad48c6d740e058312fc8cf2bbe67848 · JuliaLang/julia · GitHub I can see that Dict is implemen…

---

## [Cannot download any packages in Julia 1.11](https://discourse.julialang.org/t/cannot-download-any-packages-in-julia-1-11/122125)

<div class="topic-metadata">

**Author:** [@lokit\_khemka](https://discourse.julialang.org/u/lokit_khemka)\
**Replies:** 3\
**Last updated:** [November 3, 2024, 4:47pm UTC](https://discourse.julialang.org/t/cannot-download-any-packages-in-julia-1-11/122125 "2024-11-03T16:47:10Z")

</div>

ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally ) is the error I get. I …

---

## [Could not register updated package](https://discourse.julialang.org/t/could-not-register-updated-package/122201)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.julialang.org/u/HJW019)\
**Replies:** 4\
**Last updated:** [November 3, 2024, 4:36pm UTC](https://discourse.julialang.org/t/could-not-register-updated-package/122201 "2024-11-03T16:36:16Z")

</div>

I developed a package a couple of years ago and registered it with Julia with no problem. Now I want to release an update, but I tried and failed to register the new version to Julia. The TagBot log shows “No new version…

---

## [How to process a dictionary with multi tasking?](https://discourse.julialang.org/t/how-to-process-a-dictionary-with-multi-tasking/122186)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 9\
**Last updated:** [November 3, 2024, 1:45pm UTC](https://discourse.julialang.org/t/how-to-process-a-dictionary-with-multi-tasking/122186 "2024-11-03T13:45:47Z")

</div>

Hello I have a dictionary that I currently process this way: a = pairs(tiledict) foreach(a) do paire # some stuff goes here using paire\[1\] and paire\[2\] end I have to go through the whole dictionary. It does the wo…

---

## [Evaluation order of Threads.nthreads()](https://discourse.julialang.org/t/evaluation-order-of-threads-nthreads/121989)

<div class="topic-metadata">

**Author:** [@lkdvos](https://discourse.julialang.org/u/lkdvos)\
**Replies:** 3\
**Last updated:** [November 3, 2024, 1:33pm UTC](https://discourse.julialang.org/t/evaluation-order-of-threads-nthreads/121989 "2024-11-03T13:33:29Z")

</div>

I have found some unexpected behavior when trying to capture the result of Threads.nthreads(). The use-case is the following: module MyModule # some algorithms that may or may not use multithreading # Default settings …

---

## [StochasticDiffEq with Acausal modeling](https://discourse.julialang.org/t/stochasticdiffeq-with-acausal-modeling/121998)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 4\
**Last updated:** [November 3, 2024, 1:26pm UTC](https://discourse.julialang.org/t/stochasticdiffeq-with-acausal-modeling/121998 "2024-11-03T13:26:00Z")

</div>

Hello, I am trying to have a SDESystem instead of ODESystem for my acausal framework. The following block of code fails: using ModelingToolkit, Plots, DifferentialEquations, StochasticDiffEq using ModelingToolkit: t\_n…

---

## [CI fails to build GLMakie dependency](https://discourse.julialang.org/t/ci-fails-to-build-glmakie-dependency/80125)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [November 3, 2024, 12:56pm UTC](https://discourse.julialang.org/t/ci-fails-to-build-glmakie-dependency/80125 "2024-11-03T12:56:55Z")

</div>

I am trying to set up a CI pipeline for a package that depends on GLMakie. So far this fails with ERROR: LoadError: Failed to precompile GLMakie \[e9467ef8-e4e7-5192-8a1a-b1aee30e663a\] to /home/runner/.julia/compiled/v1.…

---

## [Passing Constants into Functions as local variables vs default parameters or global constants](https://discourse.julialang.org/t/passing-constants-into-functions-as-local-variables-vs-default-parameters-or-global-constants/122177)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 7\
**Last updated:** [November 3, 2024, 11:24am UTC](https://discourse.julialang.org/t/passing-constants-into-functions-as-local-variables-vs-default-parameters-or-global-constants/122177 "2024-11-03T11:24:33Z")

</div>

I am writing Module that calculates thermodynamic properties of water. Module consists of lots of functions and each function requires 34 constant values. Fortunately, those parameters are same for all functions. Curren…

---

## [SymbolicRegression via DataDrivenDiffEq throws error](https://discourse.julialang.org/t/symbolicregression-via-datadrivendiffeq-throws-error/122180)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 1\
**Last updated:** [November 3, 2024, 10:59am UTC](https://discourse.julialang.org/t/symbolicregression-via-datadrivendiffeq-throws-error/122180 "2024-11-03T10:59:40Z")

</div>

I’m trying to fit a data-driven differential equation system via DataDrivenDiffEq. DMD and Sindy work fine, but symbolic regression fails. Any ideas what’s wrong? # Load libraries using OrdinaryDiffEq using DataDrivenDi…

---

## [Learn to use Symbolics.jl](https://discourse.julialang.org/t/learn-to-use-symbolics-jl/122190)

<div class="topic-metadata">

**Author:** [@pywugate](https://discourse.julialang.org/u/pywugate)\
**Replies:** 1\
**Last updated:** [November 3, 2024, 10:57am UTC](https://discourse.julialang.org/t/learn-to-use-symbolics-jl/122190 "2024-11-03T10:57:29Z")

</div>

Hi , I want to use Symbolics.jl to solve bo and b1 from 2 equations b0 + b1 \* x1 = y1 b0 + b1 \* x2 = y2 I know in SymPy.jl it would be using SymPy @syms x\[1:2\] y\[1:2\] b\[0:1\] eqns = \[one.(x) x\] \* b .~ y solve(eqns, b)…

---

## [\`gui\` does not work with Jupyter Notebooks](https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194)

<div class="topic-metadata">

**Author:** [@tillfalko](https://discourse.julialang.org/u/tillfalko)\
**Replies:** 2\
**Last updated:** [November 3, 2024, 10:09am UTC](https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194 "2024-11-03T10:09:37Z")

</div>

One of my main frustrations with Julia is that the same code will behave differently on the REPL vs IJulia vs executed directly. Why does the code using Plots gui(plot(randn(10))) work on the REPL, but not in my Noteb…

---

## [How to generate a correct VTS grid using WriteVTK.jl?](https://discourse.julialang.org/t/how-to-generate-a-correct-vts-grid-using-writevtk-jl/122022)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [November 3, 2024, 10:00am UTC](https://discourse.julialang.org/t/how-to-generate-a-correct-vts-grid-using-writevtk-jl/122022 "2024-11-03T10:00:14Z")

</div>

Hello! I have the following code: using WriteVTK # Cell dimensions dx = 1.0 dy = 1.0 # Initialize lists for storing points and connectivity points = Vector{SVector{3, Float64}}() # List to store unique SVector poin…

---

## [A quick and dirty tool for generating \`Project.toml\`](https://discourse.julialang.org/t/a-quick-and-dirty-tool-for-generating-project-toml/11375)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 23\
**Last updated:** [November 3, 2024, 9:31am UTC](https://discourse.julialang.org/t/a-quick-and-dirty-tool-for-generating-project-toml/11375 "2024-11-03T09:31:44Z")

</div>

I wrote this simple tool for generating a Project.toml to make your Julia package compliant with the new Pkg. Just load up this module (put the file in your LOAD\_PATH and do using GenProject, head over to the directory …

---

## [Rewrite printf with print](https://discourse.julialang.org/t/rewrite-printf-with-print/122193)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 1\
**Last updated:** [November 3, 2024, 8:45am UTC](https://discourse.julialang.org/t/rewrite-printf-with-print/122193 "2024-11-03T08:45:06Z")

</div>

Hello, using Printf function twoTimesTable() for h = 1 : 12 @printf("%2d x 2 = %2d\\n", h, h\*2) end end # twoTimesTable twoTimesTable() How can I make this printf with print? Thank you.

---

## [Calling a variable in println](https://discourse.julialang.org/t/calling-a-variable-in-println/122168)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 3\
**Last updated:** [November 3, 2024, 7:01am UTC](https://discourse.julialang.org/t/calling-a-variable-in-println/122168 "2024-11-03T07:01:26Z")

</div>

Hello, I want to multiply the numbers 1 to 12 by 2. How can I change the following code so that this operation happens in println? for a=1 : 12 println("$a \* 2") end Thank you.

---

## [Still another type conversion problem](https://discourse.julialang.org/t/still-another-type-conversion-problem/122188)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 3\
**Last updated:** [November 3, 2024, 2:26am UTC](https://discourse.julialang.org/t/still-another-type-conversion-problem/122188 "2024-11-03T02:26:00Z")

</div>

I have created a DataFrame with a column “C” full of missing values which I intend to fill in afterwards with Floats64. I try to convert column “C” to Union{Float64, Missing} but Julia does not convert anything. The…

---

## [Cannot get package directory with dependencies to work](https://discourse.julialang.org/t/cannot-get-package-directory-with-dependencies-to-work/122187)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 3\
**Last updated:** [November 2, 2024, 11:36pm UTC](https://discourse.julialang.org/t/cannot-get-package-directory-with-dependencies-to-work/122187 "2024-11-02T23:36:19Z")

</div>

Here is an example: I create a directory ~/Julia/ExamplePackage with a Project.toml \[deps\] MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" and a file src/ExamplePackage.jl with contents module ExamplePackage using…

---

## [Fastest way to compute adjoint(x)\*A\*x in CUDA?](https://discourse.julialang.org/t/fastest-way-to-compute-adjoint-x-a-x-in-cuda/122160)

<div class="topic-metadata">

**Author:** [@joseph-t-lee](https://discourse.julialang.org/u/joseph-t-lee)\
**Replies:** 19\
**Last updated:** [November 2, 2024, 9:28pm UTC](https://discourse.julialang.org/t/fastest-way-to-compute-adjoint-x-a-x-in-cuda/122160 "2024-11-02T21:28:54Z")

</div>

I am trying to compute an expectation value of an observable, which just comes down to computing: adjoint(x) \* A \* x, where x is an N dimendional vector with ComplexF32 entries and A in an N by N matrix. Initially A and…

---

## [\[ANN\] TapeMeasure.jl - Dimensioning tool for Julia](https://discourse.julialang.org/t/ann-tapemeasure-jl-dimensioning-tool-for-julia/122183)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 0\
**Last updated:** [November 2, 2024, 7:42pm UTC](https://discourse.julialang.org/t/ann-tapemeasure-jl-dimensioning-tool-for-julia/122183 "2024-11-02T19:42:14Z")

</div>

TapeMeasure.jl TapeMeasure.jl is a package that can be used with both Plots.jl and Makie.jl. See below for basic usage: using TapeMeasure using Unitful using Plots const ft = u"ft" # Define a few objects consisting…

---

## [Why is FITSIO slow compared with python astropy?](https://discourse.julialang.org/t/why-is-fitsio-slow-compared-with-python-astropy/121926)

<div class="topic-metadata">

**Author:** [@thevalentino](https://discourse.julialang.org/u/thevalentino)\
**Replies:** 4\
**Last updated:** [November 2, 2024, 7:04pm UTC](https://discourse.julialang.org/t/why-is-fitsio-slow-compared-with-python-astropy/121926 "2024-11-02T19:04:34Z")

</div>

Hi there, I’m new to Julia and I’m trying to incorporate it to my work. I am trying to work with a FITS table that is fairly big (1.8 Gb). In astropy it’s easy to read it and load it into a pandas dataframe, it takes ~1…

---

## [Using Let block](https://discourse.julialang.org/t/using-let-block/110490)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 15\
**Last updated:** [November 2, 2024, 6:33pm UTC](https://discourse.julialang.org/t/using-let-block/110490 "2024-11-02T18:33:41Z")

</div>

If I define a variable b in Main and then use the let block: b = 5 let b = b println(b) end I get the error saying: " UndefVarError: b not defined" I can get this to work by doing: b = 5 let b = Main.b prin…

---

## [Sparse LU factorization on GPU](https://discourse.julialang.org/t/sparse-lu-factorization-on-gpu/122012)

<div class="topic-metadata">

**Author:** [@IvanBioli](https://discourse.julialang.org/u/IvanBioli)\
**Replies:** 12\
**Last updated:** [November 2, 2024, 5:26pm UTC](https://discourse.julialang.org/t/sparse-lu-factorization-on-gpu/122012 "2024-11-02T17:26:39Z")

</div>

Hi, I am working with a CuSparseMatrixCSR{Float64, Int32} matrix A on the GPU to solve a linear system multiple times during the training of an ML model. I’m hoping to perform a sparse LU factorization (with optional re…

---

## [\`minimum()\` 3x - 6x slower than \`numpy.min()\`](https://discourse.julialang.org/t/minimum-3x-6x-slower-than-numpy-min/121889)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 16\
**Last updated:** [November 2, 2024, 5:15pm UTC](https://discourse.julialang.org/t/minimum-3x-6x-slower-than-numpy-min/121889 "2024-11-02T17:15:20Z")

</div>

I think there are enough issues on github and nothing is moving so I’m not gonna spam there, but putting here to see if people have a temporary solution: julia\> using Chairmarks julia\> @be rand(Float32, 512000) minimum…

---

## [MATLAB Image Segmentation Algorithm Gives Empty Images in Julia?](https://discourse.julialang.org/t/matlab-image-segmentation-algorithm-gives-empty-images-in-julia/122156)

<div class="topic-metadata">

**Author:** [@matividalg](https://discourse.julialang.org/u/matividalg)\
**Replies:** 7\
**Last updated:** [November 2, 2024, 4:36pm UTC](https://discourse.julialang.org/t/matlab-image-segmentation-algorithm-gives-empty-images-in-julia/122156 "2024-11-02T16:36:43Z")

</div>

Hi there! I’m using the DICOM, FileIO, ImageMagick and other packages to load DICOM images for segmentation, but I just seem unable to. I’ve checked every post and even the repo. This is my code: using DICOM, Gtk4, Imag…

---

## [Has anyone seen marimo a new Python focused notebook? https://marimo.io/ Seems to have many ideas from Pluto.jl](https://discourse.julialang.org/t/has-anyone-seen-marimo-a-new-python-focused-notebook-https-marimo-io-seems-to-have-many-ideas-from-pluto-jl/122170)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [November 2, 2024, 3:59pm UTC](https://discourse.julialang.org/t/has-anyone-seen-marimo-a-new-python-focused-notebook-https-marimo-io-seems-to-have-many-ideas-from-pluto-jl/122170 "2024-11-02T15:59:20Z")

</div>

Seems have a a DAG reactive notebook in Python so definitely similar to Pluto in that regard.

---

## [Array flattening function](https://discourse.julialang.org/t/array-flattening-function/122154)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 8\
**Last updated:** [November 2, 2024, 3:54pm UTC](https://discourse.julialang.org/t/array-flattening-function/122154 "2024-11-02T15:54:20Z")

</div>

I’m looking for the function that takes a (m,n) matrix of (k,l) matrices and makes a (m\*k, n\*l) matrix? And likewise for other dimensions. This works for 2d but it’s a little verbose. Is there a simpler and more general …

---

## [Defining an outer constructor leads to infinite recursion](https://discourse.julialang.org/t/defining-an-outer-constructor-leads-to-infinite-recursion/122090)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 15\
**Last updated:** [November 2, 2024, 11:35am UTC](https://discourse.julialang.org/t/defining-an-outer-constructor-leads-to-infinite-recursion/122090 "2024-11-02T11:35:56Z")

</div>

This question really has two parts I have observed that defining an outer constructor leads to infinite recursion I understand why this is happening, but I do not know if I am doing something obviously stupid, which c…

---

## [Github doesn't run tests on compat PR](https://discourse.julialang.org/t/github-doesnt-run-tests-on-compat-pr/122167)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 1\
**Last updated:** [November 2, 2024, 11:29am UTC](https://discourse.julialang.org/t/github-doesnt-run-tests-on-compat-pr/122167 "2024-11-02T11:29:54Z")

</div>

Years ago whenever there was a new PR the test cases would run in GitHub actions. Now one has to approve the run somehow. Does anyone know how to run them on compat PRs? I have one here: CompatHelper: bump compat for JL…

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

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