# Latest

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

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

**Page:** 239

---

## [MOLFiniteDifference for 2D transient Heat equation with heat generation](https://discourse.julialang.org/t/molfinitedifference-for-2d-transient-heat-equation-with-heat-generation/124498)

<div class="topic-metadata">

**Author:** [@Reza\_AO](https://discourse.julialang.org/u/Reza_AO)\
**Replies:** 15\
**Last updated:** [January 14, 2025, 12:54pm UTC](https://discourse.julialang.org/t/molfinitedifference-for-2d-transient-heat-equation-with-heat-generation/124498 "2025-01-14T12:54:49Z")

</div>

Hi I am trying to solve the underlying system: eq = \[ρ\*Cₚ\*Dt(T(x,y,t)) ~ kₓ\*Dxx(T(x,y,t)) + ky\*Dyy(T(x,y,t)) + H\*W\*Re , Re ~ A\*exp(-E/(R\*T(x,y,t)))\*c(x,y,t)\] The Domain is : domains = \[x ∈ Interval(x\_min, 0.013…

---

## [Kelly Criterion (Part 2)](https://discourse.julialang.org/t/kelly-criterion-part-2/124759)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 0\
**Last updated:** [January 14, 2025, 10:34am UTC](https://discourse.julialang.org/t/kelly-criterion-part-2/124759 "2025-01-14T10:34:54Z")

</div>

Kelly Criterion (Part 2) Imagine if a hustler tries to sell you an investment oppoturnity. An event/venture was successful 4 times and unsuccessful 1 time. The hustler tells you that probability of a successful venture …

---

## [Julia 1.10.8 testing period](https://discourse.julialang.org/t/julia-1-10-8-testing-period/124754)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [January 14, 2025, 8:19am UTC](https://discourse.julialang.org/t/julia-1-10-8-testing-period/124754 "2025-01-14T08:19:46Z")

</div>

The release-1.10 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.10.8. The list of commits included since v1.10.7 is available here . As a patch release, it should be non-breaki…

---

## [Ask for advise : Multiple dispatch vs branching performance](https://discourse.julialang.org/t/ask-for-advise-multiple-dispatch-vs-branching-performance/124713)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 7\
**Last updated:** [January 14, 2025, 6:26am UTC](https://discourse.julialang.org/t/ask-for-advise-multiple-dispatch-vs-branching-performance/124713 "2025-01-14T06:26:31Z")

</div>

Hi all, I am developing a package for generating structural vibration data, which I hope to release to the community once it is finished. In the course of development, I am faced with a dilemma between multiple dispatch…

---

## [Closure with let block: Simpler syntax for capturing variables?](https://discourse.julialang.org/t/closure-with-let-block-simpler-syntax-for-capturing-variables/124740)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 4\
**Last updated:** [January 14, 2025, 12:46am UTC](https://discourse.julialang.org/t/closure-with-let-block-simpler-syntax-for-capturing-variables/124740 "2025-01-14T00:46:40Z")

</div>

The example is taken from the post "A Tragedy of Julia’s Type System" - #30 by foobar\_lv2 function f() x = 0 if false x=1 end g = let x=x () -\> x end end This form is suggested in the manual, and inde…

---

## [Animation with Meshes.jl](https://discourse.julialang.org/t/animation-with-meshes-jl/124618)

<div class="topic-metadata">

**Author:** [@Mizu49](https://discourse.julialang.org/u/Mizu49)\
**Replies:** 7\
**Last updated:** [January 13, 2025, 8:44pm UTC](https://discourse.julialang.org/t/animation-with-meshes-jl/124618 "2025-01-13T20:44:52Z")

</div>

How can I animate the Box defined by Meshes.jl? I thought the following code might work. using GLMakie, Meshes, Rotations b = Meshes.Box((-1, -1, -1), (1, 1, 1)) obs\_b = Observable(b) fig = Figure(size = (800, 500…

---

## [Stop juliaup to notify new version of julia?](https://discourse.julialang.org/t/stop-juliaup-to-notify-new-version-of-julia/121079)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 5\
**Last updated:** [January 13, 2025, 8:31pm UTC](https://discourse.julialang.org/t/stop-juliaup-to-notify-new-version-of-julia/121079 "2025-01-13T20:31:32Z")

</div>

I got this notification when I run julia today The latest version of Julia in the \`release\` channel is 1.11.0+0.x64.linux.gnu. You currently have \`1.10.5+0.x64.linux.gnu\` installed. Run: juliaup update in your termi…

---

## [Extremely high memory consumption on CPU](https://discourse.julialang.org/t/extremely-high-memory-consumption-on-cpu/124733)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 2\
**Last updated:** [January 13, 2025, 6:20pm UTC](https://discourse.julialang.org/t/extremely-high-memory-consumption-on-cpu/124733 "2025-01-13T18:20:22Z")

</div>

Cheers. I have developed a model for semantic segmentation in Flux. It has around 7M parameters. Have checked its inference performance for segmenting two classes, when an array with size (512,512,3,1) is at the input. T…

---

## [ForwardDiff - MethodError: no method matching extract\_jacobian](https://discourse.julialang.org/t/forwarddiff-methoderror-no-method-matching-extract-jacobian/124724)

<div class="topic-metadata">

**Author:** [@Adrien\_Vet](https://discourse.julialang.org/u/Adrien_Vet)\
**Replies:** 3\
**Last updated:** [January 13, 2025, 6:18pm UTC](https://discourse.julialang.org/t/forwarddiff-methoderror-no-method-matching-extract-jacobian/124724 "2025-01-13T18:18:33Z")

</div>

Hello everyone, I’m struggling with the differentiation of some functions using the ForwardDiff package. Here is a reproducible example : using StaticArrays using ForwardDiff function f\_test(x) return exp(x\[1\])…

---

## [Passing a Julia struct to a already compiled cpp program](https://discourse.julialang.org/t/passing-a-julia-struct-to-a-already-compiled-cpp-program/124731)

<div class="topic-metadata">

**Author:** [@TheBreadFarmer](https://discourse.julialang.org/u/TheBreadFarmer)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 6:01pm UTC](https://discourse.julialang.org/t/passing-a-julia-struct-to-a-already-compiled-cpp-program/124731 "2025-01-13T18:01:10Z")

</div>

I am writing a program in Julia that reads data from a file into memory. I’d like to take that data and somehow pass it to a c++ program which will make use of OpenGL to draw that data to the screen. I am making use of …

---

## ["A Tragedy of Julia’s Type System"](https://discourse.julialang.org/t/a-tragedy-of-julia-s-type-system/124619)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 33\
**Last updated:** [January 13, 2025, 5:10pm UTC](https://discourse.julialang.org/t/a-tragedy-of-julia-s-type-system/124619 "2025-01-13T17:10:11Z")

</div>

(I’m not the author of this article.)

---

## [Lux, optimization on gpu](https://discourse.julialang.org/t/lux-optimization-on-gpu/124678)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 8\
**Last updated:** [January 13, 2025, 4:16pm UTC](https://discourse.julialang.org/t/lux-optimization-on-gpu/124678 "2025-01-13T16:16:57Z")

</div>

Hello I try to perform the example from Train NN with Sophia \[1\] on GPU I tried to get sample working on gpu by using CUDA, LuxCUDA x = rand(10,10) y = sin.(x) data = MLUtils.DataLoader((x, y), batchsize = 1) # Defin…

---

## [Different \[compat\] needs on windows vs mac/linux?](https://discourse.julialang.org/t/different-compat-needs-on-windows-vs-mac-linux/124384)

<div class="topic-metadata">

**Author:** [@Haro](https://discourse.julialang.org/u/Haro)\
**Replies:** 11\
**Last updated:** [January 13, 2025, 3:40pm UTC](https://discourse.julialang.org/t/different-compat-needs-on-windows-vs-mac-linux/124384 "2025-01-13T15:40:42Z")

</div>

Hi all! Is there a way to specify different versions of the same package in \[compat\] based on the OS of the computer running the package? I’m working on a team to develop a package which has a custom plotting script in …

---

## [Why doesn’t Julia offer built-in privacy/encapsulation features?](https://discourse.julialang.org/t/why-doesn-t-julia-offer-built-in-privacy-encapsulation-features/124666)

<div class="topic-metadata">

**Author:** [@younes](https://discourse.julialang.org/u/younes)\
**Replies:** 12\
**Last updated:** [January 13, 2025, 3:15pm UTC](https://discourse.julialang.org/t/why-doesn-t-julia-offer-built-in-privacy-encapsulation-features/124666 "2025-01-13T15:15:00Z")

</div>

I would like to understand Julia’s rationale for not including a language-level privacy feature: a way to truly protect the internal state from outside access. I’m aware that we can use closures to emulate encapsulation…

---

## [Juliac and PackageCompiler](https://discourse.julialang.org/t/juliac-and-packagecompiler/124683)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 2:35pm UTC](https://discourse.julialang.org/t/juliac-and-packagecompiler/124683 "2025-01-13T14:35:50Z")

</div>

It seems that juliac is currently being developed to compile Julia code into binary, which does not impose the constraints in static compilation. I’m however curous about the relation between juliac and Package Compiler:…

---

## [PostDoc in "Mathematic for Materials Modelling" group EPFL, Switzerland](https://discourse.julialang.org/t/postdoc-in-mathematic-for-materials-modelling-group-epfl-switzerland/124718)

<div class="topic-metadata">

**Author:** [@mfh](https://discourse.julialang.org/u/mfh)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 12:42pm UTC](https://discourse.julialang.org/t/postdoc-in-mathematic-for-materials-modelling-group-epfl-switzerland/124718 "2025-01-13T12:42:10Z")

</div>

Dear Julians, I am happy to announce an open PostDoc position on Bayesian methods for inverse materials design at the mathematics for materials modelling group (MatMat, https://matmat.org) at the Ecole Polytechnique Féd…

---

## [Optimizing a simple random walk simulation](https://discourse.julialang.org/t/optimizing-a-simple-random-walk-simulation/124653)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 41\
**Last updated:** [January 13, 2025, 10:49am UTC](https://discourse.julialang.org/t/optimizing-a-simple-random-walk-simulation/124653 "2025-01-13T10:49:45Z")

</div>

Hello everyone, Suppose we have a simple random walk simulation, where a collection of walkers take a step towards a random direction at each time step. For each walker at each step, if some condition is met, the walker…

---

## [PhD Position: Probabilistic approaches to tipping points in natural systems with application to cloud transitions](https://discourse.julialang.org/t/phd-position-probabilistic-approaches-to-tipping-points-in-natural-systems-with-application-to-cloud-transitions/124714)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 10:46am UTC](https://discourse.julialang.org/t/phd-position-probabilistic-approaches-to-tipping-points-in-natural-systems-with-application-to-cloud-transitions/124714 "2025-01-13T10:46:46Z")

</div>

Hello everyone! I would like to advertise a PhD position I got funding for, at the University of Exeter: Probabilistic approaches to tipping points in natural systems with application to cloud transitions The project …

---

## [Repl: should \`ans\` be shared across different prompt modes?](https://discourse.julialang.org/t/repl-should-ans-be-shared-across-different-prompt-modes/124694)

<div class="topic-metadata">

**Author:** [@mfandl](https://discourse.julialang.org/u/mfandl)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 12:07am UTC](https://discourse.julialang.org/t/repl-should-ans-be-shared-across-different-prompt-modes/124694 "2025-01-13T00:07:36Z")

</div>

I just lost some data :person\_shrugging: because I didn’t think a command executed in shell mode will overwrite my ans. That is my fault, but anyway, should this be the case? julia\> 22.5 22.5 julia\> ans 22.5 shell\> ca…

---

## [How to automatically add dependencies?](https://discourse.julialang.org/t/how-to-automatically-add-dependencies/94508)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 6\
**Last updated:** [January 13, 2025, 8:40am UTC](https://discourse.julialang.org/t/how-to-automatically-add-dependencies/94508 "2025-01-13T08:40:59Z")

</div>

I have written a small package, and uploaded it to github: Bai-Zhan/GluonModel I have also written another package, which depends on this GluonModel package: Bai-Zhan/ColdDSE. Now I want to install the ColdDSE package …

---

## [Reducing number of allocations](https://discourse.julialang.org/t/reducing-number-of-allocations/124646)

<div class="topic-metadata">

**Author:** [@arnauqb](https://discourse.julialang.org/u/arnauqb)\
**Replies:** 4\
**Last updated:** [January 13, 2025, 8:19am UTC](https://discourse.julialang.org/t/reducing-number-of-allocations/124646 "2025-01-13T08:19:52Z")

</div>

I am playing around with JuMP to compare its performance to pyomo. This is the model I am using: using JuMP using GLPK using LinearAlgebra using BenchmarkTools function run\_market\_opt(max\_production::AbstractVector{T},…

---

## [Understanding compilation with Optim.jl and OrdinaryDiffEq.jl](https://discourse.julialang.org/t/understanding-compilation-with-optim-jl-and-ordinarydiffeq-jl/124566)

<div class="topic-metadata">

**Author:** [@ysfoo](https://discourse.julialang.org/u/ysfoo)\
**Replies:** 7\
**Last updated:** [January 13, 2025, 8:05am UTC](https://discourse.julialang.org/t/understanding-compilation-with-optim-jl-and-ordinarydiffeq-jl/124566 "2025-01-13T08:05:54Z")

</div>

I’m currently working on numerical optimisation problems that involve solving ODEs, similar to this. I’m trying to understand recurring TTFX when I repeatedly run variations of numerical optimisation problems. Here’s th…

---

## [VS Code could not index GLMakie](https://discourse.julialang.org/t/vs-code-could-not-index-glmakie/122569)

<div class="topic-metadata">

**Author:** [@JuanJoZP](https://discourse.julialang.org/u/JuanJoZP)\
**Replies:** 7\
**Last updated:** [January 12, 2025, 10:56pm UTC](https://discourse.julialang.org/t/vs-code-could-not-index-glmakie/122569 "2025-01-12T22:56:11Z")

</div>

I just downloaded Julia form oficial source, installed VSCode recommended extension. created and activated a new env. Then installed GLMakie using Pkg Pkg.add("GLMakie") Everything works fine, the examples in Makie run…

---

## [BlackBoxOptim - beginner's questions](https://discourse.julialang.org/t/blackboxoptim-beginners-questions/37013)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 16\
**Last updated:** [January 12, 2025, 9:07pm UTC](https://discourse.julialang.org/t/blackboxoptim-beginners-questions/37013 "2025-01-12T21:07:18Z")

</div>

I am new to solving optimization problems. So please excuse any ignorance in my questions. I am using BlackBoxOptim.jl, and I have a few questions: Initial guess and search range. I see that there is an optional arg…

---

## [Using \`@overlay\` like Cassette.jl?](https://discourse.julialang.org/t/using-overlay-like-cassette-jl/124700)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 2\
**Last updated:** [January 12, 2025, 8:54pm UTC](https://discourse.julialang.org/t/using-overlay-like-cassette-jl/124700 "2025-01-12T20:54:39Z")

</div>

I was wondering if anybody knew if it is possible to use Base.Experimental.@overlay in a way similar the overdubbing feature of Cassette.jl? In particular, I want to override the behavior of every single function compile…

---

## [Clarifying expected behavior of dynamic CUDA kernels](https://discourse.julialang.org/t/clarifying-expected-behavior-of-dynamic-cuda-kernels/124689)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 4\
**Last updated:** [January 12, 2025, 8:33pm UTC](https://discourse.julialang.org/t/clarifying-expected-behavior-of-dynamic-cuda-kernels/124689 "2025-01-12T20:33:18Z")

</div>

Dynamic Parallelism I’ve just learned about Dynamic Parallelism that is …useful for recursive algorithms, or for algorithms that otherwise need to dynamically spawn new work. So consider the following example: using…

---

## [Need help: precompilation terminates Julia](https://discourse.julialang.org/t/need-help-precompilation-terminates-julia/124685)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 1\
**Last updated:** [January 12, 2025, 6:57pm UTC](https://discourse.julialang.org/t/need-help-precompilation-terminates-julia/124685 "2025-01-12T18:57:27Z")

</div>

I recently added a branch to PSSFSS.jl to add a new feature and saw that CI was failing. PSSFSS would no longer compile due to failure to compile one of its dependencies, TicraUtilities.jl, another one of my packages th…

---

## [Parametric type with \`@ccall\` compiler bug?](https://discourse.julialang.org/t/parametric-type-with-ccall-compiler-bug/124688)

<div class="topic-metadata">

**Author:** [@mattsignorelli](https://discourse.julialang.org/u/mattsignorelli)\
**Replies:** 10\
**Last updated:** [January 12, 2025, 5:44pm UTC](https://discourse.julialang.org/t/parametric-type-with-ccall-compiler-bug/124688 "2025-01-12T17:44:09Z")

</div>

TL;DR: # The following works fine: mt = MyType{Int32,CTable(16)}() # Define convenience ctor: MyType{T}() where {T} = MyType{T,CTable(16)}() # This throws a weird error: MType{Int32}() I maintain a Julia interface to…

---

## [Need better message for background-task precompilation error](https://discourse.julialang.org/t/need-better-message-for-background-task-precompilation-error/124701)

<div class="topic-metadata">

**Author:** [@Bradley\_Kuszmaul](https://discourse.julialang.org/u/Bradley_Kuszmaul)\
**Replies:** 0\
**Last updated:** [January 12, 2025, 4:30pm UTC](https://discourse.julialang.org/t/need-better-message-for-background-task-precompilation-error/124701 "2025-01-12T16:30:06Z")

</div>

I was seeing the following warning when I did using StorageIntegration (a package I was developing): StorageIntegration Waiting for background task / IO / timer. \[pid 36551\] waiting for IO to finish: Handle type …

---

## [US elections model implementation in Turing](https://discourse.julialang.org/t/us-elections-model-implementation-in-turing/49864)

<div class="topic-metadata">

**Author:** [@entr0pidelic](https://discourse.julialang.org/u/entr0pidelic)\
**Replies:** 4\
**Last updated:** [January 12, 2025, 4:01pm UTC](https://discourse.julialang.org/t/us-elections-model-implementation-in-turing/49864 "2025-01-12T16:01:39Z")

</div>

Hello guys, hope you are doing well. I am trying to implement the US forecasting election model from the paper by Linzer https://www.ime.usp.br/~abe/lista/pdfpWRrt4xFLt.pdf, and it would be great if someone could give m…

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

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