# Latest

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

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

**Page:** 389

---

## [Serde.jl - A package for serialization-deserialization](https://discourse.julialang.org/t/serde-jl-a-package-for-serialization-deserialization/115386)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 4\
**Last updated:** [June 12, 2024, 12:27pm UTC](https://discourse.julialang.org/t/serde-jl-a-package-for-serialization-deserialization/115386 "2024-06-12T12:27:20Z")

</div>

I am wondering this has not been posted here before, but the popular Rust package ‘serde’ has been ported to Julia. This was quoted more than once to me as one of the packages, that sets Rust apart from the rest, and I …

---

## [How to tell if invalidations are worth fixing?](https://discourse.julialang.org/t/how-to-tell-if-invalidations-are-worth-fixing/61950)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 4\
**Last updated:** [June 12, 2024, 9:39am UTC](https://discourse.julialang.org/t/how-to-tell-if-invalidations-are-worth-fixing/61950 "2024-06-12T09:39:44Z")

</div>

I can use SnoopCompile to detect invalidations. and the manual talks about how to fix them by modifying the code that gets invalidated. But it is also possible to fix it sometimes by modifying the code that causes the …

---

## [Advice for Higher Order Functions on Tuples](https://discourse.julialang.org/t/advice-for-higher-order-functions-on-tuples/115509)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 6\
**Last updated:** [June 12, 2024, 6:55am UTC](https://discourse.julialang.org/t/advice-for-higher-order-functions-on-tuples/115509 "2024-06-12T06:55:50Z")

</div>

I have a package where I’m operating on lists of types, and I need everything to compile away. I have succeeded in doing so by using these two functions: using Tricks """ Utility function which generates a list of expr…

---

## [ROMS.jl error with invalid dimension parameter](https://discourse.julialang.org/t/roms-jl-error-with-invalid-dimension-parameter/115468)

<div class="topic-metadata">

**Author:** [@Unai\_Ganzedo](https://discourse.julialang.org/u/Unai_Ganzedo)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 11:49am UTC](https://discourse.julialang.org/t/roms-jl-error-with-invalid-dimension-parameter/115468 "2024-06-11T11:49:38Z")

</div>

Hi; I have a question regarding roms.in. I have followed the instructions and I have all the files prepared but when I launch the roms, I get this error..I have tried to search for it but I can’t find it, could you send …

---

## [About storing the results of Iterators.product into an array efficiently?](https://discourse.julialang.org/t/about-storing-the-results-of-iterators-product-into-an-array-efficiently/115504)

<div class="topic-metadata">

**Author:** [@HMegh](https://discourse.julialang.org/u/HMegh)\
**Replies:** 8\
**Last updated:** [June 12, 2024, 6:02am UTC](https://discourse.julialang.org/t/about-storing-the-results-of-iterators-product-into-an-array-efficiently/115504 "2024-06-12T06:02:09Z")

</div>

I have a finite set represented as a vector V::Vector{T} and I am trying to compute the power of this set V^d=V\\times V\\times \\cdots \\times V. That is, the Cartesian product of V with itself d-times, which is a finite se…

---

## [Please check your ticket receipts if you are a speaker](https://discourse.julialang.org/t/please-check-your-ticket-receipts-if-you-are-a-speaker/115524)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 11:30pm UTC](https://discourse.julialang.org/t/please-check-your-ticket-receipts-if-you-are-a-speaker/115524 "2024-06-11T23:30:14Z")

</div>

Hello JuliaCon 2024 Speakers, We are trying to obtain an estimate of the number of people attending JuliaCon 2024. Our records show that many confirmed speakers have not yet obtained a ticket to JuliaCon 2024. Several …

---

## [Write a formatted backtrace to IOBuffer](https://discourse.julialang.org/t/write-a-formatted-backtrace-to-iobuffer/115516)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 2\
**Last updated:** [June 11, 2024, 11:19pm UTC](https://discourse.julialang.org/t/write-a-formatted-backtrace-to-iobuffer/115516 "2024-06-11T23:19:34Z")

</div>

I want to catch an error, construct the backtrace that would normally be written to the REPL, and add it to a JSON blob instead. However, I can’t seem to get simple logger to write to an IOBuffer. MWE: julia\> ch1 = Cha…

---

## [Using a lock array to prevent multi thread corruption](https://discourse.julialang.org/t/using-a-lock-array-to-prevent-multi-thread-corruption/115485)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 2\
**Last updated:** [June 11, 2024, 10:38pm UTC](https://discourse.julialang.org/t/using-a-lock-array-to-prevent-multi-thread-corruption/115485 "2024-06-11T22:38:15Z")

</div>

I was reading through @Dan’s answer here to lock a struct using a spinlock. Lets say we are in a situation where we have a struct that in its entirety needs to be updated. Could we use something like: struct Entry v…

---

## [First class "from end" indices into array](https://discourse.julialang.org/t/first-class-from-end-indices-into-array/115455)

<div class="topic-metadata">

**Author:** [@shamazmazum](https://discourse.julialang.org/u/shamazmazum)\
**Replies:** 12\
**Last updated:** [June 11, 2024, 10:06pm UTC](https://discourse.julialang.org/t/first-class-from-end-indices-into-array/115455 "2024-06-11T22:06:45Z")

</div>

Is there any way to make a first class index that points to an element from the end of an array? So it can be e.g. assigned to a variable. For example, in python I can do idx1 = 0 idx2 = -1 a = \[1,2,3,4,5\] a\[idx1\] # Giv…

---

## [Complex event graph processor](https://discourse.julialang.org/t/complex-event-graph-processor/115520)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 0\
**Last updated:** [June 11, 2024, 9:52pm UTC](https://discourse.julialang.org/t/complex-event-graph-processor/115520 "2024-06-11T21:52:00Z")

</div>

Hi is anyone aware of a Complex Event Processor for realtime events in Julia? Python appears to have one: Ta!

---

## [Export to HTML fails](https://discourse.julialang.org/t/export-to-html-fails/115518)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 0\
**Last updated:** [June 11, 2024, 9:45pm UTC](https://discourse.julialang.org/t/export-to-html-fails/115518 "2024-06-11T21:45:28Z")

</div>

I’m coding Jupyter notebooks in Julia in VSCode. Being an old guy, I like to print out the code and mark it up. (Pathetic, right?) When I updated Python to 3.12.4, I can no longer do this, and I get very confusing error …

---

## [Distributed performance depends on the number of workers?](https://discourse.julialang.org/t/distributed-performance-depends-on-the-number-of-workers/115514)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 0\
**Last updated:** [June 11, 2024, 9:01pm UTC](https://discourse.julialang.org/t/distributed-performance-depends-on-the-number-of-workers/115514 "2024-06-11T21:01:09Z")

</div>

I’m executing a code that solves a linear system (Ax = b) for a fixed matrix A, and for several vectors b\_i here i runs from 1 to N. I set N to match the number of available cores in my system, therefore I’ll be solving …

---

## [Forest plot for meta-analisys](https://discourse.julialang.org/t/forest-plot-for-meta-analisys/25985)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 3\
**Last updated:** [June 11, 2024, 7:07pm UTC](https://discourse.julialang.org/t/forest-plot-for-meta-analisys/25985 "2024-06-11T19:07:03Z")

</div>

Hello! How can i make this with Julia? Thx!

---

## [Modify the julia launcher in vscode](https://discourse.julialang.org/t/modify-the-julia-launcher-in-vscode/115505)

<div class="topic-metadata">

**Author:** [@ahazra](https://discourse.julialang.org/u/ahazra)\
**Replies:** 0\
**Last updated:** [June 11, 2024, 6:16pm UTC](https://discourse.julialang.org/t/modify-the-julia-launcher-in-vscode/115505 "2024-06-11T18:16:48Z")

</div>

With julia v1.10.4 and suitesparse v5.0.0 (on Ubuntu Linux LTS 22.04), everytime julia runs, it shows the following error: exception = │ could not load symbol “SuiteSparse\_config\_malloc\_func\_set”: │ /usr/lib/x8…

---

## [Scalar Indexing error when performing mul!(A, B, C) with A a view of a Matrix](https://discourse.julialang.org/t/scalar-indexing-error-when-performing-mul-a-b-c-with-a-a-view-of-a-matrix/115439)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 3\
**Last updated:** [June 11, 2024, 4:49pm UTC](https://discourse.julialang.org/t/scalar-indexing-error-when-performing-mul-a-b-c-with-a-a-view-of-a-matrix/115439 "2024-06-11T16:49:53Z")

</div>

Hello, I paste also here the issue raised here. Describe the bug The in-place multiplication mul!(A, B, C) fails when A is a vector view of a matrix. To reproduce The Minimal Working Example (MWE) for this bug: us…

---

## [Type event on GtkWindow](https://discourse.julialang.org/t/type-event-on-gtkwindow/115475)

<div class="topic-metadata">

**Author:** [@jojo75](https://discourse.julialang.org/u/jojo75)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 4:18pm UTC](https://discourse.julialang.org/t/type-event-on-gtkwindow/115475 "2024-06-11T16:18:43Z")

</div>

Hello, From this code using Gtk signal\_connect(my\_window , :window\_state\_event) do w , x println("type of x ", typeof(x) ) println(“wind activate\_focus x :”,x) end I have always the same response whatever the st…

---

## [Julia for Real-Time processing on embedded platforms](https://discourse.julialang.org/t/julia-for-real-time-processing-on-embedded-platforms/95925)

<div class="topic-metadata">

**Author:** [@jpreisig](https://discourse.julialang.org/u/jpreisig)\
**Replies:** 13\
**Last updated:** [June 11, 2024, 4:15pm UTC](https://discourse.julialang.org/t/julia-for-real-time-processing-on-embedded-platforms/95925 "2024-06-11T16:15:52Z")

</div>

I have seen a lot of older (order 2019) posts about Julia not being suitable for real-time implementations on embedded platforms. Wondering about the current state of thinking on this. I realize the embedded means diff…

---

## [No legend using lines (and plots)](https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 2\
**Last updated:** [June 11, 2024, 3:48pm UTC](https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483 "2024-06-11T15:48:28Z")

</div>

Hi ! I am a new user of Julia and I have some issues to show legends on my plots : f = Figure() lines(f\[1,1\],time\_test,data\[1,:\], label=\[“Time 1”\], linewidth=3) the legend of the curve should appear, right ? Thanks, …

---

## [Code in the documentation is not working](https://discourse.julialang.org/t/code-in-the-documentation-is-not-working/115474)

<div class="topic-metadata">

**Author:** [@Manasa\_S](https://discourse.julialang.org/u/Manasa_S)\
**Replies:** 5\
**Last updated:** [June 11, 2024, 2:56pm UTC](https://discourse.julialang.org/t/code-in-the-documentation-is-not-working/115474 "2024-06-11T14:56:09Z")

</div>

using CairoMakie using StableRNGs points = \[(0.0, 0.0), (2.0, 0.0), (1.0, 2.0)\] tri = triangulate(points) fig, ax, sc = triplot(tri) fig add\_point!(tri, 1.0, 0.5) fig, ax, sc = triplot(tri) fig add\_point!(tri, 0.0, 1.…

---

## [Extracting base symbol from array of symbols](https://discourse.julialang.org/t/extracting-base-symbol-from-array-of-symbols/115476)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 2:45pm UTC](https://discourse.julialang.org/t/extracting-base-symbol-from-array-of-symbols/115476 "2024-06-11T14:45:25Z")

</div>

I am having trouble creating a dictionary from symbols to numbers for defining an ODEProblem. In essence, the problem boils down to having to extract the “base” symbol from a symbolic array. My code is structured in such…

---

## [When should one type annotate a function signature?](https://discourse.julialang.org/t/when-should-one-type-annotate-a-function-signature/115019)

<div class="topic-metadata">

**Author:** [@Ujjwal\_Panda](https://discourse.julialang.org/u/Ujjwal_Panda)\
**Replies:** 5\
**Last updated:** [June 11, 2024, 2:13pm UTC](https://discourse.julialang.org/t/when-should-one-type-annotate-a-function-signature/115019 "2024-06-11T14:13:23Z")

</div>

When developing a package, what is the convention when it comes to type annotating a function’s arguments? For instance, say I have a function that takes in three arguments, like so: function f(a, b, c) @. a \* b + c…

---

## [Groupby on an expression or a vector?](https://discourse.julialang.org/t/groupby-on-an-expression-or-a-vector/115409)

<div class="topic-metadata">

**Author:** [@Chriz\_Zend](https://discourse.julialang.org/u/Chriz_Zend)\
**Replies:** 21\
**Last updated:** [June 11, 2024, 2:05pm UTC](https://discourse.julialang.org/t/groupby-on-an-expression-or-a-vector/115409 "2024-06-11T14:05:43Z")

</div>

Hello, I have the impression that is not possible… not with Julia, anyway… In Python, it’s quite easy: you can group the lines of a dataframe based on a condition (or even a random vector as long as it has the same num…

---

## [Handling colors in new \`Makie.voxels\` function](https://discourse.julialang.org/t/handling-colors-in-new-makie-voxels-function/115251)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 9\
**Last updated:** [June 11, 2024, 2:04pm UTC](https://discourse.julialang.org/t/handling-colors-in-new-makie-voxels-function/115251 "2024-06-11T14:04:03Z")

</div>

The new voxels function was introduced in Makie v0.21 to plot 3D Cartesian grids more efficiently. However, it assumes Array{\<:Real,3} for the colors. Can it sill be used with general Colors.jl colors? It is easy to conv…

---

## [This month in Julia world - 2024-05](https://discourse.julialang.org/t/this-month-in-julia-world-2024-05/115278)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 2\
**Last updated:** [June 11, 2024, 1:31pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2024-05/115278 "2024-06-11T13:31:10Z")

</div>

Pardon the delay with this release – end of semester is always hectic. A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesti…

---

## [Powell's Line Search Algorithm in Julia](https://discourse.julialang.org/t/powells-line-search-algorithm-in-julia/115459)

<div class="topic-metadata">

**Author:** [@TimOb](https://discourse.julialang.org/u/TimOb)\
**Replies:** 5\
**Last updated:** [June 11, 2024, 1:18pm UTC](https://discourse.julialang.org/t/powells-line-search-algorithm-in-julia/115459 "2024-06-11T13:18:15Z")

</div>

I’m looking for a Julia implementation of Powell’s line search algorithm. It’s essentially this algorithm from Scipy: https://docs.scipy.org/doc/scipy/reference/optimize.minimize-powell.html which is similar to the alg…

---

## [Return type of readline function](https://discourse.julialang.org/t/return-type-of-readline-function/115437)

<div class="topic-metadata">

**Author:** [@EarlMilktea](https://discourse.julialang.org/u/EarlMilktea)\
**Replies:** 3\
**Last updated:** [June 11, 2024, 1:04pm UTC](https://discourse.julialang.org/t/return-type-of-readline-function/115437 "2024-06-11T13:04:44Z")

</div>

Suppose you want to read from stdin: function main() println("Reading...") readline() end For this code, @code\_warntype says the return type is Any, even though it seems really unlikely to me that readline retu…

---

## [Huge increase in variables/constraints with Convex.jl](https://discourse.julialang.org/t/huge-increase-in-variables-constraints-with-convex-jl/115330)

<div class="topic-metadata">

**Author:** [@FriesischScott](https://discourse.julialang.org/u/FriesischScott)\
**Replies:** 8\
**Last updated:** [June 11, 2024, 12:40pm UTC](https://discourse.julialang.org/t/huge-increase-in-variables-constraints-with-convex-jl/115330 "2024-06-11T12:40:32Z")

</div>

I am new to Convex.jl and DCP in general. I am currently working on a convex optimization problem that involves 27 variables constrained to be non-negative. I have formulated the problem in Convex and it shows thefollow…

---

## [Changes to juliaup overnight?](https://discourse.julialang.org/t/changes-to-juliaup-overnight/115471)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 2\
**Last updated:** [June 11, 2024, 11:36am UTC](https://discourse.julialang.org/t/changes-to-juliaup-overnight/115471 "2024-06-11T11:36:10Z")

</div>

Yesterday, I could use julia just fine. Today I cannot. Has something changed on the julia side or is it me or my IT department? On opening VS Code, I get the following: At the command prompt, I get: then, after…

---

## [CSV.jl: findmax and argmax are still broken, please help](https://discourse.julialang.org/t/csv-jl-findmax-and-argmax-are-still-broken-please-help/115366)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 6\
**Last updated:** [June 11, 2024, 10:06am UTC](https://discourse.julialang.org/t/csv-jl-findmax-and-argmax-are-still-broken-please-help/115366 "2024-06-11T10:06:16Z")

</div>

findmax and argmax are still broken with CSV.jl, please help Test codeusing CSV using DataFrames using StableRNGs using Test function write\_data(dims::Dims{3} = (16, 2, 8)) rng = StableRNG(1230) data = rand(rng…

---

## [Launch Failure](https://discourse.julialang.org/t/launch-failure/103694)

<div class="topic-metadata">

**Author:** [@hanyas](https://discourse.julialang.org/u/hanyas)\
**Replies:** 10\
**Last updated:** [September 9, 2023, 11:55am UTC](https://discourse.julialang.org/t/launch-failure/103694 "2023-09-09T11:55:18Z")

</div>

I am using an up to date arch linux distro. I’ve downloaded julia-1.6.7 from the official website and set the path. When I run julia in a console I get the following error: ┌ Warning: CHOLMOD version incompatibility │ │…

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

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