# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=33

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

**Page:** 34

---

## [Understanding behavior of function extension in 1.12](https://discourse.julialang.org/t/understanding-behavior-of-function-extension-in-1-12/133451)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 3\
**Last updated:** [October 27, 2025, 11:33am UTC](https://discourse.julialang.org/t/understanding-behavior-of-function-extension-in-1-12/133451 "2025-10-27T11:33:40Z")

</div>

In one of my packages i get the following warning: ┌ GraphMakie │ WARNING: Constructor for type "Pointf" was extended in \`GraphMakie\` without explicit qualification or import. │ NOTE: Assumed "Pointf" refers to \`Geo…

---

## [VS Code to automatically start with the Julia REPL running](https://discourse.julialang.org/t/vs-code-to-automatically-start-with-the-julia-repl-running/133448)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 1\
**Last updated:** [October 27, 2025, 9:26am UTC](https://discourse.julialang.org/t/vs-code-to-automatically-start-with-the-julia-repl-running/133448 "2025-10-27T09:26:47Z")

</div>

Is it possible to configure VS Code to automatically start with the Julia REPL running in its integrated terminal?

---

## [Parametric struct without specifying type parameters](https://discourse.julialang.org/t/parametric-struct-without-specifying-type-parameters/133418)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 4\
**Last updated:** [October 27, 2025, 9:01am UTC](https://discourse.julialang.org/t/parametric-struct-without-specifying-type-parameters/133418 "2025-10-27T09:01:32Z")

</div>

Maybe it’s a bad pattern (opinions?), but I somewhat frequently find myself creating structs to hold many parameters, where each parameter might have a couple of types and as the struct is only used within my own code, I…

---

## [Value Dispatch Macro](https://discourse.julialang.org/t/value-dispatch-macro/133435)

<div class="topic-metadata">

**Author:** [@csvance](https://discourse.julialang.org/u/csvance)\
**Replies:** 4\
**Last updated:** [October 26, 2025, 8:57pm UTC](https://discourse.julialang.org/t/value-dispatch-macro/133435 "2025-10-26T20:57:07Z")

</div>

I’ve been messing around with the idea of streamlining dynamic dispatch on values for non hot path / glue code. The pattern is for multiple dispatch to dispatch to a function I define with a macro based on the known type…

---

## [Numeric stability of Base.exp of static matrix of Float32](https://discourse.julialang.org/t/numeric-stability-of-base-exp-of-static-matrix-of-float32/133389)

<div class="topic-metadata">

**Author:** [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Replies:** 12\
**Last updated:** [October 26, 2025, 7:46pm UTC](https://discourse.julialang.org/t/numeric-stability-of-base-exp-of-static-matrix-of-float32/133389 "2025-10-26T19:46:53Z")

</div>

Guys, I want to use Base.exp in my model which uses Float32 with StaticArray and StaticVector. However, I found there is a numerical instability of Base.exp with the 3\*3 matrix…see the example above: using StaticArrays…

---

## [Training of a universal differential equation on multiple initial states and mini-batches](https://discourse.julialang.org/t/training-of-a-universal-differential-equation-on-multiple-initial-states-and-mini-batches/132174)

<div class="topic-metadata">

**Author:** [@Xhemal\_Kodragjini](https://discourse.julialang.org/u/Xhemal_Kodragjini)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 1:20pm UTC](https://discourse.julialang.org/t/training-of-a-universal-differential-equation-on-multiple-initial-states-and-mini-batches/132174 "2025-10-24T13:20:07Z")

</div>

Hi, I am training a UDE controlled by an input signal as part of my thesis. To be able to get a more generalized neural network on multiple data, I want to train on around 1000 different initial states and use mini-batc…

---

## [My macro generates no code (?)](https://discourse.julialang.org/t/my-macro-generates-no-code/133416)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 2\
**Last updated:** [October 24, 2025, 12:25pm UTC](https://discourse.julialang.org/t/my-macro-generates-no-code/133416 "2025-10-24T12:25:18Z")

</div>

I am quite stumped! I have a macro, complicated yes, but I believe you can ignore most of its code, and still help me: If at the end of the macro definition, I @show the code it is to generate, it looks perfect. But i…

---

## [Add a constraint to a modeling toolkit model](https://discourse.julialang.org/t/add-a-constraint-to-a-modeling-toolkit-model/132553)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 12:03pm UTC](https://discourse.julialang.org/t/add-a-constraint-to-a-modeling-toolkit-model/132553 "2025-10-24T12:03:20Z")

</div>

I have a ModelingToolkit model that is a nonlinear ODE. I have made steady-state, transient and optimization analyses on this model. Now I would like to impose an additional constraint on one of the variables of the mod…

---

## [Is the scheduler's queue ordered?](https://discourse.julialang.org/t/is-the-schedulers-queue-ordered/133414)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 0\
**Last updated:** [October 24, 2025, 10:20am UTC](https://discourse.julialang.org/t/is-the-schedulers-queue-ordered/133414 "2025-10-24T10:20:18Z")

</div>

I spawn 5 tasks in sequence 1 to 5 (I assume the function foreach is strictly ordered). If I start julia with 1 default thread, it is ordered: ❯ julia --threads=1,1 \_ \_ \_ \_(\_)\_ | Documentat…

---

## [Installing LibCURL\_jll specific version](https://discourse.julialang.org/t/installing-libcurl-jll-specific-version/133405)

<div class="topic-metadata">

**Author:** [@csvance](https://discourse.julialang.org/u/csvance)\
**Replies:** 0\
**Last updated:** [October 24, 2025, 5:08am UTC](https://discourse.julialang.org/t/installing-libcurl-jll-specific-version/133405 "2025-10-24T05:08:48Z")

</div>

I’m trying to update to the latest version of LibCURL\_jll, but I am having some problems making it work. This was originally to check if an issue I was encountering was a bug with curl, but it turns out it was with my co…

---

## [Updating Makie to Julia v1.12.1](https://discourse.julialang.org/t/updating-makie-to-julia-v1-12-1/133395)

<div class="topic-metadata">

**Author:** [@SergeantMike67](https://discourse.julialang.org/u/SergeantMike67)\
**Replies:** 4\
**Last updated:** [October 23, 2025, 7:34pm UTC](https://discourse.julialang.org/t/updating-makie-to-julia-v1-12-1/133395 "2025-10-23T19:34:29Z")

</div>

I am trying to update to Julia 1.12.1 from 1.11.3 and have been running into a persistent error LoadError: FieldError: type Core.TypeName has no field \`mt This is while updating packages after updating Julia to 1.12.1 …

---

## [Preserving ComponentArray structure with DifferentiationInterface](https://discourse.julialang.org/t/preserving-componentarray-structure-with-differentiationinterface/133390)

<div class="topic-metadata">

**Author:** [@charlesknipp](https://discourse.julialang.org/u/charlesknipp)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 6:23pm UTC](https://discourse.julialang.org/t/preserving-componentarray-structure-with-differentiationinterface/133390 "2025-10-23T18:23:52Z")

</div>

I’m building a DSGE modeling language (lol what else is new) where I want to use something like ComponentArrays.jl for the construction of first order perturbations using DifferentiationInterface.jl. The point here is th…

---

## [Is the operation scheduling a task blocking?](https://discourse.julialang.org/t/is-the-operation-scheduling-a-task-blocking/133372)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 11\
**Last updated:** [October 23, 2025, 1:16pm UTC](https://discourse.julialang.org/t/is-the-operation-scheduling-a-task-blocking/133372 "2025-10-23T13:16:00Z")

</div>

Here is the doc Asynchronous Programming · The Julia Language It is common to want to create a task and schedule it right away, so the macro Threads.@spawn is provided for that purpose –- Threads.@spawn x is equivalent…

---

## [Large difference in computation time of expv from 4\*4 matrix to 3\*3 matrix](https://discourse.julialang.org/t/large-difference-in-computation-time-of-expv-from-4-4-matrix-to-3-3-matrix/133376)

<div class="topic-metadata">

**Author:** [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Replies:** 3\
**Last updated:** [October 23, 2025, 12:13pm UTC](https://discourse.julialang.org/t/large-difference-in-computation-time-of-expv-from-4-4-matrix-to-3-3-matrix/133376 "2025-10-23T12:13:20Z")

</div>

Hi Guys, I tried to profile the performance of ExponentialUtilities on static array as matrix. I found there is a big jump from 33 matrix to 44 matrix. May I know why? Here is the script I used for the testing: using E…

---

## [How to get ALL variable names currently accessible](https://discourse.julialang.org/t/how-to-get-all-variable-names-currently-accessible/108839)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 13\
**Last updated:** [October 23, 2025, 12:01pm UTC](https://discourse.julialang.org/t/how-to-get-all-variable-names-currently-accessible/108839 "2025-10-23T12:01:01Z")

</div>

I know about Base.names, however it ignores all the variables which are imported via using. Is there a function which also includes these? Or is there a way to tell whether a module was imported like using DataFrames? …

---

## [Wolfram Engine vs Julia](https://discourse.julialang.org/t/wolfram-engine-vs-julia/110016)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 7\
**Last updated:** [October 23, 2025, 11:55am UTC](https://discourse.julialang.org/t/wolfram-engine-vs-julia/110016 "2025-10-23T11:55:01Z")

</div>

Is there any interface between Julia and Wolfram Engine?

---

## [PackageCompiler create\_sysimage options for Artifacts](https://discourse.julialang.org/t/packagecompiler-create-sysimage-options-for-artifacts/133380)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 0\
**Last updated:** [October 23, 2025, 11:30am UTC](https://discourse.julialang.org/t/packagecompiler-create-sysimage-options-for-artifacts/133380 "2025-10-23T11:30:44Z")

</div>

I succeeded making a system image for a Windows PC with a different cpu\_target. But when I started it, it failed because some artifacts (…SpecFun) were not installed. So I solved it by instantiating the packages, which…

---

## [Make mutating function more AD-friendly](https://discourse.julialang.org/t/make-mutating-function-more-ad-friendly/133356)

<div class="topic-metadata">

**Author:** [@MrMR](https://discourse.julialang.org/u/MrMR)\
**Replies:** 10\
**Last updated:** [October 23, 2025, 9:52am UTC](https://discourse.julialang.org/t/make-mutating-function-more-ad-friendly/133356 "2025-10-23T09:52:03Z")

</div>

Dear all, since this is my first post, I want to thank you for the help I got in many years I used Julia (I always found the answer to my problems in previous posts!). Diving into the problem: what I need to do is to …

---

## [The same async program run on (Linux+AMD) vs (Win+Intel), over 6x performance difference](https://discourse.julialang.org/t/the-same-async-program-run-on-linux-amd-vs-win-intel-over-6x-performance-difference/133276)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [October 23, 2025, 9:38am UTC](https://discourse.julialang.org/t/the-same-async-program-run-on-linux-amd-vs-win-intel-over-6x-performance-difference/133276 "2025-10-23T09:38:33Z")

</div>

Long story short: I wrote a async programming code which uses multithreads. The same code is run on two servers. The Linux server is 6.5 times faster than the other (both attaining the same correct results). I’m not hur…

---

## [Reading from socket causes massive amounts of memory allocation](https://discourse.julialang.org/t/reading-from-socket-causes-massive-amounts-of-memory-allocation/133206)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 12\
**Last updated:** [October 23, 2025, 9:23am UTC](https://discourse.julialang.org/t/reading-from-socket-causes-massive-amounts-of-memory-allocation/133206 "2025-10-23T09:23:21Z")

</div>

Reading from network sockets appears to cause massive amounts of memory allocation. Does anyone know why? Is this a bug? raw\_data = Vector{UInt8}(undef, message\_length) read!(socket, raw\_data) What I find strange is t…

---

## [Scoping rules try-catch inside a while loop](https://discourse.julialang.org/t/scoping-rules-try-catch-inside-a-while-loop/133360)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 7\
**Last updated:** [October 23, 2025, 8:09am UTC](https://discourse.julialang.org/t/scoping-rules-try-catch-inside-a-while-loop/133360 "2025-10-23T08:09:31Z")

</div>

Hi all, I have a problem due to scoping rules of while loop and try-catch block. I have read similar topics on the forum, but the answers seems to be inapplicable in my case. My problem is the following. I have a funct…

---

## [Updating to 1.12.1 failure](https://discourse.julialang.org/t/updating-to-1-12-1-failure/133271)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 9\
**Last updated:** [October 23, 2025, 5:13am UTC](https://discourse.julialang.org/t/updating-to-1-12-1-failure/133271 "2025-10-23T05:13:03Z")

</div>

I’ve run into a strange failure when I tried to update to 1.12.1 I got the following spew of messages, which I don’t understand at all. My installation is down. Any suggestions welcome! rfritz@Lobo ~ % juliaup update C…

---

## [Code coverage not tracking custom EnzymeRules.augmented\_primal and EnzymeRules.reverse implementations](https://discourse.julialang.org/t/code-coverage-not-tracking-custom-enzymerules-augmented-primal-and-enzymerules-reverse-implementations/133359)

<div class="topic-metadata">

**Author:** [@kongdd](https://discourse.julialang.org/u/kongdd)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 3:08am UTC](https://discourse.julialang.org/t/code-coverage-not-tracking-custom-enzymerules-augmented-primal-and-enzymerules-reverse-implementations/133359 "2025-10-23T03:08:39Z")

</div>

I’m working on a package that implements custom autodiff rules for Enzyme. I’ve defined augmented\_primal and reverse methods for EnzymeRules. These functions are called indirectly through autodiff. When I run my te…

---

## [Xranklin.jl compatibility with Julia 1.12](https://discourse.julialang.org/t/xranklin-jl-compatibility-with-julia-1-12/133364)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 3\
**Last updated:** [October 22, 2025, 7:38pm UTC](https://discourse.julialang.org/t/xranklin-jl-compatibility-with-julia-1-12/133364 "2025-10-22T19:38:25Z")

</div>

I’ve been using Xranklin.jl, the intended successor to Franklin.jl for building static sites. I know @tlienart has been busy / unable to devote much time to his open source development, but it’s been mostly working fine. …

---

## [Type-stable \`(...)\` tuples of types?](https://discourse.julialang.org/t/type-stable-tuples-of-types/133361)

<div class="topic-metadata">

**Author:** [@mlange-42](https://discourse.julialang.org/u/mlange-42)\
**Replies:** 3\
**Last updated:** [October 22, 2025, 6:58pm UTC](https://discourse.julialang.org/t/type-stable-tuples-of-types/133361 "2025-10-22T18:58:14Z")

</div>

Hi all! I have an ECS (entity component system) API and try to make type-stable use of tuples of types. Currently, I have it working well with VarArgs, for example: pos, vel = get\_components(world, entity, Position, Ve…

---

## [Chaining conditionals](https://discourse.julialang.org/t/chaining-conditionals/133295)

<div class="topic-metadata">

**Author:** [@op3n](https://discourse.julialang.org/u/op3n)\
**Replies:** 4\
**Last updated:** [October 22, 2025, 3:29pm UTC](https://discourse.julialang.org/t/chaining-conditionals/133295 "2025-10-22T15:29:53Z")

</div>

Hello everyone, I am new to Julia and this discourse, still learning the syntax, please excuse my novice questions Please let me preface that I have tried to look up the answer before posting this Is there a way to cha…

---

## [\`x !== nothing\` incorrectly reported by \`@code\_lowered\` and Cthulhu.jl?](https://discourse.julialang.org/t/x-nothing-incorrectly-reported-by-code-lowered-and-cthulhu-jl/133345)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 6\
**Last updated:** [October 22, 2025, 12:57pm UTC](https://discourse.julialang.org/t/x-nothing-incorrectly-reported-by-code-lowered-and-cthulhu-jl/133345 "2025-10-22T12:57:08Z")

</div>

Not sure if this is a bug, or I’m missing something about understanding the output of @code\_lowered and Cthulhu’s @descend. The following REPL snippet shows a very simple function, which if called with argument nothing d…

---

## [Error when using multistart optimization](https://discourse.julialang.org/t/error-when-using-multistart-optimization/133174)

<div class="topic-metadata">

**Author:** [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Replies:** 3\
**Last updated:** [October 22, 2025, 11:56am UTC](https://discourse.julialang.org/t/error-when-using-multistart-optimization/133174 "2025-10-22T11:56:48Z")

</div>

I tried to use multistart optimization with LBFGS using packages: MultiStartOptimization.jl. However, I found the code demo in the website (MultistartOptimization.jl · Optimization.jl) yields error like following message…

---

## [Reflections on an typo (getindex(::NamedTuple, ...))](https://discourse.julialang.org/t/reflections-on-an-typo-getindex-namedtuple/133331)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [October 22, 2025, 8:38am UTC](https://discourse.julialang.org/t/reflections-on-an-typo-getindex-namedtuple/133331 "2025-10-22T08:38:57Z")

</div>

I have recently finished debugging some code, with an error deep inside a calculation that wasted me a few hours. I wish to emphasize that this is not a bug in Julia. It is my error. But, as you will see below, I can en…

---

## [Worse runtimes in Julia v1.12](https://discourse.julialang.org/t/worse-runtimes-in-julia-v1-12/133231)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 20\
**Last updated:** [October 22, 2025, 6:13am UTC](https://discourse.julialang.org/t/worse-runtimes-in-julia-v1-12/133231 "2025-10-22T06:13:43Z")

</div>

The runtimes are getting worse in Julia v1.12. I have a couple of tests in GeoStatsFunctions.jl that are now failing: CompositeVariogram: Test Failed at /home/runner/work/GeoStatsFunctions.jl/GeoStatsFunctions.jl/test/…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=32)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=34)
