# Latest

**URL:** https://discourse.julialang.org/latest.md?page=306

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

**Page:** 307

---

## [Task scheduling and Priority](https://discourse.julialang.org/t/task-scheduling-and-priority/120817)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 16\
**Last updated:** [October 5, 2024, 2:33am UTC](https://discourse.julialang.org/t/task-scheduling-and-priority/120817 "2024-10-05T02:33:29Z")

</div>

I have a package that both collects data and analyzes the data. These parts are separated, with the data acquisition function periodically collecting data and writing this data to a file. The analysis function looks fo…

---

## [TIMES.jl prototype](https://discourse.julialang.org/t/times-jl-prototype/120932)

<div class="topic-metadata">

**Author:** [@olejandro](https://discourse.julialang.org/u/olejandro)\
**Replies:** 3\
**Last updated:** [October 5, 2024, 1:02am UTC](https://discourse.julialang.org/t/times-jl-prototype/120932 "2024-10-05T01:02:30Z")

</div>

Dear all, Together with other members of the TIMES community, I’ve been working on a small TIMES.jl prototype translating a small number of TIMES equations formulated in GAMS to Julia. Basically, this is a continuation…

---

## [I can't suppress printing of a SharedArray; I must be doing something wrong. Help?](https://discourse.julialang.org/t/i-cant-suppress-printing-of-a-sharedarray-i-must-be-doing-something-wrong-help/120876)

<div class="topic-metadata">

**Author:** [@rcorless](https://discourse.julialang.org/u/rcorless)\
**Replies:** 11\
**Last updated:** [October 5, 2024, 12:20am UTC](https://discourse.julialang.org/t/i-cant-suppress-printing-of-a-sharedarray-i-must-be-doing-something-wrong-help/120876 "2024-10-05T00:20:56Z")

</div>

I’m using Julia 1.9.3 on a Windows machine. Two lines in my file ParallelWatson.jl: N = 10^4 y = SharedArray{Float64}(N); In spite of the semicolon, the full Shared Array is printed in the output file when I issue t…

---

## [Optimizing function with vector reassignments](https://discourse.julialang.org/t/optimizing-function-with-vector-reassignments/120938)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 11\
**Last updated:** [October 4, 2024, 10:05pm UTC](https://discourse.julialang.org/t/optimizing-function-with-vector-reassignments/120938 "2024-10-04T22:05:34Z")

</div>

Wanting to optimize this function and I know I have some un-needed allocations. Just wondering what the best choice is to fix a few lines: function singleAtomDistances!(distMat::Array{Float64,3},crystal::Crystal,LJ::LJ,…

---

## [Forcing the E or F format without losing precision](https://discourse.julialang.org/t/forcing-the-e-or-f-format-without-losing-precision/120837)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 7\
**Last updated:** [October 4, 2024, 9:33pm UTC](https://discourse.julialang.org/t/forcing-the-e-or-f-format-without-losing-precision/120837 "2024-10-04T21:33:35Z")

</div>

I need a string decimal representation of a Float64 and I’d like to specify either the E format, e.g., “3.14e-3”, or the F format, “0.00314”, without having to worry about how many digits are necessary to preserve precis…

---

## [TFire backtesting](https://discourse.julialang.org/t/tfire-backtesting/120933)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 6\
**Last updated:** [October 4, 2024, 8:41pm UTC](https://discourse.julialang.org/t/tfire-backtesting/120933 "2024-10-04T20:41:25Z")

</div>

OK, so not really a package but I didn’t know where else to put it. I’ve been developing a backtesting software made with Julia and distributed basically as a sysimage with the REPL included. You can read up on it and …

---

## [XLSX.writexlsx spends excessive time in gc on Windows](https://discourse.julialang.org/t/xlsx-writexlsx-spends-excessive-time-in-gc-on-windows/120687)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 9\
**Last updated:** [October 4, 2024, 5:56pm UTC](https://discourse.julialang.org/t/xlsx-writexlsx-spends-excessive-time-in-gc-on-windows/120687 "2024-10-04T17:56:06Z")

</div>

I need to create many Excel files in a batch. I use a common template and populate with different data and then write out the file to an IOBuffer() using XLSX.jl. This remains slower than I expected, even after this PR w…

---

## [Find positions of minimum and maximum values at once](https://discourse.julialang.org/t/find-positions-of-minimum-and-maximum-values-at-once/120908)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 5\
**Last updated:** [October 4, 2024, 5:48pm UTC](https://discourse.julialang.org/t/find-positions-of-minimum-and-maximum-values-at-once/120908 "2024-10-04T17:48:35Z")

</div>

The minimum and maximum values of an iterable can be found either with minimum and maximum, and more conveniently(\*) with extrema. Also, the positions of those extrema can be found with findmin and findmax (or argmin, a…

---

## [I find R's DSL for defining regression a bit mind blowing. GLM.jl and other have tried to "adopt" them. What would an ideal DSL for defining regression look like in Julia?](https://discourse.julialang.org/t/i-find-rs-dsl-for-defining-regression-a-bit-mind-blowing-glm-jl-and-other-have-tried-to-adopt-them-what-would-an-ideal-dsl-for-defining-regression-look-like-in-julia/120786)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 10\
**Last updated:** [October 4, 2024, 5:44pm UTC](https://discourse.julialang.org/t/i-find-rs-dsl-for-defining-regression-a-bit-mind-blowing-glm-jl-and-other-have-tried-to-adopt-them-what-would-an-ideal-dsl-for-defining-regression-look-like-in-julia/120786 "2024-10-04T17:44:45Z")

</div>

In R glm(x~-1+y+z) fits a GLM model without an intercept and using y and z as data, so there will be two coefficients from the model fit. I think GLM.jl has adopted the ~ DSL. But I’ve always found R’s DSL on regression…

---

## [When to use or not use \`reinterpret\`?](https://discourse.julialang.org/t/when-to-use-or-not-use-reinterpret/40394)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 7\
**Last updated:** [October 4, 2024, 4:33pm UTC](https://discourse.julialang.org/t/when-to-use-or-not-use-reinterpret/40394 "2024-10-04T16:33:49Z")

</div>

I reinterpret an array of bytes (UInt8) as Int64 like this dict = reinterpret(Int64, uncompressed\_data) and when I use dict via a bunch of essentially random indices like so for i in indices do\_something(dict\[i\]) en…

---

## [Remove dep from dev'd package](https://discourse.julialang.org/t/remove-dep-from-devd-package/120927)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 4:33pm UTC](https://discourse.julialang.org/t/remove-dep-from-devd-package/120927 "2024-10-04T16:33:38Z")

</div>

I’m getting an error like this: Failed to precompile XLSX \[fdbf4ff8-1666-58a4-91e7-1b58723a45e0\] to "C:\\\\Users\\\\TGebbels\\\\.julia\\\\compiled\\\\v1.10\\\\XLSX\\\\jl\_9E8E.tmp". ERROR: LoadError: ArgumentError: Package XLSX does n…

---

## [Plot problem, flat line in the middle of the plot](https://discourse.julialang.org/t/plot-problem-flat-line-in-the-middle-of-the-plot/120921)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 6\
**Last updated:** [October 4, 2024, 3:51pm UTC](https://discourse.julialang.org/t/plot-problem-flat-line-in-the-middle-of-the-plot/120921 "2024-10-04T15:51:38Z")

</div>

Hi, I have this datafile: data.jl (1.7 MB) I plot doing: using CSV using Plots csv=CSV.File("data.jl"; header=false, missingstring=\["99999.00"\]) res=hcat(csv.Column2,csv.Column3,csv.Column4,csv.Column5) plot(csv.Co…

---

## [Turing.jl Memory Issues](https://discourse.julialang.org/t/turing-jl-memory-issues/120925)

<div class="topic-metadata">

**Author:** [@willm](https://discourse.julialang.org/u/willm)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 3:45pm UTC](https://discourse.julialang.org/t/turing-jl-memory-issues/120925 "2024-10-04T15:45:44Z")

</div>

Hi All, I designed a relatively simple hierarchical model for my research. To fit the model I initially wanted to use MCMC (NUTS). The other researchers in the lab tend to use R, so I started with rstan. Rstan worked pe…

---

## [What do jobs ads mentioning Julia really mean? E.g. this one from Ford and Facebook](https://discourse.julialang.org/t/what-do-jobs-ads-mentioning-julia-really-mean-e-g-this-one-from-ford-and-facebook/120919)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 3:34pm UTC](https://discourse.julialang.org/t/what-do-jobs-ads-mentioning-julia-really-mean-e-g-this-one-from-ford-and-facebook/120919 "2024-10-04T15:34:57Z")

</div>

A lot of job ads from companies mention Julia, usually with other languages mentioned, such as this latest one I see from Ford: https://www.indeed.com/viewjob?jk=daa997a44f3e5e97&tk=1i9bta0cjgbm581o&from=serp&vjs=3 Ex…

---

## [Contour3D does not work](https://discourse.julialang.org/t/contour3d-does-not-work/120914)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 2:10pm UTC](https://discourse.julialang.org/t/contour3d-does-not-work/120914 "2024-10-04T14:10:52Z")

</div>

Hello =) I am very new to Julia… I want to make a simple contour but it doesn’t work :frowning: I alwyas have the error : ERROR: Can’t convert to a Vector. Please supply a range/vector/interval using GLMakie functio…

---

## [Use exceptions vs other patterns?](https://discourse.julialang.org/t/use-exceptions-vs-other-patterns/120900)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 22\
**Last updated:** [October 3, 2024, 2:47pm UTC](https://discourse.julialang.org/t/use-exceptions-vs-other-patterns/120900 "2024-10-03T14:47:52Z")

</div>

Again, I don’t understand what you mean here. I read elsewhere in the Julia documentation that Exception handling in Julia is done using try — catch — finally, instead of try — except — finally. In contrast to Python…

---

## [Reusing a complex FFT array’s memory as a real array, “C-style”](https://discourse.julialang.org/t/reusing-a-complex-fft-array-s-memory-as-a-real-array-c-style/120849)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 7\
**Last updated:** [October 4, 2024, 1:50pm UTC](https://discourse.julialang.org/t/reusing-a-complex-fft-array-s-memory-as-a-real-array-c-style/120849 "2024-10-04T13:50:28Z")

</div>

When doing a complex-to-real FFT (using FFTW.jl), the real input and complex output arrays take roughly the same amount of memory. To quote from the rfft() docstring, If A has size (n\_1, …, n\_d), the result has size (n…

---

## [.cov files?](https://discourse.julialang.org/t/cov-files/44275)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 1:46pm UTC](https://discourse.julialang.org/t/cov-files/44275 "2024-10-04T13:46:21Z")

</div>

I don’t think this is Julia-related, but maybe it is still related to some practice of coding in Julia (and I don’t know where else to ask). Today I notice that lots of .cov files are generated in my Julia project direc…

---

## [Arrays of NamedTuples](https://discourse.julialang.org/t/arrays-of-namedtuples/120910)

<div class="topic-metadata">

**Author:** [@kingaa](https://discourse.julialang.org/u/kingaa)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 1:29pm UTC](https://discourse.julialang.org/t/arrays-of-namedtuples/120910 "2024-10-04T13:29:49Z")

</div>

I’m designing a package based on manipulating arrays of NamedTuples. Should I be aware of any performance pitfalls associated with such structures? In particular, while many use cases will have NamedTuples, the element…

---

## [Is there a way to debug in VS Code using the remote SSH extension?](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845)

<div class="topic-metadata">

**Author:** [@JakeWren](https://discourse.julialang.org/u/JakeWren)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 12:32pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845 "2024-10-04T12:32:25Z")

</div>

I am on a Linux cluster and the details of the SSH plugin can be found here. After configuring my launch.json file, and then “Run” → “Start Debugging”, it loads for a bit (looping blue bar), but then stops and nothing h…

---

## [Type instabilities when introducing a Channel as a parameter in a ODE problem](https://discourse.julialang.org/t/type-instabilities-when-introducing-a-channel-as-a-parameter-in-a-ode-problem/105737)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 10\
**Last updated:** [October 4, 2024, 11:31am UTC](https://discourse.julialang.org/t/type-instabilities-when-introducing-a-channel-as-a-parameter-in-a-ode-problem/105737 "2024-10-04T11:31:40Z")

</div>

Hello. Hello, in the following I show a minimal working example of the problem. I want to implement a type stable function that solves an ODE that implements a Channel as a parameter. But I figured out that the solve fu…

---

## [Colour next to the label in the legend of a mesh3d in Plots.jl](https://discourse.julialang.org/t/colour-next-to-the-label-in-the-legend-of-a-mesh3d-in-plots-jl/120896)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 9:33am UTC](https://discourse.julialang.org/t/colour-next-to-the-label-in-the-legend-of-a-mesh3d-in-plots-jl/120896 "2024-10-04T09:33:15Z")

</div>

Why the colour of the surfaces does not appear next to the text label in the legend box when I use the code below ? How to have it appear ? x = \[0, 0, 0, 0, 1, 1, 1, 1\] y = \[0, 0, 1, 1, 0, 0, 1, 1\] z = \[0, 1, 0, 1, 0…

---

## [Recursively using Rewrite rules in SymbolicUtils.jl](https://discourse.julialang.org/t/recursively-using-rewrite-rules-in-symbolicutils-jl/120899)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 9:15am UTC](https://discourse.julialang.org/t/recursively-using-rewrite-rules-in-symbolicutils-jl/120899 "2024-10-04T09:15:34Z")

</div>

I am trying to use SymbollicUtils.jls rewriting functionality to bring trigonometric expressions into a canonical form. Namely, I want to expand sin/cos of sums into products of sins/coss. The rules that I define work as…

---

## ["Type function"/"functor" -- where is info in documentation?](https://discourse.julialang.org/t/type-function-functor-where-is-info-in-documentation/120892)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [October 4, 2024, 8:50am UTC](https://discourse.julialang.org/t/type-function-functor-where-is-info-in-documentation/120892 "2024-10-04T08:50:56Z")

</div>

I’m trying to find the correct name/documentation for defining “type functions” – any hint on where I can find it? As an example, consider the following function for computing some norms of a vector: function (v::Vecto…

---

## [% of missingness per column](https://discourse.julialang.org/t/of-missingness-per-column/120888)

<div class="topic-metadata">

**Author:** [@ShakiraBabirye25](https://discourse.julialang.org/u/ShakiraBabirye25)\
**Replies:** 3\
**Last updated:** [October 4, 2024, 8:46am UTC](https://discourse.julialang.org/t/of-missingness-per-column/120888 "2024-10-04T08:46:02Z")

</div>

Hello there! How do i proceed from here (describe(df, :nmissing)) to get the % of missingness per column in my df dataframe?

---

## [LoadError: UndefVarError \`Normal\` not defined](https://discourse.julialang.org/t/loaderror-undefvarerror-normal-not-defined/120865)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 8:26am UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-normal-not-defined/120865 "2024-10-04T08:26:31Z")

</div>

The following Julia code produces the error specified in the title of this post: import Random Random.Normal(0.0, 1.0) However, the following code works: using Random Normal(0.0, 1.0) I thought that import performe…

---

## [I am new to Julia Programming](https://discourse.julialang.org/t/i-am-new-to-julia-programming/120851)

<div class="topic-metadata">

**Author:** [@SafalShrestha](https://discourse.julialang.org/u/SafalShrestha)\
**Replies:** 9\
**Last updated:** [October 4, 2024, 7:40am UTC](https://discourse.julialang.org/t/i-am-new-to-julia-programming/120851 "2024-10-04T07:40:14Z")

</div>

Someone provides me the best resources to getting started with Julia for datascience and ML.

---

## [@ccall for adslib.so](https://discourse.julialang.org/t/ccall-for-adslib-so/120863)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 7:05am UTC](https://discourse.julialang.org/t/ccall-for-adslib-so/120863 "2024-10-04T07:05:45Z")

</div>

Hello, I sucessfully used the TcAdsDll under windows which is used to communicate with beckhoff hardware. Now I m switching stuff to linux and want to use the library here which produces adslib.so TcAdsDll. Julia can lo…

---

## [Temporarily hiding inline results in VSCode](https://discourse.julialang.org/t/temporarily-hiding-inline-results-in-vscode/120857)

<div class="topic-metadata">

**Author:** [@owiecc](https://discourse.julialang.org/u/owiecc)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 7:01am UTC](https://discourse.julialang.org/t/temporarily-hiding-inline-results-in-vscode/120857 "2024-10-04T07:01:48Z")

</div>

I generally like having results shown inline in VSCode (Settings → Julia → Execution: Result Type = inline, errors in REPL) but sometimes the number of annotations overshadows the code. Is there a way to quickly toggle t…

---

## [Allow multiple datetime formats with CSV.jl](https://discourse.julialang.org/t/allow-multiple-datetime-formats-with-csv-jl/120891)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 6:55am UTC](https://discourse.julialang.org/t/allow-multiple-datetime-formats-with-csv-jl/120891 "2024-10-04T06:55:30Z")

</div>

I would like to read CSV files with a time column where the format of the time can be one of several alternatives. CSV.file() does not automatically recognize the formats. Now I do like follows but is there are better w…

[Previous page](https://discourse.julialang.org/latest.md?page=305)

[Next page](https://discourse.julialang.org/latest.md?page=307)
