# Latest

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

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

**Page:** 242

---

## [Constructing Vector{Distribution{Univariate, Continuous}} in Distributions.jl](https://discourse.julialang.org/t/constructing-vector-distribution-univariate-continuous-in-distributions-jl/124562)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 3:49am UTC](https://discourse.julialang.org/t/constructing-vector-distribution-univariate-continuous-in-distributions-jl/124562 "2025-01-09T03:49:55Z")

</div>

I’m attempting to construct an array of probability distributions of a single type based on arrays of parameters, then combine it with one or more distributions of a different type, then use this to construct a MixtureMo…

---

## [VSI image support in Images.jl](https://discourse.julialang.org/t/vsi-image-support-in-images-jl/2824)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 3:38am UTC](https://discourse.julialang.org/t/vsi-image-support-in-images-jl/2824 "2025-01-09T03:38:28Z")

</div>

On a whim I tried to load a .vsi image file from an Olympus microscope (cellSense software) into Julia (I wasn’t expecting it to work) and I was surprised to see that it didn’t give an error-- it loaded the first frame o…

---

## [Mini-Symposium on Julia in Astronomy & Astrophysics Research](https://discourse.julialang.org/t/mini-symposium-on-julia-in-astronomy-astrophysics-research/82539)

<div class="topic-metadata">

**Author:** [@eford](https://discourse.julialang.org/u/eford)\
**Replies:** 3\
**Last updated:** [January 9, 2025, 3:09am UTC](https://discourse.julialang.org/t/mini-symposium-on-julia-in-astronomy-astrophysics-research/82539 "2025-01-09T03:09:03Z")

</div>

JuliaCon 2022 has accepted a proposal for a mini-symposium (2-3 hours) on Julia in Astronomy & Astrophysics Research, shortly before the main JuliaCon talks. Please complete this form if you would be interested in contri…

---

## [Any suggestions for implementing parametric unit conversions?](https://discourse.julialang.org/t/any-suggestions-for-implementing-parametric-unit-conversions/124560)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 0\
**Last updated:** [January 9, 2025, 1:58am UTC](https://discourse.julialang.org/t/any-suggestions-for-implementing-parametric-unit-conversions/124560 "2025-01-09T01:58:24Z")

</div>

I have the following table of unit conversions for wave attenuation rates. For example, The unitless quantity (units of “1”) is known as the loss tangent. In the spirit of Unitful.jl and/or DynamicQuantities.jl o…

---

## [Timeout function](https://discourse.julialang.org/t/timeout-function/124496)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 5\
**Last updated:** [January 9, 2025, 2:16am UTC](https://discourse.julialang.org/t/timeout-function/124496 "2025-01-09T02:16:47Z")

</div>

Hello, is this a good way to create timeout function? struct TimeoutError \<: Exception end function timeout(f::Function, nsec) task = current\_task() timer = Timer(nsec) do t Base.throwto(task, TimeoutEr…

---

## [In Pipe.@pipe, |\> followed by .|\> Gives an error](https://discourse.julialang.org/t/in-pipe-pipe-followed-by-gives-an-error/47174)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 8\
**Last updated:** [January 8, 2025, 11:34pm UTC](https://discourse.julialang.org/t/in-pipe-pipe-followed-by-gives-an-error/47174 "2025-01-08T23:34:35Z")

</div>

|\> followed by .|\> Gives an error @pipe 2 |\> \_ .+ (1:3) #Works @pipe 2 .+ (1:3) .|\> \_^2 #Works @pipe 2 |\> \_ .+ (1:3) .|\> \_^2 #Gives Erro…

---

## [Could you implement Linear Types in Julia?](https://discourse.julialang.org/t/could-you-implement-linear-types-in-julia/124556)

<div class="topic-metadata">

**Author:** [@The\_Mastermage](https://discourse.julialang.org/u/The_Mastermage)\
**Replies:** 0\
**Last updated:** [January 8, 2025, 11:17pm UTC](https://discourse.julialang.org/t/could-you-implement-linear-types-in-julia/124556 "2025-01-08T23:17:56Z")

</div>

I was watching the video 2024 LLVM Dev Mtg - Implementing Linear / Non-destructible Types in Vale and Mojo by on of the Devs developing Mojo and Vale (which is really cool btw. check it out). And he was talking about Li…

---

## [Trying to implement VAE using Lux and reactant](https://discourse.julialang.org/t/trying-to-implement-vae-using-lux-and-reactant/124353)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 12\
**Last updated:** [January 8, 2025, 9:02pm UTC](https://discourse.julialang.org/t/trying-to-implement-vae-using-lux-and-reactant/124353 "2025-01-08T21:02:21Z")

</div>

Just had a lot of fun implementing VAE (Variational AutoEncoder) with Lux and Reactant, it barely works, little summary of errors, Reactant : errors with: 'stablehlo.transpose' op using value defined outside the region…

---

## [Registered package not made available](https://discourse.julialang.org/t/registered-package-not-made-available/124461)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 4\
**Last updated:** [January 8, 2025, 8:55pm UTC](https://discourse.julialang.org/t/registered-package-not-made-available/124461 "2025-01-08T20:55:37Z")

</div>

My new package PackageMaker.jl was registered yesterday, it appeared on juliahub.com in short time, but it is not yet available for installation from the general registry. (@PackageMaker) pkg\> add PackageMaker ERROR: Th…

---

## [AbstractArrayStyle{Any} versus AbstractArrayStyle{N} broadcast style](https://discourse.julialang.org/t/abstractarraystyle-any-versus-abstractarraystyle-n-broadcast-style/124526)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 8:40pm UTC](https://discourse.julialang.org/t/abstractarraystyle-any-versus-abstractarraystyle-n-broadcast-style/124526 "2025-01-08T20:40:33Z")

</div>

Suppose a package defines an array type SomeArray which, like Array, supports arbitrary dimensionality: struct SomeArray{N} \<: AbstractArray{Float32, N} end # the element type doesn't matter here, it's merely an exampl…

---

## [Set-indexed SparseArrays](https://discourse.julialang.org/t/set-indexed-sparsearrays/124545)

<div class="topic-metadata">

**Author:** [@maxminn](https://discourse.julialang.org/u/maxminn)\
**Replies:** 5\
**Last updated:** [January 8, 2025, 7:21pm UTC](https://discourse.julialang.org/t/set-indexed-sparsearrays/124545 "2025-01-08T19:21:19Z")

</div>

Any discussion of support for set-indexed sparse arrays? I really want Julia to replace GAMS for my general modeling needs, but the data storage can’t compete.

---

## [Understanding package extension dependency constraints](https://discourse.julialang.org/t/understanding-package-extension-dependency-constraints/124542)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [January 8, 2025, 4:52pm UTC](https://discourse.julialang.org/t/understanding-package-extension-dependency-constraints/124542 "2025-01-08T16:52:22Z")

</div>

I’m currently working on extensions for a package where my extensions add methods to an existing function in my main package. I have multiple extensions that add such methods. Some need only one additional package, some…

---

## [MetaheuristicsAlgorithms.jl – A Julia Package for Metaheuristic Optimization](https://discourse.julialang.org/t/metaheuristicsalgorithms-jl-a-julia-package-for-metaheuristic-optimization/124321)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 7\
**Last updated:** [January 8, 2025, 6:44pm UTC](https://discourse.julialang.org/t/metaheuristicsalgorithms-jl-a-julia-package-for-metaheuristic-optimization/124321 "2025-01-08T18:44:44Z")

</div>

As we close out 2024, I’m excited to announce the launch of MetaheuristicsAlgorithms.jl, a new Julia package designed to bring recent powerful metaheuristic optimization algorithms to the Julia ecosystem. These algorithm…

---

## [Where does LanguageServer store its cache?](https://discourse.julialang.org/t/where-does-languageserver-store-its-cache/124547)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 6:34pm UTC](https://discourse.julialang.org/t/where-does-languageserver-store-its-cache/124547 "2025-01-08T18:34:36Z")

</div>

When running LanguageServer (in Neovim), the LSP log shows messages like Downloading cache files... … Package FFTW (7a1cc6ca-52ef-59f5-83cd-3a7055c09341) is cached. … Done loading FFTW from cache... Where does Language…

---

## [Type stability in Optimization.jl](https://discourse.julialang.org/t/type-stability-in-optimization-jl/124522)

<div class="topic-metadata">

**Author:** [@Addison](https://discourse.julialang.org/u/Addison)\
**Replies:** 4\
**Last updated:** [January 8, 2025, 5:32pm UTC](https://discourse.julialang.org/t/type-stability-in-optimization-jl/124522 "2025-01-08T17:32:00Z")

</div>

I’ve got some code that solves several optimization problems using Optimization.jl. When checking for type stability with JET’s report\_opt function, it outputs all sorts of errors around the call to OptimizationFunction.…

---

## [Cconvert and unsafe\_convert with immutable struct containing a pointer](https://discourse.julialang.org/t/cconvert-and-unsafe-convert-with-immutable-struct-containing-a-pointer/124479)

<div class="topic-metadata">

**Author:** [@luke-kiernan](https://discourse.julialang.org/u/luke-kiernan)\
**Replies:** 5\
**Last updated:** [January 8, 2025, 5:21pm UTC](https://discourse.julialang.org/t/cconvert-and-unsafe-convert-with-immutable-struct-containing-a-pointer/124479 "2025-01-08T17:21:36Z")

</div>

Follow up question from Ccall with a C struct containing a pointer: how do I make this cconvert/unsafe\_convert dance work when the struct is immutable? Re-assigning dm.data to pointer(m) inside unsafe\_convert is then out…

---

## [Glob with variable names](https://discourse.julialang.org/t/glob-with-variable-names/57982)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 2\
**Last updated:** [January 8, 2025, 4:26pm UTC](https://discourse.julialang.org/t/glob-with-variable-names/57982 "2025-01-08T16:26:12Z")

</div>

I am trying out some pattern matching with glob. When I try it using subfolders it works if the subfolder is hardcoded, but not when the subfolder is a variable. The purpose of the code is to delete files older than a …

---

## [DSP.jl loading error](https://discourse.julialang.org/t/dsp-jl-loading-error/124345)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 3\
**Last updated:** [January 8, 2025, 2:18pm UTC](https://discourse.julialang.org/t/dsp-jl-loading-error/124345 "2025-01-08T14:18:26Z")

</div>

In trying to sort out a problem I tried loading DSP.jl into a fresh project on both 1.11.2 and 1.10.7. The error message from 1.10.7 is given below. As I am on Windows 11 I am not sure why it is giving me an error mess…

---

## [Programmatically Get Makie Figure Size](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 7\
**Last updated:** [January 8, 2025, 2:14pm UTC](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893 "2025-01-08T14:14:56Z")

</div>

Hello, Is it possible to programmatically get the width and height of a figure in Makie assuming you did not explicitly specify them in the call to Figure()? I’m curious because they would be helpful for placing a zoom…

---

## [New on Forem: "Introducing AXE Lang" by Sahith Karra](https://discourse.julialang.org/t/new-on-forem-introducing-axe-lang-by-sahith-karra/124515)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 1:56pm UTC](https://discourse.julialang.org/t/new-on-forem-introducing-axe-lang-by-sahith-karra/124515 "2025-01-08T13:56:10Z")

</div>

Sahith Karra has published a new article on Forem: I hope you enjoy reading it.

---

## [Weird \`ERROR: LoadError: ArgumentError: Platform \`riscv64-linux-gnu-libgfortran5\` is not an officially supported platform\` when loading package](https://discourse.julialang.org/t/weird-error-loaderror-argumenterror-platform-riscv64-linux-gnu-libgfortran5-is-not-an-officially-supported-platform-when-loading-package/124537)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 5\
**Last updated:** [January 8, 2025, 1:56pm UTC](https://discourse.julialang.org/t/weird-error-loaderror-argumenterror-platform-riscv64-linux-gnu-libgfortran5-is-not-an-officially-supported-platform-when-loading-package/124537 "2025-01-08T13:56:29Z")

</div>

I tried running my package on a compute I haven’t used for two weeks: using Catalyst but got a weird error I do not understand: \[ Info: Precompiling Catalyst \[479239e8-5488-4da2-87a7-35f2df7eef83\] (cache misses: inclu…

---

## [Vscode crash on debug with "unknown command" on 1.11.2](https://discourse.julialang.org/t/vscode-crash-on-debug-with-unknown-command-on-1-11-2/124514)

<div class="topic-metadata">

**Author:** [@dimsinel](https://discourse.julialang.org/u/dimsinel)\
**Replies:** 4\
**Last updated:** [January 8, 2025, 1:46pm UTC](https://discourse.julialang.org/t/vscode-crash-on-debug-with-unknown-command-on-1-11-2/124514 "2025-01-08T13:46:05Z")

</div>

Hello. I am on vscode 1.96.2 w/ julia ext 1.127.2 – but the exact same thing happens prerelease 1.136.1. The simplest code simply crashes the debugger – and I don’t even need to create breakpoints for this to happen. …

---

## [Understanding dependencies of packages extensions](https://discourse.julialang.org/t/understanding-dependencies-of-packages-extensions/115237)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [January 8, 2025, 12:53pm UTC](https://discourse.julialang.org/t/understanding-dependencies-of-packages-extensions/115237 "2025-01-08T12:53:30Z")

</div>

I have a package and I’m extending a function to create plots. The main package depends on another third package, let’s say StaticArrays for simplicity, and the extension also uses the functions of StaticArrays. Should S…

---

## [Contextual dispatch on Julia 1.12?](https://discourse.julialang.org/t/contextual-dispatch-on-julia-1-12/124535)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 11:36am UTC](https://discourse.julialang.org/t/contextual-dispatch-on-julia-1-12/124535 "2025-01-08T11:36:21Z")

</div>

Apparently Cassette.jl is broken on Julia 1.12. I was wondering if anyone knows of another way to get contextual dispatch in upcoming Julia versions? This is to support writing a borrow checker for Julia: Package for Ru…

---

## [Poor performance of SIMD vectorization in the latest version of Julia (v1.11.2)](https://discourse.julialang.org/t/poor-performance-of-simd-vectorization-in-the-latest-version-of-julia-v1-11-2/124406)

<div class="topic-metadata">

**Author:** [@Mikel\_Antonana](https://discourse.julialang.org/u/Mikel_Antonana)\
**Replies:** 19\
**Last updated:** [January 8, 2025, 11:17am UTC](https://discourse.julialang.org/t/poor-performance-of-simd-vectorization-in-the-latest-version-of-julia-v1-11-2/124406 "2025-01-08T11:17:27Z")

</div>

I have observed poor performance of our SIMD-vectorized numerical integration method when using the latest version of Julia (1.11.2). To show this, I am attaching two precision diagrams obtained by running this Jupyter …

---

## [Examples of well-established ABMs for economics/finance](https://discourse.julialang.org/t/examples-of-well-established-abms-for-economics-finance/121301)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [October 17, 2024, 7:59am UTC](https://discourse.julialang.org/t/examples-of-well-established-abms-for-economics-finance/121301 "2024-10-17T07:59:48Z")

</div>

Hello there! I am currently developing a small project for a student doing an MSc in Mathematics & Finance. Project is akin to a Master Thesis but 3-months long only. The goal of the project is to engage the student into…

---

## [How to work around unsupported rational coefficients in AbstractAlgebra for polynomial rings in Julia?](https://discourse.julialang.org/t/how-to-work-around-unsupported-rational-coefficients-in-abstractalgebra-for-polynomial-rings-in-julia/124495)

<div class="topic-metadata">

**Author:** [@Rowing0914](https://discourse.julialang.org/u/Rowing0914)\
**Replies:** 2\
**Last updated:** [January 8, 2025, 7:37am UTC](https://discourse.julialang.org/t/how-to-work-around-unsupported-rational-coefficients-in-abstractalgebra-for-polynomial-rings-in-julia/124495 "2025-01-08T07:37:38Z")

</div>

I’m working with the AbstractAlgebra.jl library in Julia and encountered an issue when defining an ideal in a polynomial ring with rational coefficients. Here’s the minimal example: using AbstractAlgebra # Integer coef…

---

## [How to use Infiltrator?](https://discourse.julialang.org/t/how-to-use-infiltrator/124305)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 9\
**Last updated:** [January 8, 2025, 6:16am UTC](https://discourse.julialang.org/t/how-to-use-infiltrator/124305 "2025-01-08T06:16:09Z")

</div>

I have a startup.jl that looks like this: try using Revise catch e @warn "Error initializing Revise" end try using Infiltrator catch e @warn "Error initializing Infiltrator" end I put @infiltrate in a function …

---

## [How to set reuse Julia session from terminal process?](https://discourse.julialang.org/t/how-to-set-reuse-julia-session-from-terminal-process/124389)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 3\
**Last updated:** [January 8, 2025, 3:47am UTC](https://discourse.julialang.org/t/how-to-set-reuse-julia-session-from-terminal-process/124389 "2025-01-08T03:47:12Z")

</div>

I’ve py frontend that calls something like julia -e "runmyapp()" which exits upon completion. Is there way to reuse such sessions? My julia program takes minutes to compile which gets repeated. Thanks!

---

## [Dirichlet boundary condition in gmsh](https://discourse.julialang.org/t/dirichlet-boundary-condition-in-gmsh/101232)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 4\
**Last updated:** [January 8, 2025, 3:10am UTC](https://discourse.julialang.org/t/dirichlet-boundary-condition-in-gmsh/101232 "2025-01-08T03:10:15Z")

</div>

Hi all, I want to define dirichlet boundary condition in my mesh file in gmsh and then use it in julia (not defining bc in julia just read them from mesh file). is there anyone who had experience in this field or any tut…

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

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