# Latest

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

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

**Page:** 569

---

## [Updating an XLSX file simultaneously by more than one Julia script](https://discourse.julialang.org/t/updating-an-xlsx-file-simultaneously-by-more-than-one-julia-script/105397)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 5\
**Last updated:** [October 26, 2023, 12:05pm UTC](https://discourse.julialang.org/t/updating-an-xlsx-file-simultaneously-by-more-than-one-julia-script/105397 "2023-10-26T12:05:13Z")

</div>

I have a Julia script which does some calculations and in the end, the output is written to an Excel file using the following function: function populate\_spreadsheet(sol, instance\_number, sheet\_number, stat::Symbol) …

---

## [Could Julia embed graphics lib.?](https://discourse.julialang.org/t/could-julia-embed-graphics-lib/105433)

<div class="topic-metadata">

**Author:** [@nodrygo](https://discourse.julialang.org/u/nodrygo)\
**Replies:** 8\
**Last updated:** [October 26, 2023, 12:03pm UTC](https://discourse.julialang.org/t/could-julia-embed-graphics-lib/105433 "2023-10-26T12:03:34Z")

</div>

The Julia installer already embeds many libraries so could the Julia installer embed graphical libraries for all platforms such as Pharo (Smalltalk) does? (cairo? gtk4? sdl2) is this a bad idea? this could be good for…

---

## [Julia CI checks - buildkite -](https://discourse.julialang.org/t/julia-ci-checks-buildkite/105386)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 9:37am UTC](https://discourse.julialang.org/t/julia-ci-checks-buildkite/105386 "2023-10-26T09:37:33Z")

</div>

When I look at some Julia pull requests I see two checks with the names: Build buildkite/xxx for example here: Backports release 1.10 by KristofferC · Pull Request #51563 · JuliaLang/julia · GitHub (scroll to the end) …

---

## [Interface for a distribution defined by its cdf](https://discourse.julialang.org/t/interface-for-a-distribution-defined-by-its-cdf/105394)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 16\
**Last updated:** [October 26, 2023, 8:48am UTC](https://discourse.julialang.org/t/interface-for-a-distribution-defined-by-its-cdf/105394 "2023-10-26T08:48:31Z")

</div>

Hi, I do have an issue where I need to sample from a distribution that is defined by its cumulative distribution function: function unknown\_cdf(x) if x \< 0 return 0 else # do stuff... end en…

---

## [Macro that inlines functions](https://discourse.julialang.org/t/macro-that-inlines-functions/105391)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 10\
**Last updated:** [October 26, 2023, 7:40am UTC](https://discourse.julialang.org/t/macro-that-inlines-functions/105391 "2023-10-26T07:40:42Z")

</div>

I want to use some inlinable functions with @turbo for cleaner syntax, which currently does not work. Is it possible to write a macro that gets an expression, and then for every function that should inline, replaces it …

---

## [Infer return type from ambiguous input](https://discourse.julialang.org/t/infer-return-type-from-ambiguous-input/105396)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 6\
**Last updated:** [October 26, 2023, 6:38am UTC](https://discourse.julialang.org/t/infer-return-type-from-ambiguous-input/105396 "2023-10-26T06:38:44Z")

</div>

What is the best way to help Julia’s compiler infer that the output type of the following function can only be Union{Int64, Nothing}? function inferme(x::Dict{String, Any}, y::String) if haskey(x, y) return …

---

## [Refactoring a symmetric matrix into a vector and back again](https://discourse.julialang.org/t/refactoring-a-symmetric-matrix-into-a-vector-and-back-again/105378)

<div class="topic-metadata">

**Author:** [@ignace](https://discourse.julialang.org/u/ignace)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 7:06am UTC](https://discourse.julialang.org/t/refactoring-a-symmetric-matrix-into-a-vector-and-back-again/105378 "2023-10-26T07:06:23Z")

</div>

Hallo, Do you know ‘good’ ways to refactor a symmetric matrix into a vector, and back again? Ideally, something like this: A = \[1 2 3; 2 4 5; 3 5 6\] V = mat2vec(A) # V = \[1 2 3 4 5 6\] A = vec2mat(V) # A…

---

## [Integrating a long(ish) running simulation into Pluto](https://discourse.julialang.org/t/integrating-a-long-ish-running-simulation-into-pluto/105371)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 7\
**Last updated:** [October 26, 2023, 6:46am UTC](https://discourse.julialang.org/t/integrating-a-long-ish-running-simulation-into-pluto/105371 "2023-10-26T06:46:56Z")

</div>

Hi, quick question: I have a simulation model that takes in the order of 30-60 seconds to run. (This one if you’re interested). If I wanted to embed it in a Pluto notebook, what’s the best practice? Can I detach it som…

---

## [Subtype a struct in package extension, but defining the struct in the Main Package code](https://discourse.julialang.org/t/subtype-a-struct-in-package-extension-but-defining-the-struct-in-the-main-package-code/105380)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 1\
**Last updated:** [October 26, 2023, 6:38am UTC](https://discourse.julialang.org/t/subtype-a-struct-in-package-extension-but-defining-the-struct-in-the-main-package-code/105380 "2023-10-26T06:38:40Z")

</div>

While trying to transfer a package’s @requires into extensions, I wanted to take the structs into the Main package. However, one of the structs is defined as a subtype of a weakdep. So something like: In Foo/ext/FooBarE…

---

## [How do I change the REPL prompt to show numbers?](https://discourse.julialang.org/t/how-do-i-change-the-repl-prompt-to-show-numbers/105406)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 4:51am UTC](https://discourse.julialang.org/t/how-do-i-change-the-repl-prompt-to-show-numbers/105406 "2023-10-26T04:51:04Z")

</div>

I know one can change the REPL prompt to show numbers instead of julia\>. I believe there is also a way to GOTO a number. How does one do that?

---

## [Julia 0.7 nightlies for ppc64le](https://discourse.julialang.org/t/julia-0-7-nightlies-for-ppc64le/5540)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 2:23am UTC](https://discourse.julialang.org/t/julia-0-7-nightlies-for-ppc64le/5540 "2023-10-26T02:23:23Z")

</div>

Hello, Does anyone have a working link for 0.7 precompiled nightlies for ppc64le? The link on the download page shows: This XML file does not appear to have any style information associated with it. The document tree i…

---

## [How to make Configurations.jl option fields extensible (abstract?)](https://discourse.julialang.org/t/how-to-make-configurations-jl-option-fields-extensible-abstract/105360)

<div class="topic-metadata">

**Author:** [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Replies:** 5\
**Last updated:** [October 25, 2023, 10:04pm UTC](https://discourse.julialang.org/t/how-to-make-configurations-jl-option-fields-extensible-abstract/105360 "2023-10-25T22:04:13Z")

</div>

I’m using Configurations.jl quite extensively to run some simulations and it’s pretty amazing! There is one scenario, however, which I’m not quite sure how to solve in an “elegant” way, so I just want to gather some tho…

---

## [Why the y-axis is not showing as log scale even it is scaled](https://discourse.julialang.org/t/why-the-y-axis-is-not-showing-as-log-scale-even-it-is-scaled/105398)

<div class="topic-metadata">

**Author:** [@Chao](https://discourse.julialang.org/u/Chao)\
**Replies:** 1\
**Last updated:** [October 25, 2023, 9:04pm UTC](https://discourse.julialang.org/t/why-the-y-axis-is-not-showing-as-log-scale-even-it-is-scaled/105398 "2023-10-25T21:04:07Z")

</div>

Hello, I am doing a degree distribution. This is the degree distribution without scaled. The code for the above plot is this: histogram(degree, bins=50) title!("Degree distribution") Because I want to check whethe…

---

## [Is a character a member of an vector](https://discourse.julialang.org/t/is-a-character-a-member-of-an-vector/104634)

<div class="topic-metadata">

**Author:** [@neophytedave](https://discourse.julialang.org/u/neophytedave)\
**Replies:** 5\
**Last updated:** [October 25, 2023, 8:14pm UTC](https://discourse.julialang.org/t/is-a-character-a-member-of-an-vector/104634 "2023-10-25T20:14:38Z")

</div>

the subject line says it all. I can laboriously loop through the array. However, I am wondering if there is not a function which will do this more elegantly.

---

## [Loop Vectorization syntax very limiting](https://discourse.julialang.org/t/loop-vectorization-syntax-very-limiting/105387)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 7\
**Last updated:** [October 25, 2023, 8:05pm UTC](https://discourse.julialang.org/t/loop-vectorization-syntax-very-limiting/105387 "2023-10-25T20:05:50Z")

</div>

I’m using LoopVectorization to speed up some function to great effect. However, I’m finding the syntax it allows to be quite limiting. I’m loping over a sparse matrix like this to gather an energy function. It works grea…

---

## [Input data for main simulation with ParallelStencil.jl](https://discourse.julialang.org/t/input-data-for-main-simulation-with-parallelstencil-jl/105385)

<div class="topic-metadata">

**Author:** [@chloisu](https://discourse.julialang.org/u/chloisu)\
**Replies:** 3\
**Last updated:** [October 25, 2023, 7:38pm UTC](https://discourse.julialang.org/t/input-data-for-main-simulation-with-parallelstencil-jl/105385 "2023-10-25T19:38:16Z")

</div>

Hello, I have a question regarding the use of ParallelStencil.jl. I would like to initialize a simulation or load a previous solution and assign these input fields like temperature or so to the ParallelStencil Arrays be…

---

## [Precompile/build an extension](https://discourse.julialang.org/t/precompile-build-an-extension/105345)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 3\
**Last updated:** [October 25, 2023, 6:41pm UTC](https://discourse.julialang.org/t/precompile-build-an-extension/105345 "2023-10-25T18:41:24Z")

</div>

Hello, is it currently possible to manually (equivalent of pkg\> build) precompile a package extension after modifying it?

---

## [How to write equations less redundant](https://discourse.julialang.org/t/how-to-write-equations-less-redundant/105320)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [October 25, 2023, 6:39pm UTC](https://discourse.julialang.org/t/how-to-write-equations-less-redundant/105320 "2023-10-25T18:39:57Z")

</div>

How can this code be written less redundant? if lin @parameters a=eq.a\_bar b=eq.b\_bar eqs = \[D(ω) ~ (Pr - Pg) / (J \* ω), D(Uest) ~ Ku \* e\_p, r\_ω ~ Uest \* λnom / R, …

---

## [Issue MethodOfLines.jl Burger equation with periodic BCs](https://discourse.julialang.org/t/issue-methodoflines-jl-burger-equation-with-periodic-bcs/104277)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 5\
**Last updated:** [October 25, 2023, 5:55pm UTC](https://discourse.julialang.org/t/issue-methodoflines-jl-burger-equation-with-periodic-bcs/104277 "2023-10-25T17:55:13Z")

</div>

Hello, I would like to solve the 1D inviscid Burgers equation \\frac{\\partial u(x,t)}{\\partial t} + \\frac{1}{2} \\frac{\\partial u(x,t)^2}{\\partial x} = 0 with periodic BCs on \[0,1\], i.e. u(0, t) = u(1,t), using MethodOfLi…

---

## [Type-inference fails then succeeds for exact same function](https://discourse.julialang.org/t/type-inference-fails-then-succeeds-for-exact-same-function/105384)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 2\
**Last updated:** [October 25, 2023, 5:19pm UTC](https://discourse.julialang.org/t/type-inference-fails-then-succeeds-for-exact-same-function/105384 "2023-10-25T17:19:41Z")

</div>

I’ve been facing multiple issues with type-inference, specially when using ComponentArrays. In particular, it may succeed or fail, apparently at random, for the same function, in the same program. What could be causing t…

---

## [Are Revise, PackageCompiler, and Pkg "part of Julia", and how do we better share them?](https://discourse.julialang.org/t/are-revise-packagecompiler-and-pkg-part-of-julia-and-how-do-we-better-share-them/99491)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 46\
**Last updated:** [October 25, 2023, 3:32pm UTC](https://discourse.julialang.org/t/are-revise-packagecompiler-and-pkg-part-of-julia-and-how-do-we-better-share-them/99491 "2023-10-25T15:32:29Z")

</div>

Is Revise.jl an essential part of what Julia is? I think a lot of people here would think so, but one common complaint is that is lives in a personal repo (@tim.holy ). I see this on Hacker News and other things a lot: i…

---

## [Optimizing Complex Batch Matrix Multiplication](https://discourse.julialang.org/t/optimizing-complex-batch-matrix-multiplication/105381)

<div class="topic-metadata">

**Author:** [@quantumtwist](https://discourse.julialang.org/u/quantumtwist)\
**Replies:** 2\
**Last updated:** [October 25, 2023, 3:31pm UTC](https://discourse.julialang.org/t/optimizing-complex-batch-matrix-multiplication/105381 "2023-10-25T15:31:16Z")

</div>

Hello fellow Julians! In my code the bottleneck step is a batched ComplexF64 matrix multiplication of the form C\[i,k,n\] = conj(A)\[j,i,n\] \* B\[j,k,n\]. Naively, one should loop over n and do in-place multiplication. Howeve…

---

## [The \`sort\` only change order of the first column in matrix?](https://discourse.julialang.org/t/the-sort-only-change-order-of-the-first-column-in-matrix/105364)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 8\
**Last updated:** [October 25, 2023, 2:58pm UTC](https://discourse.julialang.org/t/the-sort-only-change-order-of-the-first-column-in-matrix/105364 "2023-10-25T14:58:52Z")

</div>

Hi friends, I just found a strange behave of the method of sort a1 = \[ 669.57 52.3 657.52 56.18 638.38 65.09 634.17 72.41 632.08 80.61\] sort(a1,dims=1) will give me below result 5×2 Matrix{F…

---

## [Plotting and returning values from within a function](https://discourse.julialang.org/t/plotting-and-returning-values-from-within-a-function/74619)

<div class="topic-metadata">

**Author:** [@Timothy](https://discourse.julialang.org/u/Timothy)\
**Replies:** 2\
**Last updated:** [January 14, 2022, 1:39pm UTC](https://discourse.julialang.org/t/plotting-and-returning-values-from-within-a-function/74619 "2022-01-14T13:39:10Z")

</div>

I am trying to call a plotting function and return a value from another function (plot\_and\_return\_points(x,y)): function plot\_stuff(x, y) plot(x, y) end function plot\_and\_return\_points(x, y) println(“The plot bel…

---

## [Default Git setup in PkgTemplates](https://discourse.julialang.org/t/default-git-setup-in-pkgtemplates/105129)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 1\
**Last updated:** [October 25, 2023, 2:02pm UTC](https://discourse.julialang.org/t/default-git-setup-in-pkgtemplates/105129 "2023-10-25T14:02:14Z")

</div>

I would love some feedback on a potential breaking change in PkgTemplates to make package creation easier on GitHub. Since that is the only hosting service I use, I’m blind to how it would affect GitLab et al.

---

## [Saving GLMakie interactive window?](https://discourse.julialang.org/t/saving-glmakie-interactive-window/105376)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 1\
**Last updated:** [October 25, 2023, 1:59pm UTC](https://discourse.julialang.org/t/saving-glmakie-interactive-window/105376 "2023-10-25T13:59:42Z")

</div>

Hi Everyone, I am making some plots with GLMakie that allow me to check the data. I would like to share this with my colleagues (not just the static PNG). I know that PlotlyJS allows to save to HTML. Any way to do somet…

---

## [Julia optimization levels; and the case for \*less\* optimization, slower; faster compilation](https://discourse.julialang.org/t/julia-optimization-levels-and-the-case-for-less-optimization-slower-faster-compilation/105375)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [October 25, 2023, 1:16pm UTC](https://discourse.julialang.org/t/julia-optimization-levels-and-the-case-for-less-optimization-slower-faster-compilation/105375 "2023-10-25T13:16:51Z")

</div>

Julia has 4 optimization levels “-O, --optimize={0,1,2\*,3}”, but I’ve never seen what they do exactly e.g. -O1, nor until today what -O3 does, or if it’s recommended. Despite what you might think -O0 doesn’t mean no opt…

---

## [Virtual civilization game planned. Request features here](https://discourse.julialang.org/t/virtual-civilization-game-planned-request-features-here/105362)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [October 25, 2023, 5:34am UTC](https://discourse.julialang.org/t/virtual-civilization-game-planned-request-features-here/105362 "2023-10-25T05:34:39Z")

</div>

Note: This is in package announcement because the game will be released as a Julia package for API, making a GUI/etc will take extra effort. Hi, I am a hobbyist indie game developer, and this will be my first 4X game. U…

---

## [Compilation options for Downfall mitigation](https://discourse.julialang.org/t/compilation-options-for-downfall-mitigation/104844)

<div class="topic-metadata">

**Author:** [@mmesiti](https://discourse.julialang.org/u/mmesiti)\
**Replies:** 4\
**Last updated:** [October 25, 2023, 9:21am UTC](https://discourse.julialang.org/t/compilation-options-for-downfall-mitigation/104844 "2023-10-25T09:21:04Z")

</div>

Hello everybody, the code I am working on has suffered from a huge performance hit (up to 50%) because of the microcode update to mitigate the Downfall vulnerability. The generated code was using a lot of gather instruc…

---

## [Makie: Isosurface colored by values from another array](https://discourse.julialang.org/t/makie-isosurface-colored-by-values-from-another-array/105318)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 26\
**Last updated:** [October 25, 2023, 10:59am UTC](https://discourse.julialang.org/t/makie-isosurface-colored-by-values-from-another-array/105318 "2023-10-25T10:59:00Z")

</div>

I have two 3D arrays. I would like to make an isosurface from the first one and color it using the values of the second array. As far as I understand, a possible solution would be to construct a mesh for the isosurface (…

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

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