# Latest

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

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

**Page:** 304

---

## [Agents.jl Interactive Plot](https://discourse.julialang.org/t/agents-jl-interactive-plot/121111)

<div class="topic-metadata">

**Author:** [@Damiano](https://discourse.julialang.org/u/Damiano)\
**Replies:** 7\
**Last updated:** [October 10, 2024, 11:21am UTC](https://discourse.julialang.org/t/agents-jl-interactive-plot/121111 "2024-10-10T11:21:34Z")

</div>

Hi, I am trying to learn how to use the package Agents.jl. Even if I just started, I already like it a lot. I am following this explanation from the documentation for doing interactive plots. Everything seems to work …

---

## [Resolving method ambiguity with Union](https://discourse.julialang.org/t/resolving-method-ambiguity-with-union/121106)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 8\
**Last updated:** [October 10, 2024, 9:09am UTC](https://discourse.julialang.org/t/resolving-method-ambiguity-with-union/121106 "2024-10-10T09:09:13Z")

</div>

Suppose I am trying to define a hvcat for a user type, and after I deal with the first argument (which can be an Int, or a Tuple{Vararg{Int}), the methods share a lot of code. So it would be ideal for me to just branch o…

---

## [\[ANN\] NNParamsPrinter.jl - Quickly print the layers and weights of your Lux NNs](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094)

<div class="topic-metadata">

**Author:** [@onedeeper](https://discourse.julialang.org/u/onedeeper)\
**Replies:** 3\
**Last updated:** [October 10, 2024, 7:35am UTC](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094 "2024-10-10T07:35:54Z")

</div>

NNParamsPrinter.jl is a lightweight, simple printer of NN parameters. This is all it does. Please check the GitHub readme for usage. Why did I make this ? I wanted to quickly see the weights of a simple NN in a readabl…

---

## [Error when compiling linear integer programming problem](https://discourse.julialang.org/t/error-when-compiling-linear-integer-programming-problem/71121)

<div class="topic-metadata">

**Author:** [@jyscao](https://discourse.julialang.org/u/jyscao)\
**Replies:** 11\
**Last updated:** [October 10, 2024, 7:24am UTC](https://discourse.julialang.org/t/error-when-compiling-linear-integer-programming-problem/71121 "2024-10-10T07:24:25Z")

</div>

I’m trying to solve an optimization problem described in the following Stats SE question: https://stats.stackexchange.com/questions/544065/how-to-fit-data-to-a-discrete-linear-model Currently I’m using the COSMO.jl sol…

---

## [How to gracefully retire a package](https://discourse.julialang.org/t/how-to-gracefully-retire-a-package/121101)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 12\
**Last updated:** [October 10, 2024, 6:35am UTC](https://discourse.julialang.org/t/how-to-gracefully-retire-a-package/121101 "2024-10-10T06:35:55Z")

</div>

Julia 1.11 has made PushVectors.jl obsolete. I wonder what the best workflow is to retire it. I have read the previous threads on this, with various recommendations (eg 1, 2). I am still not sure how to proceed. Specif…

---

## [@nloops and @generated function](https://discourse.julialang.org/t/nloops-and-generated-function/121051)

<div class="topic-metadata">

**Author:** [@JM\_Beckers](https://discourse.julialang.org/u/JM_Beckers)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 4:33am UTC](https://discourse.julialang.org/t/nloops-and-generated-function/121051 "2024-10-10T04:33:15Z")

</div>

I know macros should only be used in very specific cases and I’m not an expert at all on the topic. Nevertheless I managed to make work a skeleton of my planned code (where actually the loop limits at each level are diff…

---

## [Can I put non-primitive geometries into a GeometrySet?](https://discourse.julialang.org/t/can-i-put-non-primitive-geometries-into-a-geometryset/121102)

<div class="topic-metadata">

**Author:** [@Jfschue](https://discourse.julialang.org/u/Jfschue)\
**Replies:** 8\
**Last updated:** [October 10, 2024, 12:46am UTC](https://discourse.julialang.org/t/can-i-put-non-primitive-geometries-into-a-geometryset/121102 "2024-10-10T00:46:25Z")

</div>

If I put a SimpleMesh geometry into a GeometrySet, I get a StackOverflowError: using Meshes # test using primitive geometries s1 = Meshes.Sphere((0, 0, 0), 1) s2 = Meshes.Sphere((1, 1, 1), 1) gs1 = GeometrySet(\[s1, s2\]…

---

## [Help with slow Turing.jl inference speeds for large number of observations](https://discourse.julialang.org/t/help-with-slow-turing-jl-inference-speeds-for-large-number-of-observations/119332)

<div class="topic-metadata">

**Author:** [@hbooth](https://discourse.julialang.org/u/hbooth)\
**Replies:** 3\
**Last updated:** [October 9, 2024, 10:06pm UTC](https://discourse.julialang.org/t/help-with-slow-turing-jl-inference-speeds-for-large-number-of-observations/119332 "2024-10-09T22:06:11Z")

</div>

Hi all, I am new to Turing.jl and bayesian inference in general. I have specified the following model: @model function switch\_model(r, m, n) hm ~ Uniform(1, 10) am ~ Uniform(0, 10) κm ~ Uniform(0, 1) Δ…

---

## [Remove units from sparse matrix](https://discourse.julialang.org/t/remove-units-from-sparse-matrix/121112)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 2\
**Last updated:** [October 9, 2024, 8:36pm UTC](https://discourse.julialang.org/t/remove-units-from-sparse-matrix/121112 "2024-10-09T20:36:34Z")

</div>

I have a sparse array of Quantities with Units from Unitful.jl . I would like to use the conjugate gradient method (cg) from IterativeSolvers.jl on it. However that is only defined for reals. And AbstractQuantity is not…

---

## [\[ANN\] A tutorial for jlrs](https://discourse.julialang.org/t/ann-a-tutorial-for-jlrs/119651)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 4\
**Last updated:** [October 9, 2024, 6:27pm UTC](https://discourse.julialang.org/t/ann-a-tutorial-for-jlrs/119651 "2024-10-09T18:27:54Z")

</div>

jlrs is a crate for the Rust programming language for interop between Rust and Julia. You can use it to embed Julia in Rust applications, and to generate interfaces to libraries written in Rust. This project has finally…

---

## [Streamplots added to Plots.jl?](https://discourse.julialang.org/t/streamplots-added-to-plots-jl/121116)

<div class="topic-metadata">

**Author:** [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 6:16pm UTC](https://discourse.julialang.org/t/streamplots-added-to-plots-jl/121116 "2024-10-09T18:16:47Z")

</div>

I found this thread from a few years ago on streamplots: Anyone know if this feature has since been added? No hate to makie, its a great library, just would prefer to use a single plotting library if possible.

---

## [What lowers to hvcat(::Int, ...)?](https://discourse.julialang.org/t/what-lowers-to-hvcat-int/121107)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [October 9, 2024, 3:37pm UTC](https://discourse.julialang.org/t/what-lowers-to-hvcat-int/121107 "2024-10-09T15:37:25Z")

</div>

I am curious what syntax lowers to hvcat(::Int, ...). Everything I tried lowers into the hvcat(::Tuple{Vararg{Int}}, ...) form. An example would be useful.

---

## [Flux has no Lecun Normalization weight init function?](https://discourse.julialang.org/t/flux-has-no-lecun-normalization-weight-init-function/121109)

<div class="topic-metadata">

**Author:** [@neoa](https://discourse.julialang.org/u/neoa)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 2:54pm UTC](https://discourse.julialang.org/t/flux-has-no-lecun-normalization-weight-init-function/121109 "2024-10-09T14:54:40Z")

</div>

I want to migrate from keras to Flux, but i found Flux has no Lecun Normalization init function?

---

## [Enzyme: Autodiff Functor which contains cache](https://discourse.julialang.org/t/enzyme-autodiff-functor-which-contains-cache/121105)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 2\
**Last updated:** [October 9, 2024, 1:41pm UTC](https://discourse.julialang.org/t/enzyme-autodiff-functor-which-contains-cache/121105 "2024-10-09T13:41:38Z")

</div>

Hello, I have a RHS of an ODE in the form of a Functor which includes some caches, which i am trying to make Enzym compatible. Heres an MWE of the problem using Pkg pkg"activate --temp" pkg"add Enzyme, ForwardDiff, Pre…

---

## [Regressions in Julia not getting caught by PkgEval](https://discourse.julialang.org/t/regressions-in-julia-not-getting-caught-by-pkgeval/121069)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 8\
**Last updated:** [October 9, 2024, 1:38pm UTC](https://discourse.julialang.org/t/regressions-in-julia-not-getting-caught-by-pkgeval/121069 "2024-10-09T13:38:41Z")

</div>

As happened before as well, the 1.11 Julia release has some regressions that break existing code – and not just any code, but registered packages. Some examples of what I personally encountered today when testing my pac…

---

## [SVD 2x slower than in Matlab and how to get best performance on Windows10](https://discourse.julialang.org/t/svd-2x-slower-than-in-matlab-and-how-to-get-best-performance-on-windows10/21645)

<div class="topic-metadata">

**Author:** [@Baicai\_Xiao](https://discourse.julialang.org/u/Baicai_Xiao)\
**Replies:** 20\
**Last updated:** [October 9, 2024, 12:22pm UTC](https://discourse.julialang.org/t/svd-2x-slower-than-in-matlab-and-how-to-get-best-performance-on-windows10/21645 "2024-10-09T12:22:04Z")

</div>

Hello , Recently, I found that julia svd is slower than the one in matlab. It has been discussed once here in https://github.com/JuliaLang/julia/issues/3521, but after reading this, I am still not quite sure what is exa…

---

## [Partially applied \`Iterators.filter\`](https://discourse.julialang.org/t/partially-applied-iterators-filter/121103)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 11:17am UTC](https://discourse.julialang.org/t/partially-applied-iterators-filter/121103 "2024-10-09T11:17:23Z")

</div>

Is there a reason that the partially applied Iterators.filter(f) does not exist while Base.filter(f) does exist? It seems that the implementation Iterators.filter(f::Function) = Base.Fix1(Iterators.filter, f) should b…

---

## [Interactively finding files for types and functions directly, in Core and Base](https://discourse.julialang.org/t/interactively-finding-files-for-types-and-functions-directly-in-core-and-base/121099)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 9:44am UTC](https://discourse.julialang.org/t/interactively-finding-files-for-types-and-functions-directly-in-core-and-base/121099 "2024-10-09T09:44:53Z")

</div>

Interactively finding a method’s file with which generally works well, except for Core. Finding where a type or a function is defined however is more indirect by going through the module, and the module definition’s file…

---

## [Exclude a specific package when using pkg.instantiate in an environment shared between two machines](https://discourse.julialang.org/t/exclude-a-specific-package-when-using-pkg-instantiate-in-an-environment-shared-between-two-machines/121098)

<div class="topic-metadata">

**Author:** [@PetrosStefanou](https://discourse.julialang.org/u/PetrosStefanou)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 9:41am UTC](https://discourse.julialang.org/t/exclude-a-specific-package-when-using-pkg-instantiate-in-an-environment-shared-between-two-machines/121098 "2024-10-09T09:41:22Z")

</div>

Hello everyone, I have some julia code that I run either on my local machine or on a remote cluster. Inside my project directory, I have created an environment with its Project.toml y Manifest.toml. To keep the two mach…

---

## [Issue at REPL with 1.11---am I doing something silly here?](https://discourse.julialang.org/t/issue-at-repl-with-1-11-am-i-doing-something-silly-here/121070)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 16\
**Last updated:** [October 9, 2024, 9:33am UTC](https://discourse.julialang.org/t/issue-at-repl-with-1-11-am-i-doing-something-silly-here/121070 "2024-10-09T09:33:58Z")

</div>

Hi all— I see that 1.11 is out and I’m super excited to use it and play with the new Memory type and stuff. I am sure this is just me doing something silly, but I am getting a lot of errors in the REPL before doing anyt…

---

## [Is Julia safe?](https://discourse.julialang.org/t/is-julia-safe/121006)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 12\
**Last updated:** [October 9, 2024, 7:33am UTC](https://discourse.julialang.org/t/is-julia-safe/121006 "2024-10-09T07:33:43Z")

</div>

Hello, Some programming languages ​​like Rust-Lang are secure. How about Julia? Thank you.

---

## [How to use Malt.jl and IOCapture.jl for evaluating expressions](https://discourse.julialang.org/t/how-to-use-malt-jl-and-iocapture-jl-for-evaluating-expressions/121045)

<div class="topic-metadata">

**Author:** [@Rene\_David\_Hernandez](https://discourse.julialang.org/u/Rene_David_Hernandez)\
**Replies:** 2\
**Last updated:** [October 9, 2024, 6:42am UTC](https://discourse.julialang.org/t/how-to-use-malt-jl-and-iocapture-jl-for-evaluating-expressions/121045 "2024-10-09T06:42:40Z")

</div>

I would like to use Malt.jl to evaluate expressions in a workspace separate from the main thread running Julia. So far I have not been able to find a way to use Malt.jl and capture with IOCapture the different outputs of…

---

## [Pattern for splitting the state vector over multiple objects](https://discourse.julialang.org/t/pattern-for-splitting-the-state-vector-over-multiple-objects/121072)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 0\
**Last updated:** [October 8, 2024, 11:28pm UTC](https://discourse.julialang.org/t/pattern-for-splitting-the-state-vector-over-multiple-objects/121072 "2024-10-08T23:28:31Z")

</div>

I’m writing a library that will be used to test ideas in immune cell population dynamics. A characteristic of this biology is that the population size, and hence the state vector length, can vary by orders of magnitude o…

---

## [Performance Tips for functions](https://discourse.julialang.org/t/performance-tips-for-functions/121030)

<div class="topic-metadata">

**Author:** [@luke98](https://discourse.julialang.org/u/luke98)\
**Replies:** 9\
**Last updated:** [October 9, 2024, 3:38am UTC](https://discourse.julialang.org/t/performance-tips-for-functions/121030 "2024-10-09T03:38:37Z")

</div>

Hi Everyone, I’m working on optimizing two functions, mplFun and marketEq, and I’m looking for advice on how to make them as efficient as possible. Below, I’ve included a simplified version of the code that allows these…

---

## [Readline() doesn't work on VS Code](https://discourse.julialang.org/t/readline-doesnt-work-on-vs-code/121032)

<div class="topic-metadata">

**Author:** [@uri](https://discourse.julialang.org/u/uri)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 11:22pm UTC](https://discourse.julialang.org/t/readline-doesnt-work-on-vs-code/121032 "2024-10-08T23:22:45Z")

</div>

When I run the following from VS Code it print a line asking for the degree, I enter it in the REPL but the program still waiting for an input function main() print("Give the degree : ") line = readline() deg = parse…

---

## [The box problem](https://discourse.julialang.org/t/the-box-problem/120794)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 10\
**Last updated:** [October 8, 2024, 10:43pm UTC](https://discourse.julialang.org/t/the-box-problem/120794 "2024-10-08T22:43:39Z")

</div>

I just read this article: and I am not arriving at the same conclusion. Here’s the quick and dirty code I came up with to test it: using StatsBase function row\_wise() boxes = zeros(3,5) for \_ in 1:2 b…

---

## [RationalVectorFitting.jl for rational approximation of complex-domain responses](https://discourse.julialang.org/t/rationalvectorfitting-jl-for-rational-approximation-of-complex-domain-responses/121071)

<div class="topic-metadata">

**Author:** [@pedrohnv](https://discourse.julialang.org/u/pedrohnv)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 10:34pm UTC](https://discourse.julialang.org/t/rationalvectorfitting-jl-for-rational-approximation-of-complex-domain-responses/121071 "2024-10-08T22:34:38Z")

</div>

Given a transfer function f(s) = y, the Vector Fitting algorithm tries to find a rational approximation f(s) \\approx \\sum\_{n=1}^N \\frac{r\_n}{s - a\_n} + d + s h where s is the complex frequency, r\_n are the complex res…

---

## [ChebyshevApprox.jl type error](https://discourse.julialang.org/t/chebyshevapprox-jl-type-error/121022)

<div class="topic-metadata">

**Author:** [@RuanCoelho](https://discourse.julialang.org/u/RuanCoelho)\
**Replies:** 7\
**Last updated:** [October 8, 2024, 9:30pm UTC](https://discourse.julialang.org/t/chebyshevapprox-jl-type-error/121022 "2024-10-08T21:30:57Z")

</div>

Hi there! First time here, so I’ll try to be clear and go straight to the point. I’m trying to use the ChebyshevApprox.jl package, specifically the chebyshev\_weights\_extrema() function. However, even when using the exam…

---

## [Large Numbers Make Lines Disappear in Makie](https://discourse.julialang.org/t/large-numbers-make-lines-disappear-in-makie/121026)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 6:45pm UTC](https://discourse.julialang.org/t/large-numbers-make-lines-disappear-in-makie/121026 "2024-10-08T18:45:30Z")

</div>

The following code: using CairoMakie xs = \[1,2,3,4\] ys = \[1,1,1e15,1\] fig = Figure() ax1 = Axis(fig\[1,1\], limits=(nothing, nothing)) ax2 = Axis(fig\[1,2\], limits=(nothing, (0,2))) lines!(ax1, xs, ys) lines!(ax2, xs, ys) …

---

## [Seemingly out-of-date code being run in test pane](https://discourse.julialang.org/t/seemingly-out-of-date-code-being-run-in-test-pane/121067)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 0\
**Last updated:** [October 8, 2024, 6:20pm UTC](https://discourse.julialang.org/t/seemingly-out-of-date-code-being-run-in-test-pane/121067 "2024-10-08T18:20:51Z")

</div>

This is an old issue, but I think maybe I see what’s causing it: I was seeing similar behavior, but I don’t think it’s taking a long time to save, it’s just that the order of events is not what you are expecting. I to…

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

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