# Latest

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

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

**Page:** 291

---

## [Tests fail for Julia 1.11 on GitHub](https://discourse.julialang.org/t/tests-fail-for-julia-1-11-on-github/121823)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [October 27, 2024, 3:49pm UTC](https://discourse.julialang.org/t/tests-fail-for-julia-1-11-on-github/121823 "2024-10-27T15:49:16Z")

</div>

My tests pass for Julia 1.10: Adapt to new KiteModels, using new conventions · aenarete/KiteControllers.jl@dd84a3f · GitHub and fail for Julia 1.11: I do not really understand why. This might be related to my use of P…

---

## [Error in Visual studio code while good in Jupyter notebook with a same Julia code](https://discourse.julialang.org/t/error-in-visual-studio-code-while-good-in-jupyter-notebook-with-a-same-julia-code/121792)

<div class="topic-metadata">

**Author:** [@hyde](https://discourse.julialang.org/u/hyde)\
**Replies:** 1\
**Last updated:** [October 27, 2024, 12:16pm UTC](https://discourse.julialang.org/t/error-in-visual-studio-code-while-good-in-jupyter-notebook-with-a-same-julia-code/121792 "2024-10-27T12:16:42Z")

</div>

Hi, I ran same code from the QuantEcon lecture \[55. Default Risk and Income Fluctuations, (Arellano 2008 model)\]. The Jupyter notebook showed exactly same result from the lecture, but Visual studio code keep giving an Er…

---

## [How to benefit from package specific @recompile\_invalidations when developing the same package?](https://discourse.julialang.org/t/how-to-benefit-from-package-specific-recompile-invalidations-when-developing-the-same-package/120805)

<div class="topic-metadata">

**Author:** [@frankier](https://discourse.julialang.org/u/frankier)\
**Replies:** 3\
**Last updated:** [October 27, 2024, 11:41am UTC](https://discourse.julialang.org/t/how-to-benefit-from-package-specific-recompile-invalidations-when-developing-the-same-package/120805 "2024-10-27T11:41:08Z")

</div>

I have a package MyPackage that loads stuff in an order that ends up invalidating a lot of Makie. using DependencyA using Makie Long term I would like to solve it, but for now I would just like to work around it. If I …

---

## [Allocations MVectors](https://discourse.julialang.org/t/allocations-mvectors/121818)

<div class="topic-metadata">

**Author:** [@AdaemmerP](https://discourse.julialang.org/u/AdaemmerP)\
**Replies:** 10\
**Last updated:** [October 27, 2024, 10:38am UTC](https://discourse.julialang.org/t/allocations-mvectors/121818 "2024-10-27T10:38:56Z")

</div>

Why does this: m! = factorial(3) @btime MVector{$m!, Float64}(undef); 576.677 ns (10 allocations: 512 bytes) allocate ten times as much as this: @btime MVector{6, Float64}(undef); 4.148 ns (1 allocation: 64 bytes) I …

---

## [Balanced clustering or assignment of 3D points in space](https://discourse.julialang.org/t/balanced-clustering-or-assignment-of-3d-points-in-space/121192)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 15\
**Last updated:** [October 27, 2024, 10:08am UTC](https://discourse.julialang.org/t/balanced-clustering-or-assignment-of-3d-points-in-space/121192 "2024-10-27T10:08:37Z")

</div>

I’m currently trying to solve the following problem Let P be a set of points in 3D space Split P into smaller sets of approximately equal size, the maximum size being a hard constraint Some properties about P P is g…

---

## [Why are there no captured variables when the \`if\` expression is used as an rvalue?](https://discourse.julialang.org/t/why-are-there-no-captured-variables-when-the-if-expression-is-used-as-an-rvalue/121782)

<div class="topic-metadata">

**Author:** [@aaoo](https://discourse.julialang.org/u/aaoo)\
**Replies:** 5\
**Last updated:** [October 27, 2024, 8:08am UTC](https://discourse.julialang.org/t/why-are-there-no-captured-variables-when-the-if-expression-is-used-as-an-rvalue/121782 "2024-10-27T08:08:31Z")

</div>

When I was learning the Performance of captured variable, I found a second version of the example function that shows no captured variable in @code\_warntype. I am confused about the following three questions: Would the…

---

## [Avoid allocation of a Flux model on the CPU](https://discourse.julialang.org/t/avoid-allocation-of-a-flux-model-on-the-cpu/121785)

<div class="topic-metadata">

**Author:** [@mesonepigreco](https://discourse.julialang.org/u/mesonepigreco)\
**Replies:** 3\
**Last updated:** [October 27, 2024, 8:12am UTC](https://discourse.julialang.org/t/avoid-allocation-of-a-flux-model-on-the-cpu/121785 "2024-10-27T08:12:19Z")

</div>

Hi everyone, I have to execute a flux model inside a Monte Carlo simulation. I am currently working on the CPU; I am facing the problem of executing a model(configuration)for each step of the Monte Carlo, which allocate…

---

## [\[ANN\] Tensorial.jl: Statically sized tensors and related operations for Julia](https://discourse.julialang.org/t/ann-tensorial-jl-statically-sized-tensors-and-related-operations-for-julia/121588)

<div class="topic-metadata">

**Author:** [@KeitaNakamura](https://discourse.julialang.org/u/KeitaNakamura)\
**Replies:** 24\
**Last updated:** [October 25, 2024, 11:30am UTC](https://discourse.julialang.org/t/ann-tensorial-jl-statically-sized-tensors-and-related-operations-for-julia/121588 "2024-10-25T11:30:18Z")

</div>

Tensorial.jl I’d like to announce Tensorial.jl, a package I’ve developed and actively use in my research. Tensorial.jl provides statically sized Tensor similar to SArray from StaticArrays.jl, but with several additional …

---

## [Should memory allocation alignment be increased to e.g. 64 (or 256)?](https://discourse.julialang.org/t/should-memory-allocation-alignment-be-increased-to-e-g-64-or-256/121788)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [October 27, 2024, 2:13am UTC](https://discourse.julialang.org/t/should-memory-allocation-alignment-be-increased-to-e-g-64-or-256/121788 "2024-10-27T02:13:21Z")

</div>

I see it’s 16-byte aligned, for Julia allocations (also if going straight to Libc.malloc). I’m thinking of a 32-bit pointer (Ptr32) idea, that wouldn’t have byte-addressability, i.e. for base pointers, then if you add e…

---

## [Is there any IDE alternative to VSC+debugger?](https://discourse.julialang.org/t/is-there-any-ide-alternative-to-vsc-debugger/121754)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 22\
**Last updated:** [October 27, 2024, 2:10am UTC](https://discourse.julialang.org/t/is-there-any-ide-alternative-to-vsc-debugger/121754 "2024-10-27T02:10:28Z")

</div>

With current state of the debugger in VSC only allowing to run it once, the utility for me of VSC itself dropped to very low. Only the code navigation facilities still makes me using it. Are there any alternatives (Subl…

---

## [Integrating Julia with Rust?](https://discourse.julialang.org/t/integrating-julia-with-rust/121745)

<div class="topic-metadata">

**Author:** [@benslinux](https://discourse.julialang.org/u/benslinux)\
**Replies:** 56\
**Last updated:** [October 27, 2024, 1:43am UTC](https://discourse.julialang.org/t/integrating-julia-with-rust/121745 "2024-10-27T01:43:17Z")

</div>

Interested in the results / experiences who may have taken this approach - using Julia’s strengths in scientific computation with Rust’s efficiency and superior packaging via Cargo. Integrating Julia WITHIN Rust implie…

---

## [View unpinned pinned Discourse threads](https://discourse.julialang.org/t/view-unpinned-pinned-discourse-threads/121797)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [October 27, 2024, 1:43am UTC](https://discourse.julialang.org/t/view-unpinned-pinned-discourse-threads/121797 "2024-10-27T01:43:50Z")

</div>

I usually unpin the various pinned posts on Discourse. Is there a way to view all the pinned posts, even though I’ve unpinned them for myself?

---

## [Problem on model and gradient descend in Flux](https://discourse.julialang.org/t/problem-on-model-and-gradient-descend-in-flux/121589)

<div class="topic-metadata">

**Author:** [@Yaozhong\_Liu](https://discourse.julialang.org/u/Yaozhong_Liu)\
**Replies:** 18\
**Last updated:** [October 27, 2024, 1:05am UTC](https://discourse.julialang.org/t/problem-on-model-and-gradient-descend-in-flux/121589 "2024-10-27T01:05:54Z")

</div>

Hi. I have a problem on gradient descend in Flux. Suppose I have a model like this: model1 = Chain(x-\>Dense(5,5),relu) model2 = Chain(x-\>model1(x), Dense(5,5), vec) model3 = Chain(x-\>model1(x), Dense(5,5), vec) And I …

---

## [Why can't I catch the following error?](https://discourse.julialang.org/t/why-cant-i-catch-the-following-error/121712)

<div class="topic-metadata">

**Author:** [@deusexlibris](https://discourse.julialang.org/u/deusexlibris)\
**Replies:** 4\
**Last updated:** [October 26, 2024, 9:19pm UTC](https://discourse.julialang.org/t/why-cant-i-catch-the-following-error/121712 "2024-10-26T21:19:01Z")

</div>

I have created a simple web server using HTTP.jl for handling high-volume, low-latency simple requests. For performance, I spawn a separate thread on :default for each request. Everything runs fine but after running te…

---

## [Is Rust (and/or Python) the new high-level API (here ANN/GGUF/LLama example)](https://discourse.julialang.org/t/is-rust-and-or-python-the-new-high-level-api-here-ann-gguf-llama-example/121721)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [October 26, 2024, 9:11pm UTC](https://discourse.julialang.org/t/is-rust-and-or-python-the-new-high-level-api-here-ann-gguf-llama-example/121721 "2024-10-26T21:11:56Z")

</div>

This state-of-the-art library has Rust and Python API, but ironically no (C++) high-level one despite written in C++: I’m guessing C-like C++ is kinda necessary for bindings to other \[languages\] \[TensorFlow, also wr…

---

## [StochasticDelayDiffEq having trouble with stiff models \[solved\]](https://discourse.julialang.org/t/stochasticdelaydiffeq-having-trouble-with-stiff-models-solved/121725)

<div class="topic-metadata">

**Author:** [@kmd](https://discourse.julialang.org/u/kmd)\
**Replies:** 2\
**Last updated:** [October 26, 2024, 7:58pm UTC](https://discourse.julialang.org/t/stochasticdelaydiffeq-having-trouble-with-stiff-models-solved/121725 "2024-10-26T19:58:14Z")

</div>

I am using SciML to try to integrate a stiff model with small noise. It is giving me tons of grief though, and I am not sure how to approach it. I even tried setting tolerances to very small values & increasing maxiter…

---

## [Running REPL in VSCode in Git Bash, rather than (default) Powershell?](https://discourse.julialang.org/t/running-repl-in-vscode-in-git-bash-rather-than-default-powershell/121793)

<div class="topic-metadata">

**Author:** [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Replies:** 1\
**Last updated:** [October 26, 2024, 7:04pm UTC](https://discourse.julialang.org/t/running-repl-in-vscode-in-git-bash-rather-than-default-powershell/121793 "2024-10-26T19:04:59Z")

</div>

When I run the REPL outside of VSCode (on Windows 10), I run it in Git Bash, for a generally much better experience than is the case when using PowerShell. Both run inside Windows Terminal. In VSCode however, while Git B…

---

## [Installing OrdinaryEqDiff on Julia 1.10](https://discourse.julialang.org/t/installing-ordinaryeqdiff-on-julia-1-10/121780)

<div class="topic-metadata">

**Author:** [@nicomerino](https://discourse.julialang.org/u/nicomerino)\
**Replies:** 6\
**Last updated:** [October 26, 2024, 6:19pm UTC](https://discourse.julialang.org/t/installing-ordinaryeqdiff-on-julia-1-10/121780 "2024-10-26T18:19:40Z")

</div>

Hey there, I having trouble installing OrdinaryEqDiff and I have no clue what the problem could be. It just gets stuck forever, always in this specific part: Info Packages marked with ⌅ have new versions availa…

---

## [Designing interfaces for objects constructable from a file](https://discourse.julialang.org/t/designing-interfaces-for-objects-constructable-from-a-file/121710)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 34\
**Last updated:** [October 26, 2024, 4:32pm UTC](https://discourse.julialang.org/t/designing-interfaces-for-objects-constructable-from-a-file/121710 "2024-10-26T16:32:23Z")

</div>

Hi, I’m trying to understand how to design interfaces for types in Julia well. More specifically, I am writing a type which is effectively a wrapper around a DataFrame. Its purpose is to manage some configuration for …

---

## [Loop over array of static arrays](https://discourse.julialang.org/t/loop-over-array-of-static-arrays/121769)

<div class="topic-metadata">

**Author:** [@nicolas](https://discourse.julialang.org/u/nicolas)\
**Replies:** 12\
**Last updated:** [October 26, 2024, 3:29pm UTC](https://discourse.julialang.org/t/loop-over-array-of-static-arrays/121769 "2024-10-26T15:29:15Z")

</div>

I have the following loop over arrays (the function double() will obviously be more complicated, but the number of arrays is always the same) double(x) = 2x function doubles\_using\_arrays() xs = \[ones(10) for i in 1…

---

## [How to exit a Julia program without completely exit REPL or shutting down Julia?](https://discourse.julialang.org/t/how-to-exit-a-julia-program-without-completely-exit-repl-or-shutting-down-julia/66655)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 21\
**Last updated:** [October 26, 2024, 2:53pm UTC](https://discourse.julialang.org/t/how-to-exit-a-julia-program-without-completely-exit-repl-or-shutting-down-julia/66655 "2024-10-26T14:53:17Z")

</div>

Sorry for another stupid question. In a Julia program, or a function, if some ‘Oops’ happens, I know that I can put exit() somewhere in the code, so that I can automatically and completely shutting down julia and quit…

---

## [Outer product of each row of a matrix](https://discourse.julialang.org/t/outer-product-of-each-row-of-a-matrix/121764)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 5\
**Last updated:** [October 26, 2024, 2:44pm UTC](https://discourse.julialang.org/t/outer-product-of-each-row-of-a-matrix/121764 "2024-10-26T14:44:12Z")

</div>

I’m looking for an efficient way to take the outer product of each row of a matrix, e.g.: julia\> A = \[1 2;4 8\] 2×2 Matrix{Int64}: 1 2 4 8 julia\> cat(\[r \* r' for r in eachrow(A)\]..., dims=3) 2×2×2 Array{Int64, 3}: \[…

---

## [Screening Interest in a unified Vector/Raster Package, akin to R Terra](https://discourse.julialang.org/t/screening-interest-in-a-unified-vector-raster-package-akin-to-r-terra/121613)

<div class="topic-metadata">

**Author:** [@souma](https://discourse.julialang.org/u/souma)\
**Replies:** 27\
**Last updated:** [October 26, 2024, 1:36pm UTC](https://discourse.julialang.org/t/screening-interest-in-a-unified-vector-raster-package-akin-to-r-terra/121613 "2024-10-26T13:36:33Z")

</div>

Hello all, I haven’t been active in Discourse but I’ve been working with Julia for scientific computing for quite a few years at this point. I want to know what the interest is in a JuliaGeo project/effort to harmonize…

---

## [Is there a way to use non-constant mass matrix depended from u?](https://discourse.julialang.org/t/is-there-a-way-to-use-non-constant-mass-matrix-depended-from-u/121787)

<div class="topic-metadata">

**Author:** [@garazha-ilya](https://discourse.julialang.org/u/garazha-ilya)\
**Replies:** 0\
**Last updated:** [October 26, 2024, 1:32pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-use-non-constant-mass-matrix-depended-from-u/121787 "2024-10-26T13:32:29Z")

</div>

Hello! The DifferentialEquations.jl documentation says that: Non-constant mass matrices are not directly supported: users are advised to transform their problem through substitution to a DAE with constant mass matric…

---

## [Multiple Julia processes while using Modules](https://discourse.julialang.org/t/multiple-julia-processes-while-using-modules/75071)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 6\
**Last updated:** [October 26, 2024, 9:32am UTC](https://discourse.julialang.org/t/multiple-julia-processes-while-using-modules/75071 "2024-10-26T09:32:10Z")

</div>

Hi Following my discussion from the below thread, I have been trying out 2 approaches to evaluate Julia project organisation approaches. Creating files as modules and “using” them in other files Creating them as ind…

---

## [Best practise: organising code in Julia](https://discourse.julialang.org/t/best-practise-organising-code-in-julia/74362)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 11\
**Last updated:** [October 26, 2024, 9:13am UTC](https://discourse.julialang.org/t/best-practise-organising-code-in-julia/74362 "2024-10-26T09:13:55Z")

</div>

Hi A newbie here, from OOP background. I am looking to put together a project which will: Download data from Internet Do some manipulations on the downloaded data Do some analysis on the downloaded data Please note t…

---

## [What is a good design for a settable global with a known type?](https://discourse.julialang.org/t/what-is-a-good-design-for-a-settable-global-with-a-known-type/121770)

<div class="topic-metadata">

**Author:** [@jakobjpeters](https://discourse.julialang.org/u/jakobjpeters)\
**Replies:** 4\
**Last updated:** [October 26, 2024, 8:49am UTC](https://discourse.julialang.org/t/what-is-a-good-design-for-a-settable-global-with-a-known-type/121770 "2024-10-26T08:49:45Z")

</div>

In a package, I have a const s = "" that is used in a couple of functions. One of these functions doesn’t have a way for a user to specify a different string to use instead. What is a good way to make the value settable? …

---

## [Is VSCode \`@profview\` broken on 1.11?](https://discourse.julialang.org/t/is-vscode-profview-broken-on-1-11/121630)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 4\
**Last updated:** [October 26, 2024, 8:45am UTC](https://discourse.julialang.org/t/is-vscode-profview-broken-on-1-11/121630 "2024-10-26T08:45:42Z")

</div>

When I run the profiling code from this example in VSCode with Julia 1.11, the flame graph is empty. With Julia 1.10 it displays the usual way. function profile\_test(n) for i = 1:n A = randn(100,100,20) …

---

## [Allocations with StaticArrays and \`+=\` in Julia \`v1.11\`](https://discourse.julialang.org/t/allocations-with-staticarrays-and-in-julia-v1-11/121578)

<div class="topic-metadata">

**Author:** [@kaipartmann](https://discourse.julialang.org/u/kaipartmann)\
**Replies:** 6\
**Last updated:** [October 26, 2024, 7:54am UTC](https://discourse.julialang.org/t/allocations-with-staticarrays-and-in-julia-v1-11/121578 "2024-10-26T07:54:27Z")

</div>

Hello everyone, I am the main author of the package Peridynamics.jl and recently changed to Julia v1.11. With the new Julia version, a significant increase in the simulation time can be found when using a certain mater…

---

## [Print vs @printf](https://discourse.julialang.org/t/print-vs-printf/121272)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 6\
**Last updated:** [October 26, 2024, 7:51am UTC](https://discourse.julialang.org/t/print-vs-printf/121272 "2024-10-26T07:51:40Z")

</div>

Hello, Is it possible to write the following program using print, round and digits instead of using @printf? using Printf # needed in order to use @printf function tickets() print("Price of reserved ticket? ") rP…

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

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