# Latest

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

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

**Page:** 638

---

## [Launching a Metal kernel from a thread](https://discourse.julialang.org/t/launching-a-metal-kernel-from-a-thread/102010)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 3\
**Last updated:** [July 24, 2023, 1:45pm UTC](https://discourse.julialang.org/t/launching-a-metal-kernel-from-a-thread/102010 "2023-07-24T13:45:40Z")

</div>

I’m trying to get into some basic GPU programming to run some analysis on data that would be unfeasible to run on the CPU. I have written a GPU kernel to compute the correlation length function of some data. I call this…

---

## [Is there a way to make the parts of a plot with less data more visible?](https://discourse.julialang.org/t/is-there-a-way-to-make-the-parts-of-a-plot-with-less-data-more-visible/102014)

<div class="topic-metadata">

**Author:** [@Axze-rgb](https://discourse.julialang.org/u/Axze-rgb)\
**Replies:** 2\
**Last updated:** [July 24, 2023, 1:23pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-make-the-parts-of-a-plot-with-less-data-more-visible/102014 "2023-07-24T13:23:44Z")

</div>

Hello, I am plotting a kernel density, and the right-end of the plot is hard to see, especially when shared on the web with reduced resolution. I am using this command q=Gadfly.plot(U, x=U.x, y=U.density, Geom.point, T…

---

## [The logo for "X" is literally just Unicode Character “𝕏” (U+1D54F)](https://discourse.julialang.org/t/the-logo-for-x-is-literally-just-unicode-character-u-1d54f/102007)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [July 24, 2023, 11:50am UTC](https://discourse.julialang.org/t/the-logo-for-x-is-literally-just-unicode-character-u-1d54f/102007 "2023-07-24T11:50:13Z")

</div>

Let the Julia Unicode variable games begin

---

## [Different modules with nested structures](https://discourse.julialang.org/t/different-modules-with-nested-structures/101987)

<div class="topic-metadata">

**Author:** [@Koen](https://discourse.julialang.org/u/Koen)\
**Replies:** 3\
**Last updated:** [July 24, 2023, 10:32am UTC](https://discourse.julialang.org/t/different-modules-with-nested-structures/101987 "2023-07-24T10:32:31Z")

</div>

Consider two functions, function Y and function Z. The parameter values of these functions are stored in two different structures, ParametersY and ParametersZ. Suppose the functions are nested, where Z uses Y. Then it se…

---

## [PSA: when tests fail due to improvements in type-inference](https://discourse.julialang.org/t/psa-when-tests-fail-due-to-improvements-in-type-inference/102001)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 0\
**Last updated:** [July 24, 2023, 8:31am UTC](https://discourse.julialang.org/t/psa-when-tests-fail-due-to-improvements-in-type-inference/102001 "2023-07-24T08:31:32Z")

</div>

I recently went on a bit of a rampage updating packages in the JuliaImages ecosystem, and on Julia 1.10 I noticed quite a few packages that had started failing their tests, with the log reports showing a pattern like thi…

---

## [How can I use @register\_symbolic inside of a function?](https://discourse.julialang.org/t/how-can-i-use-register-symbolic-inside-of-a-function/101734)

<div class="topic-metadata">

**Author:** [@retepz](https://discourse.julialang.org/u/retepz)\
**Replies:** 6\
**Last updated:** [July 24, 2023, 7:31am UTC](https://discourse.julialang.org/t/how-can-i-use-register-symbolic-inside-of-a-function/101734 "2023-07-24T07:31:00Z")

</div>

I want to solve a PDE-Problem that is a kind of an advection problem with dynamic boundary conditions. The PDE itself is solved with ModelingToolkit and Method of lines. the entire calculation should be called finally fr…

---

## [PlotlyJS fails on WSL2 - Ubuntu](https://discourse.julialang.org/t/plotlyjs-fails-on-wsl2-ubuntu/101992)

<div class="topic-metadata">

**Author:** [@C1Ron](https://discourse.julialang.org/u/C1Ron)\
**Replies:** 1\
**Last updated:** [July 24, 2023, 7:14am UTC](https://discourse.julialang.org/t/plotlyjs-fails-on-wsl2-ubuntu/101992 "2023-07-24T07:14:50Z")

</div>

Running PlotlyJS on WSL2 gives this error: juila\> plotlyjs() julia\> plot(x,y) Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}: ERROR: IOError: connect: connection refused (ECONNREFUSED) I’ve tried install…

---

## [ERROR: LoadError: Scalar indexing is disallowed in tullio](https://discourse.julialang.org/t/error-loaderror-scalar-indexing-is-disallowed-in-tullio/101775)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 3:45am UTC](https://discourse.julialang.org/t/error-loaderror-scalar-indexing-is-disallowed-in-tullio/101775 "2023-07-24T03:45:46Z")

</div>

For the following code using CUDA using Tullio using BenchmarkTools A = rand(500, 500) B = rand(500, 500) A\_d = CUDA.CuArray(A) B\_d = CUDA.CuArray(B) @btime @tullio C\_d\[i,k\] := A\_d\[i,j\] \* B\_d\[j,k\] C = Array(C\_d) I …

---

## [ElasticsearchClient.jl](https://discourse.julialang.org/t/elasticsearchclient-jl/99904)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 1\
**Last updated:** [July 24, 2023, 1:43am UTC](https://discourse.julialang.org/t/elasticsearchclient-jl/99904 "2023-07-24T01:43:50Z")

</div>

ElasticsearchClient.jl is a native Julia implementation of the Elasticsearch client library. This library was inspired by elasticsearch-ruby and implements very similar architectural approach. There are two main modules…

---

## [Dimension mismatch](https://discourse.julialang.org/t/dimension-mismatch/101997)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 1:36am UTC](https://discourse.julialang.org/t/dimension-mismatch/101997 "2023-07-24T01:36:25Z")

</div>

Hi, I have question on tutorial 18 of gridap. I have run the same code for my problem but it seems that there is some inconsistency with dimensions in my result. and it works when multiplying one input variable by 1e9. I…

---

## [Interface pattern in Julia](https://discourse.julialang.org/t/interface-pattern-in-julia/101964)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 12:58am UTC](https://discourse.julialang.org/t/interface-pattern-in-julia/101964 "2023-07-24T00:58:44Z")

</div>

People have been asking for interfacing pattern in Julia, but we do things through multiple dispatch. Here’s how. Imagine you want an interface for an “ordered” type. ordered\_interface(x) = ordered\_interface(typeof(x))…

---

## [GptSearchPlugin (Web service)](https://discourse.julialang.org/t/gptsearchplugin-web-service/101996)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 0\
**Last updated:** [July 24, 2023, 12:55am UTC](https://discourse.julialang.org/t/gptsearchplugin-web-service/101996 "2023-07-24T00:55:44Z")

</div>

GptSearchPlugin is not a package but rather an application. It is a functional clone of the ChatGpt retrieval plugin fully implemented in Julia. The plugin is in fact a web service with API endpoints /query and /upsert …

---

## [How do I do a regression using programatically defined column names?](https://discourse.julialang.org/t/how-do-i-do-a-regression-using-programatically-defined-column-names/101963)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 12:44am UTC](https://discourse.julialang.org/t/how-do-i-do-a-regression-using-programatically-defined-column-names/101963 "2023-07-24T00:44:47Z")

</div>

I have a dataframe with many columns. For example, df = DataFrame(A = randn(10), B = randn(10), C = randn(10), D = randn(10)) nms = names(df) I want to do a regression of column A on one or more of the other columns. …

---

## [Having issues speeding up code with multithreading](https://discourse.julialang.org/t/having-issues-speeding-up-code-with-multithreading/101508)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 19\
**Last updated:** [July 16, 2023, 6:14am UTC](https://discourse.julialang.org/t/having-issues-speeding-up-code-with-multithreading/101508 "2023-07-16T06:14:24Z")

</div>

I’m trying to speed up some code that takes subsets of columns from a data matrix and calculates a maximum score. The orginal code is complicated, so I’ve tried to simplfy it was much as possible here: using Combinatori…

---

## [Fast Hessian and Gradient for PINNS using Enzyme/Zygote](https://discourse.julialang.org/t/fast-hessian-and-gradient-for-pinns-using-enzyme-zygote/101993)

<div class="topic-metadata">

**Author:** [@Baba\_Yara\_Fahiz](https://discourse.julialang.org/u/Baba_Yara_Fahiz)\
**Replies:** 0\
**Last updated:** [July 23, 2023, 11:41pm UTC](https://discourse.julialang.org/t/fast-hessian-and-gradient-for-pinns-using-enzyme-zygote/101993 "2023-07-23T23:41:34Z")

</div>

I am working on a problem that involves solving partial differential equations using neural networks. The current bottleneck in my code is computing the gradient and Hessian of batched data. My current implementation us…

---

## [Is accessing an \`undef\` array undefined behavior?](https://discourse.julialang.org/t/is-accessing-an-undef-array-undefined-behavior/101899)

<div class="topic-metadata">

**Author:** [@DNF](https://discourse.julialang.org/u/DNF)\
**Replies:** 47\
**Last updated:** [July 23, 2023, 11:18pm UTC](https://discourse.julialang.org/t/is-accessing-an-undef-array-undefined-behavior/101899 "2023-07-23T23:18:40Z")

</div>

From the Rust vs Julia in scientific computation blog post: v = Vec{Int64}(undef, 3) What would happen if you forget to set an undef (undefined) value and read it by mistake? One possible output of v is: 139974349418…

---

## [Multiple function definitions inside let block override previous definitions](https://discourse.julialang.org/t/multiple-function-definitions-inside-let-block-override-previous-definitions/101954)

<div class="topic-metadata">

**Author:** [@asjir](https://discourse.julialang.org/u/asjir)\
**Replies:** 1\
**Last updated:** [July 23, 2023, 10:56am UTC](https://discourse.julialang.org/t/multiple-function-definitions-inside-let-block-override-previous-definitions/101954 "2023-07-23T10:56:32Z")

</div>

I haven’t stumbled across anyone else reporting it, so here’s what I’ve encountered: let isintvec(v) = false, isintvec(v::Vector{U}) where {U\<:Integer} = true isintvec(3) end throws MethodError thank god I wri…

---

## [Dagger Development and Roadmap](https://discourse.julialang.org/t/dagger-development-and-roadmap/101935)

<div class="topic-metadata">

**Author:** [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Replies:** 4\
**Last updated:** [July 23, 2023, 6:42pm UTC](https://discourse.julialang.org/t/dagger-development-and-roadmap/101935 "2023-07-23T18:42:46Z")

</div>

Dagger Development and Roadmap Hey all! As Dagger.jl’s maintainer, I’d like to give an update on where Dagger stands this year and what the plans are for the rest of 2023! Aside: I’ll be at JuliaCon this year, so come f…

---

## [What are everyone's style for documenting types (used for containers or for dispatch-only/"traits")?](https://discourse.julialang.org/t/what-are-everyones-style-for-documenting-types-used-for-containers-or-for-dispatch-only-traits/101991)

<div class="topic-metadata">

**Author:** [@RoyW](https://discourse.julialang.org/u/RoyW)\
**Replies:** 0\
**Last updated:** [July 23, 2023, 10:57pm UTC](https://discourse.julialang.org/t/what-are-everyones-style-for-documenting-types-used-for-containers-or-for-dispatch-only-traits/101991 "2023-07-23T22:57:54Z")

</div>

I’m trying to document my Julia packages not necessarily to the style of Base, but so that it communicates the ideas fast to serious users who have a basic training with Julia but have prior programming or even software …

---

## [Question about Dagger's DTable](https://discourse.julialang.org/t/question-about-daggers-dtable/75790)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [July 23, 2023, 10:55pm UTC](https://discourse.julialang.org/t/question-about-daggers-dtable/75790 "2023-07-23T22:55:50Z")

</div>

I am reading through the DTable docs. But I can’t seem to quite grasp it. Can I adapt DTable so that it can read from S3 path partitioned files? And the operate on the data? In the doc, it shows how to create a DTable …

---

## [Beautiful Makie Gallery](https://discourse.julialang.org/t/beautiful-makie-gallery/62523)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 97\
**Last updated:** [July 23, 2023, 9:36pm UTC](https://discourse.julialang.org/t/beautiful-makie-gallery/62523 "2023-07-23T21:36:21Z")

</div>

Not a package but a gallery of Beautiful Makie examples. Take a look, easy to copy and paste scripts to get you started with Makie. https://lazarusa.github.io/BeautifulMakie/ https://lazarusa.github.io/BeautifulMa…

---

## [Is there a way to build a static matrix programmatically?](https://discourse.julialang.org/t/is-there-a-way-to-build-a-static-matrix-programmatically/101982)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 6\
**Last updated:** [July 23, 2023, 8:17pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-build-a-static-matrix-programmatically/101982 "2023-07-23T20:17:26Z")

</div>

Hi! I need to remove the runtime allocations for a project that is targeting embedding Julia code in a satellite computer. One big problem I have is to create static matrices programmatically. For example, in C++, we ca…

---

## [Type annotation without a variable name in a function declaration](https://discourse.julialang.org/t/type-annotation-without-a-variable-name-in-a-function-declaration/101969)

<div class="topic-metadata">

**Author:** [@enderw88](https://discourse.julialang.org/u/enderw88)\
**Replies:** 5\
**Last updated:** [July 23, 2023, 8:09pm UTC](https://discourse.julialang.org/t/type-annotation-without-a-variable-name-in-a-function-declaration/101969 "2023-07-23T20:09:48Z")

</div>

I am picking up a stale package that reads a specific type of text file (IGC file if anyone out there flies gliders). I have come across a number of function declarations like this: function parse(::Type{IGCPressureAlt…

---

## [HDF5 variable length Array](https://discourse.julialang.org/t/hdf5-variable-length-array/101971)

<div class="topic-metadata">

**Author:** [@thomaskroi1996](https://discourse.julialang.org/u/thomaskroi1996)\
**Replies:** 0\
**Last updated:** [July 23, 2023, 5:20pm UTC](https://discourse.julialang.org/t/hdf5-variable-length-array/101971 "2023-07-23T17:20:33Z")

</div>

Hello! I was wondering what the cleanest way to write variable length arrays to HDF5 format in Julia, using HDF5.jl. In python this can be easily done with create\_dataset('StepNumbers', data=\[\], dtype=np.dtype('uint32…

---

## [How to activate the current project with Distributed](https://discourse.julialang.org/t/how-to-activate-the-current-project-with-distributed/101965)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [July 23, 2023, 4:19pm UTC](https://discourse.julialang.org/t/how-to-activate-the-current-project-with-distributed/101965 "2023-07-23T16:19:10Z")

</div>

I am trying to activate the current project with Distributed, which fails: using Distributed @everywhere begin cd("..") using Pkg; Pkg.activate(@\_\_DIR\_\_) Pkg.instantiate(); Pkg.precompile() Pkg.status() end Ou…

---

## [Julia for audio live coding?](https://discourse.julialang.org/t/julia-for-audio-live-coding/101593)

<div class="topic-metadata">

**Author:** [@JTriggerFish](https://discourse.julialang.org/u/JTriggerFish)\
**Replies:** 19\
**Last updated:** [July 23, 2023, 4:30am UTC](https://discourse.julialang.org/t/julia-for-audio-live-coding/101593 "2023-07-23T04:30:20Z")

</div>

Hi all, I’m new to Julia and trying to gauge feasibility with regards to audio live coding. What I would like to do essentially is to use the REPL or the “Run code” function in vscode to create audio callbacks that gene…

---

## [Building and precompiling a package depending on unregistered packages](https://discourse.julialang.org/t/building-and-precompiling-a-package-depending-on-unregistered-packages/101955)

<div class="topic-metadata">

**Author:** [@Matthew\_Ozon](https://discourse.julialang.org/u/Matthew_Ozon)\
**Replies:** 8\
**Last updated:** [July 23, 2023, 1:35pm UTC](https://discourse.julialang.org/t/building-and-precompiling-a-package-depending-on-unregistered-packages/101955 "2023-07-23T13:35:53Z")

</div>

When testing a local package X, some issues appear while build-ing and precompile-ing. The reason for that is the unregistered packages in the dependency tree. The unregistered packages (Y and Z) are installed locally …

---

## [Changes to Tuesday Workshop Schedule](https://discourse.julialang.org/t/changes-to-tuesday-workshop-schedule/101960)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [July 23, 2023, 1:33pm UTC](https://discourse.julialang.org/t/changes-to-tuesday-workshop-schedule/101960 "2023-07-23T13:33:05Z")

</div>

There are some recent changes to the Tuesday workshops schedule. Please see the website for up to date information.

---

## [Introduction to Probability for Data Science: collaborative effort to translate code to Julia](https://discourse.julialang.org/t/introduction-to-probability-for-data-science-collaborative-effort-to-translate-code-to-julia/69614)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 29\
**Last updated:** [July 23, 2023, 1:05pm UTC](https://discourse.julialang.org/t/introduction-to-probability-for-data-science-collaborative-effort-to-translate-code-to-julia/69614 "2023-07-23T13:05:38Z")

</div>

There is a collaborative effort underway to translate to Julia the Python and Matlab code that accompanies Stanley H. Chan’s textbook Introduction to Probability for Data Science. This effort is authorized by Dr. Chan. T…

---

## [JuliaCon 2023 Twitter List](https://discourse.julialang.org/t/juliacon-2023-twitter-list/101785)

<div class="topic-metadata">

**Author:** [@PietroMonticone](https://discourse.julialang.org/u/PietroMonticone)\
**Replies:** 13\
**Last updated:** [July 23, 2023, 11:54am UTC](https://discourse.julialang.org/t/juliacon-2023-twitter-list/101785 "2023-07-23T11:54:17Z")

</div>

Hi everyone, We are compiling a public Twitter list of the JuliaCon 2023 speakers and related organisations. It’s still incomplete so if you’re not yet included please consider replying here or in DM with your Twitter …

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

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