# General Usage

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

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

**Page:** 28

---

## [\`$JULIA\_LOAD\_PATH\` and Packages with no \`Project.toml\`](https://discourse.julialang.org/t/julia-load-path-and-packages-with-no-project-toml/134059)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 10\
**Last updated:** [December 1, 2025, 4:33am UTC](https://discourse.julialang.org/t/julia-load-path-and-packages-with-no-project-toml/134059 "2025-12-01T04:33:48Z")

</div>

Some packages don’t have a Project.toml file, like this one: GitHub - JuliaString/InternedStrings.jl: Fully transparent string interning functionality, with proper garbage collection In this case, how can Julia find thi…

---

## [Julia image threads on Windows](https://discourse.julialang.org/t/julia-image-threads-on-windows/129328)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 9\
**Last updated:** [December 1, 2025, 3:47am UTC](https://discourse.julialang.org/t/julia-image-threads-on-windows/129328 "2025-12-01T03:47:51Z")

</div>

As far as I know, by default PackageCompiler uses JULIA\_IMAGE\_THREADS=1 on Windows and all cores on Linux (Julia v1.10) due to which it completes much faster on Linux, but uses more RAM. I set on Windows system variable …

---

## [State of Julia Interactive Apps, Executables and WebApps](https://discourse.julialang.org/t/state-of-julia-interactive-apps-executables-and-webapps/134200)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 9\
**Last updated:** [December 1, 2025, 2:50am UTC](https://discourse.julialang.org/t/state-of-julia-interactive-apps-executables-and-webapps/134200 "2025-12-01T02:50:43Z")

</div>

I want to share my simulation online to users with different machines (Windows, MacBooks, Linux), etc., without them having to download Julia. Is there a clear, simple way to do so right now? The 2 things that I have in…

---

## [Looking for a curry package](https://discourse.julialang.org/t/looking-for-a-curry-package/134223)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 11\
**Last updated:** [November 30, 2025, 9:59pm UTC](https://discourse.julialang.org/t/looking-for-a-curry-package/134223 "2025-11-30T21:59:10Z")

</div>

I have a lot of functions that I would like to add an extra method to with the code f(; kwargs...) = (args...; kw...) -\> f(args...; kwargs..., kw...) where f is the function which takes at least one positional argument…

---

## [\[Work in progress\] Update of IUP.jl (gui library) for v1](https://discourse.julialang.org/t/work-in-progress-update-of-iup-jl-gui-library-for-v1/13960)

<div class="topic-metadata">

**Author:** [@disciple-of-reason](https://discourse.julialang.org/u/disciple-of-reason)\
**Replies:** 5\
**Last updated:** [November 30, 2025, 2:01pm UTC](https://discourse.julialang.org/t/work-in-progress-update-of-iup-jl-gui-library-for-v1/13960 "2025-11-30T14:01:39Z")

</div>

Hi, guys, I decided to update IUP.jl for Julia v1 (https://github.com/disciple-of-reason/IUP.jl/tree/juliav1) I made the package to load, made a few examples work, and - since this is the first thing I’m doing in Julia…

---

## [Extremely long compilation times in GoogleColab for ModelingToolkit.jl and other Julia packages](https://discourse.julialang.org/t/extremely-long-compilation-times-in-googlecolab-for-modelingtoolkit-jl-and-other-julia-packages/134232)

<div class="topic-metadata">

**Author:** [@JaviJR](https://discourse.julialang.org/u/JaviJR)\
**Replies:** 6\
**Last updated:** [November 30, 2025, 1:37pm UTC](https://discourse.julialang.org/t/extremely-long-compilation-times-in-googlecolab-for-modelingtoolkit-jl-and-other-julia-packages/134232 "2025-11-30T13:37:48Z")

</div>

Hi everyone, I’ve been using ModelingToolkit.jl on Google Colab recently, and I’ve run into a major issue: the compilation time is extremely large. In my case, the first-time compilation of ModelingToolkit took around 3…

---

## [Error "type Missing has no field ScreenConfig" when using abmvideo](https://discourse.julialang.org/t/error-type-missing-has-no-field-screenconfig-when-using-abmvideo/134226)

<div class="topic-metadata">

**Author:** [@BananaMaster3](https://discourse.julialang.org/u/BananaMaster3)\
**Replies:** 1\
**Last updated:** [November 30, 2025, 6:57am UTC](https://discourse.julialang.org/t/error-type-missing-has-no-field-screenconfig-when-using-abmvideo/134226 "2025-11-30T06:57:47Z")

</div>

I’m trying to modify a particle life simulation, but I’m getting this weird error when using abmvideo or abmplot. Here is the minimum example: using Makie, Agents, TimerOutputs # import StaticArraysCore: SVector, MVecto…

---

## [How to use ∂ function in my code or how to compute the mixed second-order partial derivatives or first-order cross partial derivatives of the velocity field \*\*u\*\*?](https://discourse.julialang.org/t/how-to-use-function-in-my-code-or-how-to-compute-the-mixed-second-order-partial-derivatives-or-first-order-cross-partial-derivatives-of-the-velocity-field-u/134213)

<div class="topic-metadata">

**Author:** [@Mr.Fool](https://discourse.julialang.org/u/Mr.Fool)\
**Replies:** 6\
**Last updated:** [November 30, 2025, 1:54am UTC](https://discourse.julialang.org/t/how-to-use-function-in-my-code-or-how-to-compute-the-mixed-second-order-partial-derivatives-or-first-order-cross-partial-derivatives-of-the-velocity-field-u/134213 "2025-11-30T01:54:11Z")

</div>

using WaterLily,StaticArrays,GLMakie,Makie,Plots using LinearAlgebra: eigvals, Hermitian function donut(L;Re=1e3,mem=Array,U=1) center,r = SA\[3L,3L,0\], L/2 bodya = AutoBody() do xyz,t x,y,z = xyz - cente…

---

## [Adventures in using Julia for real-time device communication](https://discourse.julialang.org/t/adventures-in-using-julia-for-real-time-device-communication/134218)

<div class="topic-metadata">

**Author:** [@mj2984](https://discourse.julialang.org/u/mj2984)\
**Replies:** 6\
**Last updated:** [November 29, 2025, 7:47pm UTC](https://discourse.julialang.org/t/adventures-in-using-julia-for-real-time-device-communication/134218 "2025-11-29T19:47:48Z")

</div>

Hi everyone, I’m looking to use Julia for communicating wirelessly with ESP32 boards with a user-friendly and performant API. I felt it would be nice to make a thread on this topic to document the progress which I belie…

---

## [Reading from empty dictionary isn't thread-safe](https://discourse.julialang.org/t/reading-from-empty-dictionary-isnt-thread-safe/134189)

<div class="topic-metadata">

**Author:** [@Fabian\_Matesa](https://discourse.julialang.org/u/Fabian_Matesa)\
**Replies:** 6\
**Last updated:** [November 29, 2025, 3:09pm UTC](https://discourse.julialang.org/t/reading-from-empty-dictionary-isnt-thread-safe/134189 "2025-11-29T15:09:02Z")

</div>

As the title suggests, trying to call get! on an empty dictionary in multiple threads concurrently will cause an error to be thrown. Example: dd = Dict() Threads.@threads for i in 1:1000 get!(dd, i, 2) end The issu…

---

## [How to write a master-subproblem iterative algorithm asynchronously?](https://discourse.julialang.org/t/how-to-write-a-master-subproblem-iterative-algorithm-asynchronously/131853)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 36\
**Last updated:** [November 29, 2025, 12:03pm UTC](https://discourse.julialang.org/t/how-to-write-a-master-subproblem-iterative-algorithm-asynchronously/131853 "2025-11-29T12:03:10Z")

</div>

My question is inspired by an optimization problem, e.g. the famous Benders decomposition. But I’ll introduce it here in an abstract easily-comprehended fashion. Settings of the problem :blue\_circle: On one hand, there …

---

## [Relation between BLAS.get\_num\_threads() and SLURM\_CPUS\_PER\_TASK](https://discourse.julialang.org/t/relation-between-blas-get-num-threads-and-slurm-cpus-per-task/134199)

<div class="topic-metadata">

**Author:** [@mancolric](https://discourse.julialang.org/u/mancolric)\
**Replies:** 2\
**Last updated:** [November 29, 2025, 11:58am UTC](https://discourse.julialang.org/t/relation-between-blas-get-num-threads-and-slurm-cpus-per-task/134199 "2025-11-29T11:58:36Z")

</div>

I am running the script MWE.jl using LinearAlgebra display(BLAS.get\_num\_threads()) via SLURM command srun --nodes=1 --ntasks-per-node=1 --cpus-per-task=6 --mem=1G julia MWE.jl As far as I know, for SLURM the CPUs ar…

---

## [New on Forem: “StaticCompiler - Generating small binaries"](https://discourse.julialang.org/t/new-on-forem-staticcompiler-generating-small-binaries/130464)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 9\
**Last updated:** [November 29, 2025, 8:53am UTC](https://discourse.julialang.org/t/new-on-forem-staticcompiler-generating-small-binaries/130464 "2025-11-29T08:53:37Z")

</div>

@Thomas008 shares some valuable experiences of using StaticCompiler to generate binaries out from Julia code: Thanks for sharing this!

---

## [Is there a way to determine whether code is toplevel?](https://discourse.julialang.org/t/is-there-a-way-to-determine-whether-code-is-toplevel/39939)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [November 28, 2025, 3:08pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-determine-whether-code-is-toplevel/39939 "2025-11-28T15:08:56Z")

</div>

I’m looking for a hypothetical @istoplevel, presumably a macro, which could work like this: module Foo @istoplevel() # true end julia\> @istoplevel() # true function foo() @istoplevel() # false end Does anything l…

---

## [Multi-threading Heisenbug: code is faster when profiled](https://discourse.julialang.org/t/multi-threading-heisenbug-code-is-faster-when-profiled/133805)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 5\
**Last updated:** [November 28, 2025, 2:01pm UTC](https://discourse.julialang.org/t/multi-threading-heisenbug-code-is-faster-when-profiled/133805 "2025-11-28T14:01:26Z")

</div>

I have some trivially parallelizable for loops that I wanted to speed up using multi-threading, namely using Folds.jls Folds.foreach(). I started julia with julia -t 8 to get one interactive thread and 8 worker threads a…

---

## [Type Stabled Jacobian of a Hessian](https://discourse.julialang.org/t/type-stabled-jacobian-of-a-hessian/134148)

<div class="topic-metadata">

**Author:** [@JPCAM](https://discourse.julialang.org/u/JPCAM)\
**Replies:** 3\
**Last updated:** [November 28, 2025, 11:41am UTC](https://discourse.julialang.org/t/type-stabled-jacobian-of-a-hessian/134148 "2025-11-28T11:41:28Z")

</div>

I’ve run into a type-stability issue when trying to compute third-order derivatives with ForwardDiff. I have a potential function that takes a vector as input. Computing the Hessian with ForwardDiff.hessian works well a…

---

## [Can binaries made with juliac --trim open files or read input?](https://discourse.julialang.org/t/can-binaries-made-with-juliac-trim-open-files-or-read-input/133059)

<div class="topic-metadata">

**Author:** [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Replies:** 5\
**Last updated:** [November 28, 2025, 6:51am UTC](https://discourse.julialang.org/t/can-binaries-made-with-juliac-trim-open-files-or-read-input/133059 "2025-11-28T06:51:57Z")

</div>

That’s my question. Does anyone have a working example of a program that compiles under v1.12 using juliac --trim=safe etc. that either opens and reads from a file or reads input from the terminal?

---

## [How to use partial derivate in my code?](https://discourse.julialang.org/t/how-to-use-partial-derivate-in-my-code/134176)

<div class="topic-metadata">

**Author:** [@Mr.Fool](https://discourse.julialang.org/u/Mr.Fool)\
**Replies:** 3\
**Last updated:** [November 28, 2025, 4:47am UTC](https://discourse.julialang.org/t/how-to-use-partial-derivate-in-my-code/134176 "2025-11-28T04:47:01Z")

</div>

I want to use the partial marked red in the figure to write my own code. The code I want to write is like figure below. But an error occurred. How can I achieve my code? Thank you for your answer.

---

## [Is there a package for numerical continuation analysis?](https://discourse.julialang.org/t/is-there-a-package-for-numerical-continuation-analysis/134161)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [November 27, 2025, 12:43pm UTC](https://discourse.julialang.org/t/is-there-a-package-for-numerical-continuation-analysis/134161 "2025-11-27T12:43:41Z")

</div>

Is there a package in Julia similar to the package GitHub - auto-07p/auto-07p: AUTO is a publicly available software for continuation and bifurcation problems in ordinary differential equations originally written in 1980…

---

## [Makie Texture Atlas Caching](https://discourse.julialang.org/t/makie-texture-atlas-caching/134131)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 3\
**Last updated:** [November 27, 2025, 9:39am UTC](https://discourse.julialang.org/t/makie-texture-atlas-caching/134131 "2025-11-27T09:39:12Z")

</div>

When using Makie offline, I got this warning: Warning: downloading texture atlas failed, need to re-create from scratch. exception = RequestError: Could not resolve host: github.com while requesting https://github.com/M…

---

## [What to do since CSR matrixes are not in Sparse Arrays?](https://discourse.julialang.org/t/what-to-do-since-csr-matrixes-are-not-in-sparse-arrays/53991)

<div class="topic-metadata">

**Author:** [@andfranklin](https://discourse.julialang.org/u/andfranklin)\
**Replies:** 9\
**Last updated:** [November 27, 2025, 9:26am UTC](https://discourse.julialang.org/t/what-to-do-since-csr-matrixes-are-not-in-sparse-arrays/53991 "2025-11-27T09:26:36Z")

</div>

Viral B. Shah discussed (in 2015!) why CSR matrixes were not included in Sparse Arrays: link. The justification makes sense, but I now find myself wishing there was an easy way to access CSR sparse array. I just want to…

---

## [Configuring the VS Code Julia Extension to Use a Custom Terminal Name](https://discourse.julialang.org/t/configuring-the-vs-code-julia-extension-to-use-a-custom-terminal-name/133521)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 1\
**Last updated:** [November 26, 2025, 8:57pm UTC](https://discourse.julialang.org/t/configuring-the-vs-code-julia-extension-to-use-a-custom-terminal-name/133521 "2025-11-26T20:57:54Z")

</div>

Is it possible to configure the VS Code Julia extension to execute code in a terminal session with a name other than the default “Julia REPL (version)”?

---

## [Second derivatives in Latexify](https://discourse.julialang.org/t/second-derivatives-in-latexify/134140)

<div class="topic-metadata">

**Author:** [@omerc](https://discourse.julialang.org/u/omerc)\
**Replies:** 0\
**Last updated:** [November 26, 2025, 12:10pm UTC](https://discourse.julialang.org/t/second-derivatives-in-latexify/134140 "2025-11-26T12:10:25Z")

</div>

Hi, I’m using the Symbolics package to generate a partial differential equation, and then Latexify to turn that into a Latex string for use in a manuscript that I’m writing. Essentially, I’m trying to write down the La…

---

## [\`Symbolics.value\` behavior change](https://discourse.julialang.org/t/symbolics-value-behavior-change/134024)

<div class="topic-metadata">

**Author:** [@AronT](https://discourse.julialang.org/u/AronT)\
**Replies:** 3\
**Last updated:** [November 26, 2025, 11:13am UTC](https://discourse.julialang.org/t/symbolics-value-behavior-change/134024 "2025-11-26T11:13:25Z")

</div>

A preface to this question. I use Symbolics.jl purely for study purposes and this is not an urgent question that impacts my work. Nor am I in anyway an expert in either mathematics or Julia. So a few weeks ago as parts …

---

## [Julia unable to recognize ROOT 6.32.08](https://discourse.julialang.org/t/julia-unable-to-recognize-root-6-32-08/134128)

<div class="topic-metadata">

**Author:** [@Aditya747S](https://discourse.julialang.org/u/Aditya747S)\
**Replies:** 2\
**Last updated:** [November 26, 2025, 8:44am UTC](https://discourse.julialang.org/t/julia-unable-to-recognize-root-6-32-08/134128 "2025-11-26T08:44:30Z")

</div>

I have installed ROOT 6.32.08 and it is available in PATH but when I do add ROOT in Julia REPL I am getting this warning (@v1.11) pkg\> add ROOT Resolving package versions... No Changes to \`C:\\Users\\Aditya\\.julia\\en…

---

## [MethodError using Omniscape](https://discourse.julialang.org/t/methoderror-using-omniscape/134126)

<div class="topic-metadata">

**Author:** [@petebaker](https://discourse.julialang.org/u/petebaker)\
**Replies:** 4\
**Last updated:** [November 26, 2025, 1:21am UTC](https://discourse.julialang.org/t/methoderror-using-omniscape/134126 "2025-11-26T01:21:26Z")

</div>

Hi all, I’m working on running an analysis in Omniscape, and am battling an error that I will post below. I have run these analyses before without issue. I’m getting this issue even when trying files that worked success…

---

## [Breakout-style game in Julia (GLMakie) — WIP](https://discourse.julialang.org/t/breakout-style-game-in-julia-glmakie-wip/133777)

<div class="topic-metadata">

**Author:** [@karei](https://discourse.julialang.org/u/karei)\
**Replies:** 6\
**Last updated:** [November 25, 2025, 6:28pm UTC](https://discourse.julialang.org/t/breakout-style-game-in-julia-glmakie-wip/133777 "2025-11-25T18:28:13Z")

</div>

I made a little Breakout game. Feel free to give it a try. Source code and download

---

## [Use MAT.jl to save a .mat file containing a MATLAB struct array](https://discourse.julialang.org/t/use-mat-jl-to-save-a-mat-file-containing-a-matlab-struct-array/63450)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [November 25, 2025, 6:25pm UTC](https://discourse.julialang.org/t/use-mat-jl-to-save-a-mat-file-containing-a-matlab-struct-array/63450 "2025-11-25T18:25:33Z")

</div>

Does anyone know if it’s possible to use MAT.jl to write a .mat file that contains a MATLAB struct array? It would be nice if something like this worked: julia\> using MAT julia\> struct A x::Int y:…

---

## [Using a shared library generated by PackageCompiler in a multi-threaded program](https://discourse.julialang.org/t/using-a-shared-library-generated-by-packagecompiler-in-a-multi-threaded-program/133972)

<div class="topic-metadata">

**Author:** [@danielmatz](https://discourse.julialang.org/u/danielmatz)\
**Replies:** 5\
**Last updated:** [November 25, 2025, 3:35pm UTC](https://discourse.julialang.org/t/using-a-shared-library-generated-by-packagecompiler-in-a-multi-threaded-program/133972 "2025-11-25T15:35:32Z")

</div>

I’m using PackageCompiler.jl to build a shared library, so that I can integrate one of my algorithms into a C++ simulation. The C++ simulation is multi-threaded. We’d like to call the Julia algorithm on a thread other th…

---

## [Variables in @belapsed benchmark](https://discourse.julialang.org/t/variables-in-belapsed-benchmark/134105)

<div class="topic-metadata">

**Author:** [@MrCapa](https://discourse.julialang.org/u/MrCapa)\
**Replies:** 2\
**Last updated:** [November 25, 2025, 5:45am UTC](https://discourse.julialang.org/t/variables-in-belapsed-benchmark/134105 "2025-11-25T05:45:03Z")

</div>

Hey there! Maybe anybody can help me? I don’t understand how variables work in @belapsed. My code: function test\_queue\_deque(n) @belapsed begin for i in 1:n popfirst!(dq) end end set…

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

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