# Latest

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

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

**Page:** 522

---

## [16 bit float on Transformers.jl](https://discourse.julialang.org/t/16-bit-float-on-transformers-jl/107867)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 7\
**Last updated:** [December 28, 2023, 7:40pm UTC](https://discourse.julialang.org/t/16-bit-float-on-transformers-jl/107867 "2023-12-28T19:40:13Z")

</div>

I am new to LLMs but thought to give it a shot using Transformers.jl. This worked rather well, after creating an account at HuggingFace and getting permission for Llama-7B from Meta. Yet, I was surprised how much GPU ram…

---

## [Question About New GC Threads](https://discourse.julialang.org/t/question-about-new-gc-threads/108117)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 7\
**Last updated:** [December 28, 2023, 5:47pm UTC](https://discourse.julialang.org/t/question-about-new-gc-threads/108117 "2023-12-28T17:47:51Z")

</div>

I am excited to start using Julia 1.10.0 since I have a particular set of simulations which are allocation heavy (many small allocations) and I believe the GC is the current bottleneck. I want to make sure I am doing th…

---

## [Using \`replace()\` with unicode dot](https://discourse.julialang.org/t/using-replace-with-unicode-dot/108133)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 2\
**Last updated:** [December 28, 2023, 2:53pm UTC](https://discourse.julialang.org/t/using-replace-with-unicode-dot/108133 "2023-12-28T14:53:46Z")

</div>

Is there a way to get the “\\dot” unicode character to be replaced? julia\> replace("ẋ′", "ẋ"=\>"dx", "′"=\>"\_p") "ẋ\_p"

---

## [Allocations from selecting fields of a named tuple](https://discourse.julialang.org/t/allocations-from-selecting-fields-of-a-named-tuple/108112)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 4\
**Last updated:** [December 28, 2023, 12:53pm UTC](https://discourse.julialang.org/t/allocations-from-selecting-fields-of-a-named-tuple/108112 "2023-12-28T12:53:29Z")

</div>

There seems to be a large difference in the number allocations when selecting fields from a named tuple via two different approaches. using BenchmarkTools nt = (a=1, b=2, c=3) t = (:b, :c) If I use getindex, I get 6 al…

---

## [Can I rely on consecutive state positions of a variable in discretized problem with MOL?](https://discourse.julialang.org/t/can-i-rely-on-consecutive-state-positions-of-a-variable-in-discretized-problem-with-mol/108126)

<div class="topic-metadata">

**Author:** [@progtw1](https://discourse.julialang.org/u/progtw1)\
**Replies:** 1\
**Last updated:** [December 28, 2023, 12:22pm UTC](https://discourse.julialang.org/t/can-i-rely-on-consecutive-state-positions-of-a-variable-in-discretized-problem-with-mol/108126 "2023-12-28T12:22:06Z")

</div>

MethodOfLines creates a symbolic array variable indexed over discretized spaces. After structurally simplifying the system (currently done automatically in the discretization) there are several corresponding variables i…

---

## [Plots: Ribbons along y-axis](https://discourse.julialang.org/t/plots-ribbons-along-y-axis/108100)

<div class="topic-metadata">

**Author:** [@jabru](https://discourse.julialang.org/u/jabru)\
**Replies:** 2\
**Last updated:** [December 28, 2023, 11:49am UTC](https://discourse.julialang.org/t/plots-ribbons-along-y-axis/108100 "2023-12-28T11:49:29Z")

</div>

Hi there, I am currently trying to plot my data with a standard deviation. However, due to context reasons, I have a function f(y) instead of f(x). I would now like to make the error look nice with the help of the ribbo…

---

## [Which Krylov package solves A\*x=b where x and b can be any "vector-like" object?](https://discourse.julialang.org/t/which-krylov-package-solves-a-x-b-where-x-and-b-can-be-any-vector-like-object/108121)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 1\
**Last updated:** [December 28, 2023, 11:25am UTC](https://discourse.julialang.org/t/which-krylov-package-solves-a-x-b-where-x-and-b-can-be-any-vector-like-object/108121 "2023-12-28T11:25:13Z")

</div>

Hi, I would like to solve a linear equation Ax=b with Krylov method. My unknown “vector” x is a multidimensional array wrapped in a custom type that \<:AbstractArray, and my A operator is just a linear map defined on x. S…

---

## [How do I check which GPU backend I should use](https://discourse.julialang.org/t/how-do-i-check-which-gpu-backend-i-should-use/108108)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [December 28, 2023, 9:51am UTC](https://discourse.julialang.org/t/how-do-i-check-which-gpu-backend-i-should-use/108108 "2023-12-28T09:51:18Z")

</div>

I want to try some GPU computation (for a tutorial). I use DiffEqGPU, and need to designate a backend of these: CUDA.functional(). Is there a good way (more than installing, compiling, and checking all alternatives) to …

---

## [Matrix type for inversion](https://discourse.julialang.org/t/matrix-type-for-inversion/108107)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 2\
**Last updated:** [December 28, 2023, 9:22am UTC](https://discourse.julialang.org/t/matrix-type-for-inversion/108107 "2023-12-28T09:22:53Z")

</div>

Hi, I would like to solve a linear system A x=b where A is band by block. The bandwith can be big (~10). An example of such matrix is for example the one in the trapezoid method. I can do a LU decomposition to solve th…

---

## [Change to MTK plotting?](https://discourse.julialang.org/t/change-to-mtk-plotting/108109)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [December 28, 2023, 9:15am UTC](https://discourse.julialang.org/t/change-to-mtk-plotting/108109 "2023-12-28T09:15:56Z")

</div>

I just updated Julia to v1.10, and now plotting results from MTK models do not work as before. Consider a solution structure sol from an MTK model: julia\> sol(0.5, idxs=\[r2m.Vd\_v, r2m.Dp\_p\]) 2-element Vector{Float64}: …

---

## [Zygote “double where trick”](https://discourse.julialang.org/t/zygote-double-where-trick/108118)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 0\
**Last updated:** [December 28, 2023, 6:25am UTC](https://discourse.julialang.org/t/zygote-double-where-trick/108118 "2023-12-28T06:25:35Z")

</div>

I spend a lot of time with jax, where I often have to employ the “double where trick” to prevent NaNs from propagating in the backward pass. The Zygote docs mention that arrays should be immutable. So if I want to enfor…

---

## [Trivial port from C++/Rust to Julia](https://discourse.julialang.org/t/trivial-port-from-c-rust-to-julia/105787)

<div class="topic-metadata">

**Author:** [@feribg](https://discourse.julialang.org/u/feribg)\
**Replies:** 51\
**Last updated:** [December 28, 2023, 5:21am UTC](https://discourse.julialang.org/t/trivial-port-from-c-rust-to-julia/105787 "2023-12-28T05:21:30Z")

</div>

I’m trying to port a very trivial MC simulation from C++ / Rust to Julia. Here are the 3 implementations: C++: (clang OSX) https://pastebin.com/HWEUxa6W Rust: https://pastebin.com/7d31ynJE Julia: https://pastebin.com…

---

## [Some AMDGPU tests failing on Radeon VII under Windows](https://discourse.julialang.org/t/some-amdgpu-tests-failing-on-radeon-vii-under-windows/108074)

<div class="topic-metadata">

**Author:** [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Replies:** 10\
**Last updated:** [December 27, 2023, 11:34pm UTC](https://discourse.julialang.org/t/some-amdgpu-tests-failing-on-radeon-vii-under-windows/108074 "2023-12-27T23:34:04Z")

</div>

I recently installed ROCm/HIP on Windows. I have a Radeon VII installed in my desktop, which isn’t officially supported but I’ve heard that it works for some people. It seems to kind-of work, but I consistently get a sma…

---

## [Error in atexit() when stopping with SIGTERM signal](https://discourse.julialang.org/t/error-in-atexit-when-stopping-with-sigterm-signal/60486)

<div class="topic-metadata">

**Author:** [@kubcoporubco](https://discourse.julialang.org/u/kubcoporubco)\
**Replies:** 0\
**Last updated:** [May 3, 2021, 9:37pm UTC](https://discourse.julialang.org/t/error-in-atexit-when-stopping-with-sigterm-signal/60486 "2021-05-03T21:37:33Z")

</div>

Hi, I am running a compiled julia application in a docker container. In the application code I am registering a zero argument function closeAll by calling the atexit(closeAll). The closeAll function should be called befo…

---

## [Ctrl-C in script: atexit is ignored](https://discourse.julialang.org/t/ctrl-c-in-script-atexit-is-ignored/82413)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 8:44am UTC](https://discourse.julialang.org/t/ctrl-c-in-script-atexit-is-ignored/82413 "2022-06-08T08:44:46Z")

</div>

I cannot seem to be able to use atexit properly, in the context of catching Ctrl-C when running a script in Julia 1.7.2: function main() atexit(() -\> println("caught")) println("started program") sleep(5) …

---

## [Graceful interruption and ensure finishing current loop](https://discourse.julialang.org/t/graceful-interruption-and-ensure-finishing-current-loop/92359)

<div class="topic-metadata">

**Author:** [@AllanChain](https://discourse.julialang.org/u/AllanChain)\
**Replies:** 0\
**Last updated:** [December 31, 2022, 1:30pm UTC](https://discourse.julialang.org/t/graceful-interruption-and-ensure-finishing-current-loop/92359 "2022-12-31T13:30:53Z")

</div>

I have a big for loop but each step only takes a few secs to finish. What I want is that when I press Ctrl+C, the program finishes the current loop and stores the states in a file. I know there’s something called exit\_o…

---

## [Interrupting Task in 0.4 vs 0.5+](https://discourse.julialang.org/t/interrupting-task-in-0-4-vs-0-5/3529)

<div class="topic-metadata">

**Author:** [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Replies:** 0\
**Last updated:** [May 5, 2017, 8:54am UTC](https://discourse.julialang.org/t/interrupting-task-in-0-4-vs-0-5/3529 "2017-05-05T08:54:53Z")

</div>

Interrupting task in 0.4 used to fail gracefully, while in 0.5+ it freezes the REPL in some situations, e.g: 0.4.7 : julia\> t = @schedule begin try remotecall\_fetch(1,sleep,100) cat…

---

## [Catching InterruptException in Embedded Julia](https://discourse.julialang.org/t/catching-interruptexception-in-embedded-julia/38466)

<div class="topic-metadata">

**Author:** [@randy3k](https://discourse.julialang.org/u/randy3k)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 5:30am UTC](https://discourse.julialang.org/t/catching-interruptexception-in-embedded-julia/38466 "2020-04-30T05:30:38Z")

</div>

\#include \<julia.h\> JULIA\_DEFINE\_FAST\_TLS() // only define this once, in an executable (not in a shared library) if you want fast code. int main(int argc, char \*argv\[\]) { jl\_init(); JL\_TRY { jl\_eval\_stri…

---

## [\`Unitful\`: define units in module and use them outside](https://discourse.julialang.org/t/unitful-define-units-in-module-and-use-them-outside/108059)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 14\
**Last updated:** [December 27, 2023, 10:38pm UTC](https://discourse.julialang.org/t/unitful-define-units-in-module-and-use-them-outside/108059 "2023-12-27T22:38:17Z")

</div>

I’m reading the documentation (linked at the bottom of this message) about how to define new units and have come up with a module like this module MyUnits using Unitful Unitful.register(@\_\_MODULE\_\_) # What does this do…

---

## [How to handle light wrapper packages generated by Clang.jl?](https://discourse.julialang.org/t/how-to-handle-light-wrapper-packages-generated-by-clang-jl/108114)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [December 27, 2023, 9:51pm UTC](https://discourse.julialang.org/t/how-to-handle-light-wrapper-packages-generated-by-clang-jl/108114 "2023-12-27T21:51:49Z")

</div>

Using Clang.jl, Julia bindings can made quite easily using Clang.jl. While this is almost automatic, it does require some manual fine tuning to work. Below are some examples of such packages. In the case of LibTIFF.jl a…

---

## [Enzyme gives 0 derivative when I use temporary array](https://discourse.julialang.org/t/enzyme-gives-0-derivative-when-i-use-temporary-array/108018)

<div class="topic-metadata">

**Author:** [@reusens](https://discourse.julialang.org/u/reusens)\
**Replies:** 4\
**Last updated:** [December 27, 2023, 7:07pm UTC](https://discourse.julialang.org/t/enzyme-gives-0-derivative-when-i-use-temporary-array/108018 "2023-12-27T19:07:31Z")

</div>

I am trying to understand how to use Enzyme. I run the following code: using Enzyme abstract type Layer end mutable struct parameter p::Array end mutable struct Final\<:Layer A::parameter end v=Float32.(randn…

---

## [\`SymPy.Sym\`s as keys in Dicts](https://discourse.julialang.org/t/sympy-sym-s-as-keys-in-dicts/103995)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 5\
**Last updated:** [December 27, 2023, 7:04pm UTC](https://discourse.julialang.org/t/sympy-sym-s-as-keys-in-dicts/103995 "2023-12-27T19:04:45Z")

</div>

It seems that Tuples containting SymPy.Syms don’t work as keys in julia’s standard dicts as expected. See the following MWE and its very counterintuitive behaviour. julia\> using SymPy julia\> t = symbols("t") t julia\> …

---

## [AI models are too costly](https://discourse.julialang.org/t/ai-models-are-too-costly/107983)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 78\
**Last updated:** [December 27, 2023, 6:28pm UTC](https://discourse.julialang.org/t/ai-models-are-too-costly/107983 "2023-12-27T18:28:44Z")

</div>

Do we want to be part of the problem, or part of the solution?

---

## [GLMakie, yscale=log10 and Float32](https://discourse.julialang.org/t/glmakie-yscale-log10-and-float32/101731)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 4:39pm UTC](https://discourse.julialang.org/t/glmakie-yscale-log10-and-float32/101731 "2023-12-27T16:39:00Z")

</div>

A simple scatter plot with a log scale gives an error if the y values underflow Float32: x = 10.0.^-(0:50) using GLMakie fig = Figure() ax = Axis(fig\[1,1\], yscale=log10) scatter!(x) ERROR: Found invalid y-limits (0.0f0…

---

## [Macro expanding to macro: @macroexpand1 works while @macroexpand does not](https://discourse.julialang.org/t/macro-expanding-to-macro-macroexpand1-works-while-macroexpand-does-not/108099)

<div class="topic-metadata">

**Author:** [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Replies:** 7\
**Last updated:** [December 27, 2023, 4:33pm UTC](https://discourse.julialang.org/t/macro-expanding-to-macro-macroexpand1-works-while-macroexpand-does-not/108099 "2023-12-27T16:33:26Z")

</div>

While doing some repetitive data evaluation I had the idea to write a simple templating macro to reduce the boilerplate a bit. However my solution does not work and I don’t understand why. Moreover it in fact does work, …

---

## [Julia quirks (v. 1.9.0 and higher)](https://discourse.julialang.org/t/julia-quirks-v-1-9-0-and-higher/108098)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 3:23pm UTC](https://discourse.julialang.org/t/julia-quirks-v-1-9-0-and-higher/108098 "2023-12-27T15:23:27Z")

</div>

I’m a huge fan of Julia compiler, even if my knowledge of it is very limited. As you should expected with such complicated program it has few quirks that we should be aware of. Since I’m not advanced Julia programmer, I …

---

## [Stepping to Base code](https://discourse.julialang.org/t/stepping-to-base-code/108092)

<div class="topic-metadata">

**Author:** [@hlbnet](https://discourse.julialang.org/u/hlbnet)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 3:20pm UTC](https://discourse.julialang.org/t/stepping-to-base-code/108092 "2023-12-27T15:20:26Z")

</div>

Hello, I am learning Julia with VS code. I like to discover code using the debugger, by stepping into code I do not know. Unfortunately, the debugger prevents me from stepping in any code that is not my own code. Is …

---

## [SparseSparse for inverting structured sparse matrices](https://discourse.julialang.org/t/sparsesparse-for-inverting-structured-sparse-matrices/105715)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 4\
**Last updated:** [December 27, 2023, 2:48pm UTC](https://discourse.julialang.org/t/sparsesparse-for-inverting-structured-sparse-matrices/105715 "2023-12-27T14:48:33Z")

</div>

Hello, A few days ago, I discovered in this discussion that there is seemingly no way of inverting structured sparse matrices in Julia. We say that a matrix A is morally block diagonal if there are permutation matrices P…

---

## [Question About Unicode and Symbols](https://discourse.julialang.org/t/question-about-unicode-and-symbols/108080)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 2\
**Last updated:** [December 27, 2023, 2:05pm UTC](https://discourse.julialang.org/t/question-about-unicode-and-symbols/108080 "2023-12-27T14:05:53Z")

</div>

Hello I’ve been experimenting with overloading getproperty for some structs in a personal project of mine. I noticed the following throws an error (using getfield instead of getproperty in this MWE). Does anyone know …

---

## [Julia v1.10.0 has been released](https://discourse.julialang.org/t/julia-v1-10-0-has-been-released/108095)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [December 27, 2023, 2:06pm UTC](https://discourse.julialang.org/t/julia-v1-10-0-has-been-released/108095 "2023-12-27T14:06:53Z")

</div>

The Julia developers are pleased to announce the release of Julia v1.10.0, the tenth minor release in the 1.x series. Some folks put together a blog post highlighting some of the most exciting new features in 1.10 and w…

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

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