# Latest

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

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

**Page:** 168

---

## [GPU is slower than CPU for findall on a CuArray](https://discourse.julialang.org/t/gpu-is-slower-than-cpu-for-findall-on-a-cuarray/128916)

<div class="topic-metadata">

**Author:** [@jtoledom](https://discourse.julialang.org/u/jtoledom)\
**Replies:** 2\
**Last updated:** [May 14, 2025, 12:02am UTC](https://discourse.julialang.org/t/gpu-is-slower-than-cpu-for-findall-on-a-cuarray/128916 "2025-05-14T00:02:17Z")

</div>

I’m writing a code to generate Von Mises random numbers based on this method which is free of accept/reject. It is based on this paper. This issue appears to be with findall. Anyone can reproduce the behaviour by using…

---

## [Optimizing the computation of jacobians for multiple shooting implementation](https://discourse.julialang.org/t/optimizing-the-computation-of-jacobians-for-multiple-shooting-implementation/128976)

<div class="topic-metadata">

**Author:** [@jackyarndley](https://discourse.julialang.org/u/jackyarndley)\
**Replies:** 10\
**Last updated:** [May 13, 2025, 9:38pm UTC](https://discourse.julialang.org/t/optimizing-the-computation-of-jacobians-for-multiple-shooting-implementation/128976 "2025-05-13T21:38:36Z")

</div>

Hi, I’ve been working with multiple shooting for trajectory optimization. I am currently using the sparse backend from DifferentiationInterface.jl and using DifferentialEquations.jl to perform the integration. A snippet …

---

## [\[ANN\] WiringPi.jl Library for GPIO, I2C, SPI, data acquisition](https://discourse.julialang.org/t/ann-wiringpi-jl-library-for-gpio-i2c-spi-data-acquisition/128975)

<div class="topic-metadata">

**Author:** [@stene](https://discourse.julialang.org/u/stene)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 7:18pm UTC](https://discourse.julialang.org/t/ann-wiringpi-jl-library-for-gpio-i2c-spi-data-acquisition/128975 "2025-05-13T19:18:33Z")

</div>

Port of WiringPi to Julia. Code can be found here Julia WiringPi. Supports GPIO, I2C, SPI. More data acquisition examples will be added.

---

## [Julia executable path](https://discourse.julialang.org/t/julia-executable-path/128936)

<div class="topic-metadata">

**Author:** [@KZ-Spectra](https://discourse.julialang.org/u/KZ-Spectra)\
**Replies:** 3\
**Last updated:** [May 13, 2025, 6:46pm UTC](https://discourse.julialang.org/t/julia-executable-path/128936 "2025-05-13T18:46:54Z")

</div>

I am trying to get Julia to work in Vscode on Ubuntu. $ which julia /snap/bin/julia “julia.executablePath”: “/snap/bin/julia” But Julia is not recognized. Am I using the correct path?

---

## [Raspberry PI 5 GPIO](https://discourse.julialang.org/t/raspberry-pi-5-gpio/126652)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 6\
**Last updated:** [May 13, 2025, 6:21pm UTC](https://discourse.julialang.org/t/raspberry-pi-5-gpio/126652 "2025-05-13T18:21:41Z")

</div>

I have an application that requires a trigger signal (Just one pin going from low to high and back to low). There are several options for GPIO control in Julia but the PI 5 adds a new twist as outlined here and here. T…

---

## [Would you sonify your data?](https://discourse.julialang.org/t/would-you-sonify-your-data/116366)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 20\
**Last updated:** [May 13, 2025, 2:57pm UTC](https://discourse.julialang.org/t/would-you-sonify-your-data/116366 "2025-05-13T14:57:45Z")

</div>

Legend \[1\] has it that we might never have discovered the black hole at the center of our galaxy if Karl Jansky had not heard static while listening for weirdness in radio waves. The sound of the geigercounter freaking o…

---

## [Some thoughts on improving the doc of SparseArrays.jl](https://discourse.julialang.org/t/some-thoughts-on-improving-the-doc-of-sparsearrays-jl/128960)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 1\
**Last updated:** [May 13, 2025, 1:29pm UTC](https://discourse.julialang.org/t/some-thoughts-on-improving-the-doc-of-sparsearrays-jl/128960 "2025-05-13T13:29:17Z")

</div>

The stdlib SparseArrays.jl is mainly about SparseMatrixCSC and SparseVector. From my point of view, its doc reads a bit immature (Edit: this word was used improperly. I hadn’t learnt its meaning. I’m not an native speak…

---

## [\[julia\] imshow() return a dict and no image in Visual Studio Code](https://discourse.julialang.org/t/julia-imshow-return-a-dict-and-no-image-in-visual-studio-code/128953)

<div class="topic-metadata">

**Author:** [@watchben](https://discourse.julialang.org/u/watchben)\
**Replies:** 4\
**Last updated:** [May 13, 2025, 1:20pm UTC](https://discourse.julialang.org/t/julia-imshow-return-a-dict-and-no-image-in-visual-studio-code/128953 "2025-05-13T13:20:26Z")

</div>

Hello dear community, I’m running this code in a jupyter notebook via Visual Studio Code: # Packages using Images, ImageView # Loading image from path img\_rgb = load(img\_path) # Compound function converting img to gray…

---

## [Python3+@njit faster than julia (rs)](https://discourse.julialang.org/t/python3-njit-faster-than-julia-rs/128932)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 10\
**Last updated:** [May 13, 2025, 1:08pm UTC](https://discourse.julialang.org/t/python3-njit-faster-than-julia-rs/128932 "2025-05-13T13:08:59Z")

</div>

Consider the simple following test: julia\> using Chairmarks julia\> function test(f, m) size = length(f) for i in 1:size for j in 1:size dij = m\[i,j\] …

---

## [About checking a package/library \`Manifest.toml\` into control version (again)](https://discourse.julialang.org/t/about-checking-a-package-library-manifest-toml-into-control-version-again/127490)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 22\
**Last updated:** [May 13, 2025, 12:26pm UTC](https://discourse.julialang.org/t/about-checking-a-package-library-manifest-toml-into-control-version-again/127490 "2025-05-13T12:26:17Z")

</div>

Hello @Julia, From what I understand here and there (but really anywhere), there is almost dogmatic community consensus that Manifest.toml files may be checked into version control for end applications, but certainly no…

---

## [In a Plots.jl \`bar\` plot, how to remove space between bars?](https://discourse.julialang.org/t/in-a-plots-jl-bar-plot-how-to-remove-space-between-bars/128933)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 10:18am UTC](https://discourse.julialang.org/t/in-a-plots-jl-bar-plot-how-to-remove-space-between-bars/128933 "2025-05-13T10:18:20Z")

</div>

Here: using Plots vals = \[1.0 + rand() for \_ in 1:10\] bar(vals) How do I remove the space between the bars (and make them be tight)?

---

## [Sparse arrays allocation versus speed](https://discourse.julialang.org/t/sparse-arrays-allocation-versus-speed/128726)

<div class="topic-metadata">

**Author:** [@Boris](https://discourse.julialang.org/u/Boris)\
**Replies:** 9\
**Last updated:** [May 13, 2025, 5:18am UTC](https://discourse.julialang.org/t/sparse-arrays-allocation-versus-speed/128726 "2025-05-13T05:18:56Z")

</div>

Hi! I have a question about allocations and speed trade-off when using Sparse Arrays. TLDR question: Sparse matrix multiplication for my case is fast, but allocates a lot of memory. Using dense matrices my code is slowe…

---

## [Can views function on diag?](https://discourse.julialang.org/t/can-views-function-on-diag/128943)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 3\
**Last updated:** [May 13, 2025, 3:54am UTC](https://discourse.julialang.org/t/can-views-function-on-diag/128943 "2025-05-13T03:54:18Z")

</div>

Diagonal vector is a central vector that can be sliced from a Matrix, can it be viewed? julia\> using LinearAlgebra julia\> A = rand(-9:9, 2, 2) 2×2 Matrix{Int64}: -1 6 6 -9 julia\> @views d = diag(A) 2-element Vec…

---

## [Size of installed packages in Docker images](https://discourse.julialang.org/t/size-of-installed-packages-in-docker-images/123216)

<div class="topic-metadata">

**Author:** [@Psirus](https://discourse.julialang.org/u/Psirus)\
**Replies:** 1\
**Last updated:** [May 13, 2025, 3:53am UTC](https://discourse.julialang.org/t/size-of-installed-packages-in-docker-images/123216 "2025-05-13T03:53:39Z")

</div>

I’m trying to build a Julia image for a CI server that has a few packages preinstalled. Unfortunately, my naive approach seems to install more than I need. The layers of the base julia:1.11 image look like this Cmp …

---

## [Documenter.jl: HTMLWriter: rendering HTML pages loops forever](https://discourse.julialang.org/t/documenter-jl-htmlwriter-rendering-html-pages-loops-forever/128910)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 4\
**Last updated:** [May 13, 2025, 2:39am UTC](https://discourse.julialang.org/t/documenter-jl-htmlwriter-rendering-html-pages-loops-forever/128910 "2025-05-13T02:39:26Z")

</div>

Hello everybody, I am updating a package after a long time and the documentation does not build anymore. Specifically, invoking the building process with makedocs, it gets to the final step, the REPL print HTMLWriter:…

---

## [Is it possible to know if a function has captured local variables?](https://discourse.julialang.org/t/is-it-possible-to-know-if-a-function-has-captured-local-variables/128934)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 11\
**Last updated:** [May 13, 2025, 1:40am UTC](https://discourse.julialang.org/t/is-it-possible-to-know-if-a-function-has-captured-local-variables/128934 "2025-05-13T01:40:57Z")

</div>

julia\> a = fill(1) 0-dimensional Array{Int64, 0}: 1 julia\> function foo(b) a\[\] + b end foo (generic function with 1 method) julia\> foo(1) 2 julia\> a\[\] = 2 2 julia\> foo(1) 3 julia\> some\_detector(foo…

---

## [Behaviors of \`deepcopy\` for a function constructed with different ways of referencing a global variable](https://discourse.julialang.org/t/behaviors-of-deepcopy-for-a-function-constructed-with-different-ways-of-referencing-a-global-variable/128939)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 1:30am UTC](https://discourse.julialang.org/t/behaviors-of-deepcopy-for-a-function-constructed-with-different-ways-of-referencing-a-global-variable/128939 "2025-05-13T01:30:07Z")

</div>

This discovery stemmed from the reply in another post, but since it’s less relevant to the initial post, I thought I would make a new post dedicated to it. julia\> box = fill(1) 0-dimensional Array{Int64, 0}: 1 julia\> f…

---

## [Julia v1.12.0-beta3 is now available](https://discourse.julialang.org/t/julia-v1-12-0-beta3-is-now-available/128941)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [May 13, 2025, 1:29am UTC](https://discourse.julialang.org/t/julia-v1-12-0-beta3-is-now-available/128941 "2025-05-13T01:29:47Z")

</div>

Julia version 1.12.0-beta3, the third beta pre-release in the upcoming 1.12 series of releases, is now available. Check out the NEWS.md file to see what will be new in 1.12. Binaries are available via JuliaUp and in the …

---

## [Hessian is not jacobian-compose-gradient in Symbolics.jl](https://discourse.julialang.org/t/hessian-is-not-jacobian-compose-gradient-in-symbolics-jl/128921)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 4\
**Last updated:** [May 13, 2025, 12:03am UTC](https://discourse.julialang.org/t/hessian-is-not-jacobian-compose-gradient-in-symbolics-jl/128921 "2025-05-13T00:03:12Z")

</div>

I wonder why is (the title). My results is like this. Did I use its API correctly? julia\> using Symbolics julia\> @variables p\[1:10\] 1-element Vector{Symbolics.Arr{Num, 1}}: p\[1:10\] julia\> f = bobj(e, p) # some scala…

---

## [Fail to re-add new constraints as a new upper bound of an expression in JuMP model](https://discourse.julialang.org/t/fail-to-re-add-new-constraints-as-a-new-upper-bound-of-an-expression-in-jump-model/128850)

<div class="topic-metadata">

**Author:** [@Wendy\_Weng](https://discourse.julialang.org/u/Wendy_Weng)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 8:39pm UTC](https://discourse.julialang.org/t/fail-to-re-add-new-constraints-as-a-new-upper-bound-of-an-expression-in-jump-model/128850 "2025-05-12T20:39:52Z")

</div>

I have a JuMP model called EP. I am trying to delete and re-add constraints called cMaxCap as an upper bound for an expression eTotalCap. This upper bound has values max\_cap\_mw. However, after deleting and re-adding, my…

---

## [Julia with vscode stopped working (executablePath setting issue)](https://discourse.julialang.org/t/julia-with-vscode-stopped-working-executablepath-setting-issue/128931)

<div class="topic-metadata">

**Author:** [@angelajiang](https://discourse.julialang.org/u/angelajiang)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 8:03pm UTC](https://discourse.julialang.org/t/julia-with-vscode-stopped-working-executablepath-setting-issue/128931 "2025-05-12T20:03:54Z")

</div>

Hi all, I have been using julia with VScode. It was working fine previously, but about a week ago I could no longer get julia to run with VScode. The first error message I got was “Could not start the Julia language s…

---

## [CUDA | nested loops kernel](https://discourse.julialang.org/t/cuda-nested-loops-kernel/128812)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 5\
**Last updated:** [May 12, 2025, 4:25pm UTC](https://discourse.julialang.org/t/cuda-nested-loops-kernel/128812 "2025-05-12T16:25:28Z")

</div>

Hello, As part of learning to use CUDA in Julia, I wrote the following MWE to compare threaded CPU, CUDA array programming, and CUDA kernel programming performance for a simple element by element array multiplication. …

---

## [Composite type fields names from C code](https://discourse.julialang.org/t/composite-type-fields-names-from-c-code/128919)

<div class="topic-metadata">

**Author:** [@alexkolzov](https://discourse.julialang.org/u/alexkolzov)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 11:12am UTC](https://discourse.julialang.org/t/composite-type-fields-names-from-c-code/128919 "2025-05-12T11:12:04Z")

</div>

Hello everyone! I am trying to get the name of composite type fields in version 1.11. A long time ago I did it like this: int nfields = jl\_datatype\_nfields(jtype); fields.resize(nfields); for (int i = 0; i \< nfields; …

---

## [Good ways to plot DataFrames content?](https://discourse.julialang.org/t/good-ways-to-plot-dataframes-content/128877)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 12\
**Last updated:** [May 12, 2025, 9:26am UTC](https://discourse.julialang.org/t/good-ways-to-plot-dataframes-content/128877 "2025-05-12T09:26:58Z")

</div>

I have never really gotten along with DataFrames very well (and to be fair, not used it that much). I figured I should ask if there are any straightforward recipes (or methods) for plotting the content of a DataFrame? (…

---

## [ControlSystemsMTK: Easy Way to Initialize Output?](https://discourse.julialang.org/t/controlsystemsmtk-easy-way-to-initialize-output/128742)

<div class="topic-metadata">

**Author:** [@TicTac](https://discourse.julialang.org/u/TicTac)\
**Replies:** 4\
**Last updated:** [May 12, 2025, 6:27am UTC](https://discourse.julialang.org/t/controlsystemsmtk-easy-way-to-initialize-output/128742 "2025-05-12T06:27:12Z")

</div>

Is there a convenient way to the initialize the unknowns in a ODESystem created by ControlSystemsMTK based on a desired initial output? I needed a simple time delay model for something, and I figured using pade from Con…

---

## [Problem rendering Compose.Context from GraphPlot.gplot() with gksqt backend on Windows (Julia v1.11.4)](https://discourse.julialang.org/t/problem-rendering-compose-context-from-graphplot-gplot-with-gksqt-backend-on-windows-julia-v1-11-4/128908)

<div class="topic-metadata">

**Author:** [@ChaucAPA](https://discourse.julialang.org/u/ChaucAPA)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 4:01am UTC](https://discourse.julialang.org/t/problem-rendering-compose-context-from-graphplot-gplot-with-gksqt-backend-on-windows-julia-v1-11-4/128908 "2025-05-12T04:01:45Z")

</div>

Dear Julia Community, I am encountering an issue while trying to visualize a simple graph using the GraphPlot package (v0.6.1) in Julia (v1.11.4) on a 64-bit Windows operating system. My goal is to use the gksqt graphic…

---

## [My Gurobi version is 12.0.2, but in julia it is still 12.0.1](https://discourse.julialang.org/t/my-gurobi-version-is-12-0-2-but-in-julia-it-is-still-12-0-1/128899)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 12:00am UTC](https://discourse.julialang.org/t/my-gurobi-version-is-12-0-2-but-in-julia-it-is-still-12-0-1/128899 "2025-05-12T00:00:30Z")

</div>

I update my gurobi optimizer today. And I’ve deleted all the previous version. But in julia it still shows the old version (cf. 🍅 lines). Is this normal? PS K:\\uc24\> gurobi Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 20…

---

## [Documenter.jl: How to avoid repetitions of shared docstrings?](https://discourse.julialang.org/t/documenter-jl-how-to-avoid-repetitions-of-shared-docstrings/128885)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 11\
**Last updated:** [May 11, 2025, 8:30pm UTC](https://discourse.julialang.org/t/documenter-jl-how-to-avoid-repetitions-of-shared-docstrings/128885 "2025-05-11T20:30:35Z")

</div>

Suppose I have two functions that share a common docstring: f() = 1 g() = 2 "docstring for \`f\` and \`g\`" f, g I only want to the docstring to appear once in the documentation, not twice. However, if I only write \`\`\`@d…

---

## [A performant optimizing algorithm for a case with an expensive cost function and parallel execution](https://discourse.julialang.org/t/a-performant-optimizing-algorithm-for-a-case-with-an-expensive-cost-function-and-parallel-execution/128900)

<div class="topic-metadata">

**Author:** [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Replies:** 4\
**Last updated:** [May 11, 2025, 4:43pm UTC](https://discourse.julialang.org/t/a-performant-optimizing-algorithm-for-a-case-with-an-expensive-cost-function-and-parallel-execution/128900 "2025-05-11T16:43:31Z")

</div>

I have a very expensive multivariate cost function (FDTD simulation with openEMS) but I have resources to run many of them in parallel. What would be a good algorithm (and package) to implement this? A variant of differe…

---

## [Propagate posterior samples from model calibration as the prior into an inverse problem](https://discourse.julialang.org/t/propagate-posterior-samples-from-model-calibration-as-the-prior-into-an-inverse-problem/128844)

<div class="topic-metadata">

**Author:** [@Cory\_Simon](https://discourse.julialang.org/u/Cory_Simon)\
**Replies:** 5\
**Last updated:** [May 11, 2025, 6:52pm UTC](https://discourse.julialang.org/t/propagate-posterior-samples-from-model-calibration-as-the-prior-into-an-inverse-problem/128844 "2025-05-11T18:52:16Z")

</div>

so I have a model y = f(x; \\theta). using (x, y) pairs, I get a posterior over theta. this constitutes “model calibration”. now I wanna use this posterior as the prior for an inverse problem, where I observe y and wann…

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

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