# Latest

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

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

**Page:** 227

---

## [Type instability and/or behavior instability of \`sqrt\` on nightly](https://discourse.julialang.org/t/type-instability-and-or-behavior-instability-of-sqrt-on-nightly/125428)

<div class="topic-metadata">

**Author:** [@lkdvos](https://discourse.julialang.org/u/lkdvos)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 8:20pm UTC](https://discourse.julialang.org/t/type-instability-and-or-behavior-instability-of-sqrt-on-nightly/125428 "2025-02-03T20:20:31Z")

</div>

I noticed that since this commit for LinearAlgebra.jl, the default implementation of sqrt will now check if a matrix is diagonal to improve performance. There is however a change in behavior associated to this which mig…

---

## [VSCode extension julia terminal not loading/adding \`LocalRegistry\` and private registries](https://discourse.julialang.org/t/vscode-extension-julia-terminal-not-loading-adding-localregistry-and-private-registries/125482)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 6:29pm UTC](https://discourse.julialang.org/t/vscode-extension-julia-terminal-not-loading-adding-localregistry-and-private-registries/125482 "2025-02-03T18:29:42Z")

</div>

I had to rebuild my computer OS recently. I run ubuntu 22.04 LTS. I reinstalled julia and vscode, but for some reason I am having trouble with julia registries. So I use LocalRegistry for tracking development registries…

---

## [I get errors when using module](https://discourse.julialang.org/t/i-get-errors-when-using-module/125351)

<div class="topic-metadata">

**Author:** [@Fahim](https://discourse.julialang.org/u/Fahim)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 4:24pm UTC](https://discourse.julialang.org/t/i-get-errors-when-using-module/125351 "2025-02-03T16:24:14Z")

</div>

Dear Julia friends, First of all, I apologize for my poor English skills. I have a problem developing a module that uses Embeddings.jl: module Portal include("./t.jl") export get\_embedding end # module Portal using Em…

---

## [Multi-thread speed in very large vectors](https://discourse.julialang.org/t/multi-thread-speed-in-very-large-vectors/125342)

<div class="topic-metadata">

**Author:** [@pjssilva](https://discourse.julialang.org/u/pjssilva)\
**Replies:** 11\
**Last updated:** [February 3, 2025, 3:02pm UTC](https://discourse.julialang.org/t/multi-thread-speed-in-very-large-vectors/125342 "2025-02-03T15:02:26Z")

</div>

Hi, I am trying to get my toes wet on some multi-threading code using the great OhMyThreads package. But there is a behavior that I don’t understand. I can exemplify it using the sum function. The most natural implementa…

---

## [Approximate implicit function on real line](https://discourse.julialang.org/t/approximate-implicit-function-on-real-line/125421)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [February 3, 2025, 2:31pm UTC](https://discourse.julialang.org/t/approximate-implicit-function-on-real-line/125421 "2025-02-03T14:31:38Z")

</div>

I have a family of functions y(x) defined implicitly by x = \\log\\left(\\sum\_{i=1}^N \\exp(a\_i + y b\_i) \\right) where 0 \< b\_1 \< \\dots \< b\_N can be assumed. It is easy to find the solution numerically (eg with Newton’s m…

---

## [Restrictions when adding a binary variable - Local Infeasibility (Ipopt, Juniper)](https://discourse.julialang.org/t/restrictions-when-adding-a-binary-variable-local-infeasibility-ipopt-juniper/121870)

<div class="topic-metadata">

**Author:** [@fynnhoffmann54](https://discourse.julialang.org/u/fynnhoffmann54)\
**Replies:** 15\
**Last updated:** [January 23, 2025, 8:27am UTC](https://discourse.julialang.org/t/restrictions-when-adding-a-binary-variable-local-infeasibility-ipopt-juniper/121870 "2025-01-23T08:27:21Z")

</div>

Hello, I am trying to model a nonlinear optimization problem involving binary variables and continuous variables. Specifically, I cannot understand why a binary variable “z\_sys\_to\_HP(s)” makes the model unusable. My mo…

---

## [Change of behavior with \`hasmethod(eval(Meta.parse()))\`](https://discourse.julialang.org/t/change-of-behavior-with-hasmethod-eval-meta-parse/125500)

<div class="topic-metadata">

**Author:** [@christophe.berthod](https://discourse.julialang.org/u/christophe.berthod)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 2:05pm UTC](https://discourse.julialang.org/t/change-of-behavior-with-hasmethod-eval-meta-parse/125500 "2025-02-03T14:05:16Z")

</div>

One of my codes broke due to a change of behavior of hasmethod(eval(Meta.parse())) around version 1.10.4. Prior to version 1.10.4 (e.g. 1.9.3) julia\> hasmethod(eval(Meta.parse("x-\>x")), (Real, )) true julia\> f(s) = ha…

---

## [ModelingToolkit connector error with Arrays](https://discourse.julialang.org/t/modelingtoolkit-connector-error-with-arrays/123565)

<div class="topic-metadata">

**Author:** [@fracpl](https://discourse.julialang.org/u/fracpl)\
**Replies:** 9\
**Last updated:** [February 3, 2025, 11:22am UTC](https://discourse.julialang.org/t/modelingtoolkit-connector-error-with-arrays/123565 "2025-02-03T11:22:08Z")

</div>

Hi, I am trying to implement from scratch some 3D multibody dynamics with ModelingToolkit.jl. When I define my connector (Frame) using arrays: using ModelingToolkit using LinearAlgebra using ModelingToolkit: t\_nounits a…

---

## [Tests fail on CI, pass locally](https://discourse.julialang.org/t/tests-fail-on-ci-pass-locally/125140)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 14\
**Last updated:** [January 31, 2025, 3:32pm UTC](https://discourse.julialang.org/t/tests-fail-on-ci-pass-locally/125140 "2025-01-31T15:32:22Z")

</div>

The tests for the following pull requests pass locally, but fail on Github when using Julia 1.11 : Kcu steering · ufechner7/KiteModels.jl@5cd060d · GitHub Any idea how to debug that? The problem is that when running th…

---

## [How to Use Native FP4 and FP8 for Computation in the Julia Environment with CUDA.jl](https://discourse.julialang.org/t/how-to-use-native-fp4-and-fp8-for-computation-in-the-julia-environment-with-cuda-jl/125475)

<div class="topic-metadata">

**Author:** [@ajsagit](https://discourse.julialang.org/u/ajsagit)\
**Replies:** 0\
**Last updated:** [February 2, 2025, 3:15pm UTC](https://discourse.julialang.org/t/how-to-use-native-fp4-and-fp8-for-computation-in-the-julia-environment-with-cuda-jl/125475 "2025-02-02T15:15:47Z")

</div>

How to Use Native FP4 and FP8 for Computation in the Julia Environment with CUDA.jl TIA

---

## [Help with CUDA and Flux. DeviceMemory issue](https://discourse.julialang.org/t/help-with-cuda-and-flux-devicememory-issue/125481)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 2\
**Last updated:** [February 2, 2025, 11:17pm UTC](https://discourse.julialang.org/t/help-with-cuda-and-flux-devicememory-issue/125481 "2025-02-02T23:17:44Z")

</div>

Hello, good evening. Im having an issue trying to run the Flux get started example. Always got ArgumentError: Illegal conversion of a CUDA.DeviceMemory to a Ptr{Float32} It brokes in line 17: out1 = model(nois…

---

## [Most recent binary artifact (GMT\_jll) is not being updated, nor installed on fresh installs of GMT.jl](https://discourse.julialang.org/t/most-recent-binary-artifact-gmt-jll-is-not-being-updated-nor-installed-on-fresh-installs-of-gmt-jl/125473)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 6\
**Last updated:** [February 2, 2025, 9:34pm UTC](https://discourse.julialang.org/t/most-recent-binary-artifact-gmt-jll-is-not-being-updated-nor-installed-on-fresh-installs-of-gmt-jl/125473 "2025-02-02T21:34:43Z")

</div>

Hi, Don’t know what is happening but the new builds of the GMT\_jll artifact are not being installed. The artifact, 6.5.3+1, was created fine (GitHub - JuliaBinaryWrappers/GMT\_jll.jl at GMT-v6.5.3+1) but what keeps being…

---

## [UndefVarError when using @turbo on nested for loop whose inner loop depends on value in outer loop](https://discourse.julialang.org/t/undefvarerror-when-using-turbo-on-nested-for-loop-whose-inner-loop-depends-on-value-in-outer-loop/125477)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 2\
**Last updated:** [February 2, 2025, 8:57pm UTC](https://discourse.julialang.org/t/undefvarerror-when-using-turbo-on-nested-for-loop-whose-inner-loop-depends-on-value-in-outer-loop/125477 "2025-02-02T20:57:54Z")

</div>

I am trying to optimize some for-loops in a package I am working on, so I decided to check out LoopVectorization. I ran into some errors, and constructed the following MWE: using LoopVectorization function f(jmax,kmax)…

---

## [What is the best way to get a running matrix-product over a large 3D array](https://discourse.julialang.org/t/what-is-the-best-way-to-get-a-running-matrix-product-over-a-large-3d-array/125452)

<div class="topic-metadata">

**Author:** [@SanAlphaTau](https://discourse.julialang.org/u/SanAlphaTau)\
**Replies:** 9\
**Last updated:** [February 2, 2025, 4:44pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-get-a-running-matrix-product-over-a-large-3d-array/125452 "2025-02-02T16:44:16Z")

</div>

Heya, I am doing some markov process simulations which output NxN matrices these are stored (currently) in a 3D array X\[N, N, M) where M can be very large (1E6 or more). My code currently uses a reduce statement reduce…

---

## [Why the Floating-Point Calculation Efficiency of CUDA.jl Does Not Reach the Official Theoretical Value](https://discourse.julialang.org/t/why-the-floating-point-calculation-efficiency-of-cuda-jl-does-not-reach-the-official-theoretical-value/125474)

<div class="topic-metadata">

**Author:** [@ajsagit](https://discourse.julialang.org/u/ajsagit)\
**Replies:** 1\
**Last updated:** [February 2, 2025, 3:55pm UTC](https://discourse.julialang.org/t/why-the-floating-point-calculation-efficiency-of-cuda-jl-does-not-reach-the-official-theoretical-value/125474 "2025-02-02T15:55:10Z")

</div>

using CUDA using BenchmarkTools using Printf function benchmark\_floating\_point(T::Type, size=2048) aligned\_size = div(size, 8) \* 8 A = CUDA.rand(T, (aligned\_size, aligned\_size)) B = CUDA.rand(T, (aligned\_siz…

---

## [If in === ∈, why does .∈ work but .in fails with a ParseError?](https://discourse.julialang.org/t/if-in-why-does-work-but-in-fails-with-a-parseerror/125464)

<div class="topic-metadata">

**Author:** [@Matheus](https://discourse.julialang.org/u/Matheus)\
**Replies:** 5\
**Last updated:** [February 2, 2025, 1:02pm UTC](https://discourse.julialang.org/t/if-in-why-does-work-but-in-fails-with-a-parseerror/125464 "2025-02-02T13:02:59Z")

</div>

Hello everyone, I’m trying to understand the following behavior regarding in and ∈ (I guess they’re called operators?). While they are functionally identical (in === ∈ returns true), they behave differently when used wi…

---

## [Nullspace in exact arithmetics](https://discourse.julialang.org/t/nullspace-in-exact-arithmetics/125471)

<div class="topic-metadata">

**Author:** [@azoviktor](https://discourse.julialang.org/u/azoviktor)\
**Replies:** 4\
**Last updated:** [February 2, 2025, 1:03pm UTC](https://discourse.julialang.org/t/nullspace-in-exact-arithmetics/125471 "2025-02-02T13:03:19Z")

</div>

Is there a generic Julia implementation of a nullspace in exact arithmetics? I.e., I am interested in nullspace(A::AbstractMatrix{T}), where T is any field number datatype. The return type of the method would be again Ab…

---

## [Reading exact value of a pixel in an indexed (colormap) image](https://discourse.julialang.org/t/reading-exact-value-of-a-pixel-in-an-indexed-colormap-image/125467)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 2\
**Last updated:** [February 2, 2025, 11:31am UTC](https://discourse.julialang.org/t/reading-exact-value-of-a-pixel-in-an-indexed-colormap-image/125467 "2025-02-02T11:31:54Z")

</div>

Hello I have a tiff file with pixel values in one byte and a color table. When I read the file I can display the RGB value of any pixel but want I want is the exact value of the pixel. This is a classified image and I d…

---

## [Writing points to vtk with WriteVTK.jl](https://discourse.julialang.org/t/writing-points-to-vtk-with-writevtk-jl/50635)

<div class="topic-metadata">

**Author:** [@O\_Julia](https://discourse.julialang.org/u/O_Julia)\
**Replies:** 3\
**Last updated:** [February 2, 2025, 10:22am UTC](https://discourse.julialang.org/t/writing-points-to-vtk-with-writevtk-jl/50635 "2025-02-02T10:22:47Z")

</div>

Hi, I am trying to export a set of points with corresponding value at each point using WriteVTK.jl. More precisely, I am trying to convert following codes given here. from evtk.hl import pointsToVTK import numpy as n…

---

## [Strange outcome for the Julia list with different type of elements](https://discourse.julialang.org/t/strange-outcome-for-the-julia-list-with-different-type-of-elements/125409)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 5\
**Last updated:** [February 2, 2025, 5:29am UTC](https://discourse.julialang.org/t/strange-outcome-for-the-julia-list-with-different-type-of-elements/125409 "2025-02-02T05:29:27Z")

</div>

Here is the minimum working example. julia\> f= rand(Float32, 8) 8-element Vector{Float32}: 0.31442094 0.31442094 0.2593087 0.2593087 0.11091578 0.11091578 0.14340413 0.14340413 julia\> i = rand(Int32, 8) 8-eleme…

---

## [Unclear allocation behaviour with built-in sum()](https://discourse.julialang.org/t/unclear-allocation-behaviour-with-built-in-sum/125304)

<div class="topic-metadata">

**Author:** [@Deceneu](https://discourse.julialang.org/u/Deceneu)\
**Replies:** 4\
**Last updated:** [February 2, 2025, 1:04am UTC](https://discourse.julialang.org/t/unclear-allocation-behaviour-with-built-in-sum/125304 "2025-02-02T01:04:34Z")

</div>

Hello, Introduction I’ve been trying to process some data and I’ve encountered crippling allocation when using the built-in sum(). I have some mid-level understanding of how to increase performance in Julia, but regardi…

---

## [\`Zygote.gradient\` is 54000 TIMES slower than \`jax.gradient\`](https://discourse.julialang.org/t/zygote-gradient-is-54000-times-slower-than-jax-gradient/125396)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 80\
**Last updated:** [February 1, 2025, 9:25pm UTC](https://discourse.julialang.org/t/zygote-gradient-is-54000-times-slower-than-jax-gradient/125396 "2025-02-01T21:25:46Z")

</div>

I’m almost unable to compute ant gradients (EDIT 9 hrs later: meant to say “any gradients”, but got gradients for ants) in Zygote. I initially attempted to optimize my model using around a million parameters, but it got …

---

## [Can I manage the memory by myself?](https://discourse.julialang.org/t/can-i-manage-the-memory-by-myself/97250)

<div class="topic-metadata">

**Author:** [@zhijie\_sun](https://discourse.julialang.org/u/zhijie_sun)\
**Replies:** 16\
**Last updated:** [February 1, 2025, 7:03pm UTC](https://discourse.julialang.org/t/can-i-manage-the-memory-by-myself/97250 "2025-02-01T19:03:19Z")

</div>

I have a code, the GC live and RSS memory increased quickly when running, while I don’t need such big memory to do basic computation. I need to allocate lots of small dict for intermidiate computing before, and the memor…

---

## [Segmentation Fault using packages](https://discourse.julialang.org/t/segmentation-fault-using-packages/125458)

<div class="topic-metadata">

**Author:** [@kurt](https://discourse.julialang.org/u/kurt)\
**Replies:** 2\
**Last updated:** [February 1, 2025, 7:45pm UTC](https://discourse.julialang.org/t/segmentation-fault-using-packages/125458 "2025-02-01T19:45:03Z")

</div>

Help! Every time i try using Julia’s package help in the REPL, i.e. “\]”, i get a segmentation error, and julia quits. Here is the output from versioninfo(): Julia Version 1.11.3 Commit d63adeda50d (2025-01-21 19:42 UTC…

---

## [Creating Parametric ReLU in Flux](https://discourse.julialang.org/t/creating-parametric-relu-in-flux/10987)

<div class="topic-metadata">

**Author:** [@Azamat](https://discourse.julialang.org/u/Azamat)\
**Replies:** 8\
**Last updated:** [February 1, 2025, 6:19pm UTC](https://discourse.julialang.org/t/creating-parametric-relu-in-flux/10987 "2025-02-01T18:19:48Z")

</div>

I would like to create Parametric ReLU (PReLU), an activation function, that is described in \[1502.01852\] Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification I know I should use u…

---

## [Removing bounds checking for HPC - \`--check-bounds=unsafe\`?](https://discourse.julialang.org/t/removing-bounds-checking-for-hpc-check-bounds-unsafe/124897)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 51\
**Last updated:** [February 1, 2025, 4:05pm UTC](https://discourse.julialang.org/t/removing-bounds-checking-for-hpc-check-bounds-unsafe/124897 "2025-02-01T16:05:26Z")

</div>

One of Julia’s main purposes is to enable high-performance computing at scale - it’s on the front page (Ecosystem → Parallel Computing at The Julia Programming Language)! However, apparently --check-bounds=no is becoming…

---

## [How to develop code in Vulkan using Julia?](https://discourse.julialang.org/t/how-to-develop-code-in-vulkan-using-julia/125456)

<div class="topic-metadata">

**Author:** [@mj2984](https://discourse.julialang.org/u/mj2984)\
**Replies:** 1\
**Last updated:** [February 1, 2025, 2:33pm UTC](https://discourse.julialang.org/t/how-to-develop-code-in-vulkan-using-julia/125456 "2025-02-01T14:33:52Z")

</div>

I am looking to see if it is possible to generate SPIR-V code from Julia that can be used in Vulkan (Compute). Or something that can transform Julia code to Vulkan for compute purposes. The intention is to write a code …

---

## [How to use size type as lower precision in Static Arrays?](https://discourse.julialang.org/t/how-to-use-size-type-as-lower-precision-in-static-arrays/125457)

<div class="topic-metadata">

**Author:** [@mj2984](https://discourse.julialang.org/u/mj2984)\
**Replies:** 1\
**Last updated:** [February 1, 2025, 2:24pm UTC](https://discourse.julialang.org/t/how-to-use-size-type-as-lower-precision-in-static-arrays/125457 "2025-02-01T14:24:52Z")

</div>

Currently Static Arrays throws an error if the size type is anything other than Int64. Considering the size of Arrays is much smaller, is it possible to support other types such as UInt8, Int8, etc?

---

## [Only Abstract Types in Method Signatures](https://discourse.julialang.org/t/only-abstract-types-in-method-signatures/125435)

<div class="topic-metadata">

**Author:** [@PatrickHaecker](https://discourse.julialang.org/u/PatrickHaecker)\
**Replies:** 6\
**Last updated:** [February 1, 2025, 11:23am UTC](https://discourse.julialang.org/t/only-abstract-types-in-method-signatures/125435 "2025-02-01T11:23:30Z")

</div>

Reading @JonasWickman’s comment that views generally use abstract types for their method definition made me think. If the method has at least one type in its signature this type needs to have an abstract parent and if An…

---

## [3D volume plot is blank with Plots.jl + GR.jl](https://discourse.julialang.org/t/3d-volume-plot-is-blank-with-plots-jl-gr-jl/125444)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 1\
**Last updated:** [February 1, 2025, 9:16am UTC](https://discourse.julialang.org/t/3d-volume-plot-is-blank-with-plots-jl-gr-jl/125444 "2025-02-01T09:16:13Z")

</div>

The backend is GR. Thanks. julia\> using Plots julia\> heatmap(rand(10,10,10)) julia\> versioninfo() Julia Version 1.10.8 Commit 4c16ff44be (2025-01-22 10:06 UTC) Build Info: Official https://julialang.org/ release Pla…

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

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