# Latest

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

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

**Page:** 720

---

## [Flux Restructure for ComponentArrays.jl unreasonably slow](https://discourse.julialang.org/t/flux-restructure-for-componentarrays-jl-unreasonably-slow/97849)

<div class="topic-metadata">

**Author:** [@glatteis](https://discourse.julialang.org/u/glatteis)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 12:56pm UTC](https://discourse.julialang.org/t/flux-restructure-for-componentarrays-jl-unreasonably-slow/97849 "2023-04-24T12:56:18Z")

</div>

In some situations, you have to restructure a lot if you use Flux and want to run your batches as seperate solves, not as one big solve, for instance using an EnsembleProblem. You have to use something like a ComponentAr…

---

## [How to stack two "cell arrays" together](https://discourse.julialang.org/t/how-to-stack-two-cell-arrays-together/97557)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 21\
**Last updated:** [April 24, 2023, 11:36am UTC](https://discourse.julialang.org/t/how-to-stack-two-cell-arrays-together/97557 "2023-04-24T11:36:43Z")

</div>

I have two cell arrays, one of them A is a 27x1 cell, size(A{i}) is 360x180. B is a 35x1 cell, and size(B{i}) is the same as the above, i.e., 360x180. How do I stack them together to create a C that has a size of 360x…

---

## [Are there any more-readable alternatives to using many individual variables for performance critical code?](https://discourse.julialang.org/t/are-there-any-more-readable-alternatives-to-using-many-individual-variables-for-performance-critical-code/97820)

<div class="topic-metadata">

**Author:** [@Qile0317](https://discourse.julialang.org/u/Qile0317)\
**Replies:** 8\
**Last updated:** [April 24, 2023, 12:45pm UTC](https://discourse.julialang.org/t/are-there-any-more-readable-alternatives-to-using-many-individual-variables-for-performance-critical-code/97820 "2023-04-24T12:45:57Z")

</div>

For a package I’ve been developing in which the code performance is critical, many functions utilize a very long list of individual variables, both arguments and internal variables alike. I’ve tried in the past to modify…

---

## [Scientist in Computational Hydrodynamics](https://discourse.julialang.org/t/scientist-in-computational-hydrodynamics/97404)

<div class="topic-metadata">

**Author:** [@smillerc](https://discourse.julialang.org/u/smillerc)\
**Replies:** 0\
**Last updated:** [April 12, 2023, 7:19pm UTC](https://discourse.julialang.org/t/scientist-in-computational-hydrodynamics/97404 "2023-04-12T19:19:09Z")

</div>

POSITION SUMMARY: The Integrated Modeling Group at the University of Rochester Laboratory for Laser Energetics Theoretical Division seeks a Computational Physicist (Assistant Scientist to Scientist position) to support …

---

## [GLMakie & Observables with GeometryBasis or user defined types](https://discourse.julialang.org/t/glmakie-observables-with-geometrybasis-or-user-defined-types/97851)

<div class="topic-metadata">

**Author:** [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 11:55am UTC](https://discourse.julialang.org/t/glmakie-observables-with-geometrybasis-or-user-defined-types/97851 "2023-04-24T11:55:43Z")

</div>

Hey out there! I have a question concerning Makie and the use of Observables. Here’s what I liked to do: using GLMakie, GeometryBasics mutable struct foo{T} x::Vector{T} r::T end function makefig(foo::foo) …

---

## [KernelAbstraction ndrange using UnitRange](https://discourse.julialang.org/t/kernelabstraction-ndrange-using-unitrange/96713)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 9:38am UTC](https://discourse.julialang.org/t/kernelabstraction-ndrange-using-unitrange/96713 "2023-04-24T09:38:22Z")

</div>

I have an array with size(A)=(N,M) and I would like to run a kernel over ndrange=(2:N-1,3:M-1). Is there a way to do this other than defining an OffsetArray wrapper?

---

## [CSV.jl fails when reading multiple inputs at once if variable name "name" occurs](https://discourse.julialang.org/t/csv-jl-fails-when-reading-multiple-inputs-at-once-if-variable-name-name-occurs/97610)

<div class="topic-metadata">

**Author:** [@klwlevy](https://discourse.julialang.org/u/klwlevy)\
**Replies:** 7\
**Last updated:** [April 24, 2023, 9:17am UTC](https://discourse.julialang.org/t/csv-jl-fails-when-reading-multiple-inputs-at-once-if-variable-name-name-occurs/97610 "2023-04-24T09:17:42Z")

</div>

Hi there, I am importing multiple csv files using the excellent CSV.jl package. However, I fail to import all files in one go when one of the imported variables has the variable name “name”. Is this a bug, and can some…

---

## [DataFrames.jl: metadata](https://discourse.julialang.org/t/dataframes-jl-metadata/84544)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 148\
**Last updated:** [April 24, 2023, 9:01am UTC](https://discourse.julialang.org/t/dataframes-jl-metadata/84544 "2023-04-24T09:01:37Z")

</div>

The discussion on metadata in DataFrames.jl has started 10 years ago, see this issue. In DataFrames.jl we decided to finally settle the issue. The relevant PR is here. The fact that metadata issue has been open for 10 …

---

## [Obscure error message when using Documenter plugin in PkgTemplates.jl](https://discourse.julialang.org/t/obscure-error-message-when-using-documenter-plugin-in-pkgtemplates-jl/97831)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 8:59am UTC](https://discourse.julialang.org/t/obscure-error-message-when-using-documenter-plugin-in-pkgtemplates-jl/97831 "2023-04-24T08:59:20Z")

</div>

Hi! I am trying to initiate a second project by defining a template suitable for use with the package PkgTemplates. The template definition appears to work fine without the Documenter plugin, but as soon as I include it…

---

## [Julia Threads.@threads slower than single thread performance](https://discourse.julialang.org/t/julia-threads-threads-slower-than-single-thread-performance/46823)

<div class="topic-metadata">

**Author:** [@cricci](https://discourse.julialang.org/u/cricci)\
**Replies:** 11\
**Last updated:** [April 24, 2023, 8:57am UTC](https://discourse.julialang.org/t/julia-threads-threads-slower-than-single-thread-performance/46823 "2023-04-24T08:57:11Z")

</div>

I am trying to solve numerically the heat equation in 1d: I am using finite differences and I have some trouble using the @threads instruction in Julia. In particular below there are two version of the same code: the …

---

## [Is it appropriate to say a variable is a label or box?](https://discourse.julialang.org/t/is-it-appropriate-to-say-a-variable-is-a-label-or-box/46068)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 35\
**Last updated:** [April 24, 2023, 7:23am UTC](https://discourse.julialang.org/t/is-it-appropriate-to-say-a-variable-is-a-label-or-box/46068 "2023-04-24T07:23:32Z")

</div>

I’m new to Julia, but not to programming, so to help me learn, I’m writing some notes and training material. While reading Python Crash Course, the author describes a variable as: Variables are often described as boxe…

---

## [Why I still recommend Julia: how 300 lines of Julia code being 1000x faster than MATLAB's C Mex codes](https://discourse.julialang.org/t/why-i-still-recommend-julia-how-300-lines-of-julia-code-being-1000x-faster-than-matlabs-c-mex-codes/97842)

<div class="topic-metadata">

**Author:** [@JohnnyChen94](https://discourse.julialang.org/u/JohnnyChen94)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 7:43am UTC](https://discourse.julialang.org/t/why-i-still-recommend-julia-how-300-lines-of-julia-code-being-1000x-faster-than-matlabs-c-mex-codes/97842 "2023-04-24T07:43:11Z")

</div>

I believe this is an excellent real-world example to showcase Julia’s superiority. GaloisFieldNumbers is a reference (snapshotted) implementation that shows the beauty of Julia in 300 lines of code. It was released a fe…

---

## [Can PythonCall / CondaPkg use custom channels?](https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815)

<div class="topic-metadata">

**Author:** [@huguesmp](https://discourse.julialang.org/u/huguesmp)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 7:38am UTC](https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815 "2023-04-24T07:38:38Z")

</div>

I use Julia in a very restrictive corporate environment at work. For python packages, we must use Artifactory for both Conda and pip. This means that for the conda command to work, I need a .condarc file which sets up t…

---

## [Is there a allocation free graph package?](https://discourse.julialang.org/t/is-there-a-allocation-free-graph-package/97327)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 8\
**Last updated:** [April 24, 2023, 7:07am UTC](https://discourse.julialang.org/t/is-there-a-allocation-free-graph-package/97327 "2023-04-24T07:07:28Z")

</div>

I’m dealing with graphs that have a maximal adjacency count. In that setting, it is possible to add, iterate and remove edges without allocations (see implementation below). That is important since I need to do these ope…

---

## [How to parse string with non-US number format?](https://discourse.julialang.org/t/how-to-parse-string-with-non-us-number-format/97833)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 5:41am UTC](https://discourse.julialang.org/t/how-to-parse-string-with-non-us-number-format/97833 "2023-04-24T05:41:20Z")

</div>

How to convert the string "132.993,00" to the floating point value 132993.00? Are the internationalization or locale packages in Julia that handle country-specific number formats? Base.parse doesn’t contain options to p…

---

## [Parser bug(?): syntax: extra token after end of expression](https://discourse.julialang.org/t/parser-bug-syntax-extra-token-after-end-of-expression/97832)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [April 23, 2023, 11:01pm UTC](https://discourse.julialang.org/t/parser-bug-syntax-extra-token-after-end-of-expression/97832 "2023-04-23T23:01:25Z")

</div>

These two statements error, even though they seem unambiguous: julia\> begin () -\> 3 end() ERROR: syntax: extra token "(" after end of expression Stacktrace: \[1\] top-level scope @ none:1 julia\> funct…

---

## [Encouraging 1.x versions for registered packages?](https://discourse.julialang.org/t/encouraging-1-x-versions-for-registered-packages/97171)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 74\
**Last updated:** [April 23, 2023, 10:35pm UTC](https://discourse.julialang.org/t/encouraging-1-x-versions-for-registered-packages/97171 "2023-04-23T22:35:47Z")

</div>

I’ve become a fan of pretty early on in a package’s development going to v1.X.X so that you have more flexibility in SemVer. This gives you a little bit more flexibility for how it impacts dependencies from the get-go.

---

## [Can't load CUDA.jl when I launch julia under Nsight compute](https://discourse.julialang.org/t/cant-load-cuda-jl-when-i-launch-julia-under-nsight-compute/97810)

<div class="topic-metadata">

**Author:** [@yuwenchen95](https://discourse.julialang.org/u/yuwenchen95)\
**Replies:** 2\
**Last updated:** [April 23, 2023, 10:18pm UTC](https://discourse.julialang.org/t/cant-load-cuda-jl-when-i-launch-julia-under-nsight-compute/97810 "2023-04-23T22:18:18Z")

</div>

When I launch julia with Nsight Compute 2023.1.1 as follows, ncu --mode=launch julia I get stalled when I try to load CUDA.jl at the command: using CUDA Anyone has the idea to solve it? Thanks in advance.

---

## [Dead links in Flux.jl's CONTRIBUTING.md](https://discourse.julialang.org/t/dead-links-in-flux-jls-contributing-md/97819)

<div class="topic-metadata">

**Author:** [@trung](https://discourse.julialang.org/u/trung)\
**Replies:** 5\
**Last updated:** [April 23, 2023, 9:33pm UTC](https://discourse.julialang.org/t/dead-links-in-flux-jls-contributing-md/97819 "2023-04-23T21:33:00Z")

</div>

I’ve been reading through Flux.jl’s CONTRIBUTING.md and there are two dead links under the Learn Flux section: Flux’s official Getting Started tutorial Deep Learning with Flux - A 60 Minute Blitz: a quick intro to Flu…

---

## [Working with different versions of Julia](https://discourse.julialang.org/t/working-with-different-versions-of-julia/97573)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 6\
**Last updated:** [April 23, 2023, 8:46pm UTC](https://discourse.julialang.org/t/working-with-different-versions-of-julia/97573 "2023-04-23T20:46:12Z")

</div>

Under normal circumstances, I work with a single version of Julia, say, Julia 1.8. I have a folder of Julia code, along with Project.toml and Manifest.toml files. I would also like to work with Julia 1.9. What is the str…

---

## [Disk Quota exceeded by activating environment](https://discourse.julialang.org/t/disk-quota-exceeded-by-activating-environment/83201)

<div class="topic-metadata">

**Author:** [@knoppers96](https://discourse.julialang.org/u/knoppers96)\
**Replies:** 4\
**Last updated:** [April 23, 2023, 8:35pm UTC](https://discourse.julialang.org/t/disk-quota-exceeded-by-activating-environment/83201 "2023-04-23T20:35:12Z")

</div>

Hello everybody, I worked now for 6 months with julia and everything was fine, but I receive now a error callstack that is not understandable to me. I work via ssh on a ubuntu server, and there I received the following…

---

## [Nonlinear objective with both splatted variable and vector parameters](https://discourse.julialang.org/t/nonlinear-objective-with-both-splatted-variable-and-vector-parameters/97791)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 7\
**Last updated:** [April 23, 2023, 7:43pm UTC](https://discourse.julialang.org/t/nonlinear-objective-with-both-splatted-variable-and-vector-parameters/97791 "2023-04-23T19:43:57Z")

</div>

Hi, I’m currently writing a model predictive control package. The JuMP package is really helpful, thanks for everything. For nonlinear programming, my decision variable is a vector so I need to rely on the splatting sy…

---

## [Simd and dot vectorization](https://discourse.julialang.org/t/simd-and-dot-vectorization/97817)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 1\
**Last updated:** [April 23, 2023, 5:54pm UTC](https://discourse.julialang.org/t/simd-and-dot-vectorization/97817 "2023-04-23T17:54:51Z")

</div>

Does dot vectorization use SIMD explicitly or implicitly? If I look at the LLVM code for a function call to ‘myadd!’ in julia\> myadd(x, y) = x + y myadd (generic function with 1 method) julia\> function myadd!(z::Vecto…

---

## [Is vscode needed](https://discourse.julialang.org/t/is-vscode-needed/97805)

<div class="topic-metadata">

**Author:** [@VISHWARATH\_T](https://discourse.julialang.org/u/VISHWARATH_T)\
**Replies:** 3\
**Last updated:** [April 23, 2023, 4:57pm UTC](https://discourse.julialang.org/t/is-vscode-needed/97805 "2023-04-23T16:57:36Z")

</div>

Hello, I am getting an error when using the VScode “Could not start the Julia language server. Make sure the julia.executablePath setting is valid” Is this going to be a problem in the getting started phase?

---

## [Trouble Using Cthulhu in VsCode Integrated Terminal](https://discourse.julialang.org/t/trouble-using-cthulhu-in-vscode-integrated-terminal/97822)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 0\
**Last updated:** [April 23, 2023, 4:54pm UTC](https://discourse.julialang.org/t/trouble-using-cthulhu-in-vscode-integrated-terminal/97822 "2023-04-23T16:54:56Z")

</div>

Hello, I am trying to following along with this video here on performance in Julia. I’ve created a fresh environment with Cthulhu version 2.8.13. I did not add any other packages. I open vscode in my package directory a…

---

## [\[SciMLOperators\] Idiomatic way to define a stateful FunctionOperator](https://discourse.julialang.org/t/scimloperators-idiomatic-way-to-define-a-stateful-functionoperator/97821)

<div class="topic-metadata">

**Author:** [@sbrisard](https://discourse.julialang.org/u/sbrisard)\
**Replies:** 0\
**Last updated:** [April 23, 2023, 4:06pm UTC](https://discourse.julialang.org/t/scimloperators-idiomatic-way-to-define-a-stateful-functionoperator/97821 "2023-04-23T16:06:03Z")

</div>

Hi, I’m trying to implement the 2D laplacian of a scalar field as a SciMLOperators.FunctionOperator, using centered finite differences. The op function needs to know the physical size of the grid (Lx, Ly) as well as the…

---

## [Work around for Meshgrid of python into julia](https://discourse.julialang.org/t/work-around-for-meshgrid-of-python-into-julia/97807)

<div class="topic-metadata">

**Author:** [@aburousan](https://discourse.julialang.org/u/aburousan)\
**Replies:** 6\
**Last updated:** [April 23, 2023, 11:13am UTC](https://discourse.julialang.org/t/work-around-for-meshgrid-of-python-into-julia/97807 "2023-04-23T11:13:35Z")

</div>

I am trying to plot a potential diagram for two charge plates. I have a code which does that in python. I am now trying to convert that code block into julia. But I am unable to do so. Can someone help? The code in pyth…

---

## [Is there any way to avoid reimporting all deps in Pluto.jl notebook?](https://discourse.julialang.org/t/is-there-any-way-to-avoid-reimporting-all-deps-in-pluto-jl-notebook/97803)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 2\
**Last updated:** [April 23, 2023, 8:53am UTC](https://discourse.julialang.org/t/is-there-any-way-to-avoid-reimporting-all-deps-in-pluto-jl-notebook/97803 "2023-04-23T08:53:07Z")

</div>

I’m getting started with Pluto.jl, my module Tibra.jl uses many external libraries. Pluto is asking me to import them one by one. Is there any way to avoid this? I ran it from my activated project but all that seems t…

---

## [loops\_Time](https://discourse.julialang.org/t/loops-time/97808)

<div class="topic-metadata">

**Author:** [@VISHWARATH\_T](https://discourse.julialang.org/u/VISHWARATH_T)\
**Replies:** 1\
**Last updated:** [April 23, 2023, 7:23am UTC](https://discourse.julialang.org/t/loops-time/97808 "2023-04-23T07:23:55Z")

</div>

Hello, The time taken to compile the code is less for the nested for loop though I thought the Julia way is more efficient. Can anyone clarify?

---

## [Use joins to change country names](https://discourse.julialang.org/t/use-joins-to-change-country-names/97507)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 7\
**Last updated:** [April 23, 2023, 6:37am UTC](https://discourse.julialang.org/t/use-joins-to-change-country-names/97507 "2023-04-23T06:37:47Z")

</div>

Hi, I have got a dataset with a city and country column. However, there are some names in country column are actually the same place but different names, for example: row 7 and 123, I want both country name be Austra…

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

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