# Latest

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

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

**Page:** 708

---

## [Reference versus copy](https://discourse.julialang.org/t/reference-versus-copy/98447)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 5\
**Last updated:** [May 7, 2023, 11:47pm UTC](https://discourse.julialang.org/t/reference-versus-copy/98447 "2023-05-07T23:47:41Z")

</div>

I create a simple MWE to demonstrate some kind of reference problem which is leading to unwanted behavior when creating matrices with function elements. Here is the code: function test() zfcts = Any\[t -\> 0., t -\> 0.…

---

## [Strange performance issue on 1.9.0-rc3](https://discourse.julialang.org/t/strange-performance-issue-on-1-9-0-rc3/98427)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 9\
**Last updated:** [May 7, 2023, 10:44pm UTC](https://discourse.julialang.org/t/strange-performance-issue-on-1-9-0-rc3/98427 "2023-05-07T22:44:34Z")

</div>

I’m seeing a weird performance issue related to the presence of an if-statement in my function, regardless of the if-statement being triggered or not. I can only reproduce this in 1.9.0, not earlier Julia versions. I ha…

---

## [Writing a Hdf5 attribute as an ascii string in HDF5.jl](https://discourse.julialang.org/t/writing-a-hdf5-attribute-as-an-ascii-string-in-hdf5-jl/98450)

<div class="topic-metadata">

**Author:** [@lucasbanting](https://discourse.julialang.org/u/lucasbanting)\
**Replies:** 0\
**Last updated:** [May 7, 2023, 10:02pm UTC](https://discourse.julialang.org/t/writing-a-hdf5-attribute-as-an-ascii-string-in-hdf5-jl/98450 "2023-05-07T22:02:49Z")

</div>

How can I write out an hdf5 group attribute as an ascii string instead of utf-8?

---

## [Method Error in simple LoopVectorization call](https://discourse.julialang.org/t/method-error-in-simple-loopvectorization-call/98444)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 2\
**Last updated:** [May 7, 2023, 7:29pm UTC](https://discourse.julialang.org/t/method-error-in-simple-loopvectorization-call/98444 "2023-05-07T19:29:43Z")

</div>

With this simple example, I get an error where I do not expect it when looping over a Vector{Int} with length 2. using LoopVectorization function f(v) x = zero(eltype(v)) @turbo for i ∈ eachindex(v) amt …

---

## [Private fields with \`fieldnames\` and \`propertynames\`](https://discourse.julialang.org/t/private-fields-with-fieldnames-and-propertynames/98442)

<div class="topic-metadata">

**Author:** [@sirion34](https://discourse.julialang.org/u/sirion34)\
**Replies:** 5\
**Last updated:** [May 7, 2023, 7:20pm UTC](https://discourse.julialang.org/t/private-fields-with-fieldnames-and-propertynames/98442 "2023-05-07T19:20:40Z")

</div>

everywhere write that with the help of propertynames I can set public and private fields, but how legal is it to do this with fieldnames? Struct the structure stores its fields in Struct\*.name.names and I can overload fi…

---

## [Running tests for Apple silicon on a GitHub CI workflow](https://discourse.julialang.org/t/running-tests-for-apple-silicon-on-a-github-ci-workflow/98443)

<div class="topic-metadata">

**Author:** [@ferrolho](https://discourse.julialang.org/u/ferrolho)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 7:19pm UTC](https://discourse.julialang.org/t/running-tests-for-apple-silicon-on-a-github-ci-workflow/98443 "2023-05-07T19:19:12Z")

</div>

Has anyone managed to include an Apple silicon instance in their GitHub CI test jobs? I tried adding the following to a CI.yml: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }…

---

## [Execute a matrix of functions](https://discourse.julialang.org/t/execute-a-matrix-of-functions/98440)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 15\
**Last updated:** [May 7, 2023, 6:59pm UTC](https://discourse.julialang.org/t/execute-a-matrix-of-functions/98440 "2023-05-07T18:59:45Z")

</div>

I have defined a 3x3 matrix of functions (all cos(t)) as follows: vij = SizedMatrix{3,3}(\[t-\>cos(t) for i in 1:3 for j in 1:3\]) I’d like to execute the matrix for a particular value of t, say t=2.: values = \[vij\[i,j\](…

---

## [Probabilistic forecasting for spatio-temporal raster data](https://discourse.julialang.org/t/probabilistic-forecasting-for-spatio-temporal-raster-data/98436)

<div class="topic-metadata">

**Author:** [@microlifecc](https://discourse.julialang.org/u/microlifecc)\
**Replies:** 2\
**Last updated:** [May 7, 2023, 6:44pm UTC](https://discourse.julialang.org/t/probabilistic-forecasting-for-spatio-temporal-raster-data/98436 "2023-05-07T18:44:19Z")

</div>

We have a time series gridded/ratser panel dataset (spatio-temporal). The dataset is in 3D, where each ((x, y, t), where x and y ranges from 1-25 while t ranges from 1-1800 though we’re trying to predict just the next ti…

---

## [Interdependent Widgets in one Cell](https://discourse.julialang.org/t/interdependent-widgets-in-one-cell/98351)

<div class="topic-metadata">

**Author:** [@GoodDayToYouAll](https://discourse.julialang.org/u/GoodDayToYouAll)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 6:41pm UTC](https://discourse.julialang.org/t/interdependent-widgets-in-one-cell/98351 "2023-05-07T18:41:58Z")

</div>

Hi everyone, I am quite new to Pluto and I am a little stuck. Also I don’t know how to properly include Pluto code here, if this is possible, please tell me. Core Problem: As to my question: In principle I want to ac…

---

## [How to find out the version of NetworkLayout.jl that worked for particular trees](https://discourse.julialang.org/t/how-to-find-out-the-version-of-networklayout-jl-that-worked-for-particular-trees/98438)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [May 7, 2023, 4:25pm UTC](https://discourse.julialang.org/t/how-to-find-out-the-version-of-networklayout-jl-that-worked-for-particular-trees/98438 "2023-05-07T16:25:37Z")

</div>

Late in september 2021, NetworkLayout.buchheim worked even with a non tree network. More precisely, it assigned coordinates to the nodes of an “almost” rooted tree, in the sense that a node could have two parents (exampl…

---

## [Destructuring vectors of tuples: proper argument type?](https://discourse.julialang.org/t/destructuring-vectors-of-tuples-proper-argument-type/98417)

<div class="topic-metadata">

**Author:** [@PZacchia](https://discourse.julialang.org/u/PZacchia)\
**Replies:** 11\
**Last updated:** [May 7, 2023, 4:02pm UTC](https://discourse.julialang.org/t/destructuring-vectors-of-tuples-proper-argument-type/98417 "2023-05-07T16:02:12Z")

</div>

Hello! I would like to write a generic function that, given a generic vector of tuples of equal but variable length, such as (for length three): mytuple = \[(1, "a", "α"), (2, "b", "β"), (3, "c", "γ")\] returns me separa…

---

## [CAD in Julia?](https://discourse.julialang.org/t/cad-in-julia/28557)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 23\
**Last updated:** [May 6, 2023, 11:13pm UTC](https://discourse.julialang.org/t/cad-in-julia/28557 "2023-05-06T23:13:52Z")

</div>

Hi everyone, I noticed there are some good packages for making meshes, instant access to GPU functionality, and we have packages for FEM. While working on my recent package I realized I was making a chopped down version…

---

## [Best practices for removing singleton dimension](https://discourse.julialang.org/t/best-practices-for-removing-singleton-dimension/98435)

<div class="topic-metadata">

**Author:** [@gaspardb](https://discourse.julialang.org/u/gaspardb)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 1:30pm UTC](https://discourse.julialang.org/t/best-practices-for-removing-singleton-dimension/98435 "2023-05-07T13:30:31Z")

</div>

Hi! I often use reduction like sum or prod by specifying dimensions with the dims keyword argument. I’m wondering now how to get rid of the singleton dimension. Typically, if X is an array of size (1, n), we can do se…

---

## [Automatically drop into debugger or infiltrate on test error or failure](https://discourse.julialang.org/t/automatically-drop-into-debugger-or-infiltrate-on-test-error-or-failure/98423)

<div class="topic-metadata">

**Author:** [@jwkvam](https://discourse.julialang.org/u/jwkvam)\
**Replies:** 2\
**Last updated:** [May 7, 2023, 1:03pm UTC](https://discourse.julialang.org/t/automatically-drop-into-debugger-or-infiltrate-on-test-error-or-failure/98423 "2023-05-07T13:03:22Z")

</div>

tl;dr: I’m looking for roughly the equivalent of pytest --pdb for those familiar with pytest. I would like to drop into a debugger or infiltrator when a unit test fails. If I run a test and it fails and I can’t immediat…

---

## [ImageCorners.jl](https://discourse.julialang.org/t/imagecorners-jl/98437)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 0\
**Last updated:** [May 7, 2023, 12:48pm UTC](https://discourse.julialang.org/t/imagecorners-jl/98437 "2023-05-07T12:48:31Z")

</div>

ImageCorners.jl provides corner detection algorithms for images. There are 4 different algorithms that are present currently in the repository mentioned below: Harris Shi-Tomasi Kitchen-Rosenfeld Fast-Corners Corners …

---

## [PackageCompiler error creating sysimage](https://discourse.julialang.org/t/packagecompiler-error-creating-sysimage/75710)

<div class="topic-metadata">

**Author:** [@notthetup](https://discourse.julialang.org/u/notthetup)\
**Replies:** 2\
**Last updated:** [May 7, 2023, 11:31am UTC](https://discourse.julialang.org/t/packagecompiler-error-creating-sysimage/75710 "2023-05-07T11:31:04Z")

</div>

Hello, I’m having issues using PackageCompiler on a Linux on aarch64(nVidia Jetson TX2) machine. Running through the basic example from the documentation causes this error. julia\> create\_sysimage(\["Example"\]; sysimage\_…

---

## [Replicate Python code in Julia](https://discourse.julialang.org/t/replicate-python-code-in-julia/98434)

<div class="topic-metadata">

**Author:** [@Vahagn](https://discourse.julialang.org/u/Vahagn)\
**Replies:** 7\
**Last updated:** [May 7, 2023, 11:19am UTC](https://discourse.julialang.org/t/replicate-python-code-in-julia/98434 "2023-05-07T11:19:47Z")

</div>

Hi everyone, I want to replicate Python code in Julia but I get an error. #Neural network construction using Flux, Plots model = Chain(Dense(5 =\> 32), Dense(32 =\> 32), Dense(32 =\> 2, bias=false)) function dr(a::Vect…

---

## [Neighborhood information in Julia mesh Libraries](https://discourse.julialang.org/t/neighborhood-information-in-julia-mesh-libraries/97875)

<div class="topic-metadata">

**Author:** [@mm-crj](https://discourse.julialang.org/u/mm-crj)\
**Replies:** 11\
**Last updated:** [May 7, 2023, 10:25am UTC](https://discourse.julialang.org/t/neighborhood-information-in-julia-mesh-libraries/97875 "2023-05-07T10:25:07Z")

</div>

I have a mesh in msh format from Gmsh. I am importing it to Julia via Gmsh.jl. I need information about the neighbours of each cell in the grid. However none of the Julia libraries seem to provide that information. I hav…

---

## [How to create a vector of string elements from a combination of different strings and numbers?](https://discourse.julialang.org/t/how-to-create-a-vector-of-string-elements-from-a-combination-of-different-strings-and-numbers/98400)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 6\
**Last updated:** [May 7, 2023, 9:47am UTC](https://discourse.julialang.org/t/how-to-create-a-vector-of-string-elements-from-a-combination-of-different-strings-and-numbers/98400 "2023-05-07T09:47:49Z")

</div>

I know how to combine a string "s" with a vector of integers i to get a string "si". For example, if I want to create the vector \["a1","a2","a3"\], I do "a".\* string.(\[1,2,3\]) #3-element Vector{String}: # "a1" # "a2" #…

---

## [Does Julia has packages to calculate the haar integral over a unitary group?](https://discourse.julialang.org/t/does-julia-has-packages-to-calculate-the-haar-integral-over-a-unitary-group/98432)

<div class="topic-metadata">

**Author:** [@narip](https://discourse.julialang.org/u/narip)\
**Replies:** 0\
**Last updated:** [May 7, 2023, 5:12am UTC](https://discourse.julialang.org/t/does-julia-has-packages-to-calculate-the-haar-integral-over-a-unitary-group/98432 "2023-05-07T05:12:49Z")

</div>

I want to calculate the haar integral over a unitary group. Such as the formula of form \\int{dvUXU^{\\dagger}}. Mathematica has a package to do this. I wonder if Julia has similar packages?

---

## [How to render a cylinder?](https://discourse.julialang.org/t/how-to-render-a-cylinder/98063)

<div class="topic-metadata">

**Author:** [@cdelv](https://discourse.julialang.org/u/cdelv)\
**Replies:** 15\
**Last updated:** [May 7, 2023, 4:28am UTC](https://discourse.julialang.org/t/how-to-render-a-cylinder/98063 "2023-05-07T04:28:14Z")

</div>

Hi everyone, I want to plot a cylinder centered at point p, radius r, and aligned with an axis vector. For now, I have this code: using GLMakie r = 5 h = 3 m, n =200, 150 u = range(0, 2pi, length=n) v = range(0, h, len…

---

## [\[ModelingToolkit.jl\] varmap\_to\_vars function](https://discourse.julialang.org/t/modelingtoolkit-jl-varmap-to-vars-function/98207)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 3:28am UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-varmap-to-vars-function/98207 "2023-05-07T03:28:44Z")

</div>

Hello, I have a question about the ModelingToolkit package, and in particular about @parameters value maps. @parameters t k₁₂ k₂₁ α p = \[k₁₂ =\> 0.0005 k₂₁ =\> 0.009 α =\> 0.09\] I have an ODE system and I want to fit s…

---

## [Understanding Symbolic Regression?](https://discourse.julialang.org/t/understanding-symbolic-regression/93587)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 12:43am UTC](https://discourse.julialang.org/t/understanding-symbolic-regression/93587 "2023-05-07T00:43:33Z")

</div>

I’m trying to understand how to use the SymbolicRegression package in Julia. I’ve read through the thesis by Minnebo and Stijven from 2011 (referenced in Wikipedia), where they talk about “operators” vs. “terminals”. In…

---

## [Hard to find error (might relate to Zygote)](https://discourse.julialang.org/t/hard-to-find-error-might-relate-to-zygote/98421)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 11\
**Last updated:** [May 6, 2023, 9:31pm UTC](https://discourse.julialang.org/t/hard-to-find-error-might-relate-to-zygote/98421 "2023-05-06T21:31:27Z")

</div>

@ChrisRackauckas Note the stack trace below. But first some comments: There is an error in the init(::Nothing, ::Tsit5...) function. I should be able to locate this Init function in the Julia library. I have not found …

---

## [Julia response to Auto-GPT](https://discourse.julialang.org/t/julia-response-to-auto-gpt/98229)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 7:44pm UTC](https://discourse.julialang.org/t/julia-response-to-auto-gpt/98229 "2023-05-06T19:44:28Z")

</div>

Now that we have a wrapper for the openAI API it would be pretty cool to have an Auto-GPT like package that the julia community could contribute to. It’s pretty amazing how simply having the LLM talk to itself(s) can gre…

---

## [Limit argument types of a function](https://discourse.julialang.org/t/limit-argument-types-of-a-function/98415)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 5\
**Last updated:** [May 6, 2023, 7:01pm UTC](https://discourse.julialang.org/t/limit-argument-types-of-a-function/98415 "2023-05-06T19:01:53Z")

</div>

Hi, Is the below example the “best” way to limit the types that can be passed to a function? I would like to only allow Int64 and Float64, i.e. I want the function definition to be either vadd(::Float64,::Float64) or v…

---

## [Array could not broadcast to match destination in solve](https://discourse.julialang.org/t/array-could-not-broadcast-to-match-destination-in-solve/98397)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 8\
**Last updated:** [May 6, 2023, 4:04pm UTC](https://discourse.julialang.org/t/array-could-not-broadcast-to-match-destination-in-solve/98397 "2023-05-06T16:04:55Z")

</div>

@ChrisRackauckas Here is a MWE solving a simple 3x3 equation, where I use the SizedVector from StaticArrays.jl: using DifferentialEquations using StaticArrays # Set up the Giesekus model function dudt!(du, σ, p, t) …

---

## [Arguments, unexpected behavior](https://discourse.julialang.org/t/arguments-unexpected-behavior/18263)

<div class="topic-metadata">

**Author:** [@henrykironde](https://discourse.julialang.org/u/henrykironde)\
**Replies:** 4\
**Last updated:** [May 6, 2023, 12:40pm UTC](https://discourse.julialang.org/t/arguments-unexpected-behavior/18263 "2023-05-06T12:40:04Z")

</div>

https://github.com/JuliaLang/julia/issues/30252 https://docs.julialang.org/en/v1/manual/functions/#Optional-Arguments-1 Julia \_ \_ \_ \_(\_)\_ | A fresh approach to technical computing (\_) …

---

## [Using LoopVectorization with StructArrays](https://discourse.julialang.org/t/using-loopvectorization-with-structarrays/98154)

<div class="topic-metadata">

**Author:** [@DylanMMarques](https://discourse.julialang.org/u/DylanMMarques)\
**Replies:** 3\
**Last updated:** [May 6, 2023, 11:47am UTC](https://discourse.julialang.org/t/using-loopvectorization-with-structarrays/98154 "2023-05-06T11:47:21Z")

</div>

Hello, I am using LoopVectorization combined with StructArrays to vectorize some code that used structures. I have created a simple example of what I am trying to achive using the struct Point2D. using StructArrays, Lo…

---

## [IntelliSense is very slow for code complete](https://discourse.julialang.org/t/intellisense-is-very-slow-for-code-complete/98418)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 11:09am UTC](https://discourse.julialang.org/t/intellisense-is-very-slow-for-code-complete/98418 "2023-05-06T11:09:52Z")

</div>

I just switched from Atom to Vscode, and found that the “code complete” performs well when editing a small script, but acts very slowly in the case of editing a file, such as a function, belonging to a package. Any sugge…

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

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