# General Usage

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

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

**Page:** 17

---

## [Bisecting regressions across dependencies](https://discourse.julialang.org/t/bisecting-regressions-across-dependencies/135985)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 6\
**Last updated:** [March 6, 2026, 6:54am UTC](https://discourse.julialang.org/t/bisecting-regressions-across-dependencies/135985 "2026-03-06T06:54:07Z")

</div>

I have this medium-sized industrial model written in ModelingToolkit, optimized via Optimization.jl. When I run it (warm) in my environment from January 22nd, it completes in less than a second. However, after updating m…

---

## [How to make color bar and contour plot agree in makie?](https://discourse.julialang.org/t/how-to-make-color-bar-and-contour-plot-agree-in-makie/136054)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [March 6, 2026, 6:32am UTC](https://discourse.julialang.org/t/how-to-make-color-bar-and-contour-plot-agree-in-makie/136054 "2026-03-06T06:32:01Z")

</div>

Hello. I was wondering how to change the color mapping in the example below. I thought I could change limits in the colorbar and the range of colors in the contour plot would adjust accordingly. Changing the lower limit,…

---

## [Is there an equivalent to cross-language link time optimization via LLVM?](https://discourse.julialang.org/t/is-there-an-equivalent-to-cross-language-link-time-optimization-via-llvm/135625)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 30\
**Last updated:** [March 6, 2026, 4:47am UTC](https://discourse.julialang.org/t/is-there-an-equivalent-to-cross-language-link-time-optimization-via-llvm/135625 "2026-03-06T04:47:21Z")

</div>

I’m reading about this between Rust and C/Fortran/etc, and here’s a simple example of constant folding from inlining an integer range summation from Rust into a C program with literal integer inputs. Obviously we don’t r…

---

## [Block Jacobian Storage for DSGE](https://discourse.julialang.org/t/block-jacobian-storage-for-dsge/136053)

<div class="topic-metadata">

**Author:** [@charlesknipp](https://discourse.julialang.org/u/charlesknipp)\
**Replies:** 0\
**Last updated:** [March 5, 2026, 9:17pm UTC](https://discourse.julialang.org/t/block-jacobian-storage-for-dsge/136053 "2026-03-05T21:17:09Z")

</div>

Summary When working with large system matrices, it is often convenient to express them in block form; moreover, since I consider a particular class of dynamic models, this system often yields a block Toeplitz form which…

---

## [Interactive tables in Quarto](https://discourse.julialang.org/t/interactive-tables-in-quarto/136010)

<div class="topic-metadata">

**Author:** [@jromanowska](https://discourse.julialang.org/u/jromanowska)\
**Replies:** 4\
**Last updated:** [March 5, 2026, 7:07pm UTC](https://discourse.julialang.org/t/interactive-tables-in-quarto/136010 "2026-03-05T19:07:26Z")

</div>

I was wondering if there are packages that can create an interactive .html table, to be included in a Quarto document? In R, there is DT, which outputs basically JS-code for interactive tables in the html.

---

## [Good practices regarding automatic differentiation in a Gaussian process implementation](https://discourse.julialang.org/t/good-practices-regarding-automatic-differentiation-in-a-gaussian-process-implementation/135990)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 14\
**Last updated:** [March 5, 2026, 8:48am UTC](https://discourse.julialang.org/t/good-practices-regarding-automatic-differentiation-in-a-gaussian-process-implementation/135990 "2026-03-05T08:48:10Z")

</div>

(Related to Large memory consumption when using Mooncake via DifferentiationInterface for Gaussian process optimisation) I’m starting this thread to discuss good practices for using Mooncake.jl via DifferentiationInterf…

---

## [Specialization on vararg of types](https://discourse.julialang.org/t/specialization-on-vararg-of-types/108251)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 10\
**Last updated:** [March 4, 2026, 5:05pm UTC](https://discourse.julialang.org/t/specialization-on-vararg-of-types/108251 "2026-03-04T17:05:18Z")

</div>

How do I get Julia to specialize to Vararg{Type}? The docs say: As a heuristic, Julia avoids automatically specializing on argument type parameters in three specific cases: Type, Function, and Vararg. However, they …

---

## [Precompilation error with Catalyst (Circular dependency)](https://discourse.julialang.org/t/precompilation-error-with-catalyst-circular-dependency/136013)

<div class="topic-metadata">

**Author:** [@Luca\_Maria\_Moccia](https://discourse.julialang.org/u/Luca_Maria_Moccia)\
**Replies:** 3\
**Last updated:** [March 4, 2026, 4:23pm UTC](https://discourse.julialang.org/t/precompilation-error-with-catalyst-circular-dependency/136013 "2026-03-04T16:23:37Z")

</div>

Hello everyone, I am currently working on a biology modeling project for my Master’s internship, using an environment provided by my lab. When trying to load our local package (which depends heavily on the SciML ecosys…

---

## [Generating JuliaC libraries on Windows](https://discourse.julialang.org/t/generating-juliac-libraries-on-windows/135865)

<div class="topic-metadata">

**Author:** [@JackC](https://discourse.julialang.org/u/JackC)\
**Replies:** 3\
**Last updated:** [March 4, 2026, 2:24pm UTC](https://discourse.julialang.org/t/generating-juliac-libraries-on-windows/135865 "2026-03-04T14:24:08Z")

</div>

Hi all, I have been trying to use the new JuliaC capabilities in 1.12 (currently on 1.12.5). I have been able to compile executable binaries with some success, however I haven’t been able to successfully compile C calla…

---

## [Juliaup breakes GMT (via Ghostscript and tmp dir permissions)](https://discourse.julialang.org/t/juliaup-breakes-gmt-via-ghostscript-and-tmp-dir-permissions/136003)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 1\
**Last updated:** [March 4, 2026, 12:03pm UTC](https://discourse.julialang.org/t/juliaup-breakes-gmt-via-ghostscript-and-tmp-dir-permissions/136003 "2026-03-04T12:03:24Z")

</div>

All started when I decided to tell students to follow the official installing recommendations of using juliaup to install Julia. No problems in this first step (other than the slowness as comparing to install using the m…

---

## [Extensions, world age and generated function](https://discourse.julialang.org/t/extensions-world-age-and-generated-function/135961)

<div class="topic-metadata">

**Author:** [@epilliat](https://discourse.julialang.org/u/epilliat)\
**Replies:** 5\
**Last updated:** [March 4, 2026, 8:44am UTC](https://discourse.julialang.org/t/extensions-world-age-and-generated-function/135961 "2026-03-04T08:44:48Z")

</div>

Hello everyone, I’m writing a package with extensions and ran into a world age issue. The problem is the same as in JuliaLang/julia#19942 and related to this discourse thread. Minimal example function bar end @generat…

---

## [IndirectArray indexing](https://discourse.julialang.org/t/indirectarray-indexing/135974)

<div class="topic-metadata">

**Author:** [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Replies:** 10\
**Last updated:** [March 3, 2026, 10:53pm UTC](https://discourse.julialang.org/t/indirectarray-indexing/135974 "2026-03-03T22:53:59Z")

</div>

I have a PNG file that loads as an IndirectArray with an eltype of RGB{N0f8}: I use the following code: using FileIO using ImageIO function f() img = load("mwe.png") @show typeof(img) return img\[1\] end C…

---

## [Speed up dockerization](https://discourse.julialang.org/t/speed-up-dockerization/135971)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 8\
**Last updated:** [March 3, 2026, 9:52pm UTC](https://discourse.julialang.org/t/speed-up-dockerization/135971 "2026-03-03T21:52:28Z")

</div>

I am deploying Julia code using docker. In order to speed up the startup of the container I build a package using PackageCompiler.jl. However this is painfully slow, as it rebuilds everything even if I change one line i…

---

## [Wglmakie no longer working in Pluto](https://discourse.julialang.org/t/wglmakie-no-longer-working-in-pluto/129182)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 8\
**Last updated:** [March 3, 2026, 4:24pm UTC](https://discourse.julialang.org/t/wglmakie-no-longer-working-in-pluto/129182 "2026-03-03T16:24:29Z")

</div>

I am encountering an error with WGLMakie.jl in Pluto.jl. WGLMakie was working for quite some time until I updated my packages. Now it freezes and outputs the error message below in the terminal. I tried reverting back to…

---

## [Update to julia flux deep learning examples project](https://discourse.julialang.org/t/update-to-julia-flux-deep-learning-examples-project/135991)

<div class="topic-metadata">

**Author:** [@Stergios\_Papadimitri](https://discourse.julialang.org/u/Stergios_Papadimitri)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 11:58am UTC](https://discourse.julialang.org/t/update-to-julia-flux-deep-learning-examples-project/135991 "2026-03-03T11:58:15Z")

</div>

I like to announce the translation to Julia of many examples from the book: “Machine Learning” of Sergios Theodoridis, with the project:

---

## [How to add labels to grid of tricontourf! in GLMakie](https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [March 2, 2026, 6:32pm UTC](https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962 "2026-03-02T18:32:01Z")

</div>

I am trying to add row and column labels to a grid of plots below. I am trying to adapt the solution here for my use case, but the plots are too small relative to the entire figure. using GLMakie x = randn(50) y = rand…

---

## [Why isn't julia broadcasting through my function](https://discourse.julialang.org/t/why-isnt-julia-broadcasting-through-my-function/135959)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 3\
**Last updated:** [March 2, 2026, 4:45pm UTC](https://discourse.julialang.org/t/why-isnt-julia-broadcasting-through-my-function/135959 "2026-03-02T16:45:44Z")

</div>

Why isn’t julia broadcasting through the function f2 below: f1(x) = "scalar" Base.broadcasted( ::typeof(f1), x ) = "broadcasted" x = randn(10); f1.(x) f2(x) = f1(x) f2.(x) I would like f2.(x) to return "broadcasted".…

---

## [How to display PlotlyJS plots in browser (instead of Electron window)?](https://discourse.julialang.org/t/how-to-display-plotlyjs-plots-in-browser-instead-of-electron-window/60451)

<div class="topic-metadata">

**Author:** [@RastislavMirek](https://discourse.julialang.org/u/RastislavMirek)\
**Replies:** 12\
**Last updated:** [March 2, 2026, 3:08pm UTC](https://discourse.julialang.org/t/how-to-display-plotlyjs-plots-in-browser-instead-of-electron-window/60451 "2026-03-02T15:08:46Z")

</div>

I am using PlotlyJS (directly, not as a backend to Plots), to display plots in Electron window (via Blink). I would like to display those plots in a browser instead. Obviously, it’s possible because Plots can do it when …

---

## [World age warning (no @eval) on constructor of different dispatch](https://discourse.julialang.org/t/world-age-warning-no-eval-on-constructor-of-different-dispatch/135947)

<div class="topic-metadata">

**Author:** [@cnaak](https://discourse.julialang.org/u/cnaak)\
**Replies:** 5\
**Last updated:** [March 2, 2026, 2:51pm UTC](https://discourse.julialang.org/t/world-age-warning-no-eval-on-constructor-of-different-dispatch/135947 "2026-03-02T14:51:51Z")

</div>

Updated to julia-1.12 and started a new package. As soon as I defined my first struct with more than one external constructor (nothing fancy, no @evals), I’ve got the world age warning (future error). MWE: struct examp…

---

## [How to bind modules between tasks?](https://discourse.julialang.org/t/how-to-bind-modules-between-tasks/135772)

<div class="topic-metadata">

**Author:** [@ubaldot](https://discourse.julialang.org/u/ubaldot)\
**Replies:** 6\
**Last updated:** [March 1, 2026, 3:54pm UTC](https://discourse.julialang.org/t/how-to-bind-modules-between-tasks/135772 "2026-03-01T15:54:44Z")

</div>

I am trying to communicate to the repl remotely, but I am having problems in binding the Main module used by the repl and the Main module used by the server and I don’t know how to fix it. I prepared a couple of scripts…

---

## [How to convert long form data frame for contour plot](https://discourse.julialang.org/t/how-to-convert-long-form-data-frame-for-contour-plot/135937)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [March 1, 2026, 2:25pm UTC](https://discourse.julialang.org/t/how-to-convert-long-form-data-frame-for-contour-plot/135937 "2026-03-01T14:25:58Z")

</div>

Hello, As shown in the MWE below, I have a data frame with three variables in long form and would like to plot it as a contour plot. There are two issues. First, the variables x and y span a triangular area rather than …

---

## [Physical units in Julia](https://discourse.julialang.org/t/physical-units-in-julia/76825)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 31\
**Last updated:** [March 1, 2026, 3:24am UTC](https://discourse.julialang.org/t/physical-units-in-julia/76825 "2026-03-01T03:24:37Z")

</div>

A big reason I came to Julia was to have physical units for scientific computations: g = 4 \* nS, E = 0 \* mV, input\_currents = g \* (E .- V\_mems). All of the current solutions in Python are unfeasibly slow if you use t…

---

## [CUDA Float64 Float32 difference](https://discourse.julialang.org/t/cuda-float64-float32-difference/135922)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 1\
**Last updated:** [February 28, 2026, 3:45pm UTC](https://discourse.julialang.org/t/cuda-float64-float32-difference/135922 "2026-02-28T15:45:28Z")

</div>

Hello. I use RTX 3070. Why is there no difference? using CUDA, BenchmarkTools function add!(X::AbstractVector{T}) where T return X .+= T(1) end A = CUDA.zeros(Float32, 10\_000\_000); B = CUDA.zeros(Float64, 10\_000\_000…

---

## [How to install Julia 1.11 on Mac?](https://discourse.julialang.org/t/how-to-install-julia-1-11-on-mac/135915)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [February 28, 2026, 10:58am UTC](https://discourse.julialang.org/t/how-to-install-julia-1-11-on-mac/135915 "2026-02-28T10:58:06Z")

</div>

For a course, I want my students to use Julia 1.11. For installation, the suggested way is curl -fsSL https://install.julialang.org | sh But this installs Julia 1.12. Is there a way to download and install either no J…

---

## [How to avoid writing code that makes hardware become overheating?](https://discourse.julialang.org/t/how-to-avoid-writing-code-that-makes-hardware-become-overheating/135883)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [February 28, 2026, 10:28am UTC](https://discourse.julialang.org/t/how-to-avoid-writing-code-that-makes-hardware-become-overheating/135883 "2026-02-28T10:28:03Z")

</div>

I run julia code (multithreaded) on a Ubuntu machine. The cpu were 2 AMD chips that totally have 256 available threads out of 128 physical cores (i.e. 64 cores per chip entity). (But I find that julia can set thread numb…

---

## [How to test multiple dependency version ranges (\< v"1" and ≥ v"1") in GitHub CI?](https://discourse.julialang.org/t/how-to-test-multiple-dependency-version-ranges-v-1-and-v-1-in-github-ci/135857)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [February 26, 2026, 9:46pm UTC](https://discourse.julialang.org/t/how-to-test-multiple-dependency-version-ranges-v-1-and-v-1-in-github-ci/135857 "2026-02-26T21:46:28Z")

</div>

I maintain a Julia package that supports multiple major versions of one of its dependencies. The dependency defines: get\_version()::VersionNumber and my tests contain logic like: if get\_version() \>= v"1" # test ne…

---

## [Julia can not find libtiff (R 4.4.0, Julia 1.9.3) when running ResistanceGA in R](https://discourse.julialang.org/t/julia-can-not-find-libtiff-r-4-4-0-julia-1-9-3-when-running-resistancega-in-r/124291)

<div class="topic-metadata">

**Author:** [@vladimirovav](https://discourse.julialang.org/u/vladimirovav)\
**Replies:** 11\
**Last updated:** [February 26, 2026, 1:54pm UTC](https://discourse.julialang.org/t/julia-can-not-find-libtiff-r-4-4-0-julia-1-9-3-when-running-resistancega-in-r/124291 "2026-02-26T13:54:36Z")

</div>

I’m running a ResistanceGA package in R incorporating work in R and Julia. When I run the jl.prep function it gives me this error. Note it runs fine on my laptop, but when I try to run it in ComputeCanada (remote access …

---

## [How to achieve consistency when using workspaces on Julia 1.11?](https://discourse.julialang.org/t/how-to-achieve-consistency-when-using-workspaces-on-julia-1-11/135837)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [February 26, 2026, 11:49am UTC](https://discourse.julialang.org/t/how-to-achieve-consistency-when-using-workspaces-on-julia-1-11/135837 "2026-02-26T11:49:31Z")

</div>

In my project, I have a couple of sub-projects: \[workspace\] projects = \["examples", "examples\_3d", "docs", "test"\] I am trying to write an install script that instantiates and precompiles the main project and all sub-p…

---

## [Genie with StippleMakie relatively fast for ODE visualizations?](https://discourse.julialang.org/t/genie-with-stipplemakie-relatively-fast-for-ode-visualizations/135835)

<div class="topic-metadata">

**Author:** [@miro-ka](https://discourse.julialang.org/u/miro-ka)\
**Replies:** 0\
**Last updated:** [February 25, 2026, 11:45am UTC](https://discourse.julialang.org/t/genie-with-stipplemakie-relatively-fast-for-ode-visualizations/135835 "2026-02-25T11:45:47Z")

</div>

I’m considering making a webApp with Genie that should visualize some plots from ODE (bifurcations, phase planes,..), that I’m currently now rendering with Makie, so I thought that StippleMakie would be a good candidate.…

---

## [Constant propagation magic](https://discourse.julialang.org/t/constant-propagation-magic/135817)

<div class="topic-metadata">

**Author:** [@michakraus](https://discourse.julialang.org/u/michakraus)\
**Replies:** 3\
**Last updated:** [February 25, 2026, 11:18am UTC](https://discourse.julialang.org/t/constant-propagation-magic/135817 "2026-02-25T11:18:05Z")

</div>

I carried out a little study to better understand type-stable overloading of getproperty and getindex with NamedTuple by using Val. Please see the (more or less) MWE below. I think I understand almost everything in that…

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

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