# Latest

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

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

**Page:** 499

---

## [JuliaCon 2024 Aerospace Minisymposium](https://discourse.julialang.org/t/juliacon-2024-aerospace-minisymposium/109198)

<div class="topic-metadata">

**Author:** [@xlxs4](https://discourse.julialang.org/u/xlxs4)\
**Replies:** 6\
**Last updated:** [January 29, 2024, 7:32pm UTC](https://discourse.julialang.org/t/juliacon-2024-aerospace-minisymposium/109198 "2024-01-29T19:32:25Z")

</div>

At JuliaCon 2024 in Eindhoven, I am organizing an Aerospace Minisymposium together with @disberd and @andreapasquale94. The Julia Aerospace community is growing by the day! We see this as a great opportunity for everyone…

---

## [What is an elegant way to use Julia on a Linux server?](https://discourse.julialang.org/t/what-is-an-elegant-way-to-use-julia-on-a-linux-server/108890)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 29\
**Last updated:** [January 29, 2024, 5:22pm UTC](https://discourse.julialang.org/t/what-is-an-elegant-way-to-use-julia-on-a-linux-server/108890 "2024-01-29T17:22:50Z")

</div>

I know I can just throw a well-written script into the server and run it by command julia myScript.jl, or I can start julia and type some little code directly in the REPL. But is that all? I would like to learn some bet…

---

## [Some\_thing in some\_list](https://discourse.julialang.org/t/some-thing-in-some-list/109327)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 11\
**Last updated:** [January 29, 2024, 5:13pm UTC](https://discourse.julialang.org/t/some-thing-in-some-list/109327 "2024-01-29T17:13:25Z")

</div>

I am from matlab. Codes like if some\_thing in some\_list is new to me. It of course makes coding simple, but what is the price? I guess julia just checks the elements of some\_list one by one to see whether some\_thing …

---

## [Parallelizing over an iterable](https://discourse.julialang.org/t/parallelizing-over-an-iterable/108936)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 18\
**Last updated:** [January 29, 2024, 5:07pm UTC](https://discourse.julialang.org/t/parallelizing-over-an-iterable/108936 "2024-01-29T17:07:44Z")

</div>

Suppose we are working with an iterable with known finite length. I have a function that does something like function makeresult(n::Int) it = makeiterator(n) res = 0.0 for x in it res += f(x) en…

---

## [Failed to use OpenSmiles](https://discourse.julialang.org/t/failed-to-use-opensmiles/109408)

<div class="topic-metadata">

**Author:** [@Kirill\_Vostrecov](https://discourse.julialang.org/u/Kirill_Vostrecov)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 5:06pm UTC](https://discourse.julialang.org/t/failed-to-use-opensmiles/109408 "2024-01-29T17:06:18Z")

</div>

Hi all! Tried to use OpenSmiles like using OpenSMILES OpenSMILES.ParseSMILES(“C1CC12CC2”) just for test and got error ERROR: LoadError: MethodError: no method matching add\_vertex!(::SimpleWeightedGraphs.SimpleWeight…

---

## [Errors in creating a small, multi-file project with one module](https://discourse.julialang.org/t/errors-in-creating-a-small-multi-file-project-with-one-module/109324)

<div class="topic-metadata">

**Author:** [@Spydercrawler](https://discourse.julialang.org/u/Spydercrawler)\
**Replies:** 10\
**Last updated:** [January 29, 2024, 4:33pm UTC](https://discourse.julialang.org/t/errors-in-creating-a-small-multi-file-project-with-one-module/109324 "2024-01-29T16:33:09Z")

</div>

Hello! I am a new Julia user, using v1.10, and am struggling a bit to fully understand how to get multiple code files to work together. Specifically, I am finding that editing files can throw errors, and my using statem…

---

## [Weird grayed out variables in VS code?](https://discourse.julialang.org/t/weird-grayed-out-variables-in-vs-code/109355)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 9\
**Last updated:** [January 29, 2024, 4:20pm UTC](https://discourse.julialang.org/t/weird-grayed-out-variables-in-vs-code/109355 "2024-01-29T16:20:35Z")

</div>

Hello! Has anyone tried this before? Some variables are grayed out even though they are evidently used. The code it self runs fine, but what is going on? Kind regards

---

## [Cthulhu.jl showing unstable return type](https://discourse.julialang.org/t/cthulhu-jl-showing-unstable-return-type/109385)

<div class="topic-metadata">

**Author:** [@Gokhan\_Kof](https://discourse.julialang.org/u/Gokhan_Kof)\
**Replies:** 5\
**Last updated:** [January 29, 2024, 2:59pm UTC](https://discourse.julialang.org/t/cthulhu-jl-showing-unstable-return-type/109385 "2024-01-29T14:59:00Z")

</div>

Hi, I am trying to eliminate type unstable parts of my code and Cthulhu.jl is showing the return type of a dictionary access as red: x = my\_dict\[first(my\_set)\] x is detected as as Array{Float64} but shown in red. I su…

---

## [Distributed Arrays: Using multiprocessing increaes memory allocations by factor of 200 and slows down](https://discourse.julialang.org/t/distributed-arrays-using-multiprocessing-increaes-memory-allocations-by-factor-of-200-and-slows-down/109402)

<div class="topic-metadata">

**Author:** [@james](https://discourse.julialang.org/u/james)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 2:45pm UTC](https://discourse.julialang.org/t/distributed-arrays-using-multiprocessing-increaes-memory-allocations-by-factor-of-200-and-slows-down/109402 "2024-01-29T14:45:49Z")

</div>

I have 4 processes, each working on a separate part of an array in parallel. Following a previous thread, I use the DistributedArrays package so that every process gets their own part of the array. In the MWE below, I r…

---

## [Change location of .julia](https://discourse.julialang.org/t/change-location-of-julia/21540)

<div class="topic-metadata">

**Author:** [@Jack\_Stillwell](https://discourse.julialang.org/u/Jack_Stillwell)\
**Replies:** 12\
**Last updated:** [January 29, 2024, 2:18pm UTC](https://discourse.julialang.org/t/change-location-of-julia/21540 "2024-01-29T14:18:11Z")

</div>

I am currently in the process of installing Julia in the ChromeOS shell. I have julia running OK, but I cannot seem to install some packages because the .julia directory is located in the noexec home folder. I would like…

---

## [Building Julia with the latest LLVM](https://discourse.julialang.org/t/building-julia-with-the-latest-llvm/109395)

<div class="topic-metadata">

**Author:** [@eymay](https://discourse.julialang.org/u/eymay)\
**Replies:** 3\
**Last updated:** [January 29, 2024, 2:00pm UTC](https://discourse.julialang.org/t/building-julia-with-the-latest-llvm/109395 "2024-01-29T14:00:44Z")

</div>

Hi, I would like to build Julia for ARM and run it on Raspberry Pi 4 in 32 bit mode. I am quite new to Julia and would like to ask if my current config direction is correct. Make.user DEPS\_GIT = llvm USE\_BINARYBUILDER…

---

## [Enzyme autodiff: Why am I getting allocations?](https://discourse.julialang.org/t/enzyme-autodiff-why-am-i-getting-allocations/109307)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 20\
**Last updated:** [January 29, 2024, 1:19pm UTC](https://discourse.julialang.org/t/enzyme-autodiff-why-am-i-getting-allocations/109307 "2024-01-29T13:19:54Z")

</div>

I’m using Enzyme to perform automatic differentiation. I thought that as the primal code is type stable and non allocating, the enzyme autodiff function would also be. However for me the minimized example below gives th…

---

## [Seeking a job](https://discourse.julialang.org/t/seeking-a-job/109391)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 12:05pm UTC](https://discourse.julialang.org/t/seeking-a-job/109391 "2024-01-29T12:05:41Z")

</div>

Hello all. I am currently contracting with Rolls Royce in the UK, the contract is coming to an end. I am looking for any interesting roles, hopefully involving Julia. My background is in constructing and managing HPC c…

---

## [Stopping pmap when one of the node hit an error](https://discourse.julialang.org/t/stopping-pmap-when-one-of-the-node-hit-an-error/109389)

<div class="topic-metadata">

**Author:** [@muuusso](https://discourse.julialang.org/u/muuusso)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 11:05am UTC](https://discourse.julialang.org/t/stopping-pmap-when-one-of-the-node-hit-an-error/109389 "2024-01-29T11:05:36Z")

</div>

I’m using pmap on my cluster university to distribute computation between different nodes. I’d like to be able to stop all the workers when one of them fails/throw an error. I’ve been looking for a while and I couldn’t f…

---

## [LoopVectorization: no method matching shufflevector](https://discourse.julialang.org/t/loopvectorization-no-method-matching-shufflevector/109369)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [January 29, 2024, 10:13am UTC](https://discourse.julialang.org/t/loopvectorization-no-method-matching-shufflevector/109369 "2024-01-29T10:13:07Z")

</div>

Am I doing something wrong? julia\> vmapreduce(==(3), max, \[1,2,3\]) true julia\> vmapreduce(==(3), max, \[1,2,3,4\]) ERROR: MethodError: no method matching shufflevector(::VectorizationBase.Mask{4, UInt8}, ::Val{(2, 3)}) …

---

## [Error creating a Dict with symbols as indices](https://discourse.julialang.org/t/error-creating-a-dict-with-symbols-as-indices/109367)

<div class="topic-metadata">

**Author:** [@orebas](https://discourse.julialang.org/u/orebas)\
**Replies:** 4\
**Last updated:** [January 29, 2024, 10:02am UTC](https://discourse.julialang.org/t/error-creating-a-dict-with-symbols-as-indices/109367 "2024-01-29T10:02:59Z")

</div>

I am trying to emulate some code I have been given, which returns a Dict that has model states from a ModelingToolkit model as indices. But the below code gives an error. Here’s the MWE: using ModelingToolkit functio…

---

## [How to Sensibly Implement Generic Slice Indexing for Custom Array Type](https://discourse.julialang.org/t/how-to-sensibly-implement-generic-slice-indexing-for-custom-array-type/109289)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 3\
**Last updated:** [January 29, 2024, 8:38am UTC](https://discourse.julialang.org/t/how-to-sensibly-implement-generic-slice-indexing-for-custom-array-type/109289 "2024-01-29T08:38:01Z")

</div>

I have a custom array type that I want to implement custom Base.getindex for: struct MyReadOnlyArray{T, N} \<: AbstractArray{T, N} ... size::NTuple{N, Int} end Not it needs to be n-dimensional. For single entrie…

---

## [LaTeX strings do not vertically align in Plots](https://discourse.julialang.org/t/latex-strings-do-not-vertically-align-in-plots/109304)

<div class="topic-metadata">

**Author:** [@ysfoo](https://discourse.julialang.org/u/ysfoo)\
**Replies:** 11\
**Last updated:** [January 29, 2024, 7:59am UTC](https://discourse.julialang.org/t/latex-strings-do-not-vertically-align-in-plots/109304 "2024-01-29T07:59:39Z")

</div>

I’ve noticed that strings containing LaTeX do not vertically align when their contents differ: using Plots using LaTeXStrings plot( \[1 2 3\], \[1 2 3\], label=\[L"text $g$" L"text $x$" "text"\], legendcolumn=-1, ) resul…

---

## [Multiple dispatch, but for structs?](https://discourse.julialang.org/t/multiple-dispatch-but-for-structs/109221)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 6\
**Last updated:** [January 29, 2024, 12:29am UTC](https://discourse.julialang.org/t/multiple-dispatch-but-for-structs/109221 "2024-01-29T00:29:55Z")

</div>

I was thinking about having an option to specify a “fallback” usage for structs, something that seems to me like a reversed multiple dispatch? Let’s say I have a struct: struct Foo x::String y::Array end And I…

---

## [cuDNN, julia-1.10 and linux](https://discourse.julialang.org/t/cudnn-julia-1-10-and-linux/106658)

<div class="topic-metadata">

**Author:** [@quietlight](https://discourse.julialang.org/u/quietlight)\
**Replies:** 10\
**Last updated:** [January 28, 2024, 9:34pm UTC](https://discourse.julialang.org/t/cudnn-julia-1-10-and-linux/106658 "2024-01-28T21:34:28Z")

</div>

I have trained a Resnet18 using Flux on julia-1.10 rc1, actually I have trained multiple models with no trouble at all, but this week when I try to predict using my model I get a compilation error for my private package: …

---

## [Major update of my Financial Econometrics Repository](https://discourse.julialang.org/t/major-update-of-my-financial-econometrics-repository/109368)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 1\
**Last updated:** [January 28, 2024, 8:31pm UTC](https://discourse.julialang.org/t/major-update-of-my-financial-econometrics-repository/109368 "2024-01-28T20:31:03Z")

</div>

Dear Julians, I have made a major update of my financial econometrics repository, aimed at late MA/early PhD students in finance. It covers things from OLS to quantile regressions (via MLE, GMM, kernel regressions). Eac…

---

## [Turing performance vs numpyro on horseshoe regression](https://discourse.julialang.org/t/turing-performance-vs-numpyro-on-horseshoe-regression/108626)

<div class="topic-metadata">

**Author:** [@jweinstk](https://discourse.julialang.org/u/jweinstk)\
**Replies:** 12\
**Last updated:** [January 28, 2024, 7:24pm UTC](https://discourse.julialang.org/t/turing-performance-vs-numpyro-on-horseshoe-regression/108626 "2024-01-28T19:24:16Z")

</div>

Hi all, I’ve benchmarked a simple implementation of regression with a horseshoe prior over the coefficients in both numpyro and Turing. I found numpyro to over an order of magnitude faster, which I found quite surprisin…

---

## [Is this a good GPU use case?](https://discourse.julialang.org/t/is-this-a-good-gpu-use-case/93787)

<div class="topic-metadata">

**Author:** [@philip](https://discourse.julialang.org/u/philip)\
**Replies:** 2\
**Last updated:** [January 28, 2024, 8:08pm UTC](https://discourse.julialang.org/t/is-this-a-good-gpu-use-case/93787 "2024-01-28T20:08:34Z")

</div>

I would like to perform millions of parallel discrete optimization computations loosely like the following: later = \[9, 8, 4, 1, 0\] today = \[1, 2, 3, 4, 5\] best\_value = -Inf best\_index = -Inf for index in 1:5…

---

## [Which getindex expression threw BoundsError](https://discourse.julialang.org/t/which-getindex-expression-threw-boundserror/109329)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [January 28, 2024, 6:27pm UTC](https://discourse.julialang.org/t/which-getindex-expression-threw-boundserror/109329 "2024-01-28T18:27:46Z")

</div>

I often make this kind of mistake. Would it be possible for the error to figure out which subexpression has the problem, to save me time debugging? julia\> let n = 2, m = 3 xs = randn(n) ys = randn(…

---

## [ERROR: 'path' appears to be a local path, but directory does not exist](https://discourse.julialang.org/t/error-path-appears-to-be-a-local-path-but-directory-does-not-exist/109362)

<div class="topic-metadata">

**Author:** [@danielbl](https://discourse.julialang.org/u/danielbl)\
**Replies:** 3\
**Last updated:** [January 28, 2024, 6:03pm UTC](https://discourse.julialang.org/t/error-path-appears-to-be-a-local-path-but-directory-does-not-exist/109362 "2024-01-28T18:03:15Z")

</div>

Hi all. This post concerns the following error: ERROR: 'path' appears to be a local path, but directory does not exist I am currently following this Readme for a Julia/Python program (BYU CCBlade.ji). I have tried both…

---

## [Can the location of the .julia directory be changed (on windows)?](https://discourse.julialang.org/t/can-the-location-of-the-julia-directory-be-changed-on-windows/109354)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 11\
**Last updated:** [January 28, 2024, 2:49pm UTC](https://discourse.julialang.org/t/can-the-location-of-the-julia-directory-be-changed-on-windows/109354 "2024-01-28T14:49:40Z")

</div>

I have a huge size of .julia directory (~10G) at the default location (C:\\Users\\xxx) but my space on C: is tight, so can I move the .julia directory to D:? Thanks.

---

## [Creating Circular Referencing Structs](https://discourse.julialang.org/t/creating-circular-referencing-structs/107933)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 3\
**Last updated:** [December 22, 2023, 12:24am UTC](https://discourse.julialang.org/t/creating-circular-referencing-structs/107933 "2023-12-22T00:24:48Z")

</div>

This works abstract type Abstract\_B end mutable struct A obj::Abstract\_B function A() x = new() x.obj = B(x) end end struct B\<:Abstract\_B obj::A end Can it be done without t…

---

## [Choosing an optimizer](https://discourse.julialang.org/t/choosing-an-optimizer/109313)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [January 28, 2024, 12:45pm UTC](https://discourse.julialang.org/t/choosing-an-optimizer/109313 "2024-01-28T12:45:10Z")

</div>

I have the following optimization problem: Tuning of a filter, that has two (real value) parameters, subject to one constraint (the time delay). My simulation returns two parameters, the standard deviation of the differ…

---

## [Parsimonious way to unpack big structs](https://discourse.julialang.org/t/parsimonious-way-to-unpack-big-structs/66522)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 18\
**Last updated:** [January 28, 2024, 11:44am UTC](https://discourse.julialang.org/t/parsimonious-way-to-unpack-big-structs/66522 "2024-01-28T11:44:07Z")

</div>

I often work with large structs w/ many (over 20) parameters. I currently do something like: struct m; α; β; γ; end # store parameters in a struct m(; α=0.1,β=0.2,γ=0.3) = m(α,β,γ) # fcn that returns struct w/ default…

---

## [Climate Sensitivity](https://discourse.julialang.org/t/climate-sensitivity/109351)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 2\
**Last updated:** [January 28, 2024, 11:06am UTC](https://discourse.julialang.org/t/climate-sensitivity/109351 "2024-01-28T11:06:40Z")

</div>

Just saw this, and my deepest fears seem confirmed.

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

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