# Latest

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

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

**Page:** 156

---

## [How to change the number of threads?](https://discourse.julialang.org/t/how-to-change-the-number-of-threads/6169)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 10\
**Last updated:** [June 4, 2025, 3:00pm UTC](https://discourse.julialang.org/t/how-to-change-the-number-of-threads/6169 "2025-06-04T15:00:41Z")

</div>

How to change the number of threads? Currently it is one for me: julia\> Threads.nthreads() 1 Is there a function/command line flag to add more threads? Is this documented somewhere?

---

## [Could introducing formal interfaces be nonbreaking?](https://discourse.julialang.org/t/could-introducing-formal-interfaces-be-nonbreaking/129567)

<div class="topic-metadata">

**Author:** [@araujoms](https://discourse.julialang.org/u/araujoms)\
**Replies:** 36\
**Last updated:** [June 4, 2025, 2:10pm UTC](https://discourse.julialang.org/t/could-introducing-formal-interfaces-be-nonbreaking/129567 "2025-06-04T14:10:18Z")

</div>

I’m surprised by the talk about formal interfaces coming to the base language. I thought that was impossible before Julia 2.0, as they will necessarily break all the packages who don’t conform to the new interface. For e…

---

## [Why is my GPU kernel an order of magnitude slower than my CPU function?](https://discourse.julialang.org/t/why-is-my-gpu-kernel-an-order-of-magnitude-slower-than-my-cpu-function/129596)

<div class="topic-metadata">

**Author:** [@jwtkeeble](https://discourse.julialang.org/u/jwtkeeble)\
**Replies:** 8\
**Last updated:** [June 4, 2025, 1:41pm UTC](https://discourse.julialang.org/t/why-is-my-gpu-kernel-an-order-of-magnitude-slower-than-my-cpu-function/129596 "2025-06-04T13:41:39Z")

</div>

Hi All, I’m relatively new to Julia and I’ve been trying to benchmark a nested-loop function over 2 arrays, on both the CPU and GPU, however, the CPU version is significantly quicker. Now, I’m sure that this is due to …

---

## [What is interaction between F.() broadcasting and keyword args?](https://discourse.julialang.org/t/what-is-interaction-between-f-broadcasting-and-keyword-args/3648)

<div class="topic-metadata">

**Author:** [@ndbecker](https://discourse.julialang.org/u/ndbecker)\
**Replies:** 13\
**Last updated:** [June 4, 2025, 12:44pm UTC](https://discourse.julialang.org/t/what-is-interaction-between-f-broadcasting-and-keyword-args/3648 "2025-06-04T12:44:49Z")

</div>

How does F.(a, b; c=d) work with respect to broadcasting? I understand that the arguments a, b will be broadcast. What about the keyword argument?

---

## [A plea from an old scientist for someone to write the Kernighan & Ritchie of Julia](https://discourse.julialang.org/t/a-plea-from-an-old-scientist-for-someone-to-write-the-kernighan-ritchie-of-julia/129332)

<div class="topic-metadata">

**Author:** [@Darrel](https://discourse.julialang.org/u/Darrel)\
**Replies:** 7\
**Last updated:** [June 4, 2025, 12:01pm UTC](https://discourse.julialang.org/t/a-plea-from-an-old-scientist-for-someone-to-write-the-kernighan-ritchie-of-julia/129332 "2025-06-04T12:01:54Z")

</div>

I don’t learn from videos. I read. Back in the Stone Age days of my undergrad, they first taught us Pascal and then PDP 11 assembly. I then worked in a lab programming PDP’s in assembly Since then I’ve programmed exten…

---

## [How to better initialize a dictionary containing multidimensional array?](https://discourse.julialang.org/t/how-to-better-initialize-a-dictionary-containing-multidimensional-array/129632)

<div class="topic-metadata">

**Author:** [@Harrykjg-physics](https://discourse.julialang.org/u/Harrykjg-physics)\
**Replies:** 10\
**Last updated:** [June 4, 2025, 11:52am UTC](https://discourse.julialang.org/t/how-to-better-initialize-a-dictionary-containing-multidimensional-array/129632 "2025-06-04T11:52:38Z")

</div>

Hi everyone, I want to create a Dict() object where the keys are NTuple{6, Int} and the corresponding values are rank-6 arrays. I found the following function to create such Dict object with 64 items are much slower than…

---

## [What's the best GUI library for doing asynchronous work?](https://discourse.julialang.org/t/whats-the-best-gui-library-for-doing-asynchronous-work/128525)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 6\
**Last updated:** [June 4, 2025, 9:48am UTC](https://discourse.julialang.org/t/whats-the-best-gui-library-for-doing-asynchronous-work/128525 "2025-06-04T09:48:02Z")

</div>

I’m making a GUI to control a robot over serial and I want to be able to use buttons and text fields to control asynchronous loops that send and receive data over serial. What GUI library makes this easiest? There seem …

---

## [Timeout issues on slurm cluster](https://discourse.julialang.org/t/timeout-issues-on-slurm-cluster/58303)

<div class="topic-metadata">

**Author:** [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Replies:** 7\
**Last updated:** [June 4, 2025, 9:20am UTC](https://discourse.julialang.org/t/timeout-issues-on-slurm-cluster/58303 "2025-06-04T09:20:33Z")

</div>

I’ve been running into IOError: connect: connection timed out (ETIMEDOUT) with about half my jobs using ClusterManagers on a slurm cluster. This issue started appearing about a month ago with julia 1.3 and ClusterManager…

---

## [Problem when add CairoMakie](https://discourse.julialang.org/t/problem-when-add-cairomakie/129616)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 3\
**Last updated:** [June 4, 2025, 6:44am UTC](https://discourse.julialang.org/t/problem-when-add-cairomakie/129616 "2025-06-04T06:44:40Z")

</div>

When I tried to add CairoMakie, I got this warning: Warning: downloading texture atlas failed, need to re-create from scratch. │ │ exception = │ │ RequestError: HTTP/2 302 (Failed to connect to objects.githubuser…

---

## [Build a Build deep neural network classifier using a long short-term memory (LSTM) architecture](https://discourse.julialang.org/t/build-a-build-deep-neural-network-classifier-using-a-long-short-term-memory-lstm-architecture/129606)

<div class="topic-metadata">

**Author:** [@Ltukondjere](https://discourse.julialang.org/u/Ltukondjere)\
**Replies:** 3\
**Last updated:** [June 4, 2025, 4:30am UTC](https://discourse.julialang.org/t/build-a-build-deep-neural-network-classifier-using-a-long-short-term-memory-lstm-architecture/129606 "2025-06-04T04:30:03Z")

</div>

Good day, Please help me. I recently started with Julia and i am trying to use it to build a deep neural network classifier using a long short-term memory (LSTM) architecture. I manage to load my data, did text preproce…

---

## [Future of Julia](https://discourse.julialang.org/t/future-of-julia/129610)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 6\
**Last updated:** [June 4, 2025, 2:24am UTC](https://discourse.julialang.org/t/future-of-julia/129610 "2025-06-04T02:24:54Z")

</div>

I have loved learning to use Julia. It has forced me to think more deeply about types and optimizations. There are things that I still don’t love but I have “bought in” to the julia paradigm and spent quite a bit of tim…

---

## [Manual post splits](https://discourse.julialang.org/t/manual-post-splits/128415)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 3\
**Last updated:** [June 4, 2025, 2:14am UTC](https://discourse.julialang.org/t/manual-post-splits/128415 "2025-06-04T02:14:48Z")

</div>

So this is something I’ve started trying out and I think it’s working fairly well. It’s not terribly easy to do, but I think there are times when it’s worth doing — particularly when it’s not possible to perform a sensi…

---

## [Modify a JuMP model via modifying expressions](https://discourse.julialang.org/t/modify-a-jump-model-via-modifying-expressions/129594)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [June 3, 2025, 11:00pm UTC](https://discourse.julialang.org/t/modify-a-jump-model-via-modifying-expressions/129594 "2025-06-03T23:00:04Z")

</div>

Currently the doc of JuMP teaches people how to modify constraints and how to modify objective\_expression. In my mind, there is a more natural way: Build an initial model (that we will revise later) partly involving so…

---

## [Solve Regularized Nonlinear Least Squares](https://discourse.julialang.org/t/solve-regularized-nonlinear-least-squares/129608)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 10:01pm UTC](https://discourse.julialang.org/t/solve-regularized-nonlinear-least-squares/129608 "2025-06-03T22:01:20Z")

</div>

Hi everyone :grinning:, I want to solve a large Regularized Nonlinear Least Squares problem min \\text{Cost} \\left(T^{1}, T^{2}\\right) = \\|r\\|^2 + R(T^{1}, T^{2}) where r log-sum-exponential terms: r^{i}(T^{1}, T^…

---

## [Vertical band plot in makie](https://discourse.julialang.org/t/vertical-band-plot-in-makie/121920)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 11\
**Last updated:** [June 3, 2025, 2:37pm UTC](https://discourse.julialang.org/t/vertical-band-plot-in-makie/121920 "2025-06-03T14:37:15Z")

</div>

In makie, we can create a band plot between two arrays y\_lower and y\_upper, for a single x array. Would there be a way to use two x arrays and one y array instead, and produce something that looks more like a violin plo…

---

## [Library hunt: adaptive sampling for parametric plots](https://discourse.julialang.org/t/library-hunt-adaptive-sampling-for-parametric-plots/128448)

<div class="topic-metadata">

**Author:** [@srs](https://discourse.julialang.org/u/srs)\
**Replies:** 9\
**Last updated:** [June 3, 2025, 11:36am UTC](https://discourse.julialang.org/t/library-hunt-adaptive-sampling-for-parametric-plots/128448 "2025-06-03T11:36:46Z")

</div>

Hey all, I’m looking for a library that can adaptively sample parametric plots (for reasonably well-behaved functions). I’m on the verge of writing a little library here but it seems like so many people would want this t…

---

## [Syntax about \*(a, b)](https://discourse.julialang.org/t/syntax-about-a-b/129546)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 19\
**Last updated:** [June 3, 2025, 10:36am UTC](https://discourse.julialang.org/t/syntax-about-a-b/129546 "2025-06-03T10:36:43Z")

</div>

I think it is reasonable for users to write code in the latter style, but it errors, can this be improved? julia\> \[2\*3 3\*4; 3\*4 2\*3\] 2×2 Matrix{Int64}: 6 12 12 6 julia\> \[\*(2, 3) \*(3, 4); \*(3, 4) \*(2…

---

## [Equivelent HTTP.jl code for Python socket implementation](https://discourse.julialang.org/t/equivelent-http-jl-code-for-python-socket-implementation/129566)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 9:50am UTC](https://discourse.julialang.org/t/equivelent-http-jl-code-for-python-socket-implementation/129566 "2025-06-03T09:50:13Z")

</div>

I’m trying to emulate a piece of Python code that talks to a http server in Julia but I don’t really understand the python code or how to translate it into equivalent HTTP.jl and Sockets.jl code. Here’s a very compresse…

---

## [Precision issues in exponent computation and differential equation](https://discourse.julialang.org/t/precision-issues-in-exponent-computation-and-differential-equation/129591)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [June 3, 2025, 9:30am UTC](https://discourse.julialang.org/t/precision-issues-in-exponent-computation-and-differential-equation/129591 "2025-06-03T09:30:25Z")

</div>

Hello, Im working on a differential equation based model some of its equations has power term (x^a) which is major issue because without this model works fine. Now issue is that I have used stiff solver(RodasP5), differ…

---

## [How can interfaces work with symbolic-diff?](https://discourse.julialang.org/t/how-can-interfaces-work-with-symbolic-diff/129565)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 8\
**Last updated:** [June 3, 2025, 9:01am UTC](https://discourse.julialang.org/t/how-can-interfaces-work-with-symbolic-diff/129565 "2025-06-03T09:01:18Z")

</div>

In @MilesCranmer’s post about abstract typing, @ChrisRackauckas wrote I didn’t want to take that thread off topic, so pulling this out. I’m interested to see @ChrisRackauckas mention function interfaces as a solution w…

---

## [\[Resolved\] ERROR: SciMLSensitivity](https://discourse.julialang.org/t/resolved-error-scimlsensitivity/129531)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 7\
**Last updated:** [June 3, 2025, 9:00am UTC](https://discourse.julialang.org/t/resolved-error-scimlsensitivity/129531 "2025-06-03T09:00:43Z")

</div>

Hello all, I am dealing with a code including CRNN in the case of 2 consecutives chemical reactions. The code can be found here. Amongst other packages I am using: SciMLSensitivity v7.84.0 Zygote v0.7.7 The error is…

---

## [How to handle quadratic objectives with SDDP.jl?](https://discourse.julialang.org/t/how-to-handle-quadratic-objectives-with-sddp-jl/129589)

<div class="topic-metadata">

**Author:** [@Samuel\_M](https://discourse.julialang.org/u/Samuel_M)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 8:51am UTC](https://discourse.julialang.org/t/how-to-handle-quadratic-objectives-with-sddp-jl/129589 "2025-06-03T08:51:53Z")

</div>

Hello everybody. I have to solve a problem similar to an economicd dispatch or unit commitment and I have seen that a good alternative is the Stochastic Dual Dynamic Programming and I was thinking about using SDDP.jl. H…

---

## [Sum over view of BitArray](https://discourse.julialang.org/t/sum-over-view-of-bitarray/129585)

<div class="topic-metadata">

**Author:** [@jerry\_ji](https://discourse.julialang.org/u/jerry_ji)\
**Replies:** 3\
**Last updated:** [June 3, 2025, 8:39am UTC](https://discourse.julialang.org/t/sum-over-view-of-bitarray/129585 "2025-06-03T08:39:39Z")

</div>

q=trues(10000) d=view(q,1:10000) @btime sum($q) 17.034 ns (0 allocations: 0 bytes) 10000 @btime sum($d) 2.678 μs (0 allocations: 0 bytes) 10000 how can i improve performance of sum over continuous subset of a Bit…

---

## [VS Code won't run tests anymore](https://discourse.julialang.org/t/vs-code-wont-run-tests-anymore/129233)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 14\
**Last updated:** [June 3, 2025, 7:08am UTC](https://discourse.julialang.org/t/vs-code-wont-run-tests-anymore/129233 "2025-06-03T07:08:43Z")

</div>

My test pane (with the chemistry beaker icon) in VS Code won’t run tests anymore, as of this week. When I click on the “run” button, for all of the tests together or just a single test, it seems to just hang forever. R…

---

## [Parameter estimation for Fractional differential equations](https://discourse.julialang.org/t/parameter-estimation-for-fractional-differential-equations/129549)

<div class="topic-metadata">

**Author:** [@SANYAM\_TYAGI](https://discourse.julialang.org/u/SANYAM_TYAGI)\
**Replies:** 2\
**Last updated:** [June 3, 2025, 5:33am UTC](https://discourse.julialang.org/t/parameter-estimation-for-fractional-differential-equations/129549 "2025-06-03T05:33:19Z")

</div>

Hi, I am a new to Julia. I have been trying to fit my FDE model to a data set. I was trying to do it in MATLAB but there are no stiff solvers for fractional differential equations (not in my knowledge). Everything seems …

---

## [VS code Julia 1.8 - could not download https://juliahub.com/registries - exception = HTTP/1.1 401 Unauthorized while requesting https://juliahub.com/registries](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 6\
**Last updated:** [June 3, 2025, 3:25am UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791 "2025-06-03T03:25:56Z")

</div>

I keep getting the following error: Warning: could not download https://juliahub.com/registries │ exception = HTTP/1.1 401 Unauthorized while requesting https://juliahub.com/registries └ @ Pkg.Registry /Users/julia/.j…

---

## [Computing the adjugate/cofactors of a matrix](https://discourse.julialang.org/t/computing-the-adjugate-cofactors-of-a-matrix/125184)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 12:04am UTC](https://discourse.julialang.org/t/computing-the-adjugate-cofactors-of-a-matrix/125184 "2025-06-03T00:04:19Z")

</div>

For pedagogy (in our matrix calculus course at MIT), I wanted to have a routine to compute the adjugate of a matrix, since this arises in the gradient of the determinant. This is defined by: \\mathrm{adj}(A) = A^{-1} …

---

## [Display images in real time](https://discourse.julialang.org/t/display-images-in-real-time/129580)

<div class="topic-metadata">

**Author:** [@homocarbonis](https://discourse.julialang.org/u/homocarbonis)\
**Replies:** 3\
**Last updated:** [June 2, 2025, 8:36pm UTC](https://discourse.julialang.org/t/display-images-in-real-time/129580 "2025-06-02T20:36:57Z")

</div>

I have some code which updates a matrix and I would like to display it as an image which updates in real time. I first tried Plots’ @gif which produces a gif file but no live display, so I switched to Makie. This is my c…

---

## [Downloads.download not working on github while OS curl does](https://discourse.julialang.org/t/downloads-download-not-working-on-github-while-os-curl-does/129272)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 15\
**Last updated:** [June 2, 2025, 7:55pm UTC](https://discourse.julialang.org/t/downloads-download-not-working-on-github-while-os-curl-does/129272 "2025-06-02T19:55:40Z")

</div>

Hi All, I am facing problems downloading artifacts on a linux remote server I connect to via SSH. This is an issue that I have been facing only in the last days and I am using this server daily since months now. This i…

---

## [New on Forem: “Profile a short-running function”](https://discourse.julialang.org/t/new-on-forem-profile-a-short-running-function/129581)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 0\
**Last updated:** [June 2, 2025, 7:37pm UTC](https://discourse.julialang.org/t/new-on-forem-profile-a-short-running-function/129581 "2025-06-02T19:37:05Z")

</div>

@nsajko shows some insights into profiling Julia on Forem: Thanks for sharing this!

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

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