# Latest

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

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

**Page:** 187

---

## [Create a set with custom hash and isequal](https://discourse.julialang.org/t/create-a-set-with-custom-hash-and-isequal/127862)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 7\
**Last updated:** [April 9, 2025, 7:31pm UTC](https://discourse.julialang.org/t/create-a-set-with-custom-hash-and-isequal/127862 "2025-04-09T19:31:09Z")

</div>

Is it possible to create a Set{MyType} that uses a custom hash and isequal functions s.t. it is essentially a set of equivalence classes w.r.t the equivalence relation defined by my hash and isequal? I want to do this wi…

---

## [How to reinit! an integrator in a non-allocating and consistent way?](https://discourse.julialang.org/t/how-to-reinit-an-integrator-in-a-non-allocating-and-consistent-way/127771)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 10\
**Last updated:** [April 9, 2025, 6:37pm UTC](https://discourse.julialang.org/t/how-to-reinit-an-integrator-in-a-non-allocating-and-consistent-way/127771 "2025-04-09T18:37:47Z")

</div>

I am trying to create a control function from a ModelingToolkit.jl model: f(x, u, p) → x\_next I want to do that by re-initializing the integrator with the current state x and input u, and then stepping the integrator: …

---

## [About reproducibility of Julia program run times](https://discourse.julialang.org/t/about-reproducibility-of-julia-program-run-times/127613)

<div class="topic-metadata">

**Author:** [@uwestoehr](https://discourse.julialang.org/u/uwestoehr)\
**Replies:** 20\
**Last updated:** [April 9, 2025, 4:12pm UTC](https://discourse.julialang.org/t/about-reproducibility-of-julia-program-run-times/127613 "2025-04-09T16:12:57Z")

</div>

I have a general issue with Julia. I know there is no solution but something should be done because as it is collaborative work is hard: The runtime of Julia programs is not stable. I don’t see fluctuations in the range…

---

## [Enzyme cannot deduce type for integral function in reverse mode AD](https://discourse.julialang.org/t/enzyme-cannot-deduce-type-for-integral-function-in-reverse-mode-ad/127822)

<div class="topic-metadata">

**Author:** [@jwalker](https://discourse.julialang.org/u/jwalker)\
**Replies:** 11\
**Last updated:** [April 9, 2025, 4:06pm UTC](https://discourse.julialang.org/t/enzyme-cannot-deduce-type-for-integral-function-in-reverse-mode-ad/127822 "2025-04-09T16:06:04Z")

</div>

Could someone explain why I’m getting the following error from this example? using Enzyme struct Parameters M::Int R::Real end function integrand2(v::Vector, nt::NamedTuple) x = v\[1\] y = v\[2\] θ = n…

---

## [Why isn't "\]" pastable into the julia REPL](https://discourse.julialang.org/t/why-isnt-pastable-into-the-julia-repl/127817)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 12\
**Last updated:** [April 9, 2025, 3:20pm UTC](https://discourse.julialang.org/t/why-isnt-pastable-into-the-julia-repl/127817 "2025-04-09T15:20:54Z")

</div>

Normally, when writing \] in the julia REPL, you go into pkg\>. But when pasting a line starting with \] in the REPL, it just shows as text. Writing \] manually: (@v1.11) pkg\> Pasting \]: julia\> \] Is there a reason for …

---

## [Different Base.show for Pluto and REPL](https://discourse.julialang.org/t/different-base-show-for-pluto-and-repl/93083)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 2\
**Last updated:** [April 9, 2025, 2:49pm UTC](https://discourse.julialang.org/t/different-base-show-for-pluto-and-repl/93083 "2025-04-09T14:49:17Z")

</div>

I want to have different Base.show representations for a struct when I am on REPL and when I am on Pluto by invoking the same code. Is there a more specialized ::MIME I can use for this purpose, other than ::MIME"text/pl…

---

## [Importing specific branch og git-repo using Pkg](https://discourse.julialang.org/t/importing-specific-branch-og-git-repo-using-pkg/127884)

<div class="topic-metadata">

**Author:** [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Replies:** 2\
**Last updated:** [April 9, 2025, 1:46pm UTC](https://discourse.julialang.org/t/importing-specific-branch-og-git-repo-using-pkg/127884 "2025-04-09T13:46:39Z")

</div>

I tried to add a specific branch of a package repo using the #-syntax described in the documentation like Pkg add "git@gitlab.restofpath.git#dev" But get the response ... remote: remote: The namespace you were looking…

---

## [PythonCall not working in Jupyter Notebook in VSCode](https://discourse.julialang.org/t/pythoncall-not-working-in-jupyter-notebook-in-vscode/127841)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 1\
**Last updated:** [April 9, 2025, 1:25pm UTC](https://discourse.julialang.org/t/pythoncall-not-working-in-jupyter-notebook-in-vscode/127841 "2025-04-09T13:25:00Z")

</div>

The PythonCall is not working in Jupyter Notebook in VScode. The answer to fib(100) is nothing. Nevertheless the code works beautifully in REPL. Many thanks for any help you may provide. using PythonCall fib(x) = py…

---

## [Define Python function in Julia file with PythonCall?](https://discourse.julialang.org/t/define-python-function-in-julia-file-with-pythoncall/98593)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 10\
**Last updated:** [April 9, 2025, 1:02pm UTC](https://discourse.julialang.org/t/define-python-function-in-julia-file-with-pythoncall/98593 "2025-04-09T13:02:22Z")

</div>

Context: I have a Pluto notebook for teaching where I need to create a Python function. I want to use PythonCall for better portability, but I miss the py"..." syntax of PyCall which allows you to directly define Python …

---

## [Redefining structure (again).. what' the current situation and what to expect?](https://discourse.julialang.org/t/redefining-structure-again-what-the-current-situation-and-what-to-expect/127859)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [April 8, 2025, 7:35pm UTC](https://discourse.julialang.org/t/redefining-structure-again-what-the-current-situation-and-what-to-expect/127859 "2025-04-08T19:35:12Z")

</div>

Recently there have been a lot of discussions about the possibility and the implementations allowing Struct redefinition (1, 2, 3, …) and some related pull requests/issues have been closed (1,2,…) So, which is the situa…

---

## [With ParallelStencil, is it possible to launch multiple kernels and sync later?](https://discourse.julialang.org/t/with-parallelstencil-is-it-possible-to-launch-multiple-kernels-and-sync-later/127843)

<div class="topic-metadata">

**Author:** [@pchaubal](https://discourse.julialang.org/u/pchaubal)\
**Replies:** 7\
**Last updated:** [April 9, 2025, 12:04pm UTC](https://discourse.julialang.org/t/with-parallelstencil-is-it-possible-to-launch-multiple-kernels-and-sync-later/127843 "2025-04-09T12:04:40Z")

</div>

I have written a code to run on GPUs with ParallelStencil but I don’t see a significant speedup by moving to GPUs. I am not sure whether I am using the framework as intended and there exists an easy fix for this. So, any…

---

## [Defining extensions](https://discourse.julialang.org/t/defining-extensions/127877)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 6\
**Last updated:** [April 9, 2025, 11:16am UTC](https://discourse.julialang.org/t/defining-extensions/127877 "2025-04-09T11:16:17Z")

</div>

I have a package extension that defines a StructTypes.jl interface for a type I do not own so that I can use JSON3.jl on it. What if another package does the same and both are loaded? What would be the correct way of de…

---

## [Point to line distance in GeometryBasics or another geometry package](https://discourse.julialang.org/t/point-to-line-distance-in-geometrybasics-or-another-geometry-package/42501)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 23\
**Last updated:** [April 8, 2025, 6:36pm UTC](https://discourse.julialang.org/t/point-to-line-distance-in-geometrybasics-or-another-geometry-package/42501 "2025-04-08T18:36:45Z")

</div>

I’m looking for geometry package, which has Euclidean point to point and point to line distances in 3D implemented.

---

## [Multiline equations on Forem](https://discourse.julialang.org/t/multiline-equations-on-forem/127881)

<div class="topic-metadata">

**Author:** [@Vasily\_Pisarev](https://discourse.julialang.org/u/Vasily_Pisarev)\
**Replies:** 0\
**Last updated:** [April 9, 2025, 9:23am UTC](https://discourse.julialang.org/t/multiline-equations-on-forem/127881 "2025-04-09T09:23:49Z")

</div>

Are multiline equations on Forem broken or am I missing something? When I enter something like \[ %katex \] \\delta\_{ij} = \\begin{cases} 1, i = j \\\\ 0, i \\ne j \\end{cases} \[ %endkatex \] I expect this look: \\delta\_{ij…

---

## [Loading MODIS HDF4 files with ArchGDAL](https://discourse.julialang.org/t/loading-modis-hdf4-files-with-archgdal/126977)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 13\
**Last updated:** [April 9, 2025, 8:31am UTC](https://discourse.julialang.org/t/loading-modis-hdf4-files-with-archgdal/126977 "2025-04-09T08:31:52Z")

</div>

I would like to port to Julia some code that we have that works on MODIS satellite imagery. The source files are in HDF4 format, and are correctly recognized as MODIS datasets by the system gdalinfo. However, if I try lo…

---

## [Can't get local package to allow inclusion of a new package](https://discourse.julialang.org/t/cant-get-local-package-to-allow-inclusion-of-a-new-package/127872)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 3\
**Last updated:** [April 9, 2025, 5:53am UTC](https://discourse.julialang.org/t/cant-get-local-package-to-allow-inclusion-of-a-new-package/127872 "2025-04-09T05:53:39Z")

</div>

I have a package locally. It is a git repo, but it is not shared to github. It is what S. Karpinski casually but usefully defined as an “application”: a collection of Julia source files to do some self-contained task, i…

---

## [How to embedding julia on Windows with cmake and Clang?](https://discourse.julialang.org/t/how-to-embedding-julia-on-windows-with-cmake-and-clang/127600)

<div class="topic-metadata">

**Author:** [@ysyecust](https://discourse.julialang.org/u/ysyecust)\
**Replies:** 1\
**Last updated:** [April 9, 2025, 3:31am UTC](https://discourse.julialang.org/t/how-to-embedding-julia-on-windows-with-cmake-and-clang/127600 "2025-04-09T03:31:37Z")

</div>

I think I have configured the code correctly, but I keep getting an error when compiling on Windows. I can successful compile on MACOS and Ubuntu22.04 \[cmake\] Not searching for unused variables given on the command line…

---

## [REPL reports (ParseError: unknown unicode character) when I copy-paste code containing unicodes to the terminal in VScode](https://discourse.julialang.org/t/repl-reports-parseerror-unknown-unicode-character-when-i-copy-paste-code-containing-unicodes-to-the-terminal-in-vscode/127803)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 17\
**Last updated:** [April 9, 2025, 2:51am UTC](https://discourse.julialang.org/t/repl-reports-parseerror-unknown-unicode-character-when-i-copy-paste-code-containing-unicodes-to-the-terminal-in-vscode/127803 "2025-04-09T02:51:30Z")

</div>

Continuing the discussion from Issue with using Unicode in symbol names: In my application, it’s sometimes motivated to use variant style of letters. Maybe often the case is they can work properly (copy-paste workflow …

---

## [Why is there no isless(::Int64, ::UnitRange{Int64})?](https://discourse.julialang.org/t/why-is-there-no-isless-int64-unitrange-int64/112648)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 45\
**Last updated:** [April 9, 2025, 1:54am UTC](https://discourse.julialang.org/t/why-is-there-no-isless-int64-unitrange-int64/112648 "2025-04-09T01:54:22Z")

</div>

It seems to me that all of these are unambiguous: 1 \< 4:5 == true 2 ≤ 2:5 == true 3 ≤ 2:5 == true 5 ≤ 2:5 == true 6 ≤ 2:5 == false 6 \> 2:5 == true 4 \> 2:5 == false That is, for any Int, we can derive an unambiguous a…

---

## [Suggestion to maintain project enviroment](https://discourse.julialang.org/t/suggestion-to-maintain-project-enviroment/127865)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 4\
**Last updated:** [April 9, 2025, 1:03am UTC](https://discourse.julialang.org/t/suggestion-to-maintain-project-enviroment/127865 "2025-04-09T01:03:14Z")

</div>

Hi, I am looking forward some suggestions regarding how to maintain the project enviroment in julia. what I suffering is when I activate one of my project envrioment(it works smoothly before), it will raise error about …

---

## [Memory leak when migrating from Julia 1.10.7 to 1.11.2](https://discourse.julialang.org/t/memory-leak-when-migrating-from-julia-1-10-7-to-1-11-2/124153)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 10\
**Last updated:** [April 8, 2025, 11:55pm UTC](https://discourse.julialang.org/t/memory-leak-when-migrating-from-julia-1-10-7-to-1-11-2/124153 "2025-04-08T23:55:48Z")

</div>

Hi, I’m encountering a memory issue in Julia v1.11.2 with a Monte Carlo simulation. The code spans multiple files which makes it hard for me to post it here. I can say that the code doesn’t allocate new memory after the…

---

## [Julia on DragonflyBSD](https://discourse.julialang.org/t/julia-on-dragonflybsd/127826)

<div class="topic-metadata">

**Author:** [@Mohamad\_Badiez](https://discourse.julialang.org/u/Mohamad_Badiez)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 11:04pm UTC](https://discourse.julialang.org/t/julia-on-dragonflybsd/127826 "2025-04-08T23:04:29Z")

</div>

Hi everybody, I’m trying to install Julia on DragonflyBSD from the source. I installed gcc, fortran, OpenBLAS, and SuiteSparse on DragonflyBSD with no problem. Now, I got this error at the end of the gmake process: g…

---

## [Multi-processing and Distributed Computing Manual Questions and Suggestions](https://discourse.julialang.org/t/multi-processing-and-distributed-computing-manual-questions-and-suggestions/127869)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 0\
**Last updated:** [April 8, 2025, 9:50pm UTC](https://discourse.julialang.org/t/multi-processing-and-distributed-computing-manual-questions-and-suggestions/127869 "2025-04-08T21:50:06Z")

</div>

I am trying to learn how to do distributed computing in Julia, so I looked at the documentation in the official Julia manual (which I think is the only documentation page, if there’s a more detailed or standalone one I w…

---

## [Comma in a query HTTP.jl](https://discourse.julialang.org/t/comma-in-a-query-http-jl/127852)

<div class="topic-metadata">

**Author:** [@gltchr](https://discourse.julialang.org/u/gltchr)\
**Replies:** 3\
**Last updated:** [April 8, 2025, 9:18pm UTC](https://discourse.julialang.org/t/comma-in-a-query-http-jl/127852 "2025-04-08T21:18:14Z")

</div>

Spoiler: This is my first time doing any sort of web-interfacing, so might be something obvious. Problem: Hard-typing the query into a request works, while using the query=\["variables"=\>"var1,var2"\] or query=\["variable…

---

## [How to represent delay between actions in SDDP?](https://discourse.julialang.org/t/how-to-represent-delay-between-actions-in-sddp/127824)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 3\
**Last updated:** [April 8, 2025, 8:33pm UTC](https://discourse.julialang.org/t/how-to-represent-delay-between-actions-in-sddp/127824 "2025-04-08T20:33:28Z")

</div>

Hi all. I am interested in building an SDDP.jl model where I want to incorporate some sort of minimum delay between consecutive actions. If I was doing a standard MILP, I would say something like, I have a decision vari…

---

## [AI: STT, TTS and PromptingTools](https://discourse.julialang.org/t/ai-stt-tts-and-promptingtools/127383)

<div class="topic-metadata">

**Author:** [@andreeco](https://discourse.julialang.org/u/andreeco)\
**Replies:** 7\
**Last updated:** [April 8, 2025, 8:32pm UTC](https://discourse.julialang.org/t/ai-stt-tts-and-promptingtools/127383 "2025-04-08T20:32:18Z")

</div>

Hello, I’m passionate about learning languages and experiment every now and then with PromptingTools to create language resources. It’s an impressive package, though it currently lacks audio support. For Python, I’ve c…

---

## [Change state of a GLMakie toggle programmatically](https://discourse.julialang.org/t/change-state-of-a-glmakie-toggle-programmatically/127860)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 0\
**Last updated:** [April 8, 2025, 5:22pm UTC](https://discourse.julialang.org/t/change-state-of-a-glmakie-toggle-programmatically/127860 "2025-04-08T17:22:27Z")

</div>

How can I change the state of a GLMakie toggle programmatically and ensure it is reflected in the figure? I have access to the state of the toggle vector and want to restore the toggles programmatically with proper refl…

---

## [Distributed is in stdlib, but preventing precompilation via being missing?](https://discourse.julialang.org/t/distributed-is-in-stdlib-but-preventing-precompilation-via-being-missing/127858)

<div class="topic-metadata">

**Author:** [@JimCircadian](https://discourse.julialang.org/u/JimCircadian)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 4:19pm UTC](https://discourse.julialang.org/t/distributed-is-in-stdlib-but-preventing-precompilation-via-being-missing/127858 "2025-04-08T16:19:42Z")

</div>

This will be something really stupid I’m sure. I am having trouble loading Distributed within a package that is being developed, but having no problem when using it in the project from the REPL $ julia --project ... Ve…

---

## [This month in Julia world - 2025-03](https://discourse.julialang.org/t/this-month-in-julia-world-2025-03/127821)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 12:24am UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2025-03/127821 "2025-04-08T00:24:02Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. Call for proposal…

---

## [CUDA cos is giving LLVM IR instruction combine error](https://discourse.julialang.org/t/cuda-cos-is-giving-llvm-ir-instruction-combine-error/127849)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 3:01pm UTC](https://discourse.julialang.org/t/cuda-cos-is-giving-llvm-ir-instruction-combine-error/127849 "2025-04-08T15:01:27Z")

</div>

I am having a cosine function call in CUDA kernel and it is throwing LLVM error. Here is the MWE to reproduce this issue. File: cos\_julia.jl using CUDA # Define a GPU kernel that computes the cosine of each element f…

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

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