# Latest

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

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

**Page:** 1096

---

## [Serializing a tree requires a huge amount of storage](https://discourse.julialang.org/t/serializing-a-tree-requires-a-huge-amount-of-storage/77934)

<div class="topic-metadata">

**Author:** [@1115](https://discourse.julialang.org/u/1115)\
**Replies:** 12\
**Last updated:** [March 16, 2022, 9:59am UTC](https://discourse.julialang.org/t/serializing-a-tree-requires-a-huge-amount-of-storage/77934 "2022-03-16T09:59:06Z")

</div>

This is the code I used for testing julia\> struct Tree left::Tree right::Tree Tree() = new() Tree(l, r) = new(l, r) end julia\> a = Tree() Tree(#undef, #undef) julia\> …

---

## [Basic julia syntax](https://discourse.julialang.org/t/basic-julia-syntax/77955)

<div class="topic-metadata">

**Author:** [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Replies:** 3\
**Last updated:** [March 16, 2022, 9:54am UTC](https://discourse.julialang.org/t/basic-julia-syntax/77955 "2022-03-16T09:54:08Z")

</div>

I have a function function inputs(setup::Dict, path::AbstractString) What actually setup meaning here ? Is it like input::Dict ?

---

## [Makie - Multi Sequence Alignment Scatterplot](https://discourse.julialang.org/t/makie-multi-sequence-alignment-scatterplot/77932)

<div class="topic-metadata">

**Author:** [@timoleistner](https://discourse.julialang.org/u/timoleistner)\
**Replies:** 3\
**Last updated:** [March 16, 2022, 9:44am UTC](https://discourse.julialang.org/t/makie-multi-sequence-alignment-scatterplot/77932 "2022-03-16T09:44:59Z")

</div>

Im trying to visualize a multi sequence alignment with makies scatterplot. The first idea was to overlap a heatmap with a scatterplot but I’ve found that overlapping markers with either a :rect symbol or a unicode full …

---

## [Accessing and changing struct fields using a dictionary](https://discourse.julialang.org/t/accessing-and-changing-struct-fields-using-a-dictionary/77954)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 8:45am UTC](https://discourse.julialang.org/t/accessing-and-changing-struct-fields-using-a-dictionary/77954 "2022-03-16T08:45:57Z")

</div>

Hi, I have a struct where I to change its attributes value using a dictionary. For example using Agents: AbstractAgent mutable struct Casualty \<: AbstractAgent id :: Int pos :: Tuple{Int,Int,Float64} trauma :: In…

---

## [Makie: Create image (as .png) of scatter projected to x-y plane?](https://discourse.julialang.org/t/makie-create-image-as-png-of-scatter-projected-to-x-y-plane/77309)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 8\
**Last updated:** [March 16, 2022, 8:20am UTC](https://discourse.julialang.org/t/makie-create-image-as-png-of-scatter-projected-to-x-y-plane/77309 "2022-03-16T08:20:45Z")

</div>

Is there (I’m sure there is…) a way to produce an image (eg .png) of a Makie scatter plot projected “down” on the X-Y plane, ie like setting z to 0 and looking down from “sufficient height”. No perspective wanted. I’m pr…

---

## [Inserting a row or column in a Makie layout](https://discourse.julialang.org/t/inserting-a-row-or-column-in-a-makie-layout/77910)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 5\
**Last updated:** [March 16, 2022, 7:17am UTC](https://discourse.julialang.org/t/inserting-a-row-or-column-in-a-makie-layout/77910 "2022-03-16T07:17:51Z")

</div>

Say I have an existing grid like this one: using CairoMakie f = Figure(resolution=(600, 200)) scatter(f\[1,1\], 1:3, 1:3) scatter(f\[1,2\], 1:3, \[0,0,0\]) f How can I insert a column between these two? An idea would be …

---

## [Does anyone can figure out what is going on here?](https://discourse.julialang.org/t/does-anyone-can-figure-out-what-is-going-on-here/77943)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 6\
**Last updated:** [March 16, 2022, 5:18am UTC](https://discourse.julialang.org/t/does-anyone-can-figure-out-what-is-going-on-here/77943 "2022-03-16T05:18:02Z")

</div>

In below, the code runned with mumtil-threads with using Theads.@threads. When I run it again and again, the percent of gc time becoming large and large. I don’t know what is going on here? Can anyone guess on it? first…

---

## [Flux:the trainable parameter is empty](https://discourse.julialang.org/t/flux-the-trainable-parameter-is-empty/77903)

<div class="topic-metadata">

**Author:** [@chen2021](https://discourse.julialang.org/u/chen2021)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 4:52am UTC](https://discourse.julialang.org/t/flux-the-trainable-parameter-is-empty/77903 "2022-03-16T04:52:30Z")

</div>

Hi everyone!I am trying to create a custom layer, and customize the parameter collection to train, the following is my code using Flux struct Linear{F,S\<:AbstractArray,T\<:AbstractArray} W::S b::T σ::F end …

---

## [Why no axes(::Tuple)?](https://discourse.julialang.org/t/why-no-axes-tuple/77909)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 8\
**Last updated:** [March 16, 2022, 4:12am UTC](https://discourse.julialang.org/t/why-no-axes-tuple/77909 "2022-03-16T04:12:12Z")

</div>

Is there a good reason why axes (source) isn’t defined for tuples? My (perhaps naive) guess was they would be treated much the same as vectors. (My reason for wondering is that this is what made me implement my own vers…

---

## [Which distro do you recommend?](https://discourse.julialang.org/t/which-distro-do-you-recommend/77922)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 5\
**Last updated:** [March 16, 2022, 2:18am UTC](https://discourse.julialang.org/t/which-distro-do-you-recommend/77922 "2022-03-16T02:18:39Z")

</div>

My computer is lagging on windows, mainly because I have too much data on it. So I’m thinking of cleaning it and then moving to Linux. Which distro has the best Julia support? Is fastest? I have been using Fedora on the…

---

## [Can @inline works when the inlined function is a field of a struct?](https://discourse.julialang.org/t/can-inline-works-when-the-inlined-function-is-a-field-of-a-struct/77904)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 4\
**Last updated:** [March 16, 2022, 1:29am UTC](https://discourse.julialang.org/t/can-inline-works-when-the-inlined-function-is-a-field-of-a-struct/77904 "2022-03-16T01:29:48Z")

</div>

struct Cogg x::Function end fin(data::AbstractArray)=begin df=data .\* 2 @inline (i::Int)-\>begin #assume this body of function can not be inlined by julia automatically df\[i\]\>0 end end (c…

---

## [Why is the splat operator slow?](https://discourse.julialang.org/t/why-is-the-splat-operator-slow/77928)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 3\
**Last updated:** [March 15, 2022, 9:50pm UTC](https://discourse.julialang.org/t/why-is-the-splat-operator-slow/77928 "2022-03-15T21:50:34Z")

</div>

I was doing some benchmarks and got these results: julia\> using BenchmarkTools julia\> f1(itr) = collect(itr) f1 (generic function with 1 method) julia\> f2(itr) = \[itr...\] f2 (generic function with 1 method) julia\> ge…

---

## [Software Engineer in Quantum Computing](https://discourse.julialang.org/t/software-engineer-in-quantum-computing/77931)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 0\
**Last updated:** [March 15, 2022, 9:48pm UTC](https://discourse.julialang.org/t/software-engineer-in-quantum-computing/77931 "2022-03-15T21:48:50Z")

</div>

QuEra Computing Inc. is a Boston-based startup founded to develop the world’s most commercially relevant quantum computing platform. We are a diverse group of engineers and scientists pushing the boundaries at all levels…

---

## [Is there a way to write a function into JLD or other h5 file?](https://discourse.julialang.org/t/is-there-a-way-to-write-a-function-into-jld-or-other-h5-file/77718)

<div class="topic-metadata">

**Author:** [@vavrines](https://discourse.julialang.org/u/vavrines)\
**Replies:** 8\
**Last updated:** [March 15, 2022, 7:23pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-write-a-function-into-jld-or-other-h5-file/77718 "2022-03-15T19:23:37Z")

</div>

Wondering if there is a way to write a defined function into file. A MWE is using JLD2 f(x) = x^2 @save "f.jld2" f For this case, if I close the current session and execute the following code using JLD2 @load "f.jld2…

---

## [getindex(A::AbstractArray, I...) slows down computations with array of type Array{Float64,2}](https://discourse.julialang.org/t/getindex-a-abstractarray-i-slows-down-computations-with-array-of-type-array-float64-2/77927)

<div class="topic-metadata">

**Author:** [@Geometh](https://discourse.julialang.org/u/Geometh)\
**Replies:** 2\
**Last updated:** [March 15, 2022, 8:33pm UTC](https://discourse.julialang.org/t/getindex-a-abstractarray-i-slows-down-computations-with-array-of-type-array-float64-2/77927 "2022-03-15T20:33:28Z")

</div>

Hi there, while optimizing some code of mine I run into sum behavior that I don’t fully understand. I have an array of point coordinates, which I need to access. I stored the coordinates in column-major order as it is …

---

## [Building libjulia-debug.dll for debug but no symbols loaded for DLL](https://discourse.julialang.org/t/building-libjulia-debug-dll-for-debug-but-no-symbols-loaded-for-dll/77925)

<div class="topic-metadata">

**Author:** [@Jon\_Barker](https://discourse.julialang.org/u/Jon_Barker)\
**Replies:** 0\
**Last updated:** [March 15, 2022, 8:02pm UTC](https://discourse.julialang.org/t/building-libjulia-debug-dll-for-debug-but-no-symbols-loaded-for-dll/77925 "2022-03-15T20:02:14Z")

</div>

I’m building julia in debug mode (make debug -j 8) however when attaching to the process, it says there are no symbols. What am I doing wrong? Is it not possible to debug with visual studio and I need to use GDB or s…

---

## [Is x-axis linking ignored in Algebra of Graphics?](https://discourse.julialang.org/t/is-x-axis-linking-ignored-in-algebra-of-graphics/76111)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 2\
**Last updated:** [March 15, 2022, 7:42pm UTC](https://discourse.julialang.org/t/is-x-axis-linking-ignored-in-algebra-of-graphics/76111 "2022-03-15T19:42:40Z")

</div>

I want to plot a density for different groups that might have very different domains in AoG. My understanding is that in the following the x axes should be independent dd = DataFrame(x = \[rand(10)..., 10 .+ rand(10)...\]…

---

## [How to debug remotecall\_wait/deserialization failures?](https://discourse.julialang.org/t/how-to-debug-remotecall-wait-deserialization-failures/77864)

<div class="topic-metadata">

**Author:** [@jonas-schulze](https://discourse.julialang.org/u/jonas-schulze)\
**Replies:** 3\
**Last updated:** [March 15, 2022, 6:48pm UTC](https://discourse.julialang.org/t/how-to-debug-remotecall-wait-deserialization-failures/77864 "2022-03-15T18:48:00Z")

</div>

When running code on 450 cores / 29 nodes in a Slurm environment (using the handy SlurmClusterManager.jl), sometimes everything works fine, sometimes I get failures on 1-7 workers. How do I investigate/debug/fix this? M…

---

## [Sensor processing in a robotics application](https://discourse.julialang.org/t/sensor-processing-in-a-robotics-application/77822)

<div class="topic-metadata">

**Author:** [@RogerP](https://discourse.julialang.org/u/RogerP)\
**Replies:** 7\
**Last updated:** [March 15, 2022, 6:37pm UTC](https://discourse.julialang.org/t/sensor-processing-in-a-robotics-application/77822 "2022-03-15T18:37:28Z")

</div>

For a real-time control application, from the main thread, I use multiple dispatch to spin up some remote functions (methods, each appropriate to a physical sensor type) containing endless while loops. These function/met…

---

## [Column pointers of sparse array in case of empty columns](https://discourse.julialang.org/t/column-pointers-of-sparse-array-in-case-of-empty-columns/77924)

<div class="topic-metadata">

**Author:** [@mmeer](https://discourse.julialang.org/u/mmeer)\
**Replies:** 1\
**Last updated:** [March 15, 2022, 6:28pm UTC](https://discourse.julialang.org/t/column-pointers-of-sparse-array-in-case-of-empty-columns/77924 "2022-03-15T18:28:46Z")

</div>

Hi there, I’ve noticed something that isn’t well-documented imho. When a sparse matrix has an empty column i, what is colptr\[i\]? Example: sparse(Matrix(S)) 3×3 SparseMatrixCSC{Float64, Int64} with 3 stored entries: …

---

## [Wrapping a C library | Where to start?](https://discourse.julialang.org/t/wrapping-a-c-library-where-to-start/71658)

<div class="topic-metadata">

**Author:** [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Replies:** 6\
**Last updated:** [March 15, 2022, 4:46pm UTC](https://discourse.julialang.org/t/wrapping-a-c-library-where-to-start/71658 "2022-03-15T16:46:41Z")

</div>

Hi! I want to use a few functions of a dll file from Julia and I want to wrap them in a package. The dlls I want to use are for talking to some motion controllers (The dlls in question can be found on thorlabs.com. Ther…

---

## [Slower summation of a series in Julia than in Python](https://discourse.julialang.org/t/slower-summation-of-a-series-in-julia-than-in-python/77912)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 10\
**Last updated:** [March 15, 2022, 4:44pm UTC](https://discourse.julialang.org/t/slower-summation-of-a-series-in-julia-than-in-python/77912 "2022-03-15T16:44:06Z")

</div>

Hello, I was doing some tests in Julia and Python and I found that the following code was much slower in Julia and I do not see why this would be the case harmonic(k) = (-1)^k / (k + 1) function sₙ(an, n) S = 0.0 …

---

## [Attempting to compile J1.4 - error 404 when downloading packages?](https://discourse.julialang.org/t/attempting-to-compile-j1-4-error-404-when-downloading-packages/77918)

<div class="topic-metadata">

**Author:** [@Jon\_Barker](https://discourse.julialang.org/u/Jon_Barker)\
**Replies:** 1\
**Last updated:** [March 15, 2022, 2:58pm UTC](https://discourse.julialang.org/t/attempting-to-compile-j1-4-error-404-when-downloading-packages/77918 "2022-03-15T14:58:33Z")

</div>

I’ve setup cgywin64, with the packages described here: https://github.com/JuliaLang/julia/blob/master/doc/src/devdocs/build/windows.md Done a git clone --branch release-1.4 https://github.com/JuliaLang/julia.git Run ec…

---

## [Julia v1.8.0-beta1 is now available](https://discourse.julialang.org/t/julia-v1-8-0-beta1-is-now-available/77166)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 15\
**Last updated:** [March 15, 2022, 3:37pm UTC](https://discourse.julialang.org/t/julia-v1-8-0-beta1-is-now-available/77166 "2022-03-15T15:37:48Z")

</div>

The Julia developers are pleased to announce that Julia v1.8.0 is now in beta. You can download binaries for the first beta release, v1.8.0-beta1, at https://julialang.org/downloads in the “upcoming release” section. Che…

---

## [Help in Bulk Insert with ODBC connection](https://discourse.julialang.org/t/help-in-bulk-insert-with-odbc-connection/77892)

<div class="topic-metadata">

**Author:** [@folleyz](https://discourse.julialang.org/u/folleyz)\
**Replies:** 4\
**Last updated:** [March 15, 2022, 3:04pm UTC](https://discourse.julialang.org/t/help-in-bulk-insert-with-odbc-connection/77892 "2022-03-15T15:04:32Z")

</div>

Hi guys! Me again :grin: Now i need help to make an Insert Statement, i’m trying with: insert\_query = "INSERT INTO resumoValores (Data, Unidade, Total\_Fechamento\_SIDG) values(?,?,?)" stmt = DBInterface.prepare(cn…

---

## [Error on installation packages](https://discourse.julialang.org/t/error-on-installation-packages/77914)

<div class="topic-metadata">

**Author:** [@Photonico](https://discourse.julialang.org/u/Photonico)\
**Replies:** 8\
**Last updated:** [March 15, 2022, 2:44pm UTC](https://discourse.julialang.org/t/error-on-installation-packages/77914 "2022-03-15T14:44:13Z")

</div>

Hi, I cannot install new packages with error: curl\_multi\_socket\_action: 8 @ Downloads.Curl /home/abuild/rpmbuild/BUILD/julia-1.6.3/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36 It’s bothering me. How can …

---

## [Registry initialisation problem](https://discourse.julialang.org/t/registry-initialisation-problem/16915)

<div class="topic-metadata">

**Author:** [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Replies:** 8\
**Last updated:** [March 15, 2022, 1:09pm UTC](https://discourse.julialang.org/t/registry-initialisation-problem/16915 "2022-03-15T13:09:33Z")

</div>

I recently downloaded the v1.0.1 build on Linux to a machine where I previously had v0.6 installed. I seem to have a problem that the registry? wasn’t initialised. Thus I cannot add any packages. I’m not sure if it is …

---

## [RemoteChannel for multiple-producer multiple-consumer](https://discourse.julialang.org/t/remotechannel-for-multiple-producer-multiple-consumer/41366)

<div class="topic-metadata">

**Author:** [@orenbenkiki](https://discourse.julialang.org/u/orenbenkiki)\
**Replies:** 3\
**Last updated:** [March 15, 2022, 1:07pm UTC](https://discourse.julialang.org/t/remotechannel-for-multiple-producer-multiple-consumer/41366 "2022-03-15T13:07:52Z")

</div>

Suppose I have multiple processes writing into a single RemoteChannel, and multiple processes reading from it. Is that an expected “reasonable” use of a RemoteChannel? If not, is there a better approach? If yes, is it…

---

## [Disable legend in AlgebraOfGraphics](https://discourse.julialang.org/t/disable-legend-in-algebraofgraphics/77906)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 2\
**Last updated:** [March 15, 2022, 10:05am UTC](https://discourse.julialang.org/t/disable-legend-in-algebraofgraphics/77906 "2022-03-15T10:05:45Z")

</div>

Hi everyone, is there a quick way to disable the legend for a plot created with AOG? I know that you can pass legend attributes to draw, like so: d = (;x=\[1,2,3\], y=\[1,2,3\], c=\["a", "b", "c"\]) p = data(d) \* mapping(:x…

---

## [Gnuplot from VSCode: no plot](https://discourse.julialang.org/t/gnuplot-from-vscode-no-plot/65458)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 4\
**Last updated:** [March 15, 2022, 9:00am UTC](https://discourse.julialang.org/t/gnuplot-from-vscode-no-plot/65458 "2022-03-15T09:00:57Z")

</div>

When I run gnuplot from within vscode, I get nothing: no error, but no plot either. Running gnuplot from the shell works fine. This works: shell\> gnuplot G N U P L O T Version 5.2 patchlevel 8 last …

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

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