# General Usage

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

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

**Page:** 74

---

## [AI: STT, TTS and PromptingTools](https://discourse.julialang.org/t/ai-stt-tts-and-promptingtools/127383)

<div class="topic-metadata">

**Author:** [@andreeco](https://discourse.julialang.org/u/andreeco)\
**Replies:** 7\
**Last updated:** [April 8, 2025, 8:32pm UTC](https://discourse.julialang.org/t/ai-stt-tts-and-promptingtools/127383 "2025-04-08T20:32:18Z")

</div>

Hello, I’m passionate about learning languages and experiment every now and then with PromptingTools to create language resources. It’s an impressive package, though it currently lacks audio support. For Python, I’ve c…

---

## [Remove agent from space, but not scheduler](https://discourse.julialang.org/t/remove-agent-from-space-but-not-scheduler/127842)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 18\
**Last updated:** [April 8, 2025, 2:56pm UTC](https://discourse.julialang.org/t/remove-agent-from-space-but-not-scheduler/127842 "2025-04-08T14:56:53Z")

</div>

Hello, I have an agent based model in which some agents are removed from the space so they cannot interact with other agents for some number of iterations. I can remove agents with remove\_agent! and put them in a separa…

---

## [Why does SMatrix allocate in this case?](https://discourse.julialang.org/t/why-does-smatrix-allocate-in-this-case/127808)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [April 8, 2025, 2:12pm UTC](https://discourse.julialang.org/t/why-does-smatrix-allocate-in-this-case/127808 "2025-04-08T14:12:34Z")

</div>

Hello everyone, Suppose I have: using StaticArrays using Chairmarks N = 10 Dimensions = 2 DimensionsPlus = Dimensions + 1 FloatType = Float64 SVectors = rand(SVector{DimensionsPlus, FloatType}, N) MVectors =…

---

## [Supressing warnings from documenter block](https://discourse.julialang.org/t/supressing-warnings-from-documenter-block/127844)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 0\
**Last updated:** [April 8, 2025, 1:09pm UTC](https://discourse.julialang.org/t/supressing-warnings-from-documenter-block/127844 "2025-04-08T13:09:40Z")

</div>

I have a block produced using Documenter which runs some code. Is there a way to prevent the warnings (and other output for that matters) from printing to the built documentation?

---

## [Findall() not behaving well for an array of size 1](https://discourse.julialang.org/t/findall-not-behaving-well-for-an-array-of-size-1/127839)

<div class="topic-metadata">

**Author:** [@atiyabzafar](https://discourse.julialang.org/u/atiyabzafar)\
**Replies:** 4\
**Last updated:** [April 8, 2025, 11:59am UTC](https://discourse.julialang.org/t/findall-not-behaving-well-for-an-array-of-size-1/127839 "2025-04-08T11:59:11Z")

</div>

Hi, I was just implementing a code for my work and inside a very long code, I had used findall() to find the set of numbers that satisfy certain property. But I found an unexpected result and when I tried debugging the c…

---

## [Packagecompiler](https://discourse.julialang.org/t/packagecompiler/127829)

<div class="topic-metadata">

**Author:** [@kirit\_ved](https://discourse.julialang.org/u/kirit_ved)\
**Replies:** 0\
**Last updated:** [April 8, 2025, 3:30am UTC](https://discourse.julialang.org/t/packagecompiler/127829 "2025-04-08T03:30:58Z")

</div>

i have created julia project it runs from repl after activating it. It compiles successfully using Packagecompiler julia package. but when run (the compiled executable) windo just opens & closes it. how to correct this f…

---

## [Using \[weakdeps\] and \[extensions\] to carry on a test module](https://discourse.julialang.org/t/using-weakdeps-and-extensions-to-carry-on-a-test-module/96247)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [April 7, 2025, 9:11pm UTC](https://discourse.julialang.org/t/using-weakdeps-and-extensions-to-carry-on-a-test-module/96247 "2025-04-07T21:11:58Z")

</div>

For some packages it is useful to have a TestModule that defines functions to generate data, for example. It is many times interesting that these functions are available for the package user, particularly to provide exam…

---

## [Startup file not run on Windows 10?](https://discourse.julialang.org/t/startup-file-not-run-on-windows-10/127788)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [April 7, 2025, 8:10pm UTC](https://discourse.julialang.org/t/startup-file-not-run-on-windows-10/127788 "2025-04-07T20:10:41Z")

</div>

I usually work on Linux, and here I have a .julia/config/startup.jl file which is run when I start julia. I have copied the content of this int my windows computer: C:\\Users\\Torkel\\.julia\\config\\startup.jl However, it …

---

## [Pipeline of async tasks with channels](https://discourse.julialang.org/t/pipeline-of-async-tasks-with-channels/127810)

<div class="topic-metadata">

**Author:** [@rfourquet](https://discourse.julialang.org/u/rfourquet)\
**Replies:** 3\
**Last updated:** [April 7, 2025, 7:53pm UTC](https://discourse.julialang.org/t/pipeline-of-async-tasks-with-channels/127810 "2025-04-07T19:53:37Z")

</div>

I want to do some work on a list, and each step of the “work” depends on the previous one. Some steps can be IO-bound while some other can be CPU-bound. I want for example to organize as follows: do step 1 in parallel …

---

## [Environment for @testitem run in VS-code](https://discourse.julialang.org/t/environment-for-testitem-run-in-vs-code/127740)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 6:57pm UTC](https://discourse.julialang.org/t/environment-for-testitem-run-in-vs-code/127740 "2025-04-07T18:57:02Z")

</div>

How do you control the environment VS-code sets up to run a @testitem? In particular, how do you include the development version of a dependency? Apologies if this was already answered, as I can imagine it has…

---

## [Adding jump to JumpProblem defined from Catalyst model](https://discourse.julialang.org/t/adding-jump-to-jumpproblem-defined-from-catalyst-model/127790)

<div class="topic-metadata">

**Author:** [@hhindley](https://discourse.julialang.org/u/hhindley)\
**Replies:** 2\
**Last updated:** [April 7, 2025, 4:35pm UTC](https://discourse.julialang.org/t/adding-jump-to-jumpproblem-defined-from-catalyst-model/127790 "2025-04-07T16:35:09Z")

</div>

Hi, Does anyone know if it’s possible to add a newly defined jump to a JumpProblem which is directly defined from a Catalyst.jl model? This is easily done when building a model straight from Jumps, just add another one …

---

## [Tasks from Distributed don't release memory](https://discourse.julialang.org/t/tasks-from-distributed-dont-release-memory/127801)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 0\
**Last updated:** [April 7, 2025, 2:36pm UTC](https://discourse.julialang.org/t/tasks-from-distributed-dont-release-memory/127801 "2025-04-07T14:36:44Z")

</div>

Hello, I use Julia on a SlurmCluster. I recently encountered several problems with OutOfMemory errors. I run a package for Spiking Neural Network simulations that I co-develop, and in which I have no explicit memory ma…

---

## [LIBSVM call on remote workers requires waiting](https://discourse.julialang.org/t/libsvm-call-on-remote-workers-requires-waiting/127796)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 1:13pm UTC](https://discourse.julialang.org/t/libsvm-call-on-remote-workers-requires-waiting/127796 "2025-04-07T13:13:46Z")

</div>

Hello, I have been getting a bit crazy on this (now solved) problem. I am running a SVM classification on a remote worker, the LIBSVM is imported under the hood of another module, let’s call it ClassifierModule, so th…

---

## [Excessive memory consumption when optimising Gaussian process regression with automatic reverse differentiation](https://discourse.julialang.org/t/excessive-memory-consumption-when-optimising-gaussian-process-regression-with-automatic-reverse-differentiation/127772)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 2\
**Last updated:** [April 7, 2025, 6:27am UTC](https://discourse.julialang.org/t/excessive-memory-consumption-when-optimising-gaussian-process-regression-with-automatic-reverse-differentiation/127772 "2025-04-07T06:27:01Z")

</div>

I am working on a model involving Gaussian processes and I am optimising it using Optim.jl while obtaining gradients via DifferentiationInterface.jl. Unfortunately, when I run the code, the top utility informs me that th…

---

## [Morse code day - April 27th](https://discourse.julialang.org/t/morse-code-day-april-27th/80261)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 4\
**Last updated:** [April 7, 2025, 7:54am UTC](https://discourse.julialang.org/t/morse-code-day-april-27th/80261 "2025-04-07T07:54:23Z")

</div>

Hello, Morse code day was April 27th https://www.daysoftheyear.com/days/morse-code-day/ I noticed no package for morse code seems to exist with Julia Here is my small (and late) contribution module MorseCode using …

---

## [Extracting wave numbers using FFT and 2D data](https://discourse.julialang.org/t/extracting-wave-numbers-using-fft-and-2d-data/127758)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 3\
**Last updated:** [April 6, 2025, 7:13pm UTC](https://discourse.julialang.org/t/extracting-wave-numbers-using-fft-and-2d-data/127758 "2025-04-06T19:13:36Z")

</div>

Dear all, I am trying to write a basic script that extract sthe wave numbers of a 2D signal (defined in ‘spatial coordinates’) using FFTW. To test the script, I want to define a signal where the wave numbers in x and y…

---

## [Anything like Distributions.jl but works on GPU in 2025?](https://discourse.julialang.org/t/anything-like-distributions-jl-but-works-on-gpu-in-2025/127783)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 0\
**Last updated:** [April 7, 2025, 4:46am UTC](https://discourse.julialang.org/t/anything-like-distributions-jl-but-works-on-gpu-in-2025/127783 "2025-04-07T04:46:24Z")

</div>

Anything like Distributions.jl for GPU? was the previous discussion. I guess the answer is still no: CUDA support ? · Issue #1183 · JuliaStats/Distributions.jl · GitHub Calculating Distributions PDF in the GPU · Issue…

---

## [How do I concatenate symbols containing curly brackets into a single symbol?](https://discourse.julialang.org/t/how-do-i-concatenate-symbols-containing-curly-brackets-into-a-single-symbol/127759)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 4\
**Last updated:** [April 6, 2025, 9:18pm UTC](https://discourse.julialang.org/t/how-do-i-concatenate-symbols-containing-curly-brackets-into-a-single-symbol/127759 "2025-04-06T21:18:28Z")

</div>

I’d like to obtain the code struct S{𝒯\<:Real} end programmatically. Method 1 below works, but I’d like to be able to feed in the variable name (here S) automatically (e.g. by passing a variable x containing :S) and he…

---

## [Thread sanitizer troubles](https://discourse.julialang.org/t/thread-sanitizer-troubles/108507)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 9\
**Last updated:** [April 6, 2025, 8:06pm UTC](https://discourse.julialang.org/t/thread-sanitizer-troubles/108507 "2025-04-06T20:06:08Z")

</div>

I’m wondering if anyone has experience with building Julia with thread sanitization (TSAN) before? I’ve tried maybe ~15 clean builds over the last year now, with different configurations after being recommended it (for t…

---

## [Invoke previous method version with identical signature](https://discourse.julialang.org/t/invoke-previous-method-version-with-identical-signature/127757)

<div class="topic-metadata">

**Author:** [@Ouroboros42](https://discourse.julialang.org/u/Ouroboros42)\
**Replies:** 2\
**Last updated:** [April 6, 2025, 7:01pm UTC](https://discourse.julialang.org/t/invoke-previous-method-version-with-identical-signature/127757 "2025-04-06T19:01:56Z")

</div>

Very simple example: I have a function f with one method, I would like to redefine that method, but call the old implementation from inside the new one. invoke cannot do this for identical signatures. The following lead…

---

## [Static Compilation using StaticCompiler on Windows](https://discourse.julialang.org/t/static-compilation-using-staticcompiler-on-windows/109414)

<div class="topic-metadata">

**Author:** [@Thomas008](https://discourse.julialang.org/u/Thomas008)\
**Replies:** 6\
**Last updated:** [April 6, 2025, 12:12pm UTC](https://discourse.julialang.org/t/static-compilation-using-staticcompiler-on-windows/109414 "2025-04-06T12:12:17Z")

</div>

PackageCompiler builds the entire sysimage which is very large. StaticCompiler allows static compilation of Julia into small native biniaries. It uses StaticTools which helps avoiding GC allocations. Now it seems possib…

---

## [Is there a tool to detect data races in Julia?](https://discourse.julialang.org/t/is-there-a-tool-to-detect-data-races-in-julia/127750)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 10:56pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-detect-data-races-in-julia/127750 "2025-04-05T22:56:33Z")

</div>

Hi, The question is in the title. I am struggling with a pretty nasty race condition (that I cannot locate) involving concurrent jump computations (having a copy of the model for each tasks). Some tool like https://cl…

---

## [Usage of OrdinaryDiffEqLinear.jl for non-autonomous problems](https://discourse.julialang.org/t/usage-of-ordinarydiffeqlinear-jl-for-non-autonomous-problems/127662)

<div class="topic-metadata">

**Author:** [@ultimatile](https://discourse.julialang.org/u/ultimatile)\
**Replies:** 5\
**Last updated:** [April 5, 2025, 9:34pm UTC](https://discourse.julialang.org/t/usage-of-ordinarydiffeqlinear-jl-for-non-autonomous-problems/127662 "2025-04-05T21:34:16Z")

</div>

I’m trying to use OrdinaryDiffEqLinear.jl 's the state-independent Magnus solvers to solve non-autonomous Linear ODEs. To confirm the usage, I’m trying to solve \\dot{\\boldsymbol{u}}(t)=\\begin{pmatrix}0&-\\alpha t\\\\\\alp…

---

## [Continuing pipe operator in Query.jl standalone query operators](https://discourse.julialang.org/t/continuing-pipe-operator-in-query-jl-standalone-query-operators/127745)

<div class="topic-metadata">

**Author:** [@bertlhf](https://discourse.julialang.org/u/bertlhf)\
**Replies:** 0\
**Last updated:** [April 5, 2025, 3:51pm UTC](https://discourse.julialang.org/t/continuing-pipe-operator-in-query-jl-standalone-query-operators/127745 "2025-04-05T15:51:36Z")

</div>

In Query.jl I can easily continue the pipe in a LINQ style query via parenthesis in the @query macro, for instance like this: df = DataFrame(name=\["John", "Sally", "Kirk"\], age=\[23., 42., 59.\], children=\[3,5,2\]) @pipe …

---

## [Efficiently Read JSON and Create DataFrame](https://discourse.julialang.org/t/efficiently-read-json-and-create-dataframe/41087)

<div class="topic-metadata">

**Author:** [@Dominic\_Pazzula](https://discourse.julialang.org/u/Dominic_Pazzula)\
**Replies:** 23\
**Last updated:** [April 3, 2025, 6:00am UTC](https://discourse.julialang.org/t/efficiently-read-json-and-create-dataframe/41087 "2025-04-03T06:00:28Z")

</div>

I am taking in a simulation from another process written in existing software. It outputs a JSON package of a few tables (stored as array of objects). I am running an optimization in JuMP based on the simulation. The …

---

## [Setting aspect ratio in Plots with PGFPlotsX](https://discourse.julialang.org/t/setting-aspect-ratio-in-plots-with-pgfplotsx/103424)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 1\
**Last updated:** [April 5, 2025, 10:25am UTC](https://discourse.julialang.org/t/setting-aspect-ratio-in-plots-with-pgfplotsx/103424 "2025-04-05T10:25:49Z")

</div>

What I want is to set the aspect ratio to 1 when plotting with Plots.jl and PGFPlotsX backend. My plotting script looks like this: ε\_min = -1.5 ε\_max = 1 kpt\_labels = \[L"-\\mathrm{Y}", L"\\Gamma", L"\\mathrm{Y}"\] kpt\_pos …

---

## [Including a julia binary or library into a mobile app via LynxJS or NativeScript?](https://discourse.julialang.org/t/including-a-julia-binary-or-library-into-a-mobile-app-via-lynxjs-or-nativescript/127729)

<div class="topic-metadata">

**Author:** [@\_admin](https://discourse.julialang.org/u/_admin)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 7:04am UTC](https://discourse.julialang.org/t/including-a-julia-binary-or-library-into-a-mobile-app-via-lynxjs-or-nativescript/127729 "2025-04-05T07:04:11Z")

</div>

Hi together, this is a fantastic community, but I wish there was an IRC chat or something more like a chat. Is it possible to create a mobile application in whatever framework and include a binary or a library compiled…

---

## [About the low quality of Base.hash()](https://discourse.julialang.org/t/about-the-low-quality-of-base-hash/127707)

<div class="topic-metadata">

**Author:** [@noteas](https://discourse.julialang.org/u/noteas)\
**Replies:** 8\
**Last updated:** [April 4, 2025, 10:04pm UTC](https://discourse.julialang.org/t/about-the-low-quality-of-base-hash/127707 "2025-04-04T22:04:49Z")

</div>

I was implementing a 1d noise function where hashes of Ints were needed, when I found Base.hash() is of surprisingly low quality. I wonder whether this should be an issue or not. Consider the following example: using P…

---

## [Installing packages and Julia outside of home folder? (minimal user space)](https://discourse.julialang.org/t/installing-packages-and-julia-outside-of-home-folder-minimal-user-space/127685)

<div class="topic-metadata">

**Author:** [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Replies:** 5\
**Last updated:** [April 4, 2025, 6:16pm UTC](https://discourse.julialang.org/t/installing-packages-and-julia-outside-of-home-folder-minimal-user-space/127685 "2025-04-04T18:16:05Z")

</div>

Hello! I am about to work on a HPC with very limited home user space (about 5GB). From experience, I know that my julia projects can quickly add lots of packages, etc into the user’s .julia folder. Is there a documented…

---

## [Reading from either stdout or stderr of spawned process](https://discourse.julialang.org/t/reading-from-either-stdout-or-stderr-of-spawned-process/127690)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 11:24am UTC](https://discourse.julialang.org/t/reading-from-either-stdout-or-stderr-of-spawned-process/127690 "2025-04-04T11:24:57Z")

</div>

My code runs an external process (in this case, Pari/GP) which might produce output on either its stdout or stderr file descriptors. I communicate with the process in the following way: pin, pout = Pipe(), Pipe() proces…

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

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