# General Usage

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

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

**Page:** 4

---

## [Restricting the version of an indirect dependency](https://discourse.julialang.org/t/restricting-the-version-of-an-indirect-dependency/138971)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 9\
**Last updated:** [August 21, 2026, 9:30pm UTC](https://discourse.julialang.org/t/restricting-the-version-of-an-indirect-dependency/138971 "2026-08-21T21:30:31Z")

</div>

The HTTP package is not in my project file, but I would like to restrict its version and upgrade everything else. I have not been able to find a direct way of doing this, so I upgraded everything, then added it to my pro…

---

## [Test utilities in a Revise-friendly module](https://discourse.julialang.org/t/test-utilities-in-a-revise-friendly-module/138967)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [August 21, 2026, 7:52pm UTC](https://discourse.julialang.org/t/test-utilities-in-a-revise-friendly-module/138967 "2026-08-21T19:52:37Z")

</div>

For complicated packages, I use reasonably complex test utilities, on the level of 500-1k LoC. I would like to move them into their own module that I can track with Revise.jl. Eg in runtests.jl, I want to have using My…

---

## [Preparing an antisymmetric matrix of normal numbers as efficiently as possible](https://discourse.julialang.org/t/preparing-an-antisymmetric-matrix-of-normal-numbers-as-efficiently-as-possible/138954)

<div class="topic-metadata">

**Author:** [@jibe](https://discourse.julialang.org/u/jibe)\
**Replies:** 11\
**Last updated:** [August 21, 2026, 1:25pm UTC](https://discourse.julialang.org/t/preparing-an-antisymmetric-matrix-of-normal-numbers-as-efficiently-as-possible/138954 "2026-08-21T13:25:01Z")

</div>

My goal is to prepare a fully antisymmetric matrix of normal numbers, on a single thread, as efficiently as possible. After numerous manual attempts, here is the best version I could come up with: using BenchmarkTools c…

---

## [Presentation of project](https://discourse.julialang.org/t/presentation-of-project/138962)

<div class="topic-metadata">

**Author:** [@haroldnick0](https://discourse.julialang.org/u/haroldnick0)\
**Replies:** 1\
**Last updated:** [August 21, 2026, 7:38am UTC](https://discourse.julialang.org/t/presentation-of-project/138962 "2026-08-21T07:38:23Z")

</div>

Hello everyone, My name is Harold Castro. I am a monitor at the Faculty of Communication and Language. I am participating in a project where we are creating a data narrative using Julia. The project is related to the 9…

---

## [Alternative to OOP?](https://discourse.julialang.org/t/alternative-to-oop/137543)

<div class="topic-metadata">

**Author:** [@dolefeast](https://discourse.julialang.org/u/dolefeast)\
**Replies:** 21\
**Last updated:** [August 20, 2026, 9:26pm UTC](https://discourse.julialang.org/t/alternative-to-oop/137543 "2026-08-20T21:26:36Z")

</div>

I’m curious about what the best practice in big packages are. My favorite part about python is OOP, which I don’t find in Julia. I’ve been working for a while on a project that’s gotten fairly big already, and it being p…

---

## [Why is dot so slow for small vectors?](https://discourse.julialang.org/t/why-is-dot-so-slow-for-small-vectors/138950)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 4\
**Last updated:** [August 20, 2026, 3:40pm UTC](https://discourse.julialang.org/t/why-is-dot-so-slow-for-small-vectors/138950 "2026-08-20T15:40:44Z")

</div>

I used LinearAlgebra.dot for small to medium sized vectors but discovered recently that it is much slower for short vectors than an simple for loop. The following code using Printf using LinearAlgebra using BenchmarkToo…

---

## [Which open-weight LLMs are best at Julia coding?](https://discourse.julialang.org/t/which-open-weight-llms-are-best-at-julia-coding/138944)

<div class="topic-metadata">

**Author:** [@Niv](https://discourse.julialang.org/u/Niv)\
**Replies:** 3\
**Last updated:** [August 20, 2026, 1:08pm UTC](https://discourse.julialang.org/t/which-open-weight-llms-are-best-at-julia-coding/138944 "2026-08-20T13:08:16Z")

</div>

Hi all, We’re setting up a self-hosted LLM for coding, and Julia is our primary language. The usual benchmarks (SWE-bench, Aider) barely cover Julia, so published scores don’t help much. I assume that a lot of the fell…

---

## [Using type parameters in the types of the fields](https://discourse.julialang.org/t/using-type-parameters-in-the-types-of-the-fields/138790)

<div class="topic-metadata">

**Author:** [@rokke](https://discourse.julialang.org/u/rokke)\
**Replies:** 16\
**Last updated:** [August 20, 2026, 5:48am UTC](https://discourse.julialang.org/t/using-type-parameters-in-the-types-of-the-fields/138790 "2026-08-20T05:48:43Z")

</div>

I’m not a data structures person, so the right answer here might be “you’re doing it wrong, try this instead”; but I’ll start with the immediate question I have: in a recursive type, is it not possible to have the type …

---

## [Are there any official SKILLs related to Julia development from the Julia community?](https://discourse.julialang.org/t/are-there-any-official-skills-related-to-julia-development-from-the-julia-community/138760)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [August 19, 2026, 10:20pm UTC](https://discourse.julialang.org/t/are-there-any-official-skills-related-to-julia-development-from-the-julia-community/138760 "2026-08-19T22:20:23Z")

</div>

Are there any official SKILLs related to Julia development from the Julia community?

---

## [Julia package vs. Juliaup from AUR vs. shell command for Julia install on Arch Linux derivative?](https://discourse.julialang.org/t/julia-package-vs-juliaup-from-aur-vs-shell-command-for-julia-install-on-arch-linux-derivative/138817)

<div class="topic-metadata">

**Author:** [@ducksoverip](https://discourse.julialang.org/u/ducksoverip)\
**Replies:** 6\
**Last updated:** [August 19, 2026, 12:02pm UTC](https://discourse.julialang.org/t/julia-package-vs-juliaup-from-aur-vs-shell-command-for-julia-install-on-arch-linux-derivative/138817 "2026-08-19T12:02:36Z")

</div>

I recently jumped ship from Windows 11 to CachyOS, a derivative distribution of Arch Linux. As such, it uses the Arch package repos and has access to the Arch User Repository. As it stands, I have 3 install options: In…

---

## [Trimmable CSV parser?](https://discourse.julialang.org/t/trimmable-csv-parser/138914)

<div class="topic-metadata">

**Author:** [@BenjaminDoran](https://discourse.julialang.org/u/BenjaminDoran)\
**Replies:** 0\
**Last updated:** [August 19, 2026, 5:56am UTC](https://discourse.julialang.org/t/trimmable-csv-parser/138914 "2026-08-19T05:56:51Z")

</div>

Are there examples of using juliac and trimming for processing CSV files? I.e. is there a trimmable CSV parser? I’m curious about the difficulty of reading in tables that might have different numbers of columns but shoul…

---

## [Decompose positive integer into 2^p+m](https://discourse.julialang.org/t/decompose-positive-integer-into-2-p-m/138893)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 12\
**Last updated:** [August 18, 2026, 3:02pm UTC](https://discourse.julialang.org/t/decompose-positive-integer-into-2-p-m/138893 "2026-08-18T15:02:50Z")

</div>

This is a bit-wrangling question: I would like to decompose a positive integer x into 2^p+m, for the highest p such that m \\ge 0. Expected output: julia\> for i in 1:7 println(i =\> decompose(i)) end 1 =\> (…

---

## [Unfamiliar syntax in function definition: function (arg1::type1)(arg2::type2)](https://discourse.julialang.org/t/unfamiliar-syntax-in-function-definition-function-arg1-type1-arg2-type2/138884)

<div class="topic-metadata">

**Author:** [@ducksoverip](https://discourse.julialang.org/u/ducksoverip)\
**Replies:** 2\
**Last updated:** [August 18, 2026, 2:56am UTC](https://discourse.julialang.org/t/unfamiliar-syntax-in-function-definition-function-arg1-type1-arg2-type2/138884 "2026-08-18T02:56:18Z")

</div>

I’m testing out an unregistered, abandoned package from 2020 (FEDVR.jl) because it looks like it might actually suit my research needs. I dev’d it locally, tossed the old manifest file (so it would use the latest version…

---

## [DomainColoring(Toy) directly from the 2-D FFT of an image](https://discourse.julialang.org/t/domaincoloring-toy-directly-from-the-2-d-fft-of-an-image/138876)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 1\
**Last updated:** [August 17, 2026, 9:29pm UTC](https://discourse.julialang.org/t/domaincoloring-toy-directly-from-the-2-d-fft-of-an-image/138876 "2026-08-17T21:29:08Z")

</div>

I just discovered the DomainColoring.jl package and I would like to use it to display the 2-D FFT of an input 2-D single channel image. Is there a way to directly pass the Matrix of Complex64 values to be domaincolor()-…

---

## [Compiler output (maybe?) showing when I try to run code](https://discourse.julialang.org/t/compiler-output-maybe-showing-when-i-try-to-run-code/138791)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 5\
**Last updated:** [August 17, 2026, 8:12am UTC](https://discourse.julialang.org/t/compiler-output-maybe-showing-when-i-try-to-run-code/138791 "2026-08-17T08:12:25Z")

</div>

I’ve been seeing some weird stuff when I try to run reverse mode autodiff. I’ve pasted the last few lines of what I’m seeing, but I’m not sure why it’s doing this. Not sure if it happened when I updated some packages, or…

---

## [Julia 1.12.7 release | virus detection claimed by security software](https://discourse.julialang.org/t/julia-1-12-7-release-virus-detection-claimed-by-security-software/138837)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 4\
**Last updated:** [August 16, 2026, 5:02pm UTC](https://discourse.julialang.org/t/julia-1-12-7-release-virus-detection-claimed-by-security-software/138837 "2026-08-16T17:02:09Z")

</div>

Hello, Downloaded the Windows 64 Julia 1.12.7 installer julia-1.12.7-win64.exe from the link provided at the Julia manual download page: https://julialang-s3.julialang.org/bin/winnt/x64/1.12/julia-1.12.7-win64.exe Ins…

---

## [Forcing a weak dependency to require a strong dependency](https://discourse.julialang.org/t/forcing-a-weak-dependency-to-require-a-strong-dependency/138830)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 4\
**Last updated:** [August 16, 2026, 12:50pm UTC](https://discourse.julialang.org/t/forcing-a-weak-dependency-to-require-a-strong-dependency/138830 "2026-08-16T12:50:16Z")

</div>

Suppose that I am developing a package P. I want package to have a published package W as a weak dependency, but if the weak dependency is activated then I want another published package C to be automatically loaded. I…

---

## [HTTP.jl router with constant path elements](https://discourse.julialang.org/t/http-jl-router-with-constant-path-elements/77692)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 2\
**Last updated:** [August 15, 2026, 6:55pm UTC](https://discourse.julialang.org/t/http-jl-router-with-constant-path-elements/77692 "2026-08-15T18:55:26Z")

</div>

I want to register urls of the format: “base/\*” “base/\*/\*” “base/\*/\*/constant1” “base/\*/\*/constant1/\*” “base/\*/\*/constant2” “base/\*/\*/constant2/\*” This seemed to work for a while, but after adding a few more route…

---

## [More idiomatic way of phrasing \`reduce(\\circ, repeated(f, x))(y)\`?](https://discourse.julialang.org/t/more-idiomatic-way-of-phrasing-reduce-circ-repeated-f-x-y/138647)

<div class="topic-metadata">

**Author:** [@rokke](https://discourse.julialang.org/u/rokke)\
**Replies:** 24\
**Last updated:** [August 15, 2026, 2:49pm UTC](https://discourse.julialang.org/t/more-idiomatic-way-of-phrasing-reduce-circ-repeated-f-x-y/138647 "2026-08-15T14:49:08Z")

</div>

I usually use reduce(∘, repeated(func, x))(a) when I need to apply func to a x times, but apparently it spends most of the time creating the single composed function; averaging ~20x as long as an equivalent accumulate in…

---

## [What is the current state of multi-threaded BLAS in Julia?](https://discourse.julialang.org/t/what-is-the-current-state-of-multi-threaded-blas-in-julia/111945)

<div class="topic-metadata">

**Author:** [@leestrobel](https://discourse.julialang.org/u/leestrobel)\
**Replies:** 9\
**Last updated:** [August 15, 2026, 6:36am UTC](https://discourse.julialang.org/t/what-is-the-current-state-of-multi-threaded-blas-in-julia/111945 "2026-08-15T06:36:51Z")

</div>

Hi, I am wondering what is the current state of multi-threaded BLAS in Julia? I remember looking into several options about a year ago for accelerating dense matrix multiplication and sparse solving on some PDE code I w…

---

## [Testing websites and GUIs](https://discourse.julialang.org/t/testing-websites-and-guis/138491)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 4\
**Last updated:** [August 14, 2026, 10:35am UTC](https://discourse.julialang.org/t/testing-websites-and-guis/138491 "2026-08-14T10:35:33Z")

</div>

I’m at a point where I would feel comfortable vibe coding some website (though the core logic is carefully human-written), but I still don’t know how to write tests for a website. If the LLM implements feature B while br…

---

## [Inconsistent results using view()](https://discourse.julialang.org/t/inconsistent-results-using-view/138785)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 8\
**Last updated:** [August 13, 2026, 2:16pm UTC](https://discourse.julialang.org/t/inconsistent-results-using-view/138785 "2026-08-13T14:16:27Z")

</div>

I don’t understand why there would be any difference by using view(): julia\> Random.seed!(1); julia\> xhmat = randn(Float32, 10, 1000); julia\> \[sum(xhmat\[d, :\]) for d in 1:10\] 10-element Vector{Float32}: 6.1436114 …

---

## [Ordered TOML](https://discourse.julialang.org/t/ordered-toml/138762)

<div class="topic-metadata">

**Author:** [@wes648](https://discourse.julialang.org/u/wes648)\
**Replies:** 7\
**Last updated:** [August 12, 2026, 5:54pm UTC](https://discourse.julialang.org/t/ordered-toml/138762 "2026-08-12T17:54:25Z")

</div>

Hello! Is there anyway to preserve file order when reading a TOML in Julia? Like building an array or creating an OrderedDict straight from a TOML file? My goal is to make a program that reads an input file, performs a…

---

## [Does Base.splat have an inverse?](https://discourse.julialang.org/t/does-base-splat-have-an-inverse/138772)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [August 12, 2026, 4:12pm UTC](https://discourse.julialang.org/t/does-base-splat-have-an-inverse/138772 "2026-08-12T16:12:24Z")

</div>

Is there a function that inverts splat, in Base, the standard libraries, or a package? As in f((x, y)) = x + y # function takes tuples g(xs...) = f(xs) # let's unsplat manually unsplat(f) = …

---

## [Domain color plot with Makie](https://discourse.julialang.org/t/domain-color-plot-with-makie/138759)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 2\
**Last updated:** [August 12, 2026, 8:34am UTC](https://discourse.julialang.org/t/domain-color-plot-with-makie/138759 "2026-08-12T08:34:11Z")

</div>

Is there a canonical way for domain colour plots in Makie? I tried using Image, but it doesn’t have an option for me to specify the axes. heatmap! doesn’t seem to work for complex numbers either.

---

## [Tentative Julia in Python project, any up-to-date tips e.g. managing dependencies?](https://discourse.julialang.org/t/tentative-julia-in-python-project-any-up-to-date-tips-e-g-managing-dependencies/104641)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 13\
**Last updated:** [August 11, 2026, 1:51pm UTC](https://discourse.julialang.org/t/tentative-julia-in-python-project-any-up-to-date-tips-e-g-managing-dependencies/104641 "2026-08-11T13:51:16Z")

</div>

For context, I’m jotting down a list of Python packages for a project idea, and it will be beneficial to do some very simple number crunching without allocations. I considered the out argument of NumPy and Numba, but the…

---

## [AOCL (not MKL) acceleration on AMD Ryzen CPU's](https://discourse.julialang.org/t/aocl-not-mkl-acceleration-on-amd-ryzen-cpus/112890)

<div class="topic-metadata">

**Author:** [@aasdelat](https://discourse.julialang.org/u/aasdelat)\
**Replies:** 28\
**Last updated:** [August 10, 2026, 10:54am UTC](https://discourse.julialang.org/t/aocl-not-mkl-acceleration-on-amd-ryzen-cpus/112890 "2026-08-10T10:54:52Z")

</div>

Hi: I am interested in calling a lapack routine, dgesvd, that makes a singular value decomposition of a matrix. The library LinearAlgebra.jl already does it, but it is a generic library that does not take full advantag…

---

## [Absence of easy-to-use AMD AOCL-BLAS/LAPACK support for Julia?](https://discourse.julialang.org/t/absence-of-easy-to-use-amd-aocl-blas-lapack-support-for-julia/131697)

<div class="topic-metadata">

**Author:** [@Norman](https://discourse.julialang.org/u/Norman)\
**Replies:** 7\
**Last updated:** [August 10, 2026, 10:52am UTC](https://discourse.julialang.org/t/absence-of-easy-to-use-amd-aocl-blas-lapack-support-for-julia/131697 "2026-08-10T10:52:21Z")

</div>

With the growing popularity of AMD CPUs over the recent years, I wonder whether there has been any news on an easy-to-use package that allows the use of AOCL-BLAS and AOCL-LAPACK? I am looking for something like MKL.jl t…

---

## [Benchmarking and threads](https://discourse.julialang.org/t/benchmarking-and-threads/138593)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 9\
**Last updated:** [August 9, 2026, 9:14am UTC](https://discourse.julialang.org/t/benchmarking-and-threads/138593 "2026-08-09T09:14:02Z")

</div>

In the bench workspace, I have this function: function kaftorTime(textLen::Integer,keyLen::Integer) # in nanoseconds text=fill(0x69,textLen) key=fill(0x96,keyLen) trial=@benchmark kaftorEncrypt!($text,$key) me…

---

## [Where can I find documentation for a package only on Julia General Registry? Reupload](https://discourse.julialang.org/t/where-can-i-find-documentation-for-a-package-only-on-julia-general-registry-reupload/138692)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [August 8, 2026, 8:32pm UTC](https://discourse.julialang.org/t/where-can-i-find-documentation-for-a-package-only-on-julia-general-registry-reupload/138692 "2026-08-08T20:32:23Z")

</div>

Hello everyone, As some of you know, some quite popular packages were unfortunately deleted (or private) and not accessible on GitHub anymore. The reason for which I am very saddened that we managed to burn out a passi…

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

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