# General Usage

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

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

**Page:** 18

---

## [Destructuring function definition?](https://discourse.julialang.org/t/destructuring-function-definition/135824)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [February 25, 2026, 10:49am UTC](https://discourse.julialang.org/t/destructuring-function-definition/135824 "2026-02-25T10:49:50Z")

</div>

Can you help me understand julia\> module A f() = g() g() = f() end Main.A julia\> module B f(), g() = g(), f() end ERROR: UndefVarError: \`g\` not defined in \`Main.B\` ?

---

## [Help with JuliaC, \`trim=safe\` and packages wrapping C-libraries](https://discourse.julialang.org/t/help-with-juliac-trim-safe-and-packages-wrapping-c-libraries/135818)

<div class="topic-metadata">

**Author:** [@ErikBuer](https://discourse.julialang.org/u/ErikBuer)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 8:39pm UTC](https://discourse.julialang.org/t/help-with-juliac-trim-safe-and-packages-wrapping-c-libraries/135818 "2026-02-24T20:39:02Z")

</div>

The way i see it, being able to build applications into small-ish binaries is key for widespread adoption of Julia in the industry. The introduction of trim in 1.12 is therefore a massive leap forward! Unfortunately i h…

---

## [Any member of the JuliaNLSolvers organization here?](https://discourse.julialang.org/t/any-member-of-the-julianlsolvers-organization-here/135722)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [February 24, 2026, 7:30pm UTC](https://discourse.julialang.org/t/any-member-of-the-julianlsolvers-organization-here/135722 "2026-02-24T19:30:11Z")

</div>

Is there anyone from the JuliaNLSolvers organization here? I see the organization has only two members: JuliaNLSolvers · GitHub Perhaps a good time to look for additional members? Someone should approve this workflow: h…

---

## [Updating plot attribute (ComputeGraph) from map!](https://discourse.julialang.org/t/updating-plot-attribute-computegraph-from-map/135814)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 5:34pm UTC](https://discourse.julialang.org/t/updating-plot-attribute-computegraph-from-map/135814 "2026-02-24T17:34:30Z")

</div>

I have a custom Makie recipe that has plenty of arguments. One of these arguments is a performance setting that allows to deactivate some features when the data to plot becomes too big, such as text calls, which lead to …

---

## [Convert Rational types to float](https://discourse.julialang.org/t/convert-rational-types-to-float/135767)

<div class="topic-metadata">

**Author:** [@FattiMei](https://discourse.julialang.org/u/FattiMei)\
**Replies:** 19\
**Last updated:** [February 24, 2026, 5:33pm UTC](https://discourse.julialang.org/t/convert-rational-types-to-float/135767 "2026-02-24T17:33:09Z")

</div>

Hello everyone, when converting a Rational type to floating point I’m expecting the result to be up to machine precision. In other words Float64(a//b) should be the closest floating point number to a/b. I found some in…

---

## [Improving the experience of working with Julia packages with llms.txt](https://discourse.julialang.org/t/improving-the-experience-of-working-with-julia-packages-with-llms-txt/135801)

<div class="topic-metadata">

**Author:** [@csvance](https://discourse.julialang.org/u/csvance)\
**Replies:** 5\
**Last updated:** [February 24, 2026, 3:36pm UTC](https://discourse.julialang.org/t/improving-the-experience-of-working-with-julia-packages-with-llms-txt/135801 "2026-02-24T15:36:45Z")

</div>

With the 1.0.0 rewrite of gRPCClient.jl, I realized that there are not going to be any examples of using the current version of the package in LLM training data. In an effort to try and bootstrap the package for usage wi…

---

## [Error while communicating with the LS - stubborn problem](https://discourse.julialang.org/t/error-while-communicating-with-the-ls-stubborn-problem/135812)

<div class="topic-metadata">

**Author:** [@sfearon94](https://discourse.julialang.org/u/sfearon94)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 12:55pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls-stubborn-problem/135812 "2026-02-24T12:55:53Z")

</div>

My Julia LS will not start on two machinesI am using to run a model with work - I get a pop up ‘Error while communicating with the LS’. When I check the output for Julia Language Server I get a readout about a possibly …

---

## [Save compiled functions to file (bytecode in Julia)](https://discourse.julialang.org/t/save-compiled-functions-to-file-bytecode-in-julia/78432)

<div class="topic-metadata">

**Author:** [@nharr](https://discourse.julialang.org/u/nharr)\
**Replies:** 1\
**Last updated:** [February 24, 2026, 11:29am UTC](https://discourse.julialang.org/t/save-compiled-functions-to-file-bytecode-in-julia/78432 "2026-02-24T11:29:41Z")

</div>

Just curious, does Julia have some way to save functions it has compiled to a file alongside the script it ran? I’ve used PackageCompiler.jl, but to my understanding this saves a version of the entire Julia runtime alon…

---

## [Julia on Ubuntu 22.04](https://discourse.julialang.org/t/julia-on-ubuntu-22-04/135799)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [February 23, 2026, 9:33pm UTC](https://discourse.julialang.org/t/julia-on-ubuntu-22-04/135799 "2026-02-23T21:33:04Z")

</div>

AI added the following code to my run\_julia script: # Preload Julia-bundled libraries to avoid version conflicts with older system libs. # On Ubuntu 22.04: OpenSSL 3.0.2 (artifacts need 3.3+), fontconfig 2.13 (missing #…

---

## [GPU based Nearest Neighbor (brute force)](https://discourse.julialang.org/t/gpu-based-nearest-neighbor-brute-force/135753)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 5\
**Last updated:** [February 23, 2026, 7:50pm UTC](https://discourse.julialang.org/t/gpu-based-nearest-neighbor-brute-force/135753 "2026-02-23T19:50:49Z")

</div>

Hi, Is there a maintained Julia package that can perform high-dimensional nearest-neighbor queries on the GPU, e.g., 1000s of queries against 10s of thousands of database vectors? I’m aware of the wrapper for FAISS, bu…

---

## [Rolling window on image/mapwindow variant](https://discourse.julialang.org/t/rolling-window-on-image-mapwindow-variant/135798)

<div class="topic-metadata">

**Author:** [@mekapses](https://discourse.julialang.org/u/mekapses)\
**Replies:** 0\
**Last updated:** [February 23, 2026, 6:19pm UTC](https://discourse.julialang.org/t/rolling-window-on-image-mapwindow-variant/135798 "2026-02-23T18:19:13Z")

</div>

I’m trying to appply a function to a rolling window on an image. If the function returns a primitive value I can use mapwindow. Imagine I’m trying to apply StatsBase.mean. Works fine. But if I want to apply something th…

---

## [Local Nanosoldier, PkgEval for evaluating PR to package?](https://discourse.julialang.org/t/local-nanosoldier-pkgeval-for-evaluating-pr-to-package/119815)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [February 23, 2026, 11:58am UTC](https://discourse.julialang.org/t/local-nanosoldier-pkgeval-for-evaluating-pr-to-package/119815 "2026-02-23T11:58:15Z")

</div>

There’s a package I’m considering submitting a PR to. The PR would change the types of some constants and thus the return types of many operations, with the values staying the same (or becoming more accurate). The packa…

---

## [Where to report a bug in OrdinaryDiffEqBDF](https://discourse.julialang.org/t/where-to-report-a-bug-in-ordinarydiffeqbdf/135759)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [February 21, 2026, 4:48am UTC](https://discourse.julialang.org/t/where-to-report-a-bug-in-ordinarydiffeqbdf/135759 "2026-02-21T04:48:56Z")

</div>

KiteModels.jl precompiles successfully now with max\_order: 5, but not with max\_order: 4. This is just a workaround for the bug in OrdinaryDiffEqBDF v1.17.0. You should still report the Val(5) hardcoding bug upstream so m…

---

## [Julia VSCode extension Problem: the julia language server crashed 5 times in the last 3 min](https://discourse.julialang.org/t/julia-vscode-extension-problem-the-julia-language-server-crashed-5-times-in-the-last-3-min/113536)

<div class="topic-metadata">

**Author:** [@PhyRom](https://discourse.julialang.org/u/PhyRom)\
**Replies:** 10\
**Last updated:** [February 21, 2026, 1:24am UTC](https://discourse.julialang.org/t/julia-vscode-extension-problem-the-julia-language-server-crashed-5-times-in-the-last-3-min/113536 "2026-02-21T01:24:53Z")

</div>

Hi, I have a huge problem with VSCode especially I think with the julia extension. I used vscode before with the julia extension to be able to code in julia. Everything was fine my code was working well, but today probl…

---

## [All jobs are failing](https://discourse.julialang.org/t/all-jobs-are-failing/135760)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [February 20, 2026, 9:20pm UTC](https://discourse.julialang.org/t/all-jobs-are-failing/135760 "2026-02-20T21:20:20Z")

</div>

Is there a problem with the package server? All jobs are failing. caused by: RequestError: HTTP/2 403 while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/ce2c3321ba5d987fdfda155a9…

---

## [Support for reading/writing photographic raw image formats?](https://discourse.julialang.org/t/support-for-reading-writing-photographic-raw-image-formats/135761)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 1\
**Last updated:** [February 20, 2026, 9:06pm UTC](https://discourse.julialang.org/t/support-for-reading-writing-photographic-raw-image-formats/135761 "2026-02-20T21:06:51Z")

</div>

I don’t see support for reading or writing raw image files from cameras in FileIO.jl or the JuliaImages ecosystem. Obviously most cameras have proprietary raw formats, so writing those files isn’t super useful, but it wo…

---

## [Why is Julia the only one that doesn't overflow?](https://discourse.julialang.org/t/why-is-julia-the-only-one-that-doesnt-overflow/135758)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 5\
**Last updated:** [February 20, 2026, 7:42pm UTC](https://discourse.julialang.org/t/why-is-julia-the-only-one-that-doesnt-overflow/135758 "2026-02-20T19:42:37Z")

</div>

I have the following tail recursive fibonacci function in zig, rust, julia and c. For some reason, only the Julia version doesn’t overflow. Why is that? fn fib(n: usize, p1: usize, p2: usize) -\> usize { if n \< 2 { …

---

## [Why is JuliaC faster than PackageCompiler?](https://discourse.julialang.org/t/why-is-juliac-faster-than-packagecompiler/134909)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 5\
**Last updated:** [February 20, 2026, 1:17pm UTC](https://discourse.julialang.org/t/why-is-juliac-faster-than-packagecompiler/134909 "2026-02-20T13:17:50Z")

</div>

Hi all! I have been using PackageCompiler for a while to distribute applications in Julia. It usually takes between 20 to 40 minutes to compile an app from scratch. In 1.12 I have been gradually changing it to JuliaC wi…

---

## [Open Street Map Example does not work in Agents.jl](https://discourse.julialang.org/t/open-street-map-example-does-not-work-in-agents-jl/135295)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 15\
**Last updated:** [February 20, 2026, 11:26am UTC](https://discourse.julialang.org/t/open-street-map-example-does-not-work-in-agents-jl/135295 "2026-02-20T11:26:49Z")

</div>

Hello, I am having difficulty running the Open Street Map for Agents.jl. In particular, CairoMakie does not compile, leading to the error below. I received the same error on Windows. The error also persists after downgra…

---

## [Why does RefValue has allocation?](https://discourse.julialang.org/t/why-does-refvalue-has-allocation/135720)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [February 20, 2026, 8:57am UTC](https://discourse.julialang.org/t/why-does-refvalue-has-allocation/135720 "2026-02-20T08:57:44Z")

</div>

How to explain that only by adding one line r\[\] I had one more allocation? I don’t understand. You can neglect the packages, just focus on the function \_grbval and grbval, and r. Thanks. import JuMP, Gurobi \_grbval(o, …

---

## [Combining reshape and view sometimes allocates](https://discourse.julialang.org/t/combining-reshape-and-view-sometimes-allocates/135725)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 2\
**Last updated:** [February 20, 2026, 2:31am UTC](https://discourse.julialang.org/t/combining-reshape-and-view-sometimes-allocates/135725 "2026-02-20T02:31:05Z")

</div>

I have some complicated code that uses a combination of reshape() and view(), and in my complicated code both reshape() and view() allocates. Trying to reduce my code to an MRE, I came up with this: function profile\_all…

---

## [Test package with dev-ed dependency](https://discourse.julialang.org/t/test-package-with-dev-ed-dependency/135740)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [February 20, 2026, 12:54am UTC](https://discourse.julialang.org/t/test-package-with-dev-ed-dependency/135740 "2026-02-20T00:54:50Z")

</div>

Package P depends on package D. I want to run the test suite of package P with a specific version of package D in the manifest. To be specific, I have D dev-ed, I want the dev-ed variant to be loaded for the test suite. …

---

## [Jupyter Notebooks in VSCode](https://discourse.julialang.org/t/jupyter-notebooks-in-vscode/135743)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [February 20, 2026, 12:42am UTC](https://discourse.julialang.org/t/jupyter-notebooks-in-vscode/135743 "2026-02-20T00:42:34Z")

</div>

Is anyone else having latex rendering issues in VSCode? Does the following markdown cell render properly for you? ### This is another markdown cell with Latex This equation defines eigenvalues and eigenvectors: $Mx = …

---

## [\[Ann\] MakiePatterns: augments Makie.Pattern](https://discourse.julialang.org/t/ann-makiepatterns-augments-makie-pattern/135738)

<div class="topic-metadata">

**Author:** [@technocrat](https://discourse.julialang.org/u/technocrat)\
**Replies:** 0\
**Last updated:** [February 19, 2026, 7:31pm UTC](https://discourse.julialang.org/t/ann-makiepatterns-augments-makie-pattern/135738 "2026-02-19T19:31:05Z")

</div>

---

## [Benchmarking and Pkg.test()](https://discourse.julialang.org/t/benchmarking-and-pkg-test/27719)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 5\
**Last updated:** [February 19, 2026, 2:18pm UTC](https://discourse.julialang.org/t/benchmarking-and-pkg-test/27719 "2026-02-19T14:18:28Z")

</div>

This post is an offspring of the following discussion, where I reported inconsistencies in the benchmarked performances of Base.sum between machines. To summarize the issue (which is illustrated a bit more clearly bel…

---

## [Documented \`const\` fields of a \`mutable struct\` does not show up in documentation](https://discourse.julialang.org/t/documented-const-fields-of-a-mutable-struct-does-not-show-up-in-documentation/135723)

<div class="topic-metadata">

**Author:** [@pmc4](https://discourse.julialang.org/u/pmc4)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 12:19pm UTC](https://discourse.julialang.org/t/documented-const-fields-of-a-mutable-struct-does-not-show-up-in-documentation/135723 "2026-02-19T12:19:38Z")

</div>

Hello, everyone. While I was adding some docstrings to a mutable struct, I’ve realized that when the field is set as constant, the documentation doesn’t work. Take, for example, the following mutable struct: "Some rando…

---

## [STL Meshing in Julia](https://discourse.julialang.org/t/stl-meshing-in-julia/58580)

<div class="topic-metadata">

**Author:** [@graham](https://discourse.julialang.org/u/graham)\
**Replies:** 9\
**Last updated:** [February 19, 2026, 12:00pm UTC](https://discourse.julialang.org/t/stl-meshing-in-julia/58580 "2026-02-19T12:00:43Z")

</div>

Hi all, As the first step in implementing an mass-spring-damper simulator in Julia, I’m trying to generate a volume mesh from .STL file type. Hoping to achieve this using TetGen. However, I’m not sure how to process th…

---

## [Quarto, Pluto.jl, TypstJlyfish.jl, BonitoBook.jl, Weave.jl?](https://discourse.julialang.org/t/quarto-pluto-jl-typstjlyfish-jl-bonitobook-jl-weave-jl/135716)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 8\
**Last updated:** [February 19, 2026, 12:30am UTC](https://discourse.julialang.org/t/quarto-pluto-jl-typstjlyfish-jl-bonitobook-jl-weave-jl/135716 "2026-02-19T00:30:39Z")

</div>

I want to make a document integrating math, code, and prose, interpolating code results into math. I’ve heard of Quarto, Pluto.jl, TypstJlyfish.jl, BonitoBook.jl, Weave.jl. Can anyone comment on choosing between them? A…

---

## [Creating looping matrixes (Torus-like) with type inheritance](https://discourse.julialang.org/t/creating-looping-matrixes-torus-like-with-type-inheritance/135475)

<div class="topic-metadata">

**Author:** [@Daeltam](https://discourse.julialang.org/u/Daeltam)\
**Replies:** 7\
**Last updated:** [February 18, 2026, 11:36pm UTC](https://discourse.julialang.org/t/creating-looping-matrixes-torus-like-with-type-inheritance/135475 "2026-02-18T23:36:13Z")

</div>

Context : I am trying to create a cellular automata and want its behaviour on edges to be looping (ex : neighbour of the cell at \[0,0\] are the cells at \[0,end\] and \[end, 0\] (as well as \[0,1\] and \[1,0\] ) Some kind of tor…

---

## [Help with IR Manipulation](https://discourse.julialang.org/t/help-with-ir-manipulation/135724)

<div class="topic-metadata">

**Author:** [@charlesknipp](https://discourse.julialang.org/u/charlesknipp)\
**Replies:** 0\
**Last updated:** [February 18, 2026, 4:31pm UTC](https://discourse.julialang.org/t/help-with-ir-manipulation/135724 "2026-02-18T16:31:55Z")

</div>

Since this is a relatively complex stack, I will begin with an overarching explanation of my problem, then contextualize it further. Keeping it Vague Suppose I have a misty closure (MistyClosures.jl), where I want to sp…

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

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