# Latest

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

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

**Page:** 843

---

## [\[Pre-ANN/RFC\] ExpandNestedData.jl (Previously Normalize.jl)](https://discourse.julialang.org/t/pre-ann-rfc-expandnesteddata-jl-previously-normalize-jl/91015)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 21\
**Last updated:** [December 7, 2022, 9:01pm UTC](https://discourse.julialang.org/t/pre-ann-rfc-expandnesteddata-jl-previously-normalize-jl/91015 "2022-12-07T21:01:08Z")

</div>

Edit: Name has changed to ExpandNestedData.jl based on the feedback in this thread. I often have to “flatten out” nested JSON data into tables, so I decided to have a go at a package that can handle the task more flexib…

---

## [Using OffsetArrays within a struct causes AbstractVector type](https://discourse.julialang.org/t/using-offsetarrays-within-a-struct-causes-abstractvector-type/91366)

<div class="topic-metadata">

**Author:** [@markowkes](https://discourse.julialang.org/u/markowkes)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 8:15pm UTC](https://discourse.julialang.org/t/using-offsetarrays-within-a-struct-causes-abstractvector-type/91366 "2022-12-07T20:15:02Z")

</div>

I’m putting offset arrays in a struct and it is causing a type warning and slow performance. Here is a MWE module test using Parameters using OffsetArrays # Define struct with standard vector and offset vector @wit…

---

## [The final position of Nonlinear optimization of trajectory is not on the desired position](https://discourse.julialang.org/t/the-final-position-of-nonlinear-optimization-of-trajectory-is-not-on-the-desired-position/90782)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 6\
**Last updated:** [December 7, 2022, 7:40pm UTC](https://discourse.julialang.org/t/the-final-position-of-nonlinear-optimization-of-trajectory-is-not-on-the-desired-position/90782 "2022-12-07T19:40:22Z")

</div>

The starting position is set as \[1.0, 0.0\], and the desired position is \[-1,0\]. However, the object stops short before touching the desired position. The x coordinate gets close enough, but the issue is with the y coor…

---

## [Issue with custom Flux loss function](https://discourse.julialang.org/t/issue-with-custom-flux-loss-function/91386)

<div class="topic-metadata">

**Author:** [@smickus](https://discourse.julialang.org/u/smickus)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 7:37pm UTC](https://discourse.julialang.org/t/issue-with-custom-flux-loss-function/91386 "2022-12-07T19:37:27Z")

</div>

Hi I am trying to create a custom loss function in Flux which uses the output from the flux model as parameters to an ODE equation. However I am getting an error that I have been unable to solve. The code is the follo…

---

## [New syntax for slicing](https://discourse.julialang.org/t/new-syntax-for-slicing/91241)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 14\
**Last updated:** [December 7, 2022, 6:30pm UTC](https://discourse.julialang.org/t/new-syntax-for-slicing/91241 "2022-12-07T18:30:26Z")

</div>

I’d like to suggest new syntax for eachslice, by overloading getindex (similar to how : behaves). Using / (which looks like a slice) would indicate a dimension to iterate over, i.e. array\[/, :\] == eachslice(array; dims=…

---

## [JuliaUp fails to install: "Error: Failed to download from"](https://discourse.julialang.org/t/juliaup-fails-to-install-error-failed-to-download-from/91380)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 6:28pm UTC](https://discourse.julialang.org/t/juliaup-fails-to-install-error-failed-to-download-from/91380 "2022-12-07T18:28:33Z")

</div>

I got a new ubuntu 22.04 machine, and tried: torkelloman@system76-pc:~$ curl -fsSL https://install.julialang.org | sh I got an output info: downloading installer Welcome to Julia! This will download and install the …

---

## [Use middleware to log time it takes client to receive response](https://discourse.julialang.org/t/use-middleware-to-log-time-it-takes-client-to-receive-response/91250)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 6:24pm UTC](https://discourse.julialang.org/t/use-middleware-to-log-time-it-takes-client-to-receive-response/91250 "2022-12-07T18:24:05Z")

</div>

I’m trying to understand how to use HTTP.jl’s middleware to log the amount of time between two distinct events: The server started sending the response The client received it The following MWE doesn’t accomplish this,…

---

## [Makie - How does one plot a cube w/ rounded edges & corners?](https://discourse.julialang.org/t/makie-how-does-one-plot-a-cube-w-rounded-edges-corners/91360)

<div class="topic-metadata">

**Author:** [@Cougar](https://discourse.julialang.org/u/Cougar)\
**Replies:** 9\
**Last updated:** [December 7, 2022, 6:17pm UTC](https://discourse.julialang.org/t/makie-how-does-one-plot-a-cube-w-rounded-edges-corners/91360 "2022-12-07T18:17:56Z")

</div>

The following Julia program uses Makie to create the image shown below, a “cube with holes.” However, I would like to eliminate the holes, and also make the cube nearer the shape of an actual cube, with only slightly ro…

---

## [Is back propagation in Flux alway run on a single cpu core?](https://discourse.julialang.org/t/is-back-propagation-in-flux-alway-run-on-a-single-cpu-core/91379)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 6:07pm UTC](https://discourse.julialang.org/t/is-back-propagation-in-flux-alway-run-on-a-single-cpu-core/91379 "2022-12-07T18:07:08Z")

</div>

Hi, I am trainning a neural network with Flux on a machine with 56 cpu cores, but I found that it seems it is alway only one core working while Flux.train! is performed, and I can see multi cpu is running in the forwar…

---

## [Type system debug bool to elide code based on function parameter](https://discourse.julialang.org/t/type-system-debug-bool-to-elide-code-based-on-function-parameter/91378)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 6:06pm UTC](https://discourse.julialang.org/t/type-system-debug-bool-to-elide-code-based-on-function-parameter/91378 "2022-12-07T18:06:46Z")

</div>

I’m sure there is a known idiom for this, but I can’t find it at the moment. I want to write something like: function run(a, b, debugBool) # ... do lots of stuff debugBool && @show debug info # ... do lots of stu…

---

## [Custom Layer in Lux.jl](https://discourse.julialang.org/t/custom-layer-in-lux-jl/91371)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 5:36pm UTC](https://discourse.julialang.org/t/custom-layer-in-lux-jl/91371 "2022-12-07T17:36:39Z")

</div>

I am looking at the documentation on custom layers, and do not understand the line (l::LuxLinear)(x,ps,st) = ..... More specifically, I do not see where the variable l::LuxLinear is used further down when the model is ru…

---

## [Array of union causing 10x slowdown](https://discourse.julialang.org/t/array-of-union-causing-10x-slowdown/91341)

<div class="topic-metadata">

**Author:** [@Ininterrompue](https://discourse.julialang.org/u/Ininterrompue)\
**Replies:** 6\
**Last updated:** [December 7, 2022, 5:35pm UTC](https://discourse.julialang.org/t/array-of-union-causing-10x-slowdown/91341 "2022-12-07T17:35:39Z")

</div>

I have a type-stability question. In my 2D axisymmetric ray tracing code, I define an array of surfaces that has the type Union{Cone, Plane}, like surfaces = Matrix{Union{Cone, Plane}}(undef, 100, 2) All of them should…

---

## [Dict doesn't reuse deleted slots?](https://discourse.julialang.org/t/dict-doesnt-reuse-deleted-slots/45335)

<div class="topic-metadata">

**Author:** [@Christian\_Rorvik](https://discourse.julialang.org/u/Christian_Rorvik)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 3:52pm UTC](https://discourse.julialang.org/t/dict-doesnt-reuse-deleted-slots/45335 "2022-12-07T15:52:16Z")

</div>

I’ve come upon a performance gotcha with Dict, wherein large amounts of insertions and deletions cause rehashing and allocations even when the load factor is stable. I don’t know much about hash table implementations, s…

---

## [Color of a parametric surface with Makie](https://discourse.julialang.org/t/color-of-a-parametric-surface-with-makie/91363)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 3:39pm UTC](https://discourse.julialang.org/t/color-of-a-parametric-surface-with-makie/91363 "2022-12-07T15:39:01Z")

</div>

Hello, The code below plots the rounded cube shown on the image. The color = :yellow argument has no effect. How to plot the cube with a single color? The document of surface says nothing about the keywords arguments. u…

---

## [Base.@kwdef breaks in tests only](https://discourse.julialang.org/t/base-kwdef-breaks-in-tests-only/91356)

<div class="topic-metadata">

**Author:** [@eott-siz](https://discourse.julialang.org/u/eott-siz)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 3:13pm UTC](https://discourse.julialang.org/t/base-kwdef-breaks-in-tests-only/91356 "2022-12-07T15:13:42Z")

</div>

Julia v1.7.3 I have encountered a problem with using Base.@kwdef that only occurs in tests, not when code is executed normally. An example: File src/Example.jl: module Example Base.@kwdef mutable struct Foo bar :…

---

## [Read graphml](https://discourse.julialang.org/t/read-graphml/91085)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 24\
**Last updated:** [December 7, 2022, 2:21pm UTC](https://discourse.julialang.org/t/read-graphml/91085 "2022-12-07T14:21:35Z")

</div>

I have graphs in Graphml format and I am trying to read the graph as follow loadgraph("tailorS1.graphml",graph,GraphIO.GraphML.GraphMLFormat()) but I got the following error: LoadError: UndefVarError: GraphML not defi…

---

## [Announcing the inaugural Julia Gender Inclusive hackathon!](https://discourse.julialang.org/t/announcing-the-inaugural-julia-gender-inclusive-hackathon/90850)

<div class="topic-metadata">

**Author:** [@Xuan](https://discourse.julialang.org/u/Xuan)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 1:47pm UTC](https://discourse.julialang.org/t/announcing-the-inaugural-julia-gender-inclusive-hackathon/90850 "2022-12-07T13:47:24Z")

</div>

Julia Gender Inclusive is organizing an online hackathon on Sunday, 11th December! :computer::tada: If your gender is under-represented within the Julia community, then sign up to participate here: https://forms.gle/r2Me…

---

## [Broadcast transformed data from single row to multiple columns](https://discourse.julialang.org/t/broadcast-transformed-data-from-single-row-to-multiple-columns/91275)

<div class="topic-metadata">

**Author:** [@daharn](https://discourse.julialang.org/u/daharn)\
**Replies:** 13\
**Last updated:** [December 7, 2022, 1:27pm UTC](https://discourse.julialang.org/t/broadcast-transformed-data-from-single-row-to-multiple-columns/91275 "2022-12-07T13:27:04Z")

</div>

Suppose I have a DataFrame like this df = DataFrame("a" =\> \[1,2\], "b" =\> \[3,4\]) 2×2 DataFrame Row │ a b │ Int64 Int64 ─────┼────────────── 1 │ 1 3 2 │ 2 4 and I want to calcu…

---

## [Pluto or VSC for beginner](https://discourse.julialang.org/t/pluto-or-vsc-for-beginner/91350)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 1:21pm UTC](https://discourse.julialang.org/t/pluto-or-vsc-for-beginner/91350 "2022-12-07T13:21:18Z")

</div>

Progressing my exploration of Julia trough the ML/Surrrogate model creation goal, I started from the beginning using Pluto after a short period with IJulia. After going trough different tutorials and experiments, I’m fe…

---

## [Mantain packages after Julia upgrade](https://discourse.julialang.org/t/mantain-packages-after-julia-upgrade/91177)

<div class="topic-metadata">

**Author:** [@cesarmarinhorj](https://discourse.julialang.org/u/cesarmarinhorj)\
**Replies:** 5\
**Last updated:** [December 7, 2022, 1:20pm UTC](https://discourse.julialang.org/t/mantain-packages-after-julia-upgrade/91177 "2022-12-07T13:20:39Z")

</div>

How can I mantain my old used packages after a new Julia release upgrade?

---

## [MTH229 integration problem question](https://discourse.julialang.org/t/mth229-integration-problem-question/91344)

<div class="topic-metadata">

**Author:** [@xArcoirisXx](https://discourse.julialang.org/u/xArcoirisXx)\
**Replies:** 5\
**Last updated:** [December 7, 2022, 11:44am UTC](https://discourse.julialang.org/t/mth229-integration-problem-question/91344 "2022-12-07T11:44:50Z")

</div>

using MTH229 using Plots f(x)=xcos((xn\*π)/π) a=-π b=π T=π f(x) = x integrate(f(x), x,a,b) a\_0=(1/T)\*integrate(f(x), x,a,b)

---

## [How does broadcasting work for a vector of \`RefArray\`s?](https://discourse.julialang.org/t/how-does-broadcasting-work-for-a-vector-of-refarray-s/91326)

<div class="topic-metadata">

**Author:** [@ArthurW](https://discourse.julialang.org/u/ArthurW)\
**Replies:** 3\
**Last updated:** [December 7, 2022, 11:41am UTC](https://discourse.julialang.org/t/how-does-broadcasting-work-for-a-vector-of-refarray-s/91326 "2022-12-07T11:41:52Z")

</div>

Hello. I’m having some trouble understanding Julia’s broadcast behaviour on a specific scenario. The following code works as expected: julia\> a = \[1, 2, 3\]; julia\> refs = \[Ref(a, i) for i in eachindex(a)\]; julia\> ref…

---

## [Bonsai.jl: A HTTP framework](https://discourse.julialang.org/t/bonsai-jl-a-http-framework/91355)

<div class="topic-metadata">

**Author:** [@onetonfoot](https://discourse.julialang.org/u/onetonfoot)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 10:33am UTC](https://discourse.julialang.org/t/bonsai-jl-a-http-framework/91355 "2022-12-07T10:33:30Z")

</div>

Hi I’m developing a new HTTP framework called Bonsai.jl. It’s still WIP but should be useable enough for a package annoncement. A short snippet of what the code looks like. using Bonsai const app = App() function inde…

---

## [Artifacts.toml Cross Platform Example](https://discourse.julialang.org/t/artifacts-toml-cross-platform-example/91090)

<div class="topic-metadata">

**Author:** [@onetonfoot](https://discourse.julialang.org/u/onetonfoot)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 10:25am UTC](https://discourse.julialang.org/t/artifacts-toml-cross-platform-example/91090 "2022-12-07T10:25:32Z")

</div>

How would one use Artifacts.toml to package a binary for Mac, Windows and Linux? I’d like to use these releases on each platform

---

## [CUDA adapter for FFTW plan](https://discourse.julialang.org/t/cuda-adapter-for-fftw-plan/91353)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 9:55am UTC](https://discourse.julialang.org/t/cuda-adapter-for-fftw-plan/91353 "2022-12-07T09:55:26Z")

</div>

I am writing a code where I want to use a custom structure inside CUDA kernel. Following the CUDA.jl manual (https://cuda.juliagpu.org/stable/tutorials/custom\_structs/), I need to write an Adapt.jl adapter for my struct…

---

## [How to write a summation in Julian?](https://discourse.julialang.org/t/how-to-write-a-summation-in-julian/91346)

<div class="topic-metadata">

**Author:** [@xArcoirisXx](https://discourse.julialang.org/u/xArcoirisXx)\
**Replies:** 6\
**Last updated:** [December 7, 2022, 8:10am UTC](https://discourse.julialang.org/t/how-to-write-a-summation-in-julian/91346 "2022-12-07T08:10:18Z")

</div>

How to write and solve a summation in Julian?

---

## [Mystery of kwargs](https://discourse.julialang.org/t/mystery-of-kwargs/38768)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 11\
**Last updated:** [December 7, 2022, 8:01am UTC](https://discourse.julialang.org/t/mystery-of-kwargs/38768 "2022-12-07T08:01:30Z")

</div>

I am completely flummoxed by using a dict as the kwargs input in a varargs function that uses keyword arguments. Read the manual many times but it leaves out a critical thing: how does the callee unpack the varargs? Th…

---

## [OpenGL error with Documenter.jl](https://discourse.julialang.org/t/opengl-error-with-documenter-jl/84854)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 7:56am UTC](https://discourse.julialang.org/t/opengl-error-with-documenter-jl/84854 "2022-12-07T07:56:41Z")

</div>

I’m trying to set up some documentation for a package using Documenter.jl and I’m getting an OpenGL error when I try to build and deploy everything on Github Actions. I have GLMakie as a dependency which is causing the p…

---

## [How to run julia code in an async way with emacs orgmode?](https://discourse.julialang.org/t/how-to-run-julia-code-in-an-async-way-with-emacs-orgmode/91343)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 3:27am UTC](https://discourse.julialang.org/t/how-to-run-julia-code-in-an-async-way-with-emacs-orgmode/91343 "2022-12-07T03:27:23Z")

</div>

Hi, I wonder if there a better way to run julia session in org-mode provide in emacs. Currently, I can run julia code in org mode by sending it to ESS, but emacs will be not responsive after julia code completion. By co…

---

## [Is there a Symmetric Sparse Matrix Implementation in Julia?](https://discourse.julialang.org/t/is-there-a-symmetric-sparse-matrix-implementation-in-julia/91333)

<div class="topic-metadata">

**Author:** [@cdelv](https://discourse.julialang.org/u/cdelv)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 2:28am UTC](https://discourse.julialang.org/t/is-there-a-symmetric-sparse-matrix-implementation-in-julia/91333 "2022-12-07T02:28:31Z")

</div>

Hi, I want a symmetric sparse matrix that behaves like this using StaticArrays using Accessors A = zeros(SHermitianCompact{3}) A = @set A\[1,2\] = 1 3×3 SHermitianCompact{3, Float64, 6} with indices SOneTo(3)×SOneTo(3): …

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

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