# General Usage

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

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

**Page:** 36

---

## [Integrals.jl & Zygote not working on 1.12](https://discourse.julialang.org/t/integrals-jl-zygote-not-working-on-1-12/133214)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 1\
**Last updated:** [October 16, 2025, 11:43pm UTC](https://discourse.julialang.org/t/integrals-jl-zygote-not-working-on-1-12/133214 "2025-10-16T23:43:49Z")

</div>

Hello, I have been trying to differentiate an IntegralProblem, as defined using Integrals.jl, using Zygote.jl. While on 1.10 and 1.11 it works nicely, I have issues with 1.12. Here a MWE to reproduce the error ▶ Summa…

---

## [Inconsistent allocation with threads and function arguments in 1.12](https://discourse.julialang.org/t/inconsistent-allocation-with-threads-and-function-arguments-in-1-12/133190)

<div class="topic-metadata">

**Author:** [@bclyons12](https://discourse.julialang.org/u/bclyons12)\
**Replies:** 7\
**Last updated:** [October 16, 2025, 6:27pm UTC](https://discourse.julialang.org/t/inconsistent-allocation-with-threads-and-function-arguments-in-1-12/133190 "2025-10-16T18:27:45Z")

</div>

In a large code suite, I’ve noticed substantial performance degradation using v1.12. I’m seeing large numbers of allocations in parts of the code that are threaded and involve passing functions as arguments to other func…

---

## [Error with the DIVAnd.jl package](https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 3:33pm UTC](https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189 "2025-10-16T15:33:10Z")

</div>

Can anyone please help me debug this issue with the DIVAnd.jl package? \*\*Info\*\* Given DIVAnd was explicitly requested, output will be shown live \*\*ERROR:\*\* LoadError: cannot define function include; it already has a v…

---

## [Jemalloc error using WGLMakie on RPI 5](https://discourse.julialang.org/t/jemalloc-error-using-wglmakie-on-rpi-5/132794)

<div class="topic-metadata">

**Author:** [@dkzwart](https://discourse.julialang.org/u/dkzwart)\
**Replies:** 13\
**Last updated:** [October 16, 2025, 2:51pm UTC](https://discourse.julialang.org/t/jemalloc-error-using-wglmakie-on-rpi-5/132794 "2025-10-16T14:51:47Z")

</div>

I am running Julia 1.10.10 on Win11, RPI 4, and RPI 5, and only on the RPI 5 have I started getting a jemalloc error recently when calling WGLMakie. Any thoughts on why it wants a page file size of 5 bytes and why it is …

---

## [NonlinearSolve.jl - multidimensional interval root finding](https://discourse.julialang.org/t/nonlinearsolve-jl-multidimensional-interval-root-finding/132919)

<div class="topic-metadata">

**Author:** [@Longblackcoffee](https://discourse.julialang.org/u/Longblackcoffee)\
**Replies:** 4\
**Last updated:** [October 16, 2025, 1:45pm UTC](https://discourse.julialang.org/t/nonlinearsolve-jl-multidimensional-interval-root-finding/132919 "2025-10-16T13:45:07Z")

</div>

Hi everyone, TLDR: Is there a way to do multi-dimensional interval root-finding with NonlinearSolve.jl? From my understanding, it only supports one-dimensional interval root-finding right now, so I was wondering whether…

---

## [Limit subtype to immediate parent in method signature?](https://discourse.julialang.org/t/limit-subtype-to-immediate-parent-in-method-signature/133177)

<div class="topic-metadata">

**Author:** [@bcon](https://discourse.julialang.org/u/bcon)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 11:28am UTC](https://discourse.julialang.org/t/limit-subtype-to-immediate-parent-in-method-signature/133177 "2025-10-16T11:28:51Z")

</div>

In UnitTypes I need to restrict a method’s arguments to types that all subtype the same parent, though there are multiple families of parents and child types. Here’s an example: abstract type AbstractMeasure end abstr…

---

## [WGLMakie showing error at precompilation stage](https://discourse.julialang.org/t/wglmakie-showing-error-at-precompilation-stage/133192)

<div class="topic-metadata">

**Author:** [@ASura-137-036](https://discourse.julialang.org/u/ASura-137-036)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 9:06am UTC](https://discourse.julialang.org/t/wglmakie-showing-error-at-precompilation-stage/133192 "2025-10-16T09:06:05Z")

</div>

I am tring to add WGLMakie in julia REPL. I am getting an error at precompilation stage where Bonito and WGLMakie fails to precompile. I have added both errors below. I would like to add I am having these error in a corp…

---

## [Alternative to Base.get\_extension](https://discourse.julialang.org/t/alternative-to-base-get-extension/133191)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 13\
**Last updated:** [October 16, 2025, 7:14am UTC](https://discourse.julialang.org/t/alternative-to-base-get-extension/133191 "2025-10-16T07:14:23Z")

</div>

That was quick!

---

## [Bug in LinearAlgebra? How to debug a standard library](https://discourse.julialang.org/t/bug-in-linearalgebra-how-to-debug-a-standard-library/133079)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 13\
**Last updated:** [October 15, 2025, 9:52pm UTC](https://discourse.julialang.org/t/bug-in-linearalgebra-how-to-debug-a-standard-library/133079 "2025-10-15T21:52:57Z")

</div>

Is this known? \[91133\] signal 11 (2): Segmentation fault: 11 in expression starting at /Users/pkrysl/ACol.jl/runsim.jl:38 gc\_alloc\_map\_set at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-…

---

## [The Case of the Phantom Allocations 👻](https://discourse.julialang.org/t/the-case-of-the-phantom-allocations/133183)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 7\
**Last updated:** [October 15, 2025, 7:52pm UTC](https://discourse.julialang.org/t/the-case-of-the-phantom-allocations/133183 "2025-10-15T19:52:44Z")

</div>

Hey Julia experts, I have a performance puzzle. This function is designed to be completely allocation-free, but @benchmark tells a different story. I’m hoping a fresh pair of eyes can spot the problem. This is the func…

---

## [Is it normal for juliac to still produce 280 MB of libraries for a "println" example?](https://discourse.julialang.org/t/is-it-normal-for-juliac-to-still-produce-280-mb-of-libraries-for-a-println-example/133140)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [October 15, 2025, 7:26pm UTC](https://discourse.julialang.org/t/is-it-normal-for-juliac-to-still-produce-280-mb-of-libraries-for-a-println-example/133140 "2025-10-15T19:26:36Z")

</div>

Sorry, possibly coming from an “over-expectations” mind setting… I had a quick try on juliac, but compiling the trivial example, even with --trim=safe, produces yes an executable of ~1.7 MB, but also a set of libraries ~…

---

## [How to create a reliable event loop in Julia (few ms)?](https://discourse.julialang.org/t/how-to-create-a-reliable-event-loop-in-julia-few-ms/133153)

<div class="topic-metadata">

**Author:** [@mj2984](https://discourse.julialang.org/u/mj2984)\
**Replies:** 2\
**Last updated:** [October 14, 2025, 8:28pm UTC](https://discourse.julialang.org/t/how-to-create-a-reliable-event-loop-in-julia-few-ms/133153 "2025-10-14T20:28:40Z")

</div>

Hi, I am trying to create an event loop that ideally does something based on a hardware interrupt (like VSync) but I would also like a software equivalent that simulates the hardware interrupt so I could replicate the s…

---

## [PackageCompiler create\_app cannot find project, but create\_sysimage can](https://discourse.julialang.org/t/packagecompiler-create-app-cannot-find-project-but-create-sysimage-can/133152)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 0\
**Last updated:** [October 14, 2025, 7:10pm UTC](https://discourse.julialang.org/t/packagecompiler-create-app-cannot-find-project-but-create-sysimage-can/133152 "2025-10-14T19:10:10Z")

</div>

I am trying to compile my visualization app for the first time using PackageCompiler. For this I first needed to make a properly generated Project with a module that holds the functions. I have also placed the Makie GUI…

---

## [Wrap title in PrettyTables v3?](https://discourse.julialang.org/t/wrap-title-in-prettytables-v3/133121)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 9\
**Last updated:** [October 14, 2025, 6:13pm UTC](https://discourse.julialang.org/t/wrap-title-in-prettytables-v3/133121 "2025-10-14T18:13:16Z")

</div>

Is it possible to wrap a long title in version 3 of PrettyTables.jl? I was able to do this in version 2 with the text backend by inserting newlines in the title where I wanted the line break. This no longer works in vers…

---

## [Performance Affected Significantly More in a Child Task](https://discourse.julialang.org/t/performance-affected-significantly-more-in-a-child-task/133035)

<div class="topic-metadata">

**Author:** [@mraic1](https://discourse.julialang.org/u/mraic1)\
**Replies:** 11\
**Last updated:** [October 14, 2025, 2:22pm UTC](https://discourse.julialang.org/t/performance-affected-significantly-more-in-a-child-task/133035 "2025-10-14T14:22:46Z")

</div>

Dear all, When experimenting to reproduce the behavior of the standard Base64 library in several ways - see also Allocation Behavior Depending on Code Size I noticed another rather unusual behavior of performance. A c…

---

## [Performace problems with Windows scheduler and multithreading on mixed core CPUs](https://discourse.julialang.org/t/performace-problems-with-windows-scheduler-and-multithreading-on-mixed-core-cpus/132984)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 11\
**Last updated:** [October 14, 2025, 11:10am UTC](https://discourse.julialang.org/t/performace-problems-with-windows-scheduler-and-multithreading-on-mixed-core-cpus/132984 "2025-10-14T11:10:35Z")

</div>

I have a function with a long running simulation (\> 20 min) and used Threads@spawn to start four of them in parallel. Disappointingly the runtime more than doubled compared to a single instance run. After some digging I …

---

## [Pluto and package loading](https://discourse.julialang.org/t/pluto-and-package-loading/125684)

<div class="topic-metadata">

**Author:** [@Jose\_Ghislain\_Quenum](https://discourse.julialang.org/u/Jose_Ghislain_Quenum)\
**Replies:** 7\
**Last updated:** [October 14, 2025, 11:02am UTC](https://discourse.julialang.org/t/pluto-and-package-loading/125684 "2025-10-14T11:02:12Z")

</div>

Hey all, I am observing a weird behavior from Pluto. While trying to load the Bandits package (available at Bandits ), I realised the package was not declared in the registry. This forced me to add the command Pkg.add(ur…

---

## [Reverse-mode AD for PDEs discretized with VoronoiFVM.jl](https://discourse.julialang.org/t/reverse-mode-ad-for-pdes-discretized-with-voronoifvm-jl/133039)

<div class="topic-metadata">

**Author:** [@shisac](https://discourse.julialang.org/u/shisac)\
**Replies:** 2\
**Last updated:** [October 14, 2025, 7:35am UTC](https://discourse.julialang.org/t/reverse-mode-ad-for-pdes-discretized-with-voronoifvm-jl/133039 "2025-10-14T07:35:35Z")

</div>

Hi everyone, I’m working on simulating cyclic adsorption processes (TVSA / PSA-type) using VoronoiFVM.jl, which I use to semi-discretize a set of PDEs in space. The resulting system of ODEs (or DAEs) is integrated over …

---

## [Makie error： ERROR: Failed to resolve cairo\_attributes: \[ComputeEdge\] cairo\_attributes = #15((grid\_x, grid\_y, image, interpolate, space, projectionview, model\_f32c, clip\_planes, cairo\_uv\_transform, resolution, computed\_color, ), changed, cached)](https://discourse.julialang.org/t/makie-error-error-failed-to-resolve-cairo-attributes-computeedge-cairo-attributes-15-grid-x-grid-y-image-interpolate-space-projectionview-model-f32c-clip-planes-cairo-uv-transform-resolution-computed-color-changed-cached/133064)

<div class="topic-metadata">

**Author:** [@dk-zen](https://discourse.julialang.org/u/dk-zen)\
**Replies:** 2\
**Last updated:** [October 14, 2025, 7:26am UTC](https://discourse.julialang.org/t/makie-error-error-failed-to-resolve-cairo-attributes-computeedge-cairo-attributes-15-grid-x-grid-y-image-interpolate-space-projectionview-model-f32c-clip-planes-cairo-uv-transform-resolution-computed-color-changed-cached/133064 "2025-10-14T07:26:59Z")

</div>

I am having issues with the Julia Makie package, and I have two questions to ask everyone. First, how can I resolve the error messages? Second, why does the same code with the same data previously run without issues but …

---

## [Benchmarking ADTs behavior](https://discourse.julialang.org/t/benchmarking-adts-behavior/133115)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 2\
**Last updated:** [October 14, 2025, 5:43am UTC](https://discourse.julialang.org/t/benchmarking-adts-behavior/133115 "2025-10-14T05:43:47Z")

</div>

I am trying to get the most performant way to retrieve some properties associated to an ADT (I am using Moshi.jl, but I suspect the behavior with LightSumTypes et al. would be similar). Below I paste the code I am testin…

---

## [Slowdown when writing to too many arrays within a loop](https://discourse.julialang.org/t/slowdown-when-writing-to-too-many-arrays-within-a-loop/133041)

<div class="topic-metadata">

**Author:** [@ekboehm](https://discourse.julialang.org/u/ekboehm)\
**Replies:** 15\
**Last updated:** [October 13, 2025, 5:45pm UTC](https://discourse.julialang.org/t/slowdown-when-writing-to-too-many-arrays-within-a-loop/133041 "2025-10-13T17:45:08Z")

</div>

I came across a significant slowdown in my code when attempting to write to too many matrices within one loop. Below is a silly (and slightly long, my apologies) MWE that just writes zeroes. In my actual code, I perform …

---

## [How to avoid GC of Julia structs within C/C++/Rust data structures?](https://discourse.julialang.org/t/how-to-avoid-gc-of-julia-structs-within-c-c-rust-data-structures/132814)

<div class="topic-metadata">

**Author:** [@alexandergunnarson](https://discourse.julialang.org/u/alexandergunnarson)\
**Replies:** 24\
**Last updated:** [October 13, 2025, 2:52pm UTC](https://discourse.julialang.org/t/how-to-avoid-gc-of-julia-structs-within-c-c-rust-data-structures/132814 "2025-10-13T14:52:29Z")

</div>

Disclaimer — I’m still pretty new to Julia, but I think I’ve done enough diligence to warrant asking this. I’m trying to use moodycamel::ConcurrentQueue as a high-performance replacement for Julia’s DualLinkedConcurrent…

---

## [Finding all unsafe code in a large C wrapper](https://discourse.julialang.org/t/finding-all-unsafe-code-in-a-large-c-wrapper/133103)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [October 13, 2025, 8:10am UTC](https://discourse.julialang.org/t/finding-all-unsafe-code-in-a-large-c-wrapper/133103 "2025-10-13T08:10:53Z")

</div>

I have a large julia wrapper of C code. It contains some undefined behavior. For instance, it might allocate a Vector, put a pointer to the vector in some struct, pass that struct to a C-API without any GC.@preserve on t…

---

## [Is there a package for block-sparse matrix processing?](https://discourse.julialang.org/t/is-there-a-package-for-block-sparse-matrix-processing/133067)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 5\
**Last updated:** [October 12, 2025, 7:46pm UTC](https://discourse.julialang.org/t/is-there-a-package-for-block-sparse-matrix-processing/133067 "2025-10-12T19:46:11Z")

</div>

As in the title, I mean every block is dense, but there are only a small percentage of non-vanishing blocks.

---

## [Using JuliaC from R/Python?](https://discourse.julialang.org/t/using-juliac-from-r-python/132857)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 7\
**Last updated:** [October 12, 2025, 3:23am UTC](https://discourse.julialang.org/t/using-juliac-from-r-python/132857 "2025-10-12T03:23:50Z")

</div>

Hi, Now that JuliaC.jl is released, I want to try something I’ve always wanted: being able to pass a matrix from R into Julia, have it do something, then returning a scalar/vector/matrix back into R. I’m thinking of com…

---

## [What's Base.Int and Base.UInt32\_cold? And will former (both?) "change or be removed in future versions"?](https://discourse.julialang.org/t/whats-base-int-and-base-uint32-cold-and-will-former-both-change-or-be-removed-in-future-versions/133077)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [October 11, 2025, 10:13pm UTC](https://discourse.julialang.org/t/whats-base-int-and-base-uint32-cold-and-will-former-both-change-or-be-removed-in-future-versions/133077 "2025-10-11T22:13:27Z")

</div>

I noticed Base.Int in code and it seems Base. prefix is redundant, but: help?\> Base.Int │ Warning │ │ The following bindings may be internal; they may change or be removed in future versions: │ │ • Base.Int …

---

## [Introspection for checking an implementation](https://discourse.julialang.org/t/introspection-for-checking-an-implementation/132495)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 10\
**Last updated:** [October 11, 2025, 3:25pm UTC](https://discourse.julialang.org/t/introspection-for-checking-an-implementation/132495 "2025-10-11T15:25:20Z")

</div>

I am trying to implement an automated checking procedure for programming assignments. For example, I may ask a user to write function my\_sum() for computing the sum of elements of a vector, then verify that he did not u…

---

## [Help making HTTP.request for Manifold](https://discourse.julialang.org/t/help-making-http-request-for-manifold/133069)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [October 11, 2025, 2:30pm UTC](https://discourse.julialang.org/t/help-making-http-request-for-manifold/133069 "2025-10-11T14:30:08Z")

</div>

Hello. I am trying to submit a request to Manifold.markets via HTTP.jl, but I am having trouble with the setup. The API description is posted here. Here is one thing I tried. Code using HTTP header = Dict( "Author…

---

## [\[Guide\] Using sum types to define dynamic C APIs for Julia 1.12 \`--trim\`](https://discourse.julialang.org/t/guide-using-sum-types-to-define-dynamic-c-apis-for-julia-1-12-trim/132111)

<div class="topic-metadata">

**Author:** [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Replies:** 29\
**Last updated:** [October 11, 2025, 12:07pm UTC](https://discourse.julialang.org/t/guide-using-sum-types-to-define-dynamic-c-apis-for-julia-1-12-trim/132111 "2025-10-11T12:07:14Z")

</div>

I have recently spent a lot of time trying to get one of my libraries ready for the Julia 1.12 --trim feature such that I can ship it as a C library and wrap it into a python module. During this work I learned a lot and …

---

## [CUDA.jl not loading in julia 1.12.0](https://discourse.julialang.org/t/cuda-jl-not-loading-in-julia-1-12-0/133022)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 10\
**Last updated:** [October 11, 2025, 8:06am UTC](https://discourse.julialang.org/t/cuda-jl-not-loading-in-julia-1-12-0/133022 "2025-10-11T08:06:57Z")

</div>

Hi, I’ve just upgraded from 1.11.7 to 1.12.0 and went though the packages installation from scratch. I installed CUDA.jl from pkg.add() and it did install fine. I then restarted the machine to make sure all is clear, an…

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

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