# Latest

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

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

**Page:** 441

---

## [I found a bug in SafeREPL the function round does not work!](https://discourse.julialang.org/t/i-found-a-bug-in-saferepl-the-function-round-does-not-work/112596)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 7\
**Last updated:** [April 7, 2024, 2:39am UTC](https://discourse.julialang.org/t/i-found-a-bug-in-saferepl-the-function-round-does-not-work/112596 "2024-04-07T02:39:02Z")

</div>

\_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for Pkg help. | | | | | | |/ \_\` | | | | |\_| | | | (\_| |…

---

## [Axiomatic AI: job openings in scientific ML, hardware design and optimization, and more](https://discourse.julialang.org/t/axiomatic-ai-job-openings-in-scientific-ml-hardware-design-and-optimization-and-more/112555)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 7\
**Last updated:** [April 7, 2024, 12:31am UTC](https://discourse.julialang.org/t/axiomatic-ai-job-openings-in-scientific-ml-hardware-design-and-optimization-and-more/112555 "2024-04-07T00:31:33Z")

</div>

A few colleagues from MIT have raised significant capital for a startup focused on “Scientific ML” in chip design and hardware development. They are now hiring folks with experience in anything related to reverse design,…

---

## [Preconditioner for Sundials IDA solver in DifferentialEquations.jl](https://discourse.julialang.org/t/preconditioner-for-sundials-ida-solver-in-differentialequations-jl/105124)

<div class="topic-metadata">

**Author:** [@jespfra](https://discourse.julialang.org/u/jespfra)\
**Replies:** 4\
**Last updated:** [April 6, 2024, 10:11pm UTC](https://discourse.julialang.org/t/preconditioner-for-sundials-ida-solver-in-differentialequations-jl/105124 "2024-04-06T22:11:24Z")

</div>

Hello Everyone, In DifferentialEquations.jl, I have not found an example of how to should set a preconditioner for the Sundials IDA solver. I have found examples of how to set it up for ODE systems for the CVODE\_BDF sol…

---

## [Discretization problem using MOL](https://discourse.julialang.org/t/discretization-problem-using-mol/105514)

<div class="topic-metadata">

**Author:** [@Johan\_Ekberg](https://discourse.julialang.org/u/Johan_Ekberg)\
**Replies:** 2\
**Last updated:** [April 6, 2024, 9:50pm UTC](https://discourse.julialang.org/t/discretization-problem-using-mol/105514 "2024-04-06T21:50:00Z")

</div>

Hi im trying to solve a 4th order PDE using the MethodOfLines package but im getting the following error messege when trying to discretize my system in space. Could the problem be caused by the mixed derivative? The PDES…

---

## [Inconsistency when solving system of SDE with diagonal noise](https://discourse.julialang.org/t/inconsistency-when-solving-system-of-sde-with-diagonal-noise/111608)

<div class="topic-metadata">

**Author:** [@matt1](https://discourse.julialang.org/u/matt1)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 9:49pm UTC](https://discourse.julialang.org/t/inconsistency-when-solving-system-of-sde-with-diagonal-noise/111608 "2024-04-06T21:49:05Z")

</div>

Hello, I noticed a strange behaviour of Julia when trying to solve the following system of SDE: \\begin{align} du\_1 &= \\left(\\frac{1}{1+c^2}\\right) \\left( -\\frac{u\_4 - 2u\_3+ u\_4}{2d^2} + (u\_1^2 + u\_3^2)u\_3 - c \\left( -…

---

## [Hardware upgrade for Julia programming](https://discourse.julialang.org/t/hardware-upgrade-for-julia-programming/112036)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 18\
**Last updated:** [April 6, 2024, 8:33pm UTC](https://discourse.julialang.org/t/hardware-upgrade-for-julia-programming/112036 "2024-04-06T20:33:34Z")

</div>

Hello I want to improve the compilation time of Julia, working of vs code itself - autocompletion github copilot. Secondary goal is to improve multithreaded runtime of programs. I would like to spend on the PC upgrade ar…

---

## [Downloading website content (HTTP, BufferedStreams)](https://discourse.julialang.org/t/downloading-website-content-http-bufferedstreams/112595)

<div class="topic-metadata">

**Author:** [@Anton\_Hinneck](https://discourse.julialang.org/u/Anton_Hinneck)\
**Replies:** 3\
**Last updated:** [April 6, 2024, 8:09pm UTC](https://discourse.julialang.org/t/downloading-website-content-http-bufferedstreams/112595 "2024-04-06T20:09:47Z")

</div>

Hi, I would like to download HTML from urls. For this purpose I use HTTP.jl and BufferedStreams.jl. using HTTP using BufferedStreams url = "https://discourse.julialang.org/" htmlData = String\[\] io = nothing HTTP.…

---

## [Cubic spline for non monotonic vector](https://discourse.julialang.org/t/cubic-spline-for-non-monotonic-vector/112599)

<div class="topic-metadata">

**Author:** [@jgr](https://discourse.julialang.org/u/jgr)\
**Replies:** 5\
**Last updated:** [April 6, 2024, 7:48pm UTC](https://discourse.julialang.org/t/cubic-spline-for-non-monotonic-vector/112599 "2024-04-06T19:48:59Z")

</div>

I am using Spline1D from Dierckx package, and my code is Ev = \[2, 1, 3,4\] sgrid = \[0, 1, 2,4\] spl = Spline1D(Ev,sgrid) The error I got is Error on entry, no approximation returned. The following conditions must hold: …

---

## [Numerical integration over 3D domain of vector-valued function](https://discourse.julialang.org/t/numerical-integration-over-3d-domain-of-vector-valued-function/112284)

<div class="topic-metadata">

**Author:** [@Lisette\_de\_Bruin](https://discourse.julialang.org/u/Lisette_de_Bruin)\
**Replies:** 33\
**Last updated:** [April 6, 2024, 6:52pm UTC](https://discourse.julialang.org/t/numerical-integration-over-3d-domain-of-vector-valued-function/112284 "2024-04-06T18:52:50Z")

</div>

Hi all, I am interested in evaluating a volume integral of a vector-valued function. So the integral has the following form: I already tried to use nested quadgk and hcubature. Both methods give me the correct result…

---

## [Enzyme Reverse Diff rules for complex sqrt](https://discourse.julialang.org/t/enzyme-reverse-diff-rules-for-complex-sqrt/111489)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 6\
**Last updated:** [April 6, 2024, 4:32pm UTC](https://discourse.julialang.org/t/enzyme-reverse-diff-rules-for-complex-sqrt/111489 "2024-04-06T16:32:36Z")

</div>

I have a function that I’m trying to reverse mode diff through that at some point needs to calculate the square root of a complex number. I have been able to define custom rules for the Forward mode autodiff in the follo…

---

## [What are the best practices for setting compat entries?](https://discourse.julialang.org/t/what-are-the-best-practices-for-setting-compat-entries/112607)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 4:01pm UTC](https://discourse.julialang.org/t/what-are-the-best-practices-for-setting-compat-entries/112607 "2024-04-06T16:01:21Z")

</div>

Hello! When creating packages, I have consistently found it hard to set the compat entries for my dependencies. On one hand, one would like to use the least restrictive compat entries possible, in order do be able to sa…

---

## [Printing progress and updates messages SDE problem](https://discourse.julialang.org/t/printing-progress-and-updates-messages-sde-problem/112277)

<div class="topic-metadata">

**Author:** [@matt1](https://discourse.julialang.org/u/matt1)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 3:37pm UTC](https://discourse.julialang.org/t/printing-progress-and-updates-messages-sde-problem/112277 "2024-04-06T15:37:26Z")

</div>

Hello, I’m solving a system of stochastic differential equations: #define drift fuction F!(du,u,t,p)=... #define noise function G!(du,u,t,p)=... #constructing and solving the problem u\_0=zeros(100,100)#initial condi…

---

## [Memory issues for large computational graph](https://discourse.julialang.org/t/memory-issues-for-large-computational-graph/112606)

<div class="topic-metadata">

**Author:** [@Arijit\_Bhattacharya](https://discourse.julialang.org/u/Arijit_Bhattacharya)\
**Replies:** 3\
**Last updated:** [April 6, 2024, 3:11pm UTC](https://discourse.julialang.org/t/memory-issues-for-large-computational-graph/112606 "2024-04-06T15:11:56Z")

</div>

I’m working on developing a differentiable CFD solver incorporating the immersed boundary method for solving the Navier-Stokes equations. I plan on using Enzyme.jl .My goal is to compute gradients of a parametric geometr…

---

## [State of AD in 2024](https://discourse.julialang.org/t/state-of-ad-in-2024/112601)

<div class="topic-metadata">

**Author:** [@bayesian\_fish](https://discourse.julialang.org/u/bayesian_fish)\
**Replies:** 4\
**Last updated:** [April 6, 2024, 1:43pm UTC](https://discourse.julialang.org/t/state-of-ad-in-2024/112601 "2024-04-06T13:43:22Z")

</div>

Hi, I’m new to the Julia language and am trying to understand the AD ecosystem. From what I understand, Julia wants to broaden AD beyond the type of models you might find in Pytorch and Jax while also retaining similar …

---

## [How to pass variables to several levels up without going through headings (arguments) in functions](https://discourse.julialang.org/t/how-to-pass-variables-to-several-levels-up-without-going-through-headings-arguments-in-functions/112582)

<div class="topic-metadata">

**Author:** [@fmontans](https://discourse.julialang.org/u/fmontans)\
**Replies:** 24\
**Last updated:** [April 6, 2024, 12:28pm UTC](https://discourse.julialang.org/t/how-to-pass-variables-to-several-levels-up-without-going-through-headings-arguments-in-functions/112582 "2024-04-06T12:28:46Z")

</div>

In fortran90, there are two ways to pass variables that is not through the function/subroutine heading/arguments. Those are common blocks (old Fortran77 style) or modules (new fortran90 style). This is extremely useful i…

---

## [Saving only specific solutions in ODE solver](https://discourse.julialang.org/t/saving-only-specific-solutions-in-ode-solver/112604)

<div class="topic-metadata">

**Author:** [@Balaji\_Lakshminaraya](https://discourse.julialang.org/u/Balaji_Lakshminaraya)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 11:50am UTC](https://discourse.julialang.org/t/saving-only-specific-solutions-in-ode-solver/112604 "2024-04-06T11:50:22Z")

</div>

I’m solving a simultaneous system of linear differential equations (about 40 million simultaneous equations). I am using QNDF solver, with option dense= false. it works well. Since I have a lot of save points, storage i…

---

## [DeepAR in Julia](https://discourse.julialang.org/t/deepar-in-julia/71707)

<div class="topic-metadata">

**Author:** [@wormholestds9](https://discourse.julialang.org/u/wormholestds9)\
**Replies:** 3\
**Last updated:** [April 6, 2024, 10:53am UTC](https://discourse.julialang.org/t/deepar-in-julia/71707 "2024-04-06T10:53:28Z")

</div>

Does anybody know if there is a Julia package for DeepAR from Amazon? Do I just have to make do by calling its Python package?

---

## [Makie edit does not recognize Enter key](https://discourse.julialang.org/t/makie-edit-does-not-recognize-enter-key/112587)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 6:50am UTC](https://discourse.julialang.org/t/makie-edit-does-not-recognize-enter-key/112587 "2024-04-06T06:50:06Z")

</div>

I have a Makie GUI with a TextBox. I can enter a number, and the value is accepted when I press the RETURN key. But it is not accepted when I press the Enter key next to the numerical keyboard. Why, and how can I fix th…

---

## [Understanding variable orders in \`\`MOI.VariableIndex\`\` in JuMP](https://discourse.julialang.org/t/understanding-variable-orders-in-moi-variableindex-in-jump/112594)

<div class="topic-metadata">

**Author:** [@Maybe](https://discourse.julialang.org/u/Maybe)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 5:37am UTC](https://discourse.julialang.org/t/understanding-variable-orders-in-moi-variableindex-in-jump/112594 "2024-04-06T05:37:06Z")

</div>

I am trying to understand the variable orders in MOI.VariableIndex. For example, in the following model m = Model() @variable(m, 0 \<= x\[i=1:2\] \<= 2 ) @variable(m, z) @variable(m, 0 \<= y\[i=1:3\] \<= 1) The outcome of …

---

## [Gridap uses in Industry](https://discourse.julialang.org/t/gridap-uses-in-industry/112457)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 1:30am UTC](https://discourse.julialang.org/t/gridap-uses-in-industry/112457 "2024-04-06T01:30:57Z")

</div>

Hi Guys I have been messing around with Gridap lately, it is a very nice well built package. I am currently a practicing engineer designing complex machines. In general I have used Julia (previously Matlab/Octave) to so…

---

## [Turing.jl Bayesian SDE tutorial doesn't sample posterior chain](https://discourse.julialang.org/t/turing-jl-bayesian-sde-tutorial-doesnt-sample-posterior-chain/112592)

<div class="topic-metadata">

**Author:** [@anprasad](https://discourse.julialang.org/u/anprasad)\
**Replies:** 0\
**Last updated:** [April 6, 2024, 1:02am UTC](https://discourse.julialang.org/t/turing-jl-bayesian-sde-tutorial-doesnt-sample-posterior-chain/112592 "2024-04-06T01:02:32Z")

</div>

The parameter inference of the SDE in the Turing.jl tutorial doesn’t sample the posterior. Is this an error?

---

## [Julia slower than Python for finding pangrams?](https://discourse.julialang.org/t/julia-slower-than-python-for-finding-pangrams/112481)

<div class="topic-metadata">

**Author:** [@Flavio\_Barros](https://discourse.julialang.org/u/Flavio_Barros)\
**Replies:** 28\
**Last updated:** [April 5, 2024, 11:55pm UTC](https://discourse.julialang.org/t/julia-slower-than-python-for-finding-pangrams/112481 "2024-04-05T23:55:34Z")

</div>

I came up with a neat Julia solution using sets to solve that simple pangram. However, I’m a bit perplexed… C benchmarks show it running over 200 times faster, and even Python outperforms my Julia code substantially. Cur…

---

## [Set\_normalized\_coefficient in JuMP.jl is slow](https://discourse.julialang.org/t/set-normalized-coefficient-in-jump-jl-is-slow/112533)

<div class="topic-metadata">

**Author:** [@PaterPen](https://discourse.julialang.org/u/PaterPen)\
**Replies:** 6\
**Last updated:** [April 5, 2024, 9:29pm UTC](https://discourse.julialang.org/t/set-normalized-coefficient-in-jump-jl-is-slow/112533 "2024-04-05T21:29:01Z")

</div>

Hi, I wonder why set\_normalized\_coefficient takes about as long as the actual optimization in my MWE: using JuMP, HiGHS function create\_solver(solver, l, C, d, lb) model = direct\_model(optimizer\_with\_attributes(sol…

---

## [\[ANN\] Julia LLM Leaderboard - Help us make it more relevant for every day problems!](https://discourse.julialang.org/t/ann-julia-llm-leaderboard-help-us-make-it-more-relevant-for-every-day-problems/107319)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 22\
**Last updated:** [April 5, 2024, 8:48pm UTC](https://discourse.julialang.org/t/ann-julia-llm-leaderboard-help-us-make-it-more-relevant-for-every-day-problems/107319 "2024-04-05T20:48:17Z")

</div>

Hello Julia Community! We’re excited to share with you the “Julia LLM Leaderboard” - a new project aimed at benchmarking various GenAI models for Julia code generation. While our approach is super simple (perhaps naive…

---

## [Way to enforce \`BigFloat\` math by default](https://discourse.julialang.org/t/way-to-enforce-bigfloat-math-by-default/112557)

<div class="topic-metadata">

**Author:** [@tgross35](https://discourse.julialang.org/u/tgross35)\
**Replies:** 6\
**Last updated:** [April 5, 2024, 8:37pm UTC](https://discourse.julialang.org/t/way-to-enforce-bigfloat-math-by-default/112557 "2024-04-05T20:37:12Z")

</div>

julia\> big(pi)/2 1.570796326794896619231321691639751442098584699687552910487472296153908203143099 julia\> big(pi/2) 1.5707963267948965579989817342720925807952880859375 That is quite an easy mistake to make. Is there a w…

---

## [Is there a coalesce function for other types?](https://discourse.julialang.org/t/is-there-a-coalesce-function-for-other-types/60112)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 13\
**Last updated:** [April 5, 2024, 8:16pm UTC](https://discourse.julialang.org/t/is-there-a-coalesce-function-for-other-types/60112 "2024-04-05T20:16:52Z")

</div>

I found this nice function called coalesce and now I am wondering if there is a more general one. Is there a function like coalesce which can specify the missing value/type. a = \[NaN,missing,"",2,3.0\] coalesce.(a,0) coa…

---

## [How can I get a fully-specified type of a \`Dict\`?](https://discourse.julialang.org/t/how-can-i-get-a-fully-specified-type-of-a-dict/112570)

<div class="topic-metadata">

**Author:** [@scheidan1](https://discourse.julialang.org/u/scheidan1)\
**Replies:** 5\
**Last updated:** [April 5, 2024, 8:04pm UTC](https://discourse.julialang.org/t/how-can-i-get-a-fully-specified-type-of-a-dict/112570 "2024-04-05T20:04:27Z")

</div>

Hi all, I’m working in a package where the user provides a Dict that is never changed by my package. While I know the structure of the entries, I do not know the which types it contains. Is there a way to “convert” a po…

---

## [Parameterize by Value with Union](https://discourse.julialang.org/t/parameterize-by-value-with-union/112388)

<div class="topic-metadata">

**Author:** [@densmojd](https://discourse.julialang.org/u/densmojd)\
**Replies:** 8\
**Last updated:** [April 5, 2024, 6:13pm UTC](https://discourse.julialang.org/t/parameterize-by-value-with-union/112388 "2024-04-05T18:13:37Z")

</div>

I’d like to use a struct to represent a spatial mesh with an arbitrary number of dimensions D, something like struct Mesh{D} ... end Of course, D can only be 1, 2, or 3. Is there a way to enforce this using a union, e…

---

## [installing JuliaFEM correctly?](https://discourse.julialang.org/t/installing-juliafem-correctly/18522)

<div class="topic-metadata">

**Author:** [@gingerale](https://discourse.julialang.org/u/gingerale)\
**Replies:** 9\
**Last updated:** [April 5, 2024, 6:08pm UTC](https://discourse.julialang.org/t/installing-juliafem-correctly/18522 "2024-04-05T18:08:02Z")

</div>

Happy Monday, I was looking for a less memory intensive alternative (compared to julia fenics) for doing finite element method, so I wanted to try JuliaFEM. As Navier Strokes is not a predefined problem I wanted to defi…

---

## [Optimising superbee! function](https://discourse.julialang.org/t/optimising-superbee-function/112568)

<div class="topic-metadata">

**Author:** [@alemelis](https://discourse.julialang.org/u/alemelis)\
**Replies:** 20\
**Last updated:** [April 5, 2024, 4:40pm UTC](https://discourse.julialang.org/t/optimising-superbee-function/112568 "2024-04-05T16:40:55Z")

</div>

Hello, I’m profiling my simulation with profview and this is the flame graph where I’m pointing to the four function calls that seem to be among the most expensive. Those are calling the same function – superbee! – i…

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

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