# Latest

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

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

**Page:** 88

---

## [Large allocations with MTK event](https://discourse.julialang.org/t/large-allocations-with-mtk-event/133680)

<div class="topic-metadata">

**Author:** [@klinders](https://discourse.julialang.org/u/klinders)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 11:35pm UTC](https://discourse.julialang.org/t/large-allocations-with-mtk-event/133680 "2025-11-05T23:35:22Z")

</div>

Dear all, Recently, you helped me get events working in MTK. Thank you for all the help! Continuing on the topic, I ran into a performance issue with events. I have the following code to measure the time and allocation…

---

## [Fully Unique Combinations from Multiple Arrays](https://discourse.julialang.org/t/fully-unique-combinations-from-multiple-arrays/133626)

<div class="topic-metadata">

**Author:** [@wes648](https://discourse.julialang.org/u/wes648)\
**Replies:** 15\
**Last updated:** [November 5, 2025, 5:57pm UTC](https://discourse.julialang.org/t/fully-unique-combinations-from-multiple-arrays/133626 "2025-11-05T17:57:19Z")

</div>

Hello! I have a model with n terms and the ability to remove k of them. However each of the k removal options can only act on an arbitrary list of model terms. I want a memory-efficient way to generate every unique comb…

---

## [Regex interpolation](https://discourse.julialang.org/t/regex-interpolation/133683)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 5:42pm UTC](https://discourse.julialang.org/t/regex-interpolation/133683 "2025-11-05T17:42:32Z")

</div>

I would like to match a string exactly (using word boundaries) against an interpolated Regex. Here’s what I have but the output looks wrong to me. Am I doing something wrong? julia\> k="t2" "t2" julia\> r = Regex("\\b$(…

---

## [\[ANN\] IJulia 1.30.0](https://discourse.julialang.org/t/ann-ijulia-1-30-0/131811)

<div class="topic-metadata">

**Author:** [@JamesNZ](https://discourse.julialang.org/u/JamesNZ)\
**Replies:** 4\
**Last updated:** [November 5, 2025, 5:25pm UTC](https://discourse.julialang.org/t/ann-ijulia-1-30-0/131811 "2025-11-05T17:25:37Z")

</div>

Salutations \\o IJulia.jl has been around forever, but v1.30 was just been released and it’s quite a big one so I felt it deserves an announcement post. The main change in this version is that the internals have been co…

---

## [Regression in REPL file path completion in 1.12?](https://discourse.julialang.org/t/regression-in-repl-file-path-completion-in-1-12/133573)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 4\
**Last updated:** [November 5, 2025, 5:01pm UTC](https://discourse.julialang.org/t/regression-in-repl-file-path-completion-in-1-12/133573 "2025-11-05T17:01:16Z")

</div>

In versions of Julia up to 1.11, tab completion of file paths would work from anywhere in the line, e.g. hitting \<tab\> in the middle of a path like julia\> run\_something("input\_files/f\<tab\>/bar.toml"; some\_kwarg=true) w…

---

## [Figure dashboard with Bonito and WGLMakie](https://discourse.julialang.org/t/figure-dashboard-with-bonito-and-wglmakie/133387)

<div class="topic-metadata">

**Author:** [@gdestouet](https://discourse.julialang.org/u/gdestouet)\
**Replies:** 4\
**Last updated:** [November 5, 2025, 1:37pm UTC](https://discourse.julialang.org/t/figure-dashboard-with-bonito-and-wglmakie/133387 "2025-11-05T13:37:56Z")

</div>

Hello everyone, I am currently trying to set up a dashboard of figures using the following code using Bonito using WGLMakie all\_figs = Dict() function newfig(title) fig = Figure() if title in keys(all\_figs) all…

---

## [Assignment and named tuples](https://discourse.julialang.org/t/assignment-and-named-tuples/133674)

<div class="topic-metadata">

**Author:** [@rokke](https://discourse.julialang.org/u/rokke)\
**Replies:** 5\
**Last updated:** [November 5, 2025, 12:19pm UTC](https://discourse.julialang.org/t/assignment-and-named-tuples/133674 "2025-11-05T12:19:22Z")

</div>

I love the (a=4) syntax which both assigns a variable and returns its value, for example: vector = \[(a=1+2+3)+4+5, a+4+5\] there is also a very similar syntax used in named tuples, (a=4,) which creates a tuple with a na…

---

## [Dagger.jl mutable data on different workers](https://discourse.julialang.org/t/dagger-jl-mutable-data-on-different-workers/133676)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 0\
**Last updated:** [November 5, 2025, 11:31am UTC](https://discourse.julialang.org/t/dagger-jl-mutable-data-on-different-workers/133676 "2025-11-05T11:31:54Z")

</div>

Hello people, I am new to Dagger and I have a beginner question. I am planning to create a bunch (lets say 10) of instances of a problem. Each instance should be allocated on a separate worker - Each instance should f…

---

## [Terminate simulation on event using ModelingToolkit](https://discourse.julialang.org/t/terminate-simulation-on-event-using-modelingtoolkit/133243)

<div class="topic-metadata">

**Author:** [@klinders](https://discourse.julialang.org/u/klinders)\
**Replies:** 4\
**Last updated:** [November 5, 2025, 10:57am UTC](https://discourse.julialang.org/t/terminate-simulation-on-event-using-modelingtoolkit/133243 "2025-11-05T10:57:05Z")

</div>

Hi all, First of all, thank you all for your immense efforts on Julia and ModelingToolkit. I’ve been using it for over 2 years and I keep being impressed with the power and capabilities. I’m trying to terminate an MTK …

---

## [Are rand(Float32) really uniform in \[0,1)?](https://discourse.julialang.org/t/are-rand-float32-really-uniform-in-0-1/133585)

<div class="topic-metadata">

**Author:** [@FattiMei](https://discourse.julialang.org/u/FattiMei)\
**Replies:** 29\
**Last updated:** [November 5, 2025, 9:15am UTC](https://discourse.julialang.org/t/are-rand-float32-really-uniform-in-0-1/133585 "2025-11-05T09:15:18Z")

</div>

Hello, this is my first post. I started tinkering with Julia and I wanted to understand more how random floating point numbers are generated. I will usually call rand(Float32) and be happy. I make the following statemen…

---

## [Column of Pretty Tables tables and a plot to a png file](https://discourse.julialang.org/t/column-of-pretty-tables-tables-and-a-plot-to-a-png-file/133577)

<div class="topic-metadata">

**Author:** [@Arby111](https://discourse.julialang.org/u/Arby111)\
**Replies:** 8\
**Last updated:** [November 4, 2025, 7:04pm UTC](https://discourse.julialang.org/t/column-of-pretty-tables-tables-and-a-plot-to-a-png-file/133577 "2025-11-04T19:04:13Z")

</div>

Hello, Does anyone know how to write a column of, say, three small Pretty Tables tables followed by a plot to a png file with mankie.jl or with some other tool? Thanks

---

## [Trouble using ParametricOptInterface when a parameter appears inside a min() expression in JuMP](https://discourse.julialang.org/t/trouble-using-parametricoptinterface-when-a-parameter-appears-inside-a-min-expression-in-jump/133661)

<div class="topic-metadata">

**Author:** [@leo.ch.97](https://discourse.julialang.org/u/leo.ch.97)\
**Replies:** 2\
**Last updated:** [November 4, 2025, 7:03pm UTC](https://discourse.julialang.org/t/trouble-using-parametricoptinterface-when-a-parameter-appears-inside-a-min-expression-in-jump/133661 "2025-11-04T19:03:27Z")

</div>

Hi everyone! I’m trying to extend a large (mixed-integer) linear model to handle Parameters, using the ParametricOptInterface.jl package. However, I’m running into an issue when a parameter is used inside a min() funct…

---

## [Boundary Value Problems in ModelingToolkit](https://discourse.julialang.org/t/boundary-value-problems-in-modelingtoolkit/133491)

<div class="topic-metadata">

**Author:** [@bradyelster](https://discourse.julialang.org/u/bradyelster)\
**Replies:** 5\
**Last updated:** [November 4, 2025, 6:45pm UTC](https://discourse.julialang.org/t/boundary-value-problems-in-modelingtoolkit/133491 "2025-11-04T18:45:43Z")

</div>

Is it currently possible to symbolically setup and then numerically solve boundary-value problems using ModelingToolkit? This issue tells me this is possible through the dynamic optimization interface but I’m not sure ho…

---

## [Q: No SubArray type required for passing partial multidimensional CuArrays?](https://discourse.julialang.org/t/q-no-subarray-type-required-for-passing-partial-multidimensional-cuarrays/133525)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 4\
**Last updated:** [November 4, 2025, 6:31pm UTC](https://discourse.julialang.org/t/q-no-subarray-type-required-for-passing-partial-multidimensional-cuarrays/133525 "2025-11-04T18:31:48Z")

</div>

Hello, To pass part of a multidimensional array in Julia on the CPU on has to use the SubArray type in the function arguments. This does not seem to be the case for Julia on the GPU. Excerpted from the MWE below: …

---

## [Computing Hessian of the Langrangian efficiently with DI.jl](https://discourse.julialang.org/t/computing-hessian-of-the-langrangian-efficiently-with-di-jl/133462)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 15\
**Last updated:** [November 4, 2025, 5:16pm UTC](https://discourse.julialang.org/t/computing-hessian-of-the-langrangian-efficiently-with-di-jl/133462 "2025-11-04T17:16:42Z")

</div>

Hello, The new MOI.VectorNonlinearOracle support providing the Hessian of the Langrangian function, defined as, according to MOI.jl doc: \\sum\_i \\mu\_i \\nabla^2 f\_i(\\mathbf{x}) but the Langrangian typically also includ…

---

## [Minimization of degenerate eigenvalue of sparse matrix](https://discourse.julialang.org/t/minimization-of-degenerate-eigenvalue-of-sparse-matrix/133615)

<div class="topic-metadata">

**Author:** [@mxhbl](https://discourse.julialang.org/u/mxhbl)\
**Replies:** 12\
**Last updated:** [November 4, 2025, 4:30pm UTC](https://discourse.julialang.org/t/minimization-of-degenerate-eigenvalue-of-sparse-matrix/133615 "2025-11-04T16:30:17Z")

</div>

Hi, I have a tricky optimization problem where I need to minimize a specific eigenvalue of a matrix M(\\theta) that depends continuously on a set of parameters \\theta. The problem is that the eigenvalue is usually degene…

---

## [Difficulty using Submodels in Turing](https://discourse.julialang.org/t/difficulty-using-submodels-in-turing/133634)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 4\
**Last updated:** [November 4, 2025, 2:48pm UTC](https://discourse.julialang.org/t/difficulty-using-submodels-in-turing/133634 "2025-11-04T14:48:33Z")

</div>

Hi, I am trying to use Submodels as described in Submodels – Turing.jl. However I cannot figure out how to get it to work. I posted a deliberately simplified reproducable example below, and the error I was getting below …

---

## [Can I define a custom IO wrapper type that works with all IO functions like print?](https://discourse.julialang.org/t/can-i-define-a-custom-io-wrapper-type-that-works-with-all-io-functions-like-print/133652)

<div class="topic-metadata">

**Author:** [@BYH-1](https://discourse.julialang.org/u/BYH-1)\
**Replies:** 4\
**Last updated:** [November 4, 2025, 2:29pm UTC](https://discourse.julialang.org/t/can-i-define-a-custom-io-wrapper-type-that-works-with-all-io-functions-like-print/133652 "2025-11-04T14:29:53Z")

</div>

I’d like to define a new type that wraps an existing IO object, for example: struct MyIOWrapper \<: IO inner::IO end Base.write(io::MyIOWrapper, x) = # custom write logic here #Base.unsafe\_write is also define…

---

## [\[Idea/Discussion\] A Linter to Fix LLM-Induced Pythonisms in Julia Code – Does it make sense?](https://discourse.julialang.org/t/idea-discussion-a-linter-to-fix-llm-induced-pythonisms-in-julia-code-does-it-make-sense/133653)

<div class="topic-metadata">

**Author:** [@Aoxo\_MoxoA](https://discourse.julialang.org/u/Aoxo_MoxoA)\
**Replies:** 0\
**Last updated:** [November 4, 2025, 1:43pm UTC](https://discourse.julialang.org/t/idea-discussion-a-linter-to-fix-llm-induced-pythonisms-in-julia-code-does-it-make-sense/133653 "2025-11-04T13:43:38Z")

</div>

:light\_bulb: Title: \[Idea/Discussion\] A Linter to Fix LLM-Induced Pythonisms in Julia Code – Does it make sense? Hello Julia Community, I’m working on a small, strategic Open Source project and would appreciate your val…

---

## [Defining a new function produces a warning in Revise (1.12)](https://discourse.julialang.org/t/defining-a-new-function-produces-a-warning-in-revise-1-12/133635)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 1\
**Last updated:** [November 4, 2025, 10:17am UTC](https://discourse.julialang.org/t/defining-a-new-function-produces-a-warning-in-revise-1-12/133635 "2025-11-04T10:17:29Z")

</div>

I recently upgraded from Julia 1.11 to 1.12.1. I’m writing a program and have Revise in startup.jl. I write a new function permcode, export it, and call it to test if it works right. I get this warning: julia\> permcode(…

---

## [An HDR PIxel Type](https://discourse.julialang.org/t/an-hdr-pixel-type/133406)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 5\
**Last updated:** [November 4, 2025, 10:11am UTC](https://discourse.julialang.org/t/an-hdr-pixel-type/133406 "2025-11-04T10:11:16Z")

</div>

This is an implementation of a RGB/XYZ pixel format commonly used to store HDR lumiance maps. It falls somewhere between visualization and modeling & simulation in subject area, and so I am posting it here, in the hope o…

---

## [Can't get the example dualization to work](https://discourse.julialang.org/t/cant-get-the-example-dualization-to-work/129478)

<div class="topic-metadata">

**Author:** [@brandon-lee-17](https://discourse.julialang.org/u/brandon-lee-17)\
**Replies:** 5\
**Last updated:** [November 4, 2025, 7:07am UTC](https://discourse.julialang.org/t/cant-get-the-example-dualization-to-work/129478 "2025-11-04T07:07:27Z")

</div>

I can’t seem to get the first motivating example in Dualization.jl to work (at https://jump.dev/Dualization.jl/dev/examples/) using JuMP, Dualization model = Model() @variable(model, x) @variable(model, y) @variable(mod…

---

## [Inferring Parametric Types that aren't the last one](https://discourse.julialang.org/t/inferring-parametric-types-that-arent-the-last-one/133629)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 2\
**Last updated:** [November 4, 2025, 2:04am UTC](https://discourse.julialang.org/t/inferring-parametric-types-that-arent-the-last-one/133629 "2025-11-04T02:04:38Z")

</div>

I apologize in advance for the basic question. I’m trying to write an outer constructor for the following MWE that infers the numeric type T from the arguments. The final constructor fails, because you’re only allowed to…

---

## [Using neovim 0.11 native LSP API to set up julials](https://discourse.julialang.org/t/using-neovim-0-11-native-lsp-api-to-set-up-julials/133632)

<div class="topic-metadata">

**Author:** [@ghost\_nation](https://discourse.julialang.org/u/ghost_nation)\
**Replies:** 0\
**Last updated:** [November 4, 2025, 1:10am UTC](https://discourse.julialang.org/t/using-neovim-0-11-native-lsp-api-to-set-up-julials/133632 "2025-11-04T01:10:51Z")

</div>

Hello all, I am attempting to set up the julials in my neovim configuration but I am not able to access the lsp so far… I have been reading through the julials docs and came across this config: require'lspconfig'.julia…

---

## [Memory kills this code](https://discourse.julialang.org/t/memory-kills-this-code/133583)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 5\
**Last updated:** [November 3, 2025, 9:33pm UTC](https://discourse.julialang.org/t/memory-kills-this-code/133583 "2025-11-03T21:33:45Z")

</div>

This code is giving accurate plot but needs too much memory and is slow. I have been working since few months to get 3D volume plot of this Astrophysical data linked here. You can download this data by clicking on Downlo…

---

## [Efficient lookup of UInt indices in large GPU arrays](https://discourse.julialang.org/t/efficient-lookup-of-uint-indices-in-large-gpu-arrays/133630)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 0\
**Last updated:** [November 3, 2025, 9:09pm UTC](https://discourse.julialang.org/t/efficient-lookup-of-uint-indices-in-large-gpu-arrays/133630 "2025-11-03T21:09:23Z")

</div>

Hi all, I have a GPU kernel where the main bottleneck is finding the index of an unsigned integer in a large constant array (lll\_basis in the code below). Typical array sizes are around \\sim 10^7, but I am hoping to wo…

---

## [A question about redefining a function in Julia](https://discourse.julialang.org/t/a-question-about-redefining-a-function-in-julia/133579)

<div class="topic-metadata">

**Author:** [@quantum2025](https://discourse.julialang.org/u/quantum2025)\
**Replies:** 37\
**Last updated:** [November 3, 2025, 5:51pm UTC](https://discourse.julialang.org/t/a-question-about-redefining-a-function-in-julia/133579 "2025-11-03T17:51:42Z")

</div>

Hello. I just tested the following small code on Julia, and found that the value g() is changed after redefining the function f, but c is unchanged. I was wondering the reason behind this difference, and how to keep g() …

---

## [Speeding up Ewald summation](https://discourse.julialang.org/t/speeding-up-ewald-summation/80830)

<div class="topic-metadata">

**Author:** [@dkonstan](https://discourse.julialang.org/u/dkonstan)\
**Replies:** 15\
**Last updated:** [November 3, 2025, 5:41pm UTC](https://discourse.julialang.org/t/speeding-up-ewald-summation/80830 "2025-11-03T17:41:41Z")

</div>

Hi Julia! I am writing a small molecular dynamics engine in Julia to teach myself the language and I noticed that 67% of the time spent running the following Ewald summation function (to calculate coulomb energy of an i…

---

## [Electrostatics in Julia](https://discourse.julialang.org/t/electrostatics-in-julia/41633)

<div class="topic-metadata">

**Author:** [@jarvist](https://discourse.julialang.org/u/jarvist)\
**Replies:** 32\
**Last updated:** [November 3, 2025, 5:38pm UTC](https://discourse.julialang.org/t/electrostatics-in-julia/41633 "2025-11-03T17:38:40Z")

</div>

Does anyone know of Julia libraries implementing electrostatic summations in Julia? (e.g. Ewald, Particle Mesh Ewald, Fast Multipole Method…) I haven’t been able to find much by googling: A fairly complex bio orienta…

---

## [Requesting folks to try the latest master of JuliaCall (calling Julia from R)](https://discourse.julialang.org/t/requesting-folks-to-try-the-latest-master-of-juliacall-calling-julia-from-r/133519)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 4:59pm UTC](https://discourse.julialang.org/t/requesting-folks-to-try-the-latest-master-of-juliacall-calling-julia-from-r/133519 "2025-11-03T16:59:38Z")

</div>

For a while we had issues with libunwind clashing in R and Julia, and it was a problem for JuliaCall. There was a PR (libunwind workaround by sbfnk · Pull Request #265 · JuliaInterop/JuliaCall · GitHub) submitted that I…

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

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