# General Usage

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

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

**Page:** 318

---

## [Raise or throw in documentation](https://discourse.julialang.org/t/raise-or-throw-in-documentation/95854)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 12:09pm UTC](https://discourse.julialang.org/t/raise-or-throw-in-documentation/95854 "2023-03-10T12:09:23Z")

</div>

What is the difference between raising an exception and throwing one? I am labouring under the apprehension that these two really are the same. If this is not so, it would be interesting to know the distinction, otherwi…

---

## [Adjoint vs row vector](https://discourse.julialang.org/t/adjoint-vs-row-vector/95853)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 11:42am UTC](https://discourse.julialang.org/t/adjoint-vs-row-vector/95853 "2023-03-10T11:42:06Z")

</div>

If I want to represent a time series as row vector, can I just represent it as adjoint? Or should I represent it as 1xn matrix? julia\> u=\[1,2,3\]' 1×3 adjoint(::Vector{Int64}) with eltype Int64: 1 2 3 julia\> \[1 2 3\]…

---

## [Multiple named varargs?](https://discourse.julialang.org/t/multiple-named-varargs/95856)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 11:38am UTC](https://discourse.julialang.org/t/multiple-named-varargs/95856 "2023-03-10T11:38:16Z")

</div>

I’m wondering whether anyone has already suggested implementing the usage of multiple varargs in functions/methods. A concrete example I’m thinking about is the following: I have a processing function that I want to mak…

---

## [Method to Dict](https://discourse.julialang.org/t/method-to-dict/95840)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 10:34am UTC](https://discourse.julialang.org/t/method-to-dict/95840 "2023-03-10T10:34:08Z")

</div>

Is it possible to convert a method to a dictionary (or similar structure) with entries: Argument\_Name =\> Argument\_Type

---

## [Are there any parallels for Julia tasks?](https://discourse.julialang.org/t/are-there-any-parallels-for-julia-tasks/95828)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 6:12am UTC](https://discourse.julialang.org/t/are-there-any-parallels-for-julia-tasks/95828 "2023-03-10T06:12:33Z")

</div>

Do the Julia tasks (in the sense of design) resemble any other task-based parallel system? For instance, do they have anything in common with the Task Parallel Library of Microsoft? And, what are good examples of packa…

---

## [Cell width in Pluto Notebook](https://discourse.julialang.org/t/cell-width-in-pluto-notebook/49761)

<div class="topic-metadata">

**Author:** [@GHRALIMA](https://discourse.julialang.org/u/GHRALIMA)\
**Replies:** 10\
**Last updated:** [March 10, 2023, 7:56am UTC](https://discourse.julialang.org/t/cell-width-in-pluto-notebook/49761 "2023-03-10T07:56:13Z")

</div>

I’ve changed from Jupyter to Pluto notebook a couple months ago, and so far I’m having a very nice experience with it. But sometimes, when I plot some results to show my students, I would like to have a wider cell. Is th…

---

## [What do you think this means when transcribed into English?](https://discourse.julialang.org/t/what-do-you-think-this-means-when-transcribed-into-english/95826)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 7\
**Last updated:** [March 10, 2023, 5:20am UTC](https://discourse.julialang.org/t/what-do-you-think-this-means-when-transcribed-into-english/95826 "2023-03-10T05:20:59Z")

</div>

From the manual: Currently, all tasks in Julia are executed in a single OS thread co-operatively. :stuck\_out\_tongue\_winking\_eye:

---

## [Avoid disk write when reading gzipped file from s3](https://discourse.julialang.org/t/avoid-disk-write-when-reading-gzipped-file-from-s3/95836)

<div class="topic-metadata">

**Author:** [@ilanggear](https://discourse.julialang.org/u/ilanggear)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 3:03am UTC](https://discourse.julialang.org/t/avoid-disk-write-when-reading-gzipped-file-from-s3/95836 "2023-03-10T03:03:05Z")

</div>

I have a goal similar to the following thread, but my data is gzipped text, not tiff. Retrieve data from Amazon S3?. I want to read many 130M gzipped text files from s3 one by one, unzip each file, extract a regex match…

---

## [Download package/artifacts versions associated with different metadata, e.g. V x.x.x+1](https://discourse.julialang.org/t/download-package-artifacts-versions-associated-with-different-metadata-e-g-v-x-x-x-1/95833)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 0\
**Last updated:** [March 10, 2023, 12:01am UTC](https://discourse.julialang.org/t/download-package-artifacts-versions-associated-with-different-metadata-e-g-v-x-x-x-1/95833 "2023-03-10T00:01:13Z")

</div>

I am trying to get the correct artifacts files into an airgapped environment. We have a local registry installed; using this registry, we can Pkg.add packages from the registry into various environments, which works fin…

---

## [Help optimising an expectation function](https://discourse.julialang.org/t/help-optimising-an-expectation-function/91181)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 10\
**Last updated:** [March 9, 2023, 7:12pm UTC](https://discourse.julialang.org/t/help-optimising-an-expectation-function/91181 "2023-03-09T19:12:46Z")

</div>

Hey everyone, Apologies for the vague title, I think part of my problem is I don’t know the words for what I’m doing so I can’t search for it. Anyway: I have a function of N boolean arguments. I would like to be able t…

---

## [Good practice question: where do you save custom sysimages built using PackageCompiler](https://discourse.julialang.org/t/good-practice-question-where-do-you-save-custom-sysimages-built-using-packagecompiler/95824)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 10:06pm UTC](https://discourse.julialang.org/t/good-practice-question-where-do-you-save-custom-sysimages-built-using-packagecompiler/95824 "2023-03-09T22:06:58Z")

</div>

Hi, I was wondering what is a good place to store custom sysimages built using the PackageCompiler? Is it okay to store in somewhere in ~/.julia or should that be left alone for julia generated files (except startup.jl)…

---

## [Code-golfing FizzBuzz](https://discourse.julialang.org/t/code-golfing-fizzbuzz/95354)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 86\
**Last updated:** [March 9, 2023, 8:01pm UTC](https://discourse.julialang.org/t/code-golfing-fizzbuzz/95354 "2023-03-09T20:01:50Z")

</div>

Just realised there is no Julia soluton to this on Code golf code golf - 1, 2, Fizz, 4, Buzz - Code Golf Stack Exchange

---

## [How to trace a Package to it's source Registry?](https://discourse.julialang.org/t/how-to-trace-a-package-to-its-source-registry/95821)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 7:43pm UTC](https://discourse.julialang.org/t/how-to-trace-a-package-to-its-source-registry/95821 "2023-03-09T19:43:15Z")

</div>

When sharing a project (Julia scripts and respective Project.toml & Manifest.toml) with a co-worker, is there a way for this individual to know where the packages contained in the Project.toml come from? If some of the p…

---

## [Dispatch on Core.IntrinsicFunction](https://discourse.julialang.org/t/dispatch-on-core-intrinsicfunction/95814)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 6:05pm UTC](https://discourse.julialang.org/t/dispatch-on-core-intrinsicfunction/95814 "2023-03-09T18:05:39Z")

</div>

Consider foo(::typeof(Core.Intrinsics.add\_float)) = "add two floats" foo(::typeof(Core.Intrinsics.add\_int)) = "add two ints" If you ask what methods of foo are available, you’ll see julia\> methods(foo) # 1 method for…

---

## [Optimization level setting (-O / --optimize)](https://discourse.julialang.org/t/optimization-level-setting-o-optimize/95809)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [March 9, 2023, 4:38pm UTC](https://discourse.julialang.org/t/optimization-level-setting-o-optimize/95809 "2023-03-09T16:38:38Z")

</div>

Couple of questions regarding this. First, is there a good way to determine inside the Julia session what the current setting of the optimization level is? Second, is there some reason this behavior is correct? $ juli…

---

## [\#=ERROR showing exception stack=# - What to do?](https://discourse.julialang.org/t/error-showing-exception-stack-what-to-do/95805)

<div class="topic-metadata">

**Author:** [@xtalax](https://discourse.julialang.org/u/xtalax)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 3:39pm UTC](https://discourse.julialang.org/t/error-showing-exception-stack-what-to-do/95805 "2023-03-09T15:39:47Z")

</div>

Hi all, I’m working on a feature and I’ve gotten to a stage where almost anything I do is giving me the following error: ODAEProblem Test: Error During Test at /home/alex/.julia/packages/SafeTestsets/A83XK/src/SafeTest…

---

## [DifferentialEquations.jl look at the ODEsystem](https://discourse.julialang.org/t/differentialequations-jl-look-at-the-odesystem/95131)

<div class="topic-metadata">

**Author:** [@mm-crj](https://discourse.julialang.org/u/mm-crj)\
**Replies:** 9\
**Last updated:** [March 9, 2023, 3:25pm UTC](https://discourse.julialang.org/t/differentialequations-jl-look-at-the-odesystem/95131 "2023-03-09T15:25:49Z")

</div>

I am solving a large system of ODEs with the DifferentialEquation.jl package. Since I am using a number of for loops to set up the RHS to the du, so I would like to see the RHS matrix before solving. Is there a way I ca…

---

## [Best practice for dealing with "Killed" of Julia exits](https://discourse.julialang.org/t/best-practice-for-dealing-with-killed-of-julia-exits/95745)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 16\
**Last updated:** [March 9, 2023, 3:12pm UTC](https://discourse.julialang.org/t/best-practice-for-dealing-with-killed-of-julia-exits/95745 "2023-03-09T15:12:14Z")

</div>

Sometimes when I run a Julia script in the terminal, e.g. julia my\_script.jl the program will exit with a simple Killed message, e.g: Presumably, this is because I ran something very heavy and this just crashed stuff.…

---

## [Julia process staying after closing VSCode](https://discourse.julialang.org/t/julia-process-staying-after-closing-vscode/95789)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 3\
**Last updated:** [March 9, 2023, 12:45pm UTC](https://discourse.julialang.org/t/julia-process-staying-after-closing-vscode/95789 "2023-03-09T12:45:39Z")

</div>

After closing VSCode (and all terminals), a Julia process sticks around and hogs 2 GB of RAM: Information about the process. The “Command Line” options clearly indicate that the process was started by VSCode, which i…

---

## [How to execute the function in a different directory?](https://discourse.julialang.org/t/how-to-execute-the-function-in-a-different-directory/95783)

<div class="topic-metadata">

**Author:** [@manu\_han](https://discourse.julialang.org/u/manu_han)\
**Replies:** 4\
**Last updated:** [March 9, 2023, 12:02pm UTC](https://discourse.julialang.org/t/how-to-execute-the-function-in-a-different-directory/95783 "2023-03-09T12:02:07Z")

</div>

When i execute the function (Background) in a different directory (“User/initialization/Background.jl”) in another function (Hi.Hi\_Hello), there is some error. (although code was simplified for the clarify, it would not …

---

## [Thread Safe Data Structures](https://discourse.julialang.org/t/thread-safe-data-structures/91483)

<div class="topic-metadata">

**Author:** [@Immortalin](https://discourse.julialang.org/u/Immortalin)\
**Replies:** 2\
**Last updated:** [March 9, 2023, 9:11am UTC](https://discourse.julialang.org/t/thread-safe-data-structures/91483 "2023-03-09T09:11:04Z")

</div>

Julia Collections’ Thread Safe data structures is marked as deprecated. What options do we currently have for thread safe structures? Rust for example, has Crossbeam

---

## [Julia 1.8 vs Julia 1.9: Isn't this a breaking change?](https://discourse.julialang.org/t/julia-1-8-vs-julia-1-9-isnt-this-a-breaking-change/95785)

<div class="topic-metadata">

**Author:** [@uje](https://discourse.julialang.org/u/uje)\
**Replies:** 9\
**Last updated:** [March 9, 2023, 9:00am UTC](https://discourse.julialang.org/t/julia-1-8-vs-julia-1-9-isnt-this-a-breaking-change/95785 "2023-03-09T09:00:48Z")

</div>

Isn’t the changes below between the two different versions supposed to be “considered” as breaking? JULIA 1.8 Doc says: Note that while variable bindings can be read externally, they can only be changed within the mo…

---

## [Micrograd.jl - a port of Andrej Karpathy's Micrograd to Julia](https://discourse.julialang.org/t/micrograd-jl-a-port-of-andrej-karpathys-micrograd-to-julia/95779)

<div class="topic-metadata">

**Author:** [@ajloza](https://discourse.julialang.org/u/ajloza)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 3:11am UTC](https://discourse.julialang.org/t/micrograd-jl-a-port-of-andrej-karpathys-micrograd-to-julia/95779 "2023-03-09T03:11:09Z")

</div>

Andrej Karpathy has a great walkthrough of building a scalar reverse mode autodiff library and minimal neural network (GitHub - karpathy/micrograd: A tiny scalar-valued autograd engine and a neural net library on top of …

---

## [PackageCompiler create\_sysimage fails because of failure to precompile Cxx.jl](https://discourse.julialang.org/t/packagecompiler-create-sysimage-fails-because-of-failure-to-precompile-cxx-jl/95741)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 3\
**Last updated:** [March 8, 2023, 11:53pm UTC](https://discourse.julialang.org/t/packagecompiler-create-sysimage-fails-because-of-failure-to-precompile-cxx-jl/95741 "2023-03-08T23:53:08Z")

</div>

Hello, I am watching the awesome talk by Kristoffer Carlsson here PackageCompiler and Static Compilation - YouTube about PackageCompiler. I tried to run the following command in my Julia repl create\_sysimage(\[:DataFram…

---

## [Overhead between calling a function and running the first line its code](https://discourse.julialang.org/t/overhead-between-calling-a-function-and-running-the-first-line-its-code/93963)

<div class="topic-metadata">

**Author:** [@maxchendt](https://discourse.julialang.org/u/maxchendt)\
**Replies:** 7\
**Last updated:** [March 8, 2023, 11:31pm UTC](https://discourse.julialang.org/t/overhead-between-calling-a-function-and-running-the-first-line-its-code/93963 "2023-03-08T23:31:10Z")

</div>

After the packages are loaded, there is a “long” time to wait until the first message indicate that the function called is running. Here is a test example: println("------------- Loading") t0 = time\_ns() using LinearA…

---

## [How to autodifferentiate the results of NLsolve?](https://discourse.julialang.org/t/how-to-autodifferentiate-the-results-of-nlsolve/65680)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 24\
**Last updated:** [March 8, 2023, 10:20pm UTC](https://discourse.julialang.org/t/how-to-autodifferentiate-the-results-of-nlsolve/65680 "2023-03-08T22:20:44Z")

</div>

How can I auto differentiate the function cd with respect to p? using ForwardDiff using NLsolve function cd(; p=\[1.0, 1.0\], i=100) function sys(sto, x; p=p, i=i) x1 = x\[1\] x2 = x\[2\] p1 = p\[1…

---

## [JuliaRegistries setup for air gapped network](https://discourse.julialang.org/t/juliaregistries-setup-for-air-gapped-network/94313)

<div class="topic-metadata">

**Author:** [@lateo](https://discourse.julialang.org/u/lateo)\
**Replies:** 28\
**Last updated:** [March 8, 2023, 10:16pm UTC](https://discourse.julialang.org/t/juliaregistries-setup-for-air-gapped-network/94313 "2023-03-08T22:16:47Z")

</div>

Hi everyone. I’m no Julia enthousiast, and i don’t know much about Julia. I’m a sysadmin looking for ways to offer a clone of JuliaRegistries to users using a completely “offline network”, aka air gapped network. It me…

---

## [Binary Trees for Equations](https://discourse.julialang.org/t/binary-trees-for-equations/95748)

<div class="topic-metadata">

**Author:** [@Kianoush\_Ramezani\_sh](https://discourse.julialang.org/u/Kianoush_Ramezani_sh)\
**Replies:** 4\
**Last updated:** [March 8, 2023, 10:06pm UTC](https://discourse.julialang.org/t/binary-trees-for-equations/95748 "2023-03-08T22:06:59Z")

</div>

Hi everyone, I want to represent an equation like a binary tree, e,g., I have this equation x\*\*2+x+1 and in Julia I want to represent it as a tree with nodes e.g. + sign is a Node in that tree or x is Node or 1 is an…

---

## [Julia 1.9: great improvement](https://discourse.julialang.org/t/julia-1-9-great-improvement/95758)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 7:03pm UTC](https://discourse.julialang.org/t/julia-1-9-great-improvement/95758 "2023-03-08T19:03:16Z")

</div>

I started using it today. The speed improvements and REPL.activate functionality have immensely improved my development experience. I’m sure it was hard work. I think the last major missing piece is compiled debugging (…

---

## [Control over parameters of DifferentialEquations.jl package](https://discourse.julialang.org/t/control-over-parameters-of-differentialequations-jl-package/95665)

<div class="topic-metadata">

**Author:** [@arpan\_chatterjee](https://discourse.julialang.org/u/arpan_chatterjee)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 6:31pm UTC](https://discourse.julialang.org/t/control-over-parameters-of-differentialequations-jl-package/95665 "2023-03-08T18:31:32Z")

</div>

In DifferentialEquations.jl package can I have control over the parameters value, for e.g., if within the whole time evolution some parameters takes value 1 for the half of the evolution time and for the rest of the time…

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

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