# General Usage

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

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

**Page:** 33

---

## [Zlib1.dll is missing while testing on Julia 1.5](https://discourse.julialang.org/t/zlib1-dll-is-missing-while-testing-on-julia-1-5/49731)

<div class="topic-metadata">

**Author:** [@barleyman99](https://discourse.julialang.org/u/barleyman99)\
**Replies:** 4\
**Last updated:** [October 31, 2025, 8:59am UTC](https://discourse.julialang.org/t/zlib1-dll-is-missing-while-testing-on-julia-1-5/49731 "2025-10-31T08:59:10Z")

</div>

Today I got an error while testing on my Windows 10 on Julia 1.5. It says that Zlib1.dll is missing. Any quick fix for this?

---

## [Tmap usage with views](https://discourse.julialang.org/t/tmap-usage-with-views/133556)

<div class="topic-metadata">

**Author:** [@jacobga](https://discourse.julialang.org/u/jacobga)\
**Replies:** 2\
**Last updated:** [October 31, 2025, 8:04am UTC](https://discourse.julialang.org/t/tmap-usage-with-views/133556 "2025-10-31T08:04:57Z")

</div>

Hello, I am trying to use tmap! from OhMyThreads.jl on a view of an array. When running the code normally, it works fine, but it fails in testing when run with check\_bounds=yes, because views have cartesian index style.…

---

## [\[Gtk4\] @sigatom](https://discourse.julialang.org/t/gtk4-sigatom/133562)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 3\
**Last updated:** [October 31, 2025, 7:45am UTC](https://discourse.julialang.org/t/gtk4-sigatom/133562 "2025-10-31T07:45:49Z")

</div>

This works in Gtk.jl: using Gtk win = GtkWindow("test") g = GtkGrid() sb = GtkSpinButton(1, 10, 1) s = GtkScale(false, 1, 10, 1) g\[1, 1\] = sb g\[1, 2\] = s push!(win, g) showall(win) signal\_connect(s, "value\_changed") do …

---

## [Request error on package install (Pkg.add) at my company environment](https://discourse.julialang.org/t/request-error-on-package-install-pkg-add-at-my-company-environment/133570)

<div class="topic-metadata">

**Author:** [@KNK12287\_kaneka](https://discourse.julialang.org/u/KNK12287_kaneka)\
**Replies:** 1\
**Last updated:** [October 31, 2025, 7:25am UTC](https://discourse.julialang.org/t/request-error-on-package-install-pkg-add-at-my-company-environment/133570 "2025-10-31T07:25:13Z")

</div>

I am using Julia (Version 1.12.1) at my company. When I tried to install the package SymbolicRegression, I was encountered by error shown below. I asked our IT team to make it possible to access… However, after the …

---

## [Self Contained Apptainer Images](https://discourse.julialang.org/t/self-contained-apptainer-images/133529)

<div class="topic-metadata">

**Author:** [@Gavin-Rockwood](https://discourse.julialang.org/u/Gavin-Rockwood)\
**Replies:** 3\
**Last updated:** [October 30, 2025, 6:36pm UTC](https://discourse.julialang.org/t/self-contained-apptainer-images/133529 "2025-10-30T18:36:13Z")

</div>

I have been trying to get a self contained apptainer image, where all the packages are saved within a directory within the container (such as /usr/local/julia/) instead of a directory on the host (usually /.julia) in ord…

---

## [C Contiguous Array in PyCall](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559)

<div class="topic-metadata">

**Author:** [@Frauke](https://discourse.julialang.org/u/Frauke)\
**Replies:** 2\
**Last updated:** [October 30, 2025, 6:19pm UTC](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559 "2025-10-30T18:19:45Z")

</div>

Hey everyone, I am trying to communicate with a National Instrument DAQ via PyCall.jl and the NI Python library nidaqmx. For some functions I have to pass a C contiguous array (flag C\_CONTIGUOUS has to be true). I trie…

---

## [C program embedding Julia - works in terminal but breaks in pipes](https://discourse.julialang.org/t/c-program-embedding-julia-works-in-terminal-but-breaks-in-pipes/86973)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 8\
**Last updated:** [October 30, 2025, 2:43pm UTC](https://discourse.julialang.org/t/c-program-embedding-julia-works-in-terminal-but-breaks-in-pipes/86973 "2025-10-30T14:43:19Z")

</div>

I’d like to write a C program which embeds Julia code, and call this C program from an unrelated program using two-way pipes. While the C program works fine in the terminal, it breaks when called from pipes. Here’s a min…

---

## [Is this conversion+store safe?](https://discourse.julialang.org/t/is-this-conversion-store-safe/133533)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 4\
**Last updated:** [October 30, 2025, 12:52pm UTC](https://discourse.julialang.org/t/is-this-conversion-store-safe/133533 "2025-10-30T12:52:11Z")

</div>

I’m wondering if this is a correct usage of these unsafe functions: julia\> using StaticArrays julia\> a = MVector{4,UInt}(1,2,3,4); julia\> b = UInt.((5,6,7,8)); julia\> function f(a, b) dst = Base.unsafe\_con…

---

## [Batched Matrix Multiply](https://discourse.julialang.org/t/batched-matrix-multiply/42332)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 12\
**Last updated:** [October 30, 2025, 8:22am UTC](https://discourse.julialang.org/t/batched-matrix-multiply/42332 "2025-10-30T08:22:15Z")

</div>

I’d like to be able to be able to broadcast matrix multiplication across multidimensional arrays similar to the following: a = rand(4,3,2) b = rand(3,4,2) a .\* b # expect a (4,4,2) array, but instead errors I underst…

---

## [Bug in interactive slider example in WGLMakie docs?](https://discourse.julialang.org/t/bug-in-interactive-slider-example-in-wglmakie-docs/133535)

<div class="topic-metadata">

**Author:** [@IvanSpirandelli](https://discourse.julialang.org/u/IvanSpirandelli)\
**Replies:** 0\
**Last updated:** [October 30, 2025, 7:37am UTC](https://discourse.julialang.org/t/bug-in-interactive-slider-example-in-wglmakie-docs/133535 "2025-10-30T07:37:24Z")

</div>

The following code snippet combines the sections for “Record a state map” and “Export” to create an interactive plot on an html-page. The problem is that the slider starts at 0 and never returns. It seems to jump up to 2…

---

## [How to avoid recompilation when a large Julia function is called with many different argument combinations](https://discourse.julialang.org/t/how-to-avoid-recompilation-when-a-large-julia-function-is-called-with-many-different-argument-combinations/133516)

<div class="topic-metadata">

**Author:** [@r2ached](https://discourse.julialang.org/u/r2ached)\
**Replies:** 3\
**Last updated:** [October 29, 2025, 8:25pm UTC](https://discourse.julialang.org/t/how-to-avoid-recompilation-when-a-large-julia-function-is-called-with-many-different-argument-combinations/133516 "2025-10-29T20:25:37Z")

</div>

Hi everyone, I’m working on a Julia application where one top-level function has an input called configuration. This function gets called many times with different configurations. The problem I’m having is that Julia r…

---

## [Is this pattern still thread safe in Julia 1.12?](https://discourse.julialang.org/t/is-this-pattern-still-thread-safe-in-julia-1-12/133484)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 14\
**Last updated:** [October 29, 2025, 7:25pm UTC](https://discourse.julialang.org/t/is-this-pattern-still-thread-safe-in-julia-1-12/133484 "2025-10-29T19:25:43Z")

</div>

I adopt this pattern (1) to allow non default random threads that may be not thread safe themselves and (2) to obtain the same result whatever the number of threads used: import StableRNGs, Random function goo(outseed)…

---

## [Downloads.download or run(\`wget\`) much slower than direct \`wget\`](https://discourse.julialang.org/t/downloads-download-or-run-wget-much-slower-than-direct-wget/133501)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 29, 2025, 4:31pm UTC](https://discourse.julialang.org/t/downloads-download-or-run-wget-much-slower-than-direct-wget/133501 "2025-10-29T16:31:47Z")

</div>

I am trying to download a relativelly large dataset from Zenodo (6GB), and if I use Downloads.download or run(wget) in a Julia v1.12 session, it takes 2h, while if I directly use wget in a console it takes 16 minutes. I…

---

## [Issue: PDMats.jl matrices losing positive-definiteness with Optim.jl autodiff](https://discourse.julialang.org/t/issue-pdmats-jl-matrices-losing-positive-definiteness-with-optim-jl-autodiff/133421)

<div class="topic-metadata">

**Author:** [@fibrebundl](https://discourse.julialang.org/u/fibrebundl)\
**Replies:** 19\
**Last updated:** [October 29, 2025, 4:13pm UTC](https://discourse.julialang.org/t/issue-pdmats-jl-matrices-losing-positive-definiteness-with-optim-jl-autodiff/133421 "2025-10-29T16:13:12Z")

</div>

I’m optimizing a covariance recovery problem and want to use PDMats.jl to ensure positive-definiteness. However, when using Optim.jl’s autodiff, the matrices created with PDMats aren’t maintaining their PD characteristic…

---

## [Pointers in Julia documentation](https://discourse.julialang.org/t/pointers-in-julia-documentation/119571)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 12\
**Last updated:** [October 29, 2025, 3:23pm UTC](https://discourse.julialang.org/t/pointers-in-julia-documentation/119571 "2025-10-29T15:23:58Z")

</div>

Hi, I was trying to implement some algorithms and data structures such as linked list, for which I need pointers. I wanted to know why is the use of pointers so obscured. I have not really found any formal explanation of…

---

## [Documenter build fails on CI with "OpenSSL\_jll … not installed" error](https://discourse.julialang.org/t/documenter-build-fails-on-ci-with-openssl-jll-not-installed-error/133505)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 1\
**Last updated:** [October 29, 2025, 12:21pm UTC](https://discourse.julialang.org/t/documenter-build-fails-on-ci-with-openssl-jll-not-installed-error/133505 "2025-10-29T12:21:12Z")

</div>

Hi all — '’m hitting a puzzling failure building docs on Julia 1.12 where stdlib JLLs fail to load during precompilation. It happens in GitLab CI. Here’s the error julia --project=docs -e 'using Pkg; Pkg.develop(Packa…

---

## [How to use LocalRegistry in my package registered in GeneralRegistry](https://discourse.julialang.org/t/how-to-use-localregistry-in-my-package-registered-in-generalregistry/133494)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 4\
**Last updated:** [October 29, 2025, 6:52am UTC](https://discourse.julialang.org/t/how-to-use-localregistry-in-my-package-registered-in-generalregistry/133494 "2025-10-29T06:52:16Z")

</div>

Hi, I’ve created a LocalRegistry (LR) and added two packages to it (AdamWysokinski/NeuroAnalyzer\_registry: Packages required for NeuroAnalyzer - Codeberg.org). One package is not in the GeneralRegistry (GR) and another …

---

## [Generate Package and Test](https://discourse.julialang.org/t/generate-package-and-test/133475)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 4\
**Last updated:** [October 28, 2025, 5:24pm UTC](https://discourse.julialang.org/t/generate-package-and-test/133475 "2025-10-28T17:24:06Z")

</div>

In have a question about package generation. Why does generate not also automatically generate the test folder as well as the necessary Project.toml and empty runtests.jl file ? I find it sometimes not trivial to add a …

---

## [Using legacy C code with autodifferentiation](https://discourse.julialang.org/t/using-legacy-c-code-with-autodifferentiation/132548)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 4\
**Last updated:** [October 28, 2025, 4:31pm UTC](https://discourse.julialang.org/t/using-legacy-c-code-with-autodifferentiation/132548 "2025-10-28T16:31:56Z")

</div>

Hello, I am asking for some general guidance on the following task, There is a legacy code, written in C, that I would like to use directly in Julia. Ideally, I would like to be able to differentiate it as well (the co…

---

## [How does \`Base.@locals\` work?](https://discourse.julialang.org/t/how-does-base-locals-work/133483)

<div class="topic-metadata">

**Author:** [@mhauru](https://discourse.julialang.org/u/mhauru)\
**Replies:** 1\
**Last updated:** [October 28, 2025, 3:25pm UTC](https://discourse.julialang.org/t/how-does-base-locals-work/133483 "2025-10-28T15:25:08Z")

</div>

Base.@locals has this very curious implementation: macro locals() return Expr(:locals) end How does this work? Is locals some sort of special node type in the AST? I can’t find it documented. I don’t need to know …

---

## [Build failure for 1.12.1 on Debian unstable](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468)

<div class="topic-metadata">

**Author:** [@Dylan\_Thurston](https://discourse.julialang.org/u/Dylan_Thurston)\
**Replies:** 4\
**Last updated:** [October 28, 2025, 1:24pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468 "2025-10-28T13:24:09Z")

</div>

Building Julia 1.12.1 from source on Debian unstable I get a build failure while compiling the embedded LLVM, with a complaint that uint32\_t is not defined. This is obviously an issue with failure to include standard hea…

---

## [GUI library, feedback wanted](https://discourse.julialang.org/t/gui-library-feedback-wanted/131699)

<div class="topic-metadata">

**Author:** [@ErikBuer](https://discourse.julialang.org/u/ErikBuer)\
**Replies:** 8\
**Last updated:** [October 28, 2025, 12:58pm UTC](https://discourse.julialang.org/t/gui-library-feedback-wanted/131699 "2025-10-28T12:58:01Z")

</div>

Hi everyone. For the last couple of months, I’ve been working on a GUI library in Julia, using OpenGL. The goal is to simplify the development of engineering and scientific applications. Aside from shaders, the whole p…

---

## [Mooncake + GPU?](https://discourse.julialang.org/t/mooncake-gpu/133472)

<div class="topic-metadata">

**Author:** [@dubosipsl](https://discourse.julialang.org/u/dubosipsl)\
**Replies:** 1\
**Last updated:** [October 28, 2025, 11:50am UTC](https://discourse.julialang.org/t/mooncake-gpu/133472 "2025-10-28T11:50:23Z")

</div>

Hello all, I would like to know what to expect regarding using Mooncake for reverse AD on GPUs, preferably via KernelAbstractions. I see there is a CUDA extension handling CuArrays. What works now, and what could work i…

---

## [Improving performance of CUDA GPU kernel: LU factorization](https://discourse.julialang.org/t/improving-performance-of-cuda-gpu-kernel-lu-factorization/132971)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 17\
**Last updated:** [October 28, 2025, 10:37am UTC](https://discourse.julialang.org/t/improving-performance-of-cuda-gpu-kernel-lu-factorization/132971 "2025-10-28T10:37:38Z")

</div>

I am learning GPU programming via CUDA.jl. I wish to implement an efficient LU factorization for matrices over a finite field (I implemented it as UInt8/UInt16/... with operations + mod and \* mod). For the sake of simpl…

---

## [Error -146059294 in \`Base.cp\` when trying to copy large files](https://discourse.julialang.org/t/error-146059294-in-base-cp-when-trying-to-copy-large-files/132654)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 9\
**Last updated:** [October 28, 2025, 8:43am UTC](https://discourse.julialang.org/t/error-146059294-in-base-cp-when-trying-to-copy-large-files/132654 "2025-10-28T08:43:33Z")

</div>

Dear Julia community, I am having same problem that Base.cp fails for large file: I am using the latest version of Julia. Thanks, Joseph IOError: sendfile: Unknown system error -146059294 (Unknown system error -1460…

---

## [These stack traces are still out of control](https://discourse.julialang.org/t/these-stack-traces-are-still-out-of-control/133447)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 5\
**Last updated:** [October 28, 2025, 7:28am UTC](https://discourse.julialang.org/t/these-stack-traces-are-still-out-of-control/133447 "2025-10-28T07:28:19Z")

</div>

5 years ago, @Samuel\_Ainsworth posted These stack traces are out of control - General Usage - Julia Programming Language, and it’s still very much the case in the SciML ecosystem. I find it hard to believe that all t…

---

## [Different running performance in parallelization of Threads](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397)

<div class="topic-metadata">

**Author:** [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Replies:** 22\
**Last updated:** [October 27, 2025, 5:07pm UTC](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397 "2025-10-27T17:07:21Z")

</div>

Hi Guys, I am running a model which use a for-loop to run on 17 independently different sites. Each site does not share memory with each other. But all of the inputs for 17 sites are collected in a list, of which the el…

---

## [Using R and JuliaCall is not reliable without assigning R environment variables before starting R](https://discourse.julialang.org/t/using-r-and-juliacall-is-not-reliable-without-assigning-r-environment-variables-before-starting-r/133445)

<div class="topic-metadata">

**Author:** [@RobertDorazio](https://discourse.julialang.org/u/RobertDorazio)\
**Replies:** 6\
**Last updated:** [October 27, 2025, 4:36pm UTC](https://discourse.julialang.org/t/using-r-and-juliacall-is-not-reliable-without-assigning-r-environment-variables-before-starting-r/133445 "2025-10-27T16:36:22Z")

</div>

Suppose the file “sourceCode.R” contains an R script that calls a Julia function using julia\_call(), which is defined in the R package JuliaCall. If R is started in a Linux terminal using the command “R”, then the R com…

---

## [Latex2text alternative?](https://discourse.julialang.org/t/latex2text-alternative/133460)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 0\
**Last updated:** [October 27, 2025, 3:23pm UTC](https://discourse.julialang.org/t/latex2text-alternative/133460 "2025-10-27T15:23:14Z")

</div>

I’m using for a pure Julia implementation of pylatexenc’s latex2text. I have found many wonderful LaTeX-adjacent Julia packages but none that provide that functionality. Any ideas other than calling latex2text from Jul…

---

## [Using @ref with explicit signatures](https://discourse.julialang.org/t/using-ref-with-explicit-signatures/133444)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 6\
**Last updated:** [October 27, 2025, 1:25pm UTC](https://discourse.julialang.org/t/using-ref-with-explicit-signatures/133444 "2025-10-27T13:25:12Z")

</div>

In the FaultDetectionTools package I have two functions called emmsyn with the distinct signatures: julia\> methods(emmsyn) # 2 methods for generic function "emmsyn" from FaultDetectionTools: \[1\] emmsyn(sysf::FDIModel{…

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

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