# Latest

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

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

**Page:** 169

---

## [How to save a trained policy in SDDP.jl?](https://discourse.julialang.org/t/how-to-save-a-trained-policy-in-sddp-jl/128894)

<div class="topic-metadata">

**Author:** [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)\
**Replies:** 2\
**Last updated:** [May 11, 2025, 5:48pm UTC](https://discourse.julialang.org/t/how-to-save-a-trained-policy-in-sddp-jl/128894 "2025-05-11T17:48:37Z")

</div>

I am dealing with a multi-stage mixed-integer stochastic global supply chain optimization problem and want to solve it using the SDDiP algorithm using the SDDP.jl package in Julia. In this regard, I want to download the…

---

## [When the yvector is not uniform at each time point, there are problems when drawing the heatmap](https://discourse.julialang.org/t/when-the-yvector-is-not-uniform-at-each-time-point-there-are-problems-when-drawing-the-heatmap/128904)

<div class="topic-metadata">

**Author:** [@dk-zen](https://discourse.julialang.org/u/dk-zen)\
**Replies:** 3\
**Last updated:** [May 11, 2025, 3:08pm UTC](https://discourse.julialang.org/t/when-the-yvector-is-not-uniform-at-each-time-point-there-are-problems-when-drawing-the-heatmap/128904 "2025-05-11T15:08:00Z")

</div>

I used Makie to create a heatmap graph. The drawn graph has a lot of blank points. I think it might be caused by the fact that the altitude vector is different at each time point. Does anyone know how to deal with this? …

---

## [SLOW\_PROGRESS or NUMERICAL\_ERROR: a simple but nontrivial SDP example, solved with LP relaxation](https://discourse.julialang.org/t/slow-progress-or-numerical-error-a-simple-but-nontrivial-sdp-example-solved-with-lp-relaxation/127399)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 8\
**Last updated:** [May 11, 2025, 10:04am UTC](https://discourse.julialang.org/t/slow-progress-or-numerical-error-a-simple-but-nontrivial-sdp-example-solved-with-lp-relaxation/127399 "2025-05-11T10:04:38Z")

</div>

I wonder why mosek cannot solve this simple problem to optimality (it reports SLOW\_PROGRESS). x-ref \[docs\] improve the docstring for DUAL\_INFEASIBLE by odow · Pull Request #2701 · jump-dev/MathOptInterface.jl · GitHub i…

---

## [GLMakie Camera Controls vs Scene Controls](https://discourse.julialang.org/t/glmakie-camera-controls-vs-scene-controls/127754)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 1\
**Last updated:** [May 11, 2025, 6:44am UTC](https://discourse.julialang.org/t/glmakie-camera-controls-vs-scene-controls/127754 "2025-05-11T06:44:18Z")

</div>

I am trying to do a very simple thing - Create a Scene in GLMakie and then control it’s camera. using GLMakie: Scene, scatter!, Circle, display, text! s1 = Scene() scatter!(s1, (0, 0), marker = Circle, markersize = 200…

---

## [Calling convension, should Julia "preserve\_none"?](https://discourse.julialang.org/t/calling-convension-should-julia-preserve-none/128898)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [May 11, 2025, 1:32am UTC](https://discourse.julialang.org/t/calling-convension-should-julia-preserve-none/128898 "2025-05-11T01:32:27Z")

</div>

https://clang.llvm.org/docs/AttributeReference.html#preserve-none It seems to be low-hanging fruit to faster performance. What does Julia do currently? It seems to require C23 and “clang::preserve\_none”, and new opt-in…

---

## [Revise and OhMyREPL don't precompile when starting julia in VSCode terminal](https://discourse.julialang.org/t/revise-and-ohmyrepl-dont-precompile-when-starting-julia-in-vscode-terminal/128637)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 3\
**Last updated:** [May 10, 2025, 11:33pm UTC](https://discourse.julialang.org/t/revise-and-ohmyrepl-dont-precompile-when-starting-julia-in-vscode-terminal/128637 "2025-05-10T23:33:20Z")

</div>

I load Revise and OhMyREPL in my startup.jl file. When I start julia from a terminal this works fine. But just in the last couple of weeks when I start the Julia terminal in VSCode I get this error \[ Info: Precompiling …

---

## [Best way to train and evaluate SDDP with constraints including product of control and states variables?](https://discourse.julialang.org/t/best-way-to-train-and-evaluate-sddp-with-constraints-including-product-of-control-and-states-variables/128890)

<div class="topic-metadata">

**Author:** [@petr-a](https://discourse.julialang.org/u/petr-a)\
**Replies:** 1\
**Last updated:** [May 10, 2025, 11:27pm UTC](https://discourse.julialang.org/t/best-way-to-train-and-evaluate-sddp-with-constraints-including-product-of-control-and-states-variables/128890 "2025-05-10T23:27:30Z")

</div>

Hello! I’m solving a problem which is similar to the Milk producer example with the SDDP algorithm. This question is also related to my first question about SDDP and out-of-sample solutions. Here is my asset managemen…

---

## [NixOS + Julia](https://discourse.julialang.org/t/nixos-julia/128896)

<div class="topic-metadata">

**Author:** [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Replies:** 2\
**Last updated:** [May 10, 2025, 6:26pm UTC](https://discourse.julialang.org/t/nixos-julia/128896 "2025-05-10T18:26:56Z")

</div>

Does anyone have a good modern setup for NixOS + Julia? recently switched my linux distro over from pop\_os! and overall I like the declarative philosophy, and for 90% of things i can get it to “just work,” but Julia is a…

---

## [Turing.jl programmatically set number of clusters in a mixture model](https://discourse.julialang.org/t/turing-jl-programmatically-set-number-of-clusters-in-a-mixture-model/126170)

<div class="topic-metadata">

**Author:** [@apattyn](https://discourse.julialang.org/u/apattyn)\
**Replies:** 6\
**Last updated:** [May 10, 2025, 12:52pm UTC](https://discourse.julialang.org/t/turing-jl-programmatically-set-number-of-clusters-in-a-mixture-model/126170 "2025-05-10T12:52:05Z")

</div>

I am trying to model some data using a mixture model with Turing.jl, but I want to programmatically set the number of Gaussian in the mixture without having to edit the model. For example if I want ten Gaussians I don’t …

---

## [\[JuliaCon\] Housing is now available for purchase for JuliaCon 2025!](https://discourse.julialang.org/t/juliacon-housing-is-now-available-for-purchase-for-juliacon-2025/128889)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 0\
**Last updated:** [May 10, 2025, 8:57am UTC](https://discourse.julialang.org/t/juliacon-housing-is-now-available-for-purchase-for-juliacon-2025/128889 "2025-05-10T08:57:59Z")

</div>

We have reserved a limited number of apartments with University of Pittsburgh Housing at a highly discounted rate relative to nearby hotels. Please go to JuliaCon 2025 - Housing Request to register and purchase housing …

---

## [Compatibility issues running CYCLOPS-2.0 with modern Julia (from 1.6 to latest)](https://discourse.julialang.org/t/compatibility-issues-running-cyclops-2-0-with-modern-julia-from-1-6-to-latest/128868)

<div class="topic-metadata">

**Author:** [@drwei](https://discourse.julialang.org/u/drwei)\
**Replies:** 9\
**Last updated:** [May 10, 2025, 6:50am UTC](https://discourse.julialang.org/t/compatibility-issues-running-cyclops-2-0-with-modern-julia-from-1-6-to-latest/128868 "2025-05-10T06:50:43Z")

</div>

Hi everyone, I’m a beginner with Julia and currently trying to run a project I found on GitHub: CYCLOPS-2.0 The project was originally written for Julia 1.6, but I’m using a newer version of Julia. Unfortunately, I kee…

---

## [\[pre-ANN\] Differentiable FDTD for inverse design in photonics, acoustics and RF](https://discourse.julialang.org/t/pre-ann-differentiable-fdtd-for-inverse-design-in-photonics-acoustics-and-rf/105405)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 54\
**Last updated:** [May 10, 2025, 5:04am UTC](https://discourse.julialang.org/t/pre-ann-differentiable-fdtd-for-inverse-design-in-photonics-acoustics-and-rf/105405 "2025-05-10T05:04:24Z")

</div>

Planning to release a differentiable FDTD package for inverse design in photonics, acoustics and RF. I’ll include examples on designing stacks, gratings and couplers as well as meta-materials and meta-surfaces. The elect…

---

## [Seeking introduction to Julia on Rescale HPC platform](https://discourse.julialang.org/t/seeking-introduction-to-julia-on-rescale-hpc-platform/128887)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 0\
**Last updated:** [May 10, 2025, 4:09am UTC](https://discourse.julialang.org/t/seeking-introduction-to-julia-on-rescale-hpc-platform/128887 "2025-05-10T04:09:27Z")

</div>

Hello users As part of a project on topological optimization for structural performance, I’m trying to build a Julia application on the Rescale HPC platform, https://rescale.com/ As of May 2025, Rescale hosts Julia v1.…

---

## [Why do we need the \`T\` in Symmetric{T, S}?](https://discourse.julialang.org/t/why-do-we-need-the-t-in-symmetric-t-s/128858)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 16\
**Last updated:** [May 10, 2025, 12:59am UTC](https://discourse.julialang.org/t/why-do-we-need-the-t-in-symmetric-t-s/128858 "2025-05-10T00:59:48Z")

</div>

I am a bit curious about the question in the title. Since it is unanswered in the docstring, I list its definition as a reference. # Symmetric and Hermitian matrices struct Symmetric{T,S\<:AbstractMatrix{\<:T}} \<: Abstrac…

---

## [Unexpected behaviour when using ˋrepeatˋ](https://discourse.julialang.org/t/unexpected-behaviour-when-using-repeat/128875)

<div class="topic-metadata">

**Author:** [@azeredo-e](https://discourse.julialang.org/u/azeredo-e)\
**Replies:** 7\
**Last updated:** [May 10, 2025, 12:33am UTC](https://discourse.julialang.org/t/unexpected-behaviour-when-using-repeat/128875 "2025-05-10T00:33:07Z")

</div>

Hello everyone, I’m encountering some difficulties when using the repeat function and repeating arrays. My objective is creating an array of arrays, applying some function to it and getting the array back with its new v…

---

## [SQLite and DBInterface prepared statement error](https://discourse.julialang.org/t/sqlite-and-dbinterface-prepared-statement-error/128882)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 5\
**Last updated:** [May 9, 2025, 10:32pm UTC](https://discourse.julialang.org/t/sqlite-and-dbinterface-prepared-statement-error/128882 "2025-05-09T22:32:14Z")

</div>

Hi all. Does SQLite.jl support DBInterface.jl prepared statements? My MWE is below. When running the DBInterface.prepare line I get an error (pasted below the MWE). On \[0aa819cd\] SQLite v1.6.1. When using DuckDB.jl as th…

---

## [This month in Julia world - 2025-04](https://discourse.julialang.org/t/this-month-in-julia-world-2025-04/128859)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [May 9, 2025, 2:19am UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2025-04/128859 "2025-05-09T02:19:40Z")

</div>

whew… it has been two years of doing this… time flies… A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what a clique of us found interesting …

---

## [Help to use AD with Optimization.jl](https://discourse.julialang.org/t/help-to-use-ad-with-optimization-jl/128866)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 5\
**Last updated:** [May 9, 2025, 2:40pm UTC](https://discourse.julialang.org/t/help-to-use-ad-with-optimization-jl/128866 "2025-05-09T14:40:52Z")

</div>

Hi all, I need your advice to use automatic differentiation with Optimization.jl. The problem - I try to find the optimal variance of a process noise covariance matrix of a standard Kalman filter. Currently, I use grad…

---

## [On the merits of stoplight (yes/maybe/no) comparison tables](https://discourse.julialang.org/t/on-the-merits-of-stoplight-yes-maybe-no-comparison-tables/128840)

<div class="topic-metadata">

**Author:** [@adienes](https://discourse.julialang.org/u/adienes)\
**Replies:** 5\
**Last updated:** [May 9, 2025, 12:10pm UTC](https://discourse.julialang.org/t/on-the-merits-of-stoplight-yes-maybe-no-comparison-tables/128840 "2025-05-09T12:10:51Z")

</div>

split from in case anybody does want a more free-form discussion on the usefulness (or pitfalls) of tables like these. personally, I like the tables when they are wide (over alternatives of products / libraries) but s…

---

## [Are forward-mode derivatives calculated in parallel?](https://discourse.julialang.org/t/are-forward-mode-derivatives-calculated-in-parallel/128870)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 1\
**Last updated:** [May 9, 2025, 10:57am UTC](https://discourse.julialang.org/t/are-forward-mode-derivatives-calculated-in-parallel/128870 "2025-05-09T10:57:47Z")

</div>

When I calculate the output of a function and a directional derivative using forward-mode autodiff (ForwardDiff, TaylorDiff etc), is the calculation of the derivatives carried out in parallel? By parallel I mean: assumi…

---

## [Wrong Package Used in Documenter](https://discourse.julialang.org/t/wrong-package-used-in-documenter/128629)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 11\
**Last updated:** [May 9, 2025, 7:59am UTC](https://discourse.julialang.org/t/wrong-package-used-in-documenter/128629 "2025-05-09T07:59:14Z")

</div>

I was trying in vain to get a documention for TiledViews.jl up and running. The issue is that the CI seems to install the last release version, rather than using the local Development Version, which is why the Documente…

---

## [Retaining the property of Symmetric?](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 7\
**Last updated:** [May 9, 2025, 7:20am UTC](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437 "2025-05-09T07:20:29Z")

</div>

It doesn’t keep the Symmetric property import JuMP, Gurobi, LinearAlgebra model = JuMP.Model(Gurobi.Optimizer) JuMP.@variable(model, X\[1:2, 1:2\] \>= 0, Symmetric) JuMP.optimize!(model) Xt = JuMP.value.(X) # ⚠️ Can this b…

---

## [OpenSSL version mismatch (3.0 vs 3.5) -\> Problems with Documenter.jl + Git running in the official Julia Docker image](https://discourse.julialang.org/t/openssl-version-mismatch-3-0-vs-3-5-problems-with-documenter-jl-git-running-in-the-official-julia-docker-image/128745)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 7\
**Last updated:** [May 9, 2025, 6:31am UTC](https://discourse.julialang.org/t/openssl-version-mismatch-3-0-vs-3-5-problems-with-documenter-jl-git-running-in-the-official-julia-docker-image/128745 "2025-05-09T06:31:33Z")

</div>

Our CI jobs which deploy the docs via Documenter.jl using the official Julia Docker image (e.g julia:1.11) started to fail a couple of days ago and I noticed that the problem is a version conflict between the system’s Op…

---

## [An example for cross-platform standalone GUI application](https://discourse.julialang.org/t/an-example-for-cross-platform-standalone-gui-application/128822)

<div class="topic-metadata">

**Author:** [@uwestoehr](https://discourse.julialang.org/u/uwestoehr)\
**Replies:** 3\
**Last updated:** [May 9, 2025, 2:07am UTC](https://discourse.julialang.org/t/an-example-for-cross-platform-standalone-gui-application/128822 "2025-05-09T02:07:10Z")

</div>

As I promised in the thread about the instruction how to create standalone applications with a GUI, here is as example a complete GUI program that was created using PackageCompiler + Lazarus. (I selected Lazarus as UI b…

---

## [Error showing value of type SparseMatrixCSC](https://discourse.julialang.org/t/error-showing-value-of-type-sparsematrixcsc/128857)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [May 9, 2025, 1:56am UTC](https://discourse.julialang.org/t/error-showing-value-of-type-sparsematrixcsc/128857 "2025-05-09T01:56:06Z")

</div>

It appears that there is a valid SparseMatrixCSC, but cannot be shown. julia\> using SparseArrays julia\> A = \[rand(-9:9, 2) for i in 1:2, j in 1:2\] 2×2 Matrix{Vector{Int64}}: \[-6, -1\] \[-7, -6\] \[5, 5\] \[0, -1\] juli…

---

## [Writing an .edf File using EDF.jl](https://discourse.julialang.org/t/writing-an-edf-file-using-edf-jl/128666)

<div class="topic-metadata">

**Author:** [@vh94](https://discourse.julialang.org/u/vh94)\
**Replies:** 6\
**Last updated:** [May 8, 2025, 11:31pm UTC](https://discourse.julialang.org/t/writing-an-edf-file-using-edf-jl/128666 "2025-05-08T23:31:09Z")

</div>

Hi, I am trying to create a .edf file using the EDF.jl package , but i run into issues during File creation; I get a Method Error in calling EDF.File ERROR: MethodError: no method matching EDF.File(::IOStream, ::EDF.Fil…

---

## [Warning: Package cuDNN not found in current path](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 5\
**Last updated:** [May 8, 2025, 10:22pm UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242 "2025-05-08T22:22:09Z")

</div>

I get this warning while using Flux on a CUDA GPU: ┌ Warning: Package cuDNN not found in current path. │ - Run \`import Pkg; Pkg.add("cuDNN")\` to install the cuDNN package, then restart julia. │ - If cuDNN is not install…

---

## [Factor polynomial](https://discourse.julialang.org/t/factor-polynomial/110926)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [May 8, 2025, 1:43pm UTC](https://discourse.julialang.org/t/factor-polynomial/110926 "2025-05-08T13:43:32Z")

</div>

I want to factor(x^5 + x + 1) into (x^3 - x^2 + 1)(x^2 + x + 1). Wolfram can do it, is there a Julia package that can? AbstractAlgebra.jl has a function called factor but I can’t figure out how to use it. Polynomials.j…

---

## [Great talks on AI for Meteo](https://discourse.julialang.org/t/great-talks-on-ai-for-meteo/128853)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 0\
**Last updated:** [May 8, 2025, 8:51pm UTC](https://discourse.julialang.org/t/great-talks-on-ai-for-meteo/128853 "2025-05-08T20:51:18Z")

</div>

Hi, A great set of talks (in English) on AI (ML) for meteorology has been published by “Le college de France” today. The first video after the introduction is here: There is a (short) mention to Julia at t…

---

## [Why dependencies of a dependency are not available in the environment?](https://discourse.julialang.org/t/why-dependencies-of-a-dependency-are-not-available-in-the-environment/128810)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 8\
**Last updated:** [May 8, 2025, 4:37pm UTC](https://discourse.julialang.org/t/why-dependencies-of-a-dependency-are-not-available-in-the-environment/128810 "2025-05-08T16:37:12Z")

</div>

Hi, I have defined an environment (Project.toml) that depends on two (local) packages: package A and B. Package B depends on OrdinaryDiffEq. Question: Why, when I activate an environment in which I have added (via devel…

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

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