# Latest

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

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

**Page:** 331

---

## [Julia/JuMP efficiency comparison between different CPUs](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 2:32am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920 "2024-09-02T02:32:16Z")

</div>

What performance metrics of CPUs should we pay attention to since I noticed that for two kinds of CPUs, the modeling speed and memory consumption is totally different. For Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, m…

---

## [Implementation implicit Gauss method](https://discourse.julialang.org/t/implementation-implicit-gauss-method/118912)

<div class="topic-metadata">

**Author:** [@khaledharizb](https://discourse.julialang.org/u/khaledharizb)\
**Replies:** 5\
**Last updated:** [September 1, 2024, 11:34pm UTC](https://discourse.julialang.org/t/implementation-implicit-gauss-method/118912 "2024-09-01T23:34:18Z")

</div>

I would like to implement Runge Kutta Gauss method. This method is implicit and need a nonlinear solver to do so. For that I define a fixed point solver FixIter, then the function Gauss(f::Function,u₀,h,N) using Linear…

---

## [Writing a Metal Kernel](https://discourse.julialang.org/t/writing-a-metal-kernel/100891)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 9\
**Last updated:** [September 1, 2024, 3:35pm UTC](https://discourse.julialang.org/t/writing-a-metal-kernel/100891 "2024-09-01T15:35:54Z")

</div>

I have the following kernel in CUDA function inv!(scale, nthreads) nblocks = cld(length(scale), nthreads) @cuda threads=nthreads blocks=nblocks inv\_kernel!(scale) end function inv\_kernel!(scale) index = (blockIdx()…

---

## [Stability of steady-state heat equation example for MethodOfLines.jl](https://discourse.julialang.org/t/stability-of-steady-state-heat-equation-example-for-methodoflines-jl/98651)

<div class="topic-metadata">

**Author:** [@thomasteisberg](https://discourse.julialang.org/u/thomasteisberg)\
**Replies:** 16\
**Last updated:** [September 1, 2024, 2:59pm UTC](https://discourse.julialang.org/t/stability-of-steady-state-heat-equation-example-for-methodoflines-jl/98651 "2024-09-01T14:59:31Z")

</div>

The steady-state heat equation example from the MethodOfLines.jl documentation seems to break for smaller step sizes. The example I’m referring to is here: Steady State Heat Equation - No Time Dependence - NonlinearProbl…

---

## [Some iterative solvers in LinearSolve ignore the initial conditions](https://discourse.julialang.org/t/some-iterative-solvers-in-linearsolve-ignore-the-initial-conditions/118903)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 2\
**Last updated:** [September 1, 2024, 2:57pm UTC](https://discourse.julialang.org/t/some-iterative-solvers-in-linearsolve-ignore-the-initial-conditions/118903 "2024-09-01T14:57:32Z")

</div>

Hello, I think I might be doing something wrong, but it seems that none of the Krylov methods in LinearSolve are using the initial guess I provide. (In the small example below, the initial guess is the true solution.) i…

---

## [Why Does @btime Show Near-Zero Execution Time Despite Non-Trivial @code\_native and @code\_llvm Output in Julia?](https://discourse.julialang.org/t/why-does-btime-show-near-zero-execution-time-despite-non-trivial-code-native-and-code-llvm-output-in-julia/118838)

<div class="topic-metadata">

**Author:** [@alex11](https://discourse.julialang.org/u/alex11)\
**Replies:** 5\
**Last updated:** [September 1, 2024, 12:33pm UTC](https://discourse.julialang.org/t/why-does-btime-show-near-zero-execution-time-despite-non-trivial-code-native-and-code-llvm-output-in-julia/118838 "2024-09-01T12:33:25Z")

</div>

I’m starting Chris Rackauckas’ course on parallel computation in Julia. In the first section in order to show the relationship between types and speed he defines two classes MyComplex (a struct of two Float64s) and MySl…

---

## [PkgEval on 'pre' with notifications?](https://discourse.julialang.org/t/pkgeval-on-pre-with-notifications/118859)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [September 1, 2024, 11:25am UTC](https://discourse.julialang.org/t/pkgeval-on-pre-with-notifications/118859 "2024-09-01T11:25:17Z")

</div>

Wouldn’t it be nice to have PkgEval running on the ‘pre’ releases, and notifying (opt in, of course) authors of failure? (PkgEval on nightly is good for Julia development but not so much for package authors, as it fails…

---

## [Motivation from legendary Julia people](https://discourse.julialang.org/t/motivation-from-legendary-julia-people/117496)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 8\
**Last updated:** [September 1, 2024, 8:26am UTC](https://discourse.julialang.org/t/motivation-from-legendary-julia-people/117496 "2024-09-01T08:26:59Z")

</div>

First, I want to say thank you for Julia and its libraries, without which I wouldn’t have been able to complete many tasks. Thank you for supporting me and forgiving my naiveness. (As for my latest task, I’ve written lot…

---

## [How did we get here? (Why is Julia such a messy language?)](https://discourse.julialang.org/t/how-did-we-get-here-why-is-julia-such-a-messy-language/118839)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 27\
**Last updated:** [September 1, 2024, 8:02am UTC](https://discourse.julialang.org/t/how-did-we-get-here-why-is-julia-such-a-messy-language/118839 "2024-09-01T08:02:19Z")

</div>

Julia is a great language, but to be honest, I can’t say it’s ideal either. I love the language, but to not be able to criticize it is not a healthy love. It’s like Julia has been optimizing for things people say they ca…

---

## [How to use Base.Libc.errno](https://discourse.julialang.org/t/how-to-use-base-libc-errno/118832)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 3\
**Last updated:** [September 1, 2024, 7:20am UTC](https://discourse.julialang.org/t/how-to-use-base-libc-errno/118832 "2024-09-01T07:20:21Z")

</div>

The docs for errno in Julia states: The value of errno is only valid immediately after a ccall to a C library routine that sets it. Specifically, you cannot call errno at the next prompt in a REPL, because lots of code…

---

## [Unable to define LaTeX macros in Mathjax3 using Documenter.jl](https://discourse.julialang.org/t/unable-to-define-latex-macros-in-mathjax3-using-documenter-jl/118813)

<div class="topic-metadata">

**Author:** [@msw](https://discourse.julialang.org/u/msw)\
**Replies:** 3\
**Last updated:** [September 1, 2024, 5:42am UTC](https://discourse.julialang.org/t/unable-to-define-latex-macros-in-mathjax3-using-documenter-jl/118813 "2024-09-01T05:42:23Z")

</div>

I am trying to set up Documenter.jl with MathJax and I want to define some macros. I am doing as in the manual. However, it does not seem to work properly, as I get Undefined control sequence \\R. Below is an example cop…

---

## [Tools to improve Julia AI support](https://discourse.julialang.org/t/tools-to-improve-julia-ai-support/118899)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 1\
**Last updated:** [September 1, 2024, 5:39am UTC](https://discourse.julialang.org/t/tools-to-improve-julia-ai-support/118899 "2024-09-01T05:39:58Z")

</div>

Kotlin has released this blog post, and I wonder: Are there similar tools imaginable, that serve that purpose for Julia?

---

## [Examodels: Dealing with empty constraints and data](https://discourse.julialang.org/t/examodels-dealing-with-empty-constraints-and-data/118669)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 4\
**Last updated:** [August 31, 2024, 9:25pm UTC](https://discourse.julialang.org/t/examodels-dealing-with-empty-constraints-and-data/118669 "2024-08-31T21:25:59Z")

</div>

@sshin23 , @frapac I am solving AC OPF with extended modeled features. In particular my issue is that I may have actively controlled transformers in data, but also there could be no actively controlled transformers and …

---

## [Need a basic example on using custom structs in CUDA.jl with Adapt.jl](https://discourse.julialang.org/t/need-a-basic-example-on-using-custom-structs-in-cuda-jl-with-adapt-jl/118829)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 7:11pm UTC](https://discourse.julialang.org/t/need-a-basic-example-on-using-custom-structs-in-cuda-jl-with-adapt-jl/118829 "2024-08-31T19:11:26Z")

</div>

I’m having a hard time understanding both the purpose of and how to use Adapt.jl to pass custom structs to CUDA kernels (that might not even be right). I’ve tried reading the CUDA.jl documentation and implementing a tri…

---

## [Why is JuliaCon in an under-construction stadium?](https://discourse.julialang.org/t/why-is-juliacon-in-an-under-construction-stadium/118860)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 7:09pm UTC](https://discourse.julialang.org/t/why-is-juliacon-in-an-under-construction-stadium/118860 "2024-08-31T19:09:11Z")

</div>

My curiosity has gotten the better of me as I’m watching some of the talks from this year’s JuliaCon. What on Earth is happening in the background? Why the large dirt stadium? etc. Great presentations and event organi…

---

## [Juliaup modifications to .zshrc](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 4\
**Last updated:** [August 31, 2024, 5:50pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844 "2024-08-31T17:50:41Z")

</div>

I recently bought a new MacBook. A few weeks ago I installed juliaup. I noticed that MacOS now uses z-shell as the default shell, so today I made the mistake of taking my old .bash\_profile and doing this: mv .bash\_profi…

---

## [Enzyme ready for everyday use? (2024)](https://discourse.julialang.org/t/enzyme-ready-for-everyday-use-2024/118819)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 16\
**Last updated:** [August 31, 2024, 5:29pm UTC](https://discourse.julialang.org/t/enzyme-ready-for-everyday-use-2024/118819 "2024-08-31T17:29:08Z")

</div>

I’ve got a Turing Bayesian model with hundreds of thousands of data points (as usual :roll\_eyes: :sweat\_smile: ). For whatever reason with my current situation is that LBFGS is working to optimize it. I tried to speed up…

---

## [Difference between \`Base.@assume\_effects :foldable\` and \`Base.@constprop :aggressive\`](https://discourse.julialang.org/t/difference-between-base-assume-effects-foldable-and-base-constprop-aggressive/118846)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 7\
**Last updated:** [August 31, 2024, 5:21pm UTC](https://discourse.julialang.org/t/difference-between-base-assume-effects-foldable-and-base-constprop-aggressive/118846 "2024-08-31T17:21:17Z")

</div>

What’s the difference between Base.@assume\_effects :foldable and Base.@constprop :aggressive?

---

## [V1.11-rc include("") will try to include the current folder](https://discourse.julialang.org/t/v1-11-rc-include-will-try-to-include-the-current-folder/118848)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 3:43pm UTC](https://discourse.julialang.org/t/v1-11-rc-include-will-try-to-include-the-current-folder/118848 "2024-08-31T15:43:50Z")

</div>

Hi there, I just stumbled upon the oddity that include("") was not doing anything in julia 1.10, but in 1.11 it tries to load the current folder (or something similar), which fails. Someone knows why this got changed?

---

## [Runtime dispatch in struct that contains struct](https://discourse.julialang.org/t/runtime-dispatch-in-struct-that-contains-struct/118840)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 5\
**Last updated:** [August 31, 2024, 2:33pm UTC](https://discourse.julialang.org/t/runtime-dispatch-in-struct-that-contains-struct/118840 "2024-08-31T14:33:34Z")

</div>

Hi, in my code, I have a structure similar to the below. The function that I call in running should be determined by FooContainer.foo, so it is clear to me that I have runtime dispatch here. What is the idiomatic way to …

---

## [\[ANN\] GALAHAD.jl: Bridging Julia with advanced optimization techniques](https://discourse.julialang.org/t/ann-galahad-jl-bridging-julia-with-advanced-optimization-techniques/118647)

<div class="topic-metadata">

**Author:** [@amontoison](https://discourse.julialang.org/u/amontoison)\
**Replies:** 5\
**Last updated:** [August 31, 2024, 1:55pm UTC](https://discourse.julialang.org/t/ann-galahad-jl-bridging-julia-with-advanced-optimization-techniques/118647 "2024-08-31T13:55:46Z")

</div>

Dear Julia Community, We are pleased to announce the release of GALAHAD.jl, the Julia interface to the renowned GALAHAD library, now at version 5.0. GALAHAD.jl brings the powerful optimization capabilities of GALAHAD …

---

## [Getting issue with genie for function](https://discourse.julialang.org/t/getting-issue-with-genie-for-function/118834)

<div class="topic-metadata">

**Author:** [@Shiva\_raj](https://discourse.julialang.org/u/Shiva_raj)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 9:35am UTC](https://discourse.julialang.org/t/getting-issue-with-genie-for-function/118834 "2024-08-31T09:35:06Z")

</div>

HI team I am facing issue with Genie while running below code for julie. module App using Genie.Router using Genie export vertical\_addition function vertical\_addition(numbers::Vector{Union{Int, Float64}}) # Conver…

---

## [Using flat() in LinearInterpolation](https://discourse.julialang.org/t/using-flat-in-linearinterpolation/58740)

<div class="topic-metadata">

**Author:** [@bojeryd91](https://discourse.julialang.org/u/bojeryd91)\
**Replies:** 3\
**Last updated:** [August 31, 2024, 1:50am UTC](https://discourse.julialang.org/t/using-flat-in-linearinterpolation/58740 "2024-08-31T01:50:36Z")

</div>

I want to create an interpolation object which uses the Flat() option when extrapolating, but I run into “Flat() not defined” when specifying it so. The Line() option works well. Eg., the following works interp1 = Line…

---

## [Julia/VSCode on new MS Copilot Surface 7 laptops](https://discourse.julialang.org/t/julia-vscode-on-new-ms-copilot-surface-7-laptops/117203)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 20\
**Last updated:** [August 30, 2024, 11:40pm UTC](https://discourse.julialang.org/t/julia-vscode-on-new-ms-copilot-surface-7-laptops/117203 "2024-08-30T23:40:35Z")

</div>

I’ve been trying to use Julia/Jupyter in VSCode on the new Microsoft Copilot Plus PC (15" Laptop). Without going into too much detail, if I open VSCode on a Julia notebook, it responds that it can’t find the language ker…

---

## [What is JuliaSOS?](https://discourse.julialang.org/t/what-is-juliasos/118786)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 2\
**Last updated:** [August 30, 2024, 10:58pm UTC](https://discourse.julialang.org/t/what-is-juliasos/118786 "2024-08-30T22:58:51Z")

</div>

I sometimes come across juliasos.com when searching about Julia. Sometimes it looked maybe helpful but I always found it irritating that the pages don’t come with a date, so it is hard to tell what version the info appli…

---

## [Event at TU Delft September 12, 2024](https://discourse.julialang.org/t/event-at-tu-delft-september-12-2024/118828)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 30, 2024, 10:05pm UTC](https://discourse.julialang.org/t/event-at-tu-delft-september-12-2024/118828 "2024-08-30T22:05:39Z")

</div>

I heard that @ChrisRackauckas is scheduled to give a talk at the TU Delft, NL on Thursday, September 12th. I would like to spread the word. Is there any announcement of this event? What is the topic, time, location?

---

## [Inflecting error/warning messages correctly](https://discourse.julialang.org/t/inflecting-error-warning-messages-correctly/118648)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 9\
**Last updated:** [August 28, 2024, 8:55pm UTC](https://discourse.julialang.org/t/inflecting-error-warning-messages-correctly/118648 "2024-08-28T20:55:32Z")

</div>

In my old Perl days I got a lot of great mileage out of the Lingua::EN::Inflect module, which helped write messages like so: print "I saw $n ", PL("cat", $n), "\\n"; and depending on the value of $n, that would generate…

---

## [Axes not working on reshaped array?](https://discourse.julialang.org/t/axes-not-working-on-reshaped-array/118820)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 6\
**Last updated:** [August 30, 2024, 8:38pm UTC](https://discourse.julialang.org/t/axes-not-working-on-reshaped-array/118820 "2024-08-30T20:38:52Z")

</div>

Hi, I’m confused about this behavior of axes: using Distributions using FillArrays using LinearAlgebra Nz = 5 My = 10 a = reshape(MvNormal(Fill(0.5, My\*Nz), 0.01 \* I), (My, Nz)) axes(a) axes(a,1) Calling axes on a wor…

---

## [Float16 with AMDGPU](https://discourse.julialang.org/t/float16-with-amdgpu/118805)

<div class="topic-metadata">

**Author:** [@snowgum](https://discourse.julialang.org/u/snowgum)\
**Replies:** 10\
**Last updated:** [August 30, 2024, 8:14pm UTC](https://discourse.julialang.org/t/float16-with-amdgpu/118805 "2024-08-30T20:14:46Z")

</div>

Does AMDGPU support optimised Float16 or BFloat16 operations? I am testing in a AMD Instinct MI100, which theoretically has much better performance for Float16 (and BFloat16). However, when I try the sample vadd!() funct…

---

## [Memory management for C bindings](https://discourse.julialang.org/t/memory-management-for-c-bindings/118822)

<div class="topic-metadata">

**Author:** [@bthorne93](https://discourse.julialang.org/u/bthorne93)\
**Replies:** 1\
**Last updated:** [August 30, 2024, 7:22pm UTC](https://discourse.julialang.org/t/memory-management-for-c-bindings/118822 "2024-08-30T19:22:33Z")

</div>

When writing bindings for a C library which performs memory allocations, how can we perform automatic memory management in the style of Julia with the external free functions? We want something similar to the defer keywo…

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

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