# Latest

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

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

**Page:** 143

---

## [How to plot a sympy.jl piecewise function?](https://discourse.julialang.org/t/how-to-plot-a-sympy-jl-piecewise-function/130310)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 11\
**Last updated:** [July 1, 2025, 12:34am UTC](https://discourse.julialang.org/t/how-to-plot-a-sympy-jl-piecewise-function/130310 "2025-07-01T00:34:09Z")

</div>

Hello, good afternoon. Im trying to plot a piecewise function using sympy.jl and plots.jl withou success. May someone help please? let @syms y C # Define os pontos do gráfico. Eles são necessários # para encontrar a…

---

## [Let x = 1 # ParseError](https://discourse.julialang.org/t/let-x-1-parseerror/130050)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [June 20, 2025, 6:36am UTC](https://discourse.julialang.org/t/let-x-1-parseerror/130050 "2025-06-20T06:36:46Z")

</div>

I don’t know what’s going wrong here. PS K:\\uc24\> julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for…

---

## [\[ANN\] ColorVintner—utility to view plots of Colorbrewer palettes](https://discourse.julialang.org/t/ann-colorvintner-utility-to-view-plots-of-colorbrewer-palettes/130354)

<div class="topic-metadata">

**Author:** [@technocrat](https://discourse.julialang.org/u/technocrat)\
**Replies:** 0\
**Last updated:** [June 30, 2025, 11:49pm UTC](https://discourse.julialang.org/t/ann-colorvintner-utility-to-view-plots-of-colorbrewer-palettes/130354 "2025-06-30T23:49:58Z")

</div>

ColorVintner A Julia package for exploring and visualizing ColorBrewer color schemes using Makie. Features Comprehensive Color Scheme Access: Access to all ColorBrewer sequential, diverging, and qualitative color schem…

---

## [Gurobi's Root relaxation objective in MIP Logging is Not a natural LP relaxation one](https://discourse.julialang.org/t/gurobis-root-relaxation-objective-in-mip-logging-is-not-a-natural-lp-relaxation-one/130337)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [June 30, 2025, 10:57pm UTC](https://discourse.julialang.org/t/gurobis-root-relaxation-objective-in-mip-logging-is-not-a-natural-lp-relaxation-one/130337 "2025-06-30T22:57:11Z")

</div>

I’m not sure whether this is reasonable, but it is somewhat misleading. Compare the 2 lines where I draw 3 orange balls. julia\> import JuMP, Gurobi; GRB\_ENV = Gurobi.Env(); Set parameter Username Set parameter LicenseI…

---

## [Julia v1.10.10 has been released](https://discourse.julialang.org/t/julia-v1-10-10-has-been-released/130351)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [June 30, 2025, 10:41pm UTC](https://discourse.julialang.org/t/julia-v1-10-10-has-been-released/130351 "2025-06-30T22:41:25Z")

</div>

Julia version 1.10.10, the tenth patch release in the 1.10 long-term support (LTS) series of releases, is now available. Binaries are available via JuliaUp and at https://julialang.org/downloads/ for macOS (Intel and M-s…

---

## [Advice to a student. Should I sacrifice advanced python for julia?](https://discourse.julialang.org/t/advice-to-a-student-should-i-sacrifice-advanced-python-for-julia/130309)

<div class="topic-metadata">

**Author:** [@VinceNeede](https://discourse.julialang.org/u/VinceNeede)\
**Replies:** 9\
**Last updated:** [June 30, 2025, 9:59pm UTC](https://discourse.julialang.org/t/advice-to-a-student-should-i-sacrifice-advanced-python-for-julia/130309 "2025-06-30T21:59:18Z")

</div>

Hi everyone, I’m currently preparing for a Machine Learning exam. While the course covers frameworks like numba, pycuda, and scikit-learn in Python, there’s no strict language requirement for assignments. I’m personall…

---

## [Zero-overhead numpy array with juliacall](https://discourse.julialang.org/t/zero-overhead-numpy-array-with-juliacall/130335)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 7\
**Last updated:** [June 30, 2025, 8:51pm UTC](https://discourse.julialang.org/t/zero-overhead-numpy-array-with-juliacall/130335 "2025-06-30T20:51:32Z")

</div>

I want to expose a Julia package to Python users via juliacall. The function in the Julia code returns a 2D array. How can this be converted to a 2D numpy array with minimal overhead, e.g. without the cost of converting …

---

## [Returning module from a macro: why do we need :toplevel?](https://discourse.julialang.org/t/returning-module-from-a-macro-why-do-we-need-toplevel/130346)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 0\
**Last updated:** [June 30, 2025, 7:45pm UTC](https://discourse.julialang.org/t/returning-module-from-a-macro-why-do-we-need-toplevel/130346 "2025-06-30T19:45:18Z")

</div>

This may have worked in the early days, and as claimed here worked in Julia 1.4: macro mymodule(name) modname = esc(name) return :(module $modname end) end @mymodule MyMod But then it didn’t work in 1.5, and do…

---

## [Relation between KernelAbstractions and Adapt](https://discourse.julialang.org/t/relation-between-kernelabstractions-and-adapt/130326)

<div class="topic-metadata">

**Author:** [@bmxam](https://discourse.julialang.org/u/bmxam)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 7:28pm UTC](https://discourse.julialang.org/t/relation-between-kernelabstractions-and-adapt/130326 "2025-06-30T19:28:17Z")

</div>

Hi everyone, I’m trying to move some operations of an existing package on GPU using KernelAbstractions. Since my package defines custom structs, I had to Adapt them, specializing adapt\_structure. Everything works fine …

---

## [Cannot manage to use CUDA.atomic\_add!](https://discourse.julialang.org/t/cannot-manage-to-use-cuda-atomic-add/130328)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 4\
**Last updated:** [June 30, 2025, 7:24pm UTC](https://discourse.julialang.org/t/cannot-manage-to-use-cuda-atomic-add/130328 "2025-06-30T19:24:40Z")

</div>

Hello, I want to place particles into a 10x10 grid. To do this, I would like to use CUDA.atomic\_add!() to count how many particles land in each cell. Here is a minimal example: using CUDA function kernel\_test\_atomicad…

---

## [Getting around the strict aliasing rule in Julia](https://discourse.julialang.org/t/getting-around-the-strict-aliasing-rule-in-julia/130140)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 6:09pm UTC](https://discourse.julialang.org/t/getting-around-the-strict-aliasing-rule-in-julia/130140 "2025-06-30T18:09:19Z")

</div>

I am trying to better understand Julia’s equivalent of the strict aliasing rule from C. As background I would like to implement various decoding algorithms in Julia. Looking at the LZ4 C code, they are careful to use me…

---

## [How to use Lux's \`apply\` function?](https://discourse.julialang.org/t/how-to-use-luxs-apply-function/130339)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [June 30, 2025, 5:01pm UTC](https://discourse.julialang.org/t/how-to-use-luxs-apply-function/130339 "2025-06-30T17:01:08Z")

</div>

I am trying to get Lux to work, but am stumbling at a relatively early stage of the tutorials. I am trying to use a combination of the quickstart and getting started pages (Getting Started | Lux.jl Docs, Getting Started …

---

## [Shuffle columns of a matrix](https://discourse.julialang.org/t/shuffle-columns-of-a-matrix/130334)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 8\
**Last updated:** [June 30, 2025, 4:36pm UTC](https://discourse.julialang.org/t/shuffle-columns-of-a-matrix/130334 "2025-06-30T16:36:22Z")

</div>

I want to shuffle (randomly rearrange) the columns of a large matrix. As much in place as possible, as the matrix is large; otherwise a naive M\[:, randperm(size(M, 2))\] would do. I thought of modifying Random.shuffle!,…

---

## [Struggling to use Mmap with ZipArchives](https://discourse.julialang.org/t/struggling-to-use-mmap-with-ziparchives/129839)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 20\
**Last updated:** [June 30, 2025, 4:31pm UTC](https://discourse.julialang.org/t/struggling-to-use-mmap-with-ziparchives/129839 "2025-06-30T16:31:42Z")

</div>

I’m struggling to get ZipArchives.jl and Mmap.jl to work together in the way I want - basically just following the docs. MWE looks like this: using ZipArchives using Mmap io=open("simpletest.zip") mm=Mmap.mmap(io) q =…

---

## [Deploying an interactive WGLMakie.jl example on the internet](https://discourse.julialang.org/t/deploying-an-interactive-wglmakie-jl-example-on-the-internet/130313)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [June 30, 2025, 4:16pm UTC](https://discourse.julialang.org/t/deploying-an-interactive-wglmakie-jl-example-on-the-internet/130313 "2025-06-30T16:16:21Z")

</div>

I have a simple code (see OptimalFlightPaths.jl) that displays a plot with some sliders, and you can change the plot using the sliders. How can I display this on the internet in a safe way?

---

## [Solve linear system under Hermitian constraint](https://discourse.julialang.org/t/solve-linear-system-under-hermitian-constraint/130158)

<div class="topic-metadata">

**Author:** [@araujoms](https://discourse.julialang.org/u/araujoms)\
**Replies:** 25\
**Last updated:** [June 30, 2025, 1:26pm UTC](https://discourse.julialang.org/t/solve-linear-system-under-hermitian-constraint/130158 "2025-06-30T13:26:05Z")

</div>

Is there a nice way to solve the linear system XA = B under the constraint X = X^\\dagger? Here A and B are complex matrices that are not necessarily square. What I came up with is to solve YA = B and A^\\dagger Y = B^\\da…

---

## [Use of complex numbers in ModelingToolkit using @mtkmodel macro](https://discourse.julialang.org/t/use-of-complex-numbers-in-modelingtoolkit-using-mtkmodel-macro/130332)

<div class="topic-metadata">

**Author:** [@JaviJR](https://discourse.julialang.org/u/JaviJR)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 10:32am UTC](https://discourse.julialang.org/t/use-of-complex-numbers-in-modelingtoolkit-using-mtkmodel-macro/130332 "2025-06-30T10:32:18Z")

</div>

Hello, I’ve been running some tests with ModelingToolkit, and when trying to implement equations that use complex numbers using @mtkmodel macro, I haven’t been able to assign initial values to the system without it fail…

---

## [Stack via flatmap](https://discourse.julialang.org/t/stack-via-flatmap/130218)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [June 30, 2025, 10:10am UTC](https://discourse.julialang.org/t/stack-via-flatmap/130218 "2025-06-30T10:10:03Z")

</div>

using CSV, DataManipulation, StructArrays, Tables julia\> @p begin """ Year,CountryName,Population!!Estimate,Population!!MarginOfError,GDP!!Estimate,GDP!!MarginOfError 2025,China,14000000…

---

## [Unstack via group\_vg;map](https://discourse.julialang.org/t/unstack-via-group-vg-map/130247)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 10:06am UTC](https://discourse.julialang.org/t/unstack-via-group-vg-map/130247 "2025-06-30T10:06:17Z")

</div>

using DataManipulation, StructArrays, PrettyTables julia\> let d = StructArray(a=\[1,1,2,2\], b=\[:x, :y, :x, :y\], c=\[10, 20, 30, 40\]) pretty\_table(d) @p begin d group\_vg((…

---

## [Distributed and logging](https://discourse.julialang.org/t/distributed-and-logging/66503)

<div class="topic-metadata">

**Author:** [@torgo](https://discourse.julialang.org/u/torgo)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 9:51am UTC](https://discourse.julialang.org/t/distributed-and-logging/66503 "2025-06-30T09:51:53Z")

</div>

I am trying to add a timestamp to a logger using LoggingExtras. I would like that timestamp to be propagated across workers, but I haven’t been able to figure out how. Here’s my MWE: module TestParLogging using Di…

---

## [How to implement amplitude damping and phase damping noise in Yao.jl?](https://discourse.julialang.org/t/how-to-implement-amplitude-damping-and-phase-damping-noise-in-yao-jl/130123)

<div class="topic-metadata">

**Author:** [@google\_xu](https://discourse.julialang.org/u/google_xu)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 8:27am UTC](https://discourse.julialang.org/t/how-to-implement-amplitude-damping-and-phase-damping-noise-in-yao-jl/130123 "2025-06-30T08:27:49Z")

</div>

I’m new to Yao.jl and want to simulate quantum noise models, specifically amplitude damping and phase damping. However, I couldn’t find built-in support for these noise types in the official documentation. Could someone …

---

## [State of currying-PR](https://discourse.julialang.org/t/state-of-currying-pr/71885)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 18\
**Last updated:** [June 30, 2025, 7:44am UTC](https://discourse.julialang.org/t/state-of-currying-pr/71885 "2025-06-30T07:44:20Z")

</div>

I have found this PR from years ago: https://github.com/JuliaLang/julia/pull/24990 I would love this feature, and I am not alone. Does anyone have a status/summary on this? The discussion is too technical at several po…

---

## [PackageCompiler fails to create app for MadNLPGPU + ExaModels (CUDSS linear solver)](https://discourse.julialang.org/t/packagecompiler-fails-to-create-app-for-madnlpgpu-examodels-cudss-linear-solver/125998)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 11\
**Last updated:** [June 30, 2025, 7:26am UTC](https://discourse.julialang.org/t/packagecompiler-fails-to-create-app-for-madnlpgpu-examodels-cudss-linear-solver/125998 "2025-06-30T07:26:00Z")

</div>

I can not create “app” with PackageCompiler even for simplest GPU optimization with ExaModels+MadNLPGPU running cuDSS. I’ve made full MWE project with package to be built in attempt to help this to debug. Compiling does …

---

## [What is the intended use for \`Turing.returned(model)\`?](https://discourse.julialang.org/t/what-is-the-intended-use-for-turing-returned-model/130105)

<div class="topic-metadata">

**Author:** [@lunafazio](https://discourse.julialang.org/u/lunafazio)\
**Replies:** 4\
**Last updated:** [June 30, 2025, 7:16am UTC](https://discourse.julialang.org/t/what-is-the-intended-use-for-turing-returned-model/130105 "2025-06-30T07:16:24Z")

</div>

There are no examples in the documentation, but based on its description, Return a model wrapper indicating that it is a model over its return-values. I assumed that this would allow me to do something like chain = …

---

## [Gurobi's trial solution is numerically weird on a primitive CTPLN model](https://discourse.julialang.org/t/gurobis-trial-solution-is-numerically-weird-on-a-primitive-ctpln-model/130294)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 1\
**Last updated:** [June 29, 2025, 11:11pm UTC](https://discourse.julialang.org/t/gurobis-trial-solution-is-numerically-weird-on-a-primitive-ctpln-model/130294 "2025-06-29T23:11:27Z")

</div>

Although this might not necessarily be deemed a bug, it’s certainly a bit weird. Why? julia\> import JuMP, Gurobi; GRB\_ENV = Gurobi.Env(); Set parameter Username Set parameter LicenseID to value 2663413 Academic license …

---

## [Optim.jl : user defined Manifold, error in the definition of the retraction](https://discourse.julialang.org/t/optim-jl-user-defined-manifold-error-in-the-definition-of-the-retraction/130297)

<div class="topic-metadata">

**Author:** [@aitzkora](https://discourse.julialang.org/u/aitzkora)\
**Replies:** 2\
**Last updated:** [June 29, 2025, 8:49pm UTC](https://discourse.julialang.org/t/optim-jl-user-defined-manifold-error-in-the-definition-of-the-retraction/130297 "2025-06-29T20:49:42Z")

</div>

Hi, I try to optimize a simple quadratic function on a user-defined manifold (the hyperplan orthogonal to ones(n)) with the following code using Optim const c = ones(2) ./ sqrt(2) f(x) = 0.5 \* sum((x - c).^2) g!(g,x) =…

---

## [Why does LLVM like putting floating-point constants into RODATA so much? Is that suboptimal?](https://discourse.julialang.org/t/why-does-llvm-like-putting-floating-point-constants-into-rodata-so-much-is-that-suboptimal/130314)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [June 29, 2025, 8:36pm UTC](https://discourse.julialang.org/t/why-does-llvm-like-putting-floating-point-constants-into-rodata-so-much-is-that-suboptimal/130314 "2025-06-29T20:36:46Z")

</div>

It is almost impossible to avoid LLVM storing operands in floating-point operations into the data segment, RODATA, of the executable. For example, here the compiler converts 3 into Float64, storing the bytes into the da…

---

## [Get Turing's model predictions after optimization](https://discourse.julialang.org/t/get-turings-model-predictions-after-optimization/130275)

<div class="topic-metadata">

**Author:** [@khoffie](https://discourse.julialang.org/u/khoffie)\
**Replies:** 6\
**Last updated:** [June 29, 2025, 7:01pm UTC](https://discourse.julialang.org/t/get-turings-model-predictions-after-optimization/130275 "2025-06-29T19:01:03Z")

</div>

Hi, since Turing 0.35 generated\_quantities() is deprecated. So how do I now get my model’s predictions? Before 0.35 I did something like this function predict(mdl, mles) ## mdl is an instantiated Turing model pa…

---

## [Transition to TestItems from a semantic Test suite, but keeping the semantics](https://discourse.julialang.org/t/transition-to-testitems-from-a-semantic-test-suite-but-keeping-the-semantics/130299)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 10\
**Last updated:** [June 29, 2025, 6:43pm UTC](https://discourse.julialang.org/t/transition-to-testitems-from-a-semantic-test-suite-but-keeping-the-semantics/130299 "2025-06-29T18:43:48Z")

</div>

Inspired by some discussions on Slack, I am considering, to test how I could improve my current workflow to @testitems, since that would give a very nice interaction in VS Code. However, I feel, that my current test setu…

---

## [Extracting chains individual initial step size from Turing chain object saved (serialize) after run](https://discourse.julialang.org/t/extracting-chains-individual-initial-step-size-from-turing-chain-object-saved-serialize-after-run/130272)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 29, 2025, 8:21am UTC](https://discourse.julialang.org/t/extracting-chains-individual-initial-step-size-from-turing-chain-object-saved-serialize-after-run/130272 "2025-06-29T08:21:55Z")

</div>

Hello, I was wondering is there any way to extract individual step size for chains I run in parallel ? I tried summarize() but it just gives mean and sd value. Thank you

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

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