# Latest

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

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

**Page:** 255

---

## [Implement feature common to all \`AbstractGPUArrays\` through KernelAbstractions.jl](https://discourse.julialang.org/t/implement-feature-common-to-all-abstractgpuarrays-through-kernelabstractions-jl/123855)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 2\
**Last updated:** [December 15, 2024, 2:20pm UTC](https://discourse.julialang.org/t/implement-feature-common-to-all-abstractgpuarrays-through-kernelabstractions-jl/123855 "2024-12-15T14:20:39Z")

</div>

Hello, Let’s imagine I have a very common function LinearAlgebra.kron(a::VT, b::VT) where VT\<:AbstractGPUArray which can support any AbstractGPUArray since I’m using KernelAbstractions.jl. Where should I implement suc…

---

## [Using KernelAbstractions.jl in a package extension](https://discourse.julialang.org/t/using-kernelabstractions-jl-in-a-package-extension/123815)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 6\
**Last updated:** [December 15, 2024, 10:02am UTC](https://discourse.julialang.org/t/using-kernelabstractions-jl-in-a-package-extension/123815 "2024-12-15T10:02:06Z")

</div>

Hello, I have a Julia package with an extension triggered by CUDA.jl. Now, I would like to define a custom kernel as a method extension of the package. In principle, I could use the CUDA kernel handling, but I understoo…

---

## [A question about SubString](https://discourse.julialang.org/t/a-question-about-substring/123838)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 8\
**Last updated:** [December 15, 2024, 8:21am UTC](https://discourse.julialang.org/t/a-question-about-substring/123838 "2024-12-15T08:21:55Z")

</div>

Hello, What is the difference between SubString and Indexing? I did: julia\> str = "Where the mind is without fear" "Where the mind is without fear" julia\> SubString(str, 1, 5) "Where" julia\> str\[1:5\] "Where" The res…

---

## [How to convert the python code to Julia](https://discourse.julialang.org/t/how-to-convert-the-python-code-to-julia/123689)

<div class="topic-metadata">

**Author:** [@govindanupam](https://discourse.julialang.org/u/govindanupam)\
**Replies:** 4\
**Last updated:** [December 15, 2024, 4:55am UTC](https://discourse.julialang.org/t/how-to-convert-the-python-code-to-julia/123689 "2024-12-15T04:55:32Z")

</div>

Dear team, How to convert below mentioned code to Julia only without using Pycall module or any Python modules. Please help import os import vtk import numpy as np def process\_jaw\_stl(input\_file, output\_file, jaw\_type…

---

## [Makie: Linked camera of 3d plots go out of sync on slider change](https://discourse.julialang.org/t/makie-linked-camera-of-3d-plots-go-out-of-sync-on-slider-change/123837)

<div class="topic-metadata">

**Author:** [@sanjeev](https://discourse.julialang.org/u/sanjeev)\
**Replies:** 1\
**Last updated:** [December 15, 2024, 4:26am UTC](https://discourse.julialang.org/t/makie-linked-camera-of-3d-plots-go-out-of-sync-on-slider-change/123837 "2024-12-15T04:26:43Z")

</div>

I have a figure with two LScenes and a slider which is used to change data in the scenes. I have linked the cameras in the two LScenes, using the method shown in this post. The problem is that when I change the slider on…

---

## [Running A Julia Script Through SLURM](https://discourse.julialang.org/t/running-a-julia-script-through-slurm/123268)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 4\
**Last updated:** [December 15, 2024, 3:26am UTC](https://discourse.julialang.org/t/running-a-julia-script-through-slurm/123268 "2024-12-15T03:26:46Z")

</div>

I have a julia script that run a physics simulation. The physics simulation takes around 8 hours, and I want to run it with many random initial conditions, so I planned to run the script multiple times using a SLURM job …

---

## [Two structs with same fields - how?](https://discourse.julialang.org/t/two-structs-with-same-fields-how/123787)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 7\
**Last updated:** [December 15, 2024, 1:07am UTC](https://discourse.julialang.org/t/two-structs-with-same-fields-how/123787 "2024-12-15T01:07:23Z")

</div>

The user interface for my package is as follows. There is a mutable struct called UserProblemDescription. It has ~30 fields, all of which are defined as unions with Missing: Base.@kwdef mutable struct UserProblemDescr…

---

## [Using code\_typed to generate docstring templates](https://discourse.julialang.org/t/using-code-typed-to-generate-docstring-templates/123725)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 7\
**Last updated:** [December 14, 2024, 11:35pm UTC](https://discourse.julialang.org/t/using-code-typed-to-generate-docstring-templates/123725 "2024-12-14T23:35:47Z")

</div>

I came up with the following idea: function doctemplate(f, args) x = @code\_typed f(args...) src = x\[1\] sig = split(string(src.parent.def), " @")\[1\] args = string.(src.slotnames)\[2:en…

---

## [\[ANN\] Announcing SlidingDFTs.jl](https://discourse.julialang.org/t/ann-announcing-slidingdfts-jl/123793)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 2\
**Last updated:** [December 14, 2024, 10:56pm UTC](https://discourse.julialang.org/t/ann-announcing-slidingdfts-jl/123793 "2024-12-14T22:56:29Z")

</div>

This is a self-answer to Is there a package for Sliding Discrete Fourier Transforms? The package SlidingDFTs provides the tools to compute Sliding Discrete Fourer Transforms (SDFT) recursively, over one-dimensional seri…

---

## [API to query Juliahub package info?](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788)

<div class="topic-metadata">

**Author:** [@OmarElrefaei](https://discourse.julialang.org/u/OmarElrefaei)\
**Replies:** 4\
**Last updated:** [December 14, 2024, 9:29pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788 "2024-12-14T21:29:09Z")

</div>

I was wondering if there is a way to programmatically access juliahub packages (not the computation platform). I want to query package names, stars, install stats, etc. Either an API or exported dataset (regularly upda…

---

## [Feedback concerning some preliminary design ideas of a cashflow package](https://discourse.julialang.org/t/feedback-concerning-some-preliminary-design-ideas-of-a-cashflow-package/123700)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [December 14, 2024, 1:32pm UTC](https://discourse.julialang.org/t/feedback-concerning-some-preliminary-design-ideas-of-a-cashflow-package/123700 "2024-12-14T13:32:58Z")

</div>

I need to develop a stochastic discounted cash flow package for a project, where the analysis should include both private cost/benefit and public good values. The specific domain is the valuation of forestry investments…

---

## [How the compiler decides which allocation is eliminated?](https://discourse.julialang.org/t/how-the-compiler-decides-which-allocation-is-eliminated/123127)

<div class="topic-metadata">

**Author:** [@sumiya11](https://discourse.julialang.org/u/sumiya11)\
**Replies:** 27\
**Last updated:** [December 14, 2024, 5:09am UTC](https://discourse.julialang.org/t/how-the-compiler-decides-which-allocation-is-eliminated/123127 "2024-12-14T05:09:58Z")

</div>

Consider three functions: foo1() = (Vector() ; 0) foo2() = (Vector(undef, 2^50) ; 0) foo3() = (Vector(undef, -1) ; 0) On the current master, creation of Vector seems to be eliminated in foo1, foo2, a…

---

## [Combining LaTeX with variables in PyPlot title](https://discourse.julialang.org/t/combining-latex-with-variables-in-pyplot-title/41128)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 9\
**Last updated:** [December 14, 2024, 12:30am UTC](https://discourse.julialang.org/t/combining-latex-with-variables-in-pyplot-title/41128 "2024-12-14T00:30:57Z")

</div>

This is somewhat similar to PyPlot: how to include a variable in a title, but with the added complication of including LaTeX in the title too. See I have this code: PyPlot.title(L"Plot of the 1st eigenfunction, correspo…

---

## [Redirect the error output of an AppleScript called through Cmd](https://discourse.julialang.org/t/redirect-the-error-output-of-an-applescript-called-through-cmd/123825)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 11:45pm UTC](https://discourse.julialang.org/t/redirect-the-error-output-of-an-applescript-called-through-cmd/123825 "2024-12-13T23:45:03Z")

</div>

The next question (for background see Interpolate into an AppleScript called through Cmd). When calling AppleScript from the shell, the redirection works as expected: eben60@Macmini ~ % osascript -e 'POSIX path of (cho…

---

## [Sample StaticVectors with Distributions.jl](https://discourse.julialang.org/t/sample-staticvectors-with-distributions-jl/123792)

<div class="topic-metadata">

**Author:** [@Joaquin\_Rodriguez](https://discourse.julialang.org/u/Joaquin_Rodriguez)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 10:03pm UTC](https://discourse.julialang.org/t/sample-staticvectors-with-distributions-jl/123792 "2024-12-13T22:03:04Z")

</div>

I need to generate some random vectors with a custom distribution, and I would like to use the Distributions.jl API. However, my vectors are small StaticVectors and sampling from a distribution returns plain Vectors. As…

---

## [Integrate convolution symbolically to solve PDE](https://discourse.julialang.org/t/integrate-convolution-symbolically-to-solve-pde/123810)

<div class="topic-metadata">

**Author:** [@B4rtel](https://discourse.julialang.org/u/B4rtel)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 9:32pm UTC](https://discourse.julialang.org/t/integrate-convolution-symbolically-to-solve-pde/123810 "2024-12-13T21:32:41Z")

</div>

I would like to solve a PDE with MethodOfLines.jl and ModellingToolkit.jl similar to the example docs.sciml.ai/MethodOfLines/stable/tutorials/PIDE/. My modification is to change the integral term. Instead of integrating …

---

## [Switching from x86 Mac to Apple Silicon](https://discourse.julialang.org/t/switching-from-x86-mac-to-apple-silicon/123798)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 9:15pm UTC](https://discourse.julialang.org/t/switching-from-x86-mac-to-apple-silicon/123798 "2024-12-13T21:15:30Z")

</div>

Is there a procedure? Juliaup doesn’t seem to do it and I’m hesitant to run juliaup self uninstall; it looks like I might lose my current packages.

---

## [Interpolate into an AppleScript called through Cmd](https://discourse.julialang.org/t/interpolate-into-an-applescript-called-through-cmd/123824)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 8:57pm UTC](https://discourse.julialang.org/t/interpolate-into-an-applescript-called-through-cmd/123824 "2024-12-13T20:57:08Z")

</div>

The background: the NativeFileDialog.jl unfortunately makes problems on MacOS 15 (i.e. current version). I’m trying to put together a workaround. This one actually works: cmd1 = \`osascript -e 'POSIX path of (choose fi…

---

## [Finding all applicable Methods for Signature](https://discourse.julialang.org/t/finding-all-applicable-methods-for-signature/74008)

<div class="topic-metadata">

**Author:** [@arik](https://discourse.julialang.org/u/arik)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 8:53pm UTC](https://discourse.julialang.org/t/finding-all-applicable-methods-for-signature/74008 "2024-12-13T20:53:53Z")

</div>

Hi there. Im looking to programmatically create a list of all Methods of a given function f whose signature is compatible with a given argument list args, that is, a list of all methods that could be triggered by invoke…

---

## [Strange plotting problem with Makie figures](https://discourse.julialang.org/t/strange-plotting-problem-with-makie-figures/123768)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 3\
**Last updated:** [December 13, 2024, 8:31pm UTC](https://discourse.julialang.org/t/strange-plotting-problem-with-makie-figures/123768 "2024-12-13T20:31:41Z")

</div>

I get a stack overflow when I try to manipulate Makie figures. This happens in multiple use cases. I don’t know the source of the problem from the stack trace. This happens when I try to just show the figure or display i…

---

## [How do you use the "develop" command?](https://discourse.julialang.org/t/how-do-you-use-the-develop-command/123767)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [December 13, 2024, 7:25pm UTC](https://discourse.julialang.org/t/how-do-you-use-the-develop-command/123767 "2024-12-13T19:25:04Z")

</div>

I have project A, that is using package B. Now I want to make changes to B and run project A again. I can open project A in VSCode, type using Revise; include("src/A.jl) to execute my code and then type \]develop B to ma…

---

## [Performance of Dictionaries.jl vs Base.Dict](https://discourse.julialang.org/t/performance-of-dictionaries-jl-vs-base-dict/92073)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 31\
**Last updated:** [December 13, 2024, 6:31pm UTC](https://discourse.julialang.org/t/performance-of-dictionaries-jl-vs-base-dict/92073 "2024-12-13T18:31:31Z")

</div>

Lots of places; Dictionaries.jl’s packages are just much faster than Base Dicts to iterate over. There’s a reason most package designers use them rather than Dicts.

---

## ["could not download... /registries" error](https://discourse.julialang.org/t/could-not-download-registries-error/123555)

<div class="topic-metadata">

**Author:** [@bernie](https://discourse.julialang.org/u/bernie)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 6:15pm UTC](https://discourse.julialang.org/t/could-not-download-registries-error/123555 "2024-12-13T18:15:52Z")

</div>

pkg\> add Makie Resolving package versions… I’m getting the following error whenever I run a pkg command: ┌ Warning: could not download https://pkg.julialang.org/registries │ exception = RequestError: SSLRead() return…

---

## [Move "Label" on top of the colorbar using Makie](https://discourse.julialang.org/t/move-label-on-top-of-the-colorbar-using-makie/123813)

<div class="topic-metadata">

**Author:** [@Van\_Sy\_Tnut](https://discourse.julialang.org/u/Van_Sy_Tnut)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 5:39pm UTC](https://discourse.julialang.org/t/move-label-on-top-of-the-colorbar-using-makie/123813 "2024-12-13T17:39:25Z")

</div>

Hello everyone! I would like to move the label to the top of the Colorbar by using Makie. Can anyone help me how to do this ? Thank you so much using Makie using GLMakie fig = Figure() Create an axis Axis(fig\[1, 1…

---

## [Rewrite rule to transform (a\*b\*c\*d\*...)^(-1) to (a^(-1)\*b^(-1)\*c^(-1)\*d^(-1)\*...)](https://discourse.julialang.org/t/rewrite-rule-to-transform-a-b-c-d-1-to-a-1-b-1-c-1-d-1/114569)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 4:41pm UTC](https://discourse.julialang.org/t/rewrite-rule-to-transform-a-b-c-d-1-to-a-1-b-1-c-1-d-1/114569 "2024-12-13T16:41:54Z")

</div>

Hi, I wonder if we can define a rule with SymbolicUtils to rewrite (abcd…)^(-1) to (a^(-1)\*b^(-1)\*c^(-1)d^(-1)…) which would work with an arbitrary number of arguments. I would really appreciate it if you could give me …

---

## [DifferentialEquations.jl+MPI.jl+PencilArrays.jl: Lack of scaling observed](https://discourse.julialang.org/t/differentialequations-jl-mpi-jl-pencilarrays-jl-lack-of-scaling-observed/122998)

<div class="topic-metadata">

**Author:** [@mmesiti](https://discourse.julialang.org/u/mmesiti)\
**Replies:** 20\
**Last updated:** [December 13, 2024, 2:43pm UTC](https://discourse.julialang.org/t/differentialequations-jl-mpi-jl-pencilarrays-jl-lack-of-scaling-observed/122998 "2024-12-13T14:43:54Z")

</div>

I am working on a code that use DifferentialEquations (more precisely, just OrdinaryDiffEqLowOrderRK - thanks for splitting that) and I have done some work to parallelize the computation of the derivative on multiple nod…

---

## [Dereferencing Ptr{Ptr{Int32}}](https://discourse.julialang.org/t/dereferencing-ptr-ptr-int32/123709)

<div class="topic-metadata">

**Author:** [@NimaPoshtiban](https://discourse.julialang.org/u/NimaPoshtiban)\
**Replies:** 21\
**Last updated:** [December 13, 2024, 1:34pm UTC](https://discourse.julialang.org/t/dereferencing-ptr-ptr-int32/123709 "2024-12-13T13:34:58Z")

</div>

Hi I’m using the Julia C interface to call a function from my dll Everything works fine Until I try to dereference it first\_row = unsafe\_load(result\_ptr) firsr\_num = unsafe\_load(first\_row) #= The matrix form is so…

---

## [Symmetric view of sparse matrix CUDA.jl](https://discourse.julialang.org/t/symmetric-view-of-sparse-matrix-cuda-jl/123811)

<div class="topic-metadata">

**Author:** [@victor\_vhrn](https://discourse.julialang.org/u/victor_vhrn)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 1:32pm UTC](https://discourse.julialang.org/t/symmetric-view-of-sparse-matrix-cuda-jl/123811 "2024-12-13T13:32:46Z")

</div>

What is the best way of adapting Symmetric to the GPU? Can it be done? Should it be done? I currently have the following function Aadj which I would like to create a GPU version of: using CUDA using CUDA.CUSPARSE using…

---

## [Julia REPL: pasting code while repl is busy is slow](https://discourse.julialang.org/t/julia-repl-pasting-code-while-repl-is-busy-is-slow/123765)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 5\
**Last updated:** [December 13, 2024, 1:25pm UTC](https://discourse.julialang.org/t/julia-repl-pasting-code-while-repl-is-busy-is-slow/123765 "2024-12-13T13:25:20Z")

</div>

Hello, for a long time now I observed a strange repl behavior, which I always contributed to emacs + vterm. However I now realised, that it also appears in different terminals (iterm2 on mac and windows terminal/wsl) so…

---

## [GlobalSensitivity.jl error when precompiling](https://discourse.julialang.org/t/globalsensitivity-jl-error-when-precompiling/121536)

<div class="topic-metadata">

**Author:** [@Theodore\_Rieger](https://discourse.julialang.org/u/Theodore_Rieger)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 1:17pm UTC](https://discourse.julialang.org/t/globalsensitivity-jl-error-when-precompiling/121536 "2024-12-13T13:17:32Z")

</div>

Hello, I have a issue with GlobalSensitivity.jl not installing when I switch over to my Linux cluster. Frustratingly (or maybe fortunately), it seems to compile for me when I install on my Windows 10 laptop. In both cas…

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

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