# General Usage

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

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

**Page:** 5

---

## [Environments](https://discourse.julialang.org/t/environments/138636)

<div class="topic-metadata">

**Author:** [@blah\_blah.jl](https://discourse.julialang.org/u/blah_blah.jl)\
**Replies:** 20\
**Last updated:** [August 8, 2026, 3:20am UTC](https://discourse.julialang.org/t/environments/138636 "2026-08-08T03:20:38Z")

</div>

Hey folks, I am surprised with the whirlwind of events that happened at the Discourse yesterday and I am honestly shocked to even ask stuff now, but I need help with something and I still believe there is hope and goodne…

---

## [Issues Precompiling GLMakie](https://discourse.julialang.org/t/issues-precompiling-glmakie/134821)

<div class="topic-metadata">

**Author:** [@firebat](https://discourse.julialang.org/u/firebat)\
**Replies:** 4\
**Last updated:** [August 8, 2026, 1:39am UTC](https://discourse.julialang.org/t/issues-precompiling-glmakie/134821 "2026-08-08T01:39:02Z")

</div>

Hi all, not sure if this is the appropriate location for a general inquiry regarding a compile issue, although I wanted to ask if anyone could refer me to some resources on figuring out where I can get some understanding…

---

## [Compilation-order-dependent type inference](https://discourse.julialang.org/t/compilation-order-dependent-type-inference/138666)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 1\
**Last updated:** [August 7, 2026, 10:02pm UTC](https://discourse.julialang.org/t/compilation-order-dependent-type-inference/138666 "2026-08-07T22:02:30Z")

</div>

I have a fairly complex package where I’m observing some strange type inference behaviour. I expect that reducing my real problem to an MWE would be tricky, so instead I’m taking the liberty of presenting the problem in …

---

## [Hypot is not consistent?](https://discourse.julialang.org/t/hypot-is-not-consistent/138663)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 6\
**Last updated:** [August 7, 2026, 4:41pm UTC](https://discourse.julialang.org/t/hypot-is-not-consistent/138663 "2026-08-07T16:41:38Z")

</div>

Just saw this: julia\> Base.infer\_effects(hypot, NTuple{2, Float64}) (!c,+e,!n,+t,+s,+m,+u,+o,+r) How come hypot() is not consistent? Is this a problem of inference not being precise, or is there actually something that…

---

## [JETLS configuration not used in a VSCode workspace](https://discourse.julialang.org/t/jetls-configuration-not-used-in-a-vscode-workspace/138365)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 6, 2026, 9:52pm UTC](https://discourse.julialang.org/t/jetls-configuration-not-used-in-a-vscode-workspace/138365 "2026-08-06T21:52:42Z")

</div>

If I work with normal Julia projects, I can configure JETLS by placing a file with the name .JETLSConfig.toml in the root folder of the project/package. If I open a VS Code workspace containing multiple Julia projects, …

---

## [Is Julia Development Slowing?](https://discourse.julialang.org/t/is-julia-development-slowing/138622)

<div class="topic-metadata">

**Author:** [@harvestdeparture729](https://discourse.julialang.org/u/harvestdeparture729)\
**Replies:** 2\
**Last updated:** [August 6, 2026, 5:45am UTC](https://discourse.julialang.org/t/is-julia-development-slowing/138622 "2026-08-06T05:45:30Z")

</div>

Not much of a poster here, nor am I a professional developer (I jokingly refer to myself as an unprofessional developer, as I don’t have a formal background but code a decent amount). I had the passing thought the other…

---

## [Precompiled native code seems unused when a package is sourced from a git rev instead of a local path](https://discourse.julialang.org/t/precompiled-native-code-seems-unused-when-a-package-is-sourced-from-a-git-rev-instead-of-a-local-path/138584)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [August 5, 2026, 4:09am UTC](https://discourse.julialang.org/t/precompiled-native-code-seems-unused-when-a-package-is-sourced-from-a-git-rev-instead-of-a-local-path/138584 "2026-08-05T04:09:29Z")

</div>

On Julia 1.12.6, the same package at the same commit runs ~20x slower when it comes from Pkg.add(url=..., rev=...) than from a local path. The hot workload is a ModelingToolkit-generated, RuntimeGeneratedFunctions-wrappe…

---

## [Running AST directly (for scripts), bypassing parsing; deserialize ok in the sysimage?](https://discourse.julialang.org/t/running-ast-directly-for-scripts-bypassing-parsing-deserialize-ok-in-the-sysimage/138590)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [August 4, 2026, 10:25pm UTC](https://discourse.julialang.org/t/running-ast-directly-for-scripts-bypassing-parsing-deserialize-ok-in-the-sysimage/138590 "2026-08-04T22:25:08Z")

</div>

In short it’s faster, should go down to 1.02 sec from 1.318, 23% faster, assuming precompile overhead 0.51+ sec goes away, to run the abstract syntax tree (AST) than parse a script. I was testing with: However it’s no…

---

## [Strange error when using Kaimon](https://discourse.julialang.org/t/strange-error-when-using-kaimon/138581)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [August 4, 2026, 10:49am UTC](https://discourse.julialang.org/t/strange-error-when-using-kaimon/138581 "2026-08-04T10:49:34Z")

</div>

I often get this error message when AI is executing code that is precompiling a package: SYSTEM: caught exception of type :ErrorException while trying to print a failed Task notice; giving up What could be the reason?

---

## [M1 Running Julia on Asahi Linux - installation](https://discourse.julialang.org/t/m1-running-julia-on-asahi-linux-installation/78180)

<div class="topic-metadata">

**Author:** [@AlanAylmer](https://discourse.julialang.org/u/AlanAylmer)\
**Replies:** 16\
**Last updated:** [August 3, 2026, 8:38pm UTC](https://discourse.julialang.org/t/m1-running-julia-on-asahi-linux-installation/78180 "2026-08-03T20:38:12Z")

</div>

Julia runs on M1 Mac on Asahi Linux Asahi Linux now works on M1 and has most drivers up and running. I have changed this post many times as I have failed and learned I am installing what I call “Versions of the langua…

---

## [Non conservation of energy in ModelingToolkit with flexible bouncing ball example](https://discourse.julialang.org/t/non-conservation-of-energy-in-modelingtoolkit-with-flexible-bouncing-ball-example/138423)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 9\
**Last updated:** [August 3, 2026, 8:54am UTC](https://discourse.julialang.org/t/non-conservation-of-energy-in-modelingtoolkit-with-flexible-bouncing-ball-example/138423 "2026-08-03T08:54:36Z")

</div>

Question Based on the examples in the ModelingToolkit documentation I’m trying to expand a bit and model the impact behavior between two masses, one being connected to a base through a spring. To make it simple, an exam…

---

## [Julia-forge, a conda channel for official Julia](https://discourse.julialang.org/t/julia-forge-a-conda-channel-for-official-julia/138511)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [August 2, 2026, 8:53pm UTC](https://discourse.julialang.org/t/julia-forge-a-conda-channel-for-official-julia/138511 "2026-08-02T20:53:02Z")

</div>

A couple of years ago Wolf Vollprecht created a conda channel called julia-forge that repackges official Julia downloads as conda packages: Recently, I revived the project by adding recent stable (1.12.6) and long ter…

---

## [Workspaces for benchmarking, cryptanalysis, etc](https://discourse.julialang.org/t/workspaces-for-benchmarking-cryptanalysis-etc/138555)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 1\
**Last updated:** [August 2, 2026, 6:26am UTC](https://discourse.julialang.org/t/workspaces-for-benchmarking-cryptanalysis-etc/138555 "2026-08-02T06:26:50Z")

</div>

I previously invented a cipher called Wring and a hash function called Twistree. I made a separate repo WringTwistreeCryptanalysis to cryptanalyze it; it uses Makie to plot results, whereas WringTwistree does not use or …

---

## [Cross-language LTO with Base.llvmcall: getting past the "IR at every callsite" wall](https://discourse.julialang.org/t/cross-language-lto-with-base-llvmcall-getting-past-the-ir-at-every-callsite-wall/138429)

<div class="topic-metadata">

**Author:** [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Replies:** 8\
**Last updated:** [August 1, 2026, 9:29pm UTC](https://discourse.julialang.org/t/cross-language-lto-with-base-llvmcall-getting-past-the-ir-at-every-callsite-wall/138429 "2026-08-01T21:29:43Z")

</div>

I’ve been parked hard on Base.llvmcall for a while and I can’t leave it alone. At first I was cruising — “oh man, this replaces everything; I’ll just inline every FFI call and let Julia LTO the whole thing.” Then I tried…

---

## [Is there a ruff like linter](https://discourse.julialang.org/t/is-there-a-ruff-like-linter/130871)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 15\
**Last updated:** [August 1, 2026, 7:58am UTC](https://discourse.julialang.org/t/is-there-a-ruff-like-linter/130871 "2026-08-01T07:58:21Z")

</div>

In the Python universe ruff handles code formatting and linting. Is there anything in Julia that I could call like Linter.lint(".")?

---

## [How to build a sysimage for Windows](https://discourse.julialang.org/t/how-to-build-a-sysimage-for-windows/138500)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [July 31, 2026, 8:19pm UTC](https://discourse.julialang.org/t/how-to-build-a-sysimage-for-windows/138500 "2026-07-31T20:19:04Z")

</div>

I built a system image on Windows 10 using Julia 1.12. But I cannot start Julia with this system image: C:\\Users\\ufechner\\repos\\IM\_AWES\_bench.jl\\bin\>julia -J sysimage.dll ERROR: could not load library "C:\\Users\\ufechner…

---

## [Predicate function for indexing at a particular place?](https://discourse.julialang.org/t/predicate-function-for-indexing-at-a-particular-place/138531)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 4\
**Last updated:** [July 30, 2026, 5:36pm UTC](https://discourse.julialang.org/t/predicate-function-for-indexing-at-a-particular-place/138531 "2026-07-30T17:36:34Z")

</div>

Is there a predicate function for indexing a collection at a particular place? Obviously we can get the first index with first and last index with last, but if we want to map over a bunch of collections at the same time …

---

## [Jupyter crashes when using PyPlot and Julia 1.12](https://discourse.julialang.org/t/jupyter-crashes-when-using-pyplot-and-julia-1-12/134684)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 13\
**Last updated:** [July 30, 2026, 3:05pm UTC](https://discourse.julialang.org/t/jupyter-crashes-when-using-pyplot-and-julia-1-12/134684 "2026-07-30T15:05:14Z")

</div>

Hi, I don’t know why, but since I upgraded to julia 1.12 from 1.11 i most often get jupyter to simply crash when starting to load packages. Sometimes even the very first cell with simply using PyPlot already crashes …

---

## [Does it make sense to define compat bounds in the test/Project.toml?](https://discourse.julialang.org/t/does-it-make-sense-to-define-compat-bounds-in-the-test-project-toml/138466)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 11\
**Last updated:** [July 30, 2026, 10:36am UTC](https://discourse.julialang.org/t/does-it-make-sense-to-define-compat-bounds-in-the-test-project-toml/138466 "2026-07-30T10:36:09Z")

</div>

The question is in the title

---

## [Understanding why I am seeing precompilation on github actions. Cache partial miss](https://discourse.julialang.org/t/understanding-why-i-am-seeing-precompilation-on-github-actions-cache-partial-miss/138390)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 9\
**Last updated:** [July 30, 2026, 6:43am UTC](https://discourse.julialang.org/t/understanding-why-i-am-seeing-precompilation-on-github-actions-cache-partial-miss/138390 "2026-07-30T06:43:06Z")

</div>

I am seeing this message in my github actions logs: julia scripts/julia\_dev\_tooling/format.jl shell: /usr/bin/bash -e {0} env: JULIA\_PKG\_SERVER\_REGISTRY\_PREFERENCE: eager Activating project at \`~/work/biohau…

---

## [Best practices to ensure determinstic behaviour when random numbers are used](https://discourse.julialang.org/t/best-practices-to-ensure-determinstic-behaviour-when-random-numbers-are-used/138527)

<div class="topic-metadata">

**Author:** [@HMegh](https://discourse.julialang.org/u/HMegh)\
**Replies:** 2\
**Last updated:** [July 29, 2026, 3:55pm UTC](https://discourse.julialang.org/t/best-practices-to-ensure-determinstic-behaviour-when-random-numbers-are-used/138527 "2026-07-29T15:55:59Z")

</div>

Hi! I have been playing around with some number theory algorithms like Rabin-Shallit’s algorithm (see LagrangeFourSquares.jl) for finding a four-square representation (i.e., given n find a,b,c,d such that n=a^2+b^2+c^2+…

---

## [In silico clinical trials in Julia without using Pumas](https://discourse.julialang.org/t/in-silico-clinical-trials-in-julia-without-using-pumas/138049)

<div class="topic-metadata">

**Author:** [@arinbasu](https://discourse.julialang.org/u/arinbasu)\
**Replies:** 3\
**Last updated:** [July 29, 2026, 7:29am UTC](https://discourse.julialang.org/t/in-silico-clinical-trials-in-julia-without-using-pumas/138049 "2026-07-29T07:29:11Z")

</div>

Hi All, I am interested to know if anyone has any suggestions about packages other than Pumas for in silico clinical trials for Julia. I have been using DifferentialEquations and SciML for simple simulations but is it p…

---

## [Ensuring that julia is configured same way across all developers working on repository](https://discourse.julialang.org/t/ensuring-that-julia-is-configured-same-way-across-all-developers-working-on-repository/138502)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 8\
**Last updated:** [July 29, 2026, 5:13am UTC](https://discourse.julialang.org/t/ensuring-that-julia-is-configured-same-way-across-all-developers-working-on-repository/138502 "2026-07-29T05:13:26Z")

</div>

Hi, so I have a mono-repo. One fairly small part of it is a julia package. Most people i work with are not julia experts so don’t know a lot about configuring Julia in a sensible way. I would like to basically check …

---

## [Does resolve respect JULIA\_PKG\_PRESERVE\_TIERED\_INSTALLED?](https://discourse.julialang.org/t/does-resolve-respect-julia-pkg-preserve-tiered-installed/138389)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 6\
**Last updated:** [July 29, 2026, 3:21am UTC](https://discourse.julialang.org/t/does-resolve-respect-julia-pkg-preserve-tiered-installed/138389 "2026-07-29T03:21:00Z")

</div>

JULIA\_PKG\_PRESERVE\_TIERED\_INSTALLED is mentioned in the docs for \] add. But this is not the only way packages get installed. A particular case I am interested in is resolve. If you delete the Manifest.toml and run res…

---

## [Comparing Julia workflow performance (MTK/plotting/animation) across PCs](https://discourse.julialang.org/t/comparing-julia-workflow-performance-mtk-plotting-animation-across-pcs/138498)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [July 28, 2026, 4:49pm UTC](https://discourse.julialang.org/t/comparing-julia-workflow-performance-mtk-plotting-animation-across-pcs/138498 "2026-07-28T16:49:06Z")

</div>

I am running some comparisons of various PCs (two desktops, two laptops). Specifically a Jupyter Notebook in VSCode with 474 code cells: 14 simulations of MTK models (rigid models, PDEs), with plotting, one animation. So…

---

## [KaimonSlate export modes](https://discourse.julialang.org/t/kaimonslate-export-modes/138490)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 3\
**Last updated:** [July 27, 2026, 4:49pm UTC](https://discourse.julialang.org/t/kaimonslate-export-modes/138490 "2026-07-27T16:49:12Z")

</div>

Hi @kahliburke, I have a large number of Pluto notebooks that I use to undertake assessments with multiple-choice questions. The typical packages that are used are the following: CSV = “~0.10.16” DataFrames = “~1.8.2” …

---

## [Question about PGFPlotsX.jl](https://discourse.julialang.org/t/question-about-pgfplotsx-jl/81815)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 10\
**Last updated:** [July 27, 2026, 2:55pm UTC](https://discourse.julialang.org/t/question-about-pgfplotsx-jl/81815 "2026-07-27T14:55:49Z")

</div>

What’s wrong with this, I have installed LaTeX in my Mac M1. julia\> using PGFPlotsX julia\> pgfplotsx() Plots.PGFPlotsXBackend() julia\> surface(range(-3, 3, length = 30), range(-3, 3, length = 30), (x, y)…

---

## [Makie density line plot](https://discourse.julialang.org/t/makie-density-line-plot/63137)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 11\
**Last updated:** [July 26, 2026, 5:59am UTC](https://discourse.julialang.org/t/makie-density-line-plot/63137 "2026-07-26T05:59:47Z")

</div>

Can I somehow get a density as a line plot in Makie? The best I’ve come up with so far is density(randn(1\_000), color = (:red, 0.0), strokearound = true, strokecolor = :blue, strokewidth = 2) which seems a bit clumsy …

---

## [@static in Project.toml](https://discourse.julialang.org/t/static-in-project-toml/138474)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [July 25, 2026, 11:09pm UTC](https://discourse.julialang.org/t/static-in-project-toml/138474 "2026-07-25T23:09:38Z")

</div>

I am using the command @static Sys.ARCH == :aarch64 ? using WGLMakie : using GLMakie in my program to use WGLMakie on the Raspberry PI and GLMakie on other machines. This is due to OpenGL not being available on the RPI. …

---

## [The compilation time of max with dot distribution is kinda insane. workarounds?](https://discourse.julialang.org/t/the-compilation-time-of-max-with-dot-distribution-is-kinda-insane-workarounds/138440)

<div class="topic-metadata">

**Author:** [@rokke](https://discourse.julialang.org/u/rokke)\
**Replies:** 7\
**Last updated:** [July 25, 2026, 1:50am UTC](https://discourse.julialang.org/t/the-compilation-time-of-max-with-dot-distribution-is-kinda-insane-workarounds/138440 "2026-07-25T01:50:51Z")

</div>

I have a function that returns a tuple of two ints, and I want to find the largest int that shows up in each index. we’ve got this function in base called max which will do this for you, but the compilation time is kinda…

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

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