# Latest

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

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

**Page:** 486

---

## [Massive delay when calling a fast function](https://discourse.julialang.org/t/massive-delay-when-calling-a-fast-function/110120)

<div class="topic-metadata">

**Author:** [@narnold0](https://discourse.julialang.org/u/narnold0)\
**Replies:** 13\
**Last updated:** [February 13, 2024, 1:48am UTC](https://discourse.julialang.org/t/massive-delay-when-calling-a-fast-function/110120 "2024-02-13T01:48:01Z")

</div>

Hey there. I’m having trouble with delay from dictionaries and functions. For example, I have a funciton that takes a graph and vertex positions that gets the edge line segments. This function itself takes \<15 μs from Ti…

---

## [Custom fancy printing of non-empty Dict?](https://discourse.julialang.org/t/custom-fancy-printing-of-non-empty-dict/110127)

<div class="topic-metadata">

**Author:** [@GPhMorin](https://discourse.julialang.org/u/GPhMorin)\
**Replies:** 3\
**Last updated:** [February 13, 2024, 1:27am UTC](https://discourse.julialang.org/t/custom-fancy-printing-of-non-empty-dict/110127 "2024-02-13T01:27:14Z")

</div>

For a project, I would like the output of a Dict (and, more specifically, an OrderedDict) containing a type specific to my project to be a custom fancy print instead of an overview of the dictionary’s contents. When I a…

---

## [Modifying a thread-local vector within CUDA Dynamic Parallelism](https://discourse.julialang.org/t/modifying-a-thread-local-vector-within-cuda-dynamic-parallelism/110110)

<div class="topic-metadata">

**Author:** [@luciano-drozda](https://discourse.julialang.org/u/luciano-drozda)\
**Replies:** 2\
**Last updated:** [February 13, 2024, 1:19am UTC](https://discourse.julialang.org/t/modifying-a-thread-local-vector-within-cuda-dynamic-parallelism/110110 "2024-02-13T01:19:40Z")

</div>

Hi! I’d like to modify an MVector in the context of CUDA Dynamic Parallelism. Here goes a minimal example: using CUDA, StaticArrays function outer!() v = MVector{1, Float32}(undef) @cuda dynamic = true inner!(v…

---

## [Overload broadcasting for custom struct?](https://discourse.julialang.org/t/overload-broadcasting-for-custom-struct/42240)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 11\
**Last updated:** [February 12, 2024, 11:13pm UTC](https://discourse.julialang.org/t/overload-broadcasting-for-custom-struct/42240 "2024-02-12T23:13:44Z")

</div>

Hello! I have a struct defined as: struct T3{T} x::T y::T z::T end I want to overload it such that when I write: T3(1,1,1) .\* 5 = T3(5,5,5) But I do not know how to overload “.\*”. Ca…

---

## [Error for 396^n](https://discourse.julialang.org/t/error-for-396-n/110099)

<div class="topic-metadata">

**Author:** [@Jeroens](https://discourse.julialang.org/u/Jeroens)\
**Replies:** 8\
**Last updated:** [February 12, 2024, 11:08pm UTC](https://discourse.julialang.org/t/error-for-396-n/110099 "2024-02-12T23:08:19Z")

</div>

Something weird is happening in Julia when using 396^8… In fact 396^n with n \< 8 works fine, with n =\>8 gives you a large negative number…

---

## [GUI integrated with Pluto for 3D and 2D plots](https://discourse.julialang.org/t/gui-integrated-with-pluto-for-3d-and-2d-plots/110013)

<div class="topic-metadata">

**Author:** [@vambrosi](https://discourse.julialang.org/u/vambrosi)\
**Replies:** 3\
**Last updated:** [February 12, 2024, 10:56pm UTC](https://discourse.julialang.org/t/gui-integrated-with-pluto-for-3d-and-2d-plots/110013 "2024-02-12T22:56:14Z")

</div>

I’m having trouble finding the right combination of GUI and plotting package that would work with a package I’m developing, and I was hoping to get an opinion from someone more familiar with the Julia ecosystem. The con…

---

## [Vscode problem](https://discourse.julialang.org/t/vscode-problem/110100)

<div class="topic-metadata">

**Author:** [@jackmarry](https://discourse.julialang.org/u/jackmarry)\
**Replies:** 7\
**Last updated:** [February 12, 2024, 8:05pm UTC](https://discourse.julialang.org/t/vscode-problem/110100 "2024-02-12T20:05:07Z")

</div>

When I use debugger, this message pops up: Terminal will be reused by tasks, press any key to close it.

---

## [Debugging a module using VS code debugger](https://discourse.julialang.org/t/debugging-a-module-using-vs-code-debugger/72426)

<div class="topic-metadata">

**Author:** [@bhalonen](https://discourse.julialang.org/u/bhalonen)\
**Replies:** 8\
**Last updated:** [February 12, 2024, 7:51pm UTC](https://discourse.julialang.org/t/debugging-a-module-using-vs-code-debugger/72426 "2024-02-12T19:51:52Z")

</div>

I’m attempting to debug a module by running my “runtests.jl” file with the run and debug button on the left ribbon. Everything runs alright, but it ignores any breakpoints I’ve put in the module. Does the breakpoints wo…

---

## [Make functions in the present model available to workers](https://discourse.julialang.org/t/make-functions-in-the-present-model-available-to-workers/110034)

<div class="topic-metadata">

**Author:** [@kingoslo](https://discourse.julialang.org/u/kingoslo)\
**Replies:** 6\
**Last updated:** [February 12, 2024, 6:37pm UTC](https://discourse.julialang.org/t/make-functions-in-the-present-model-available-to-workers/110034 "2024-02-12T18:37:56Z")

</div>

Hello. I am trying to use pmap to call a function that is defined inside the present module, but I can’t make it work. I’ve searched for a few hours for the solution. Therefore I decided to write here. This is a minimal…

---

## [Julia on coderpad.io](https://discourse.julialang.org/t/julia-on-coderpad-io/9303)

<div class="topic-metadata">

**Author:** [@amellnik](https://discourse.julialang.org/u/amellnik)\
**Replies:** 4\
**Last updated:** [February 12, 2024, 6:44pm UTC](https://discourse.julialang.org/t/julia-on-coderpad-io/9303 "2024-02-12T18:44:57Z")

</div>

Hi all, https://coderpad.io is an online coding interview platform used by some large companies. Currently it offers a bunch of languages (including things like Kotlin and Erlang) but not Julia. If Julia support would…

---

## [Creating a method dynamically with keyword arguments](https://discourse.julialang.org/t/creating-a-method-dynamically-with-keyword-arguments/110108)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 4\
**Last updated:** [February 12, 2024, 6:25pm UTC](https://discourse.julialang.org/t/creating-a-method-dynamically-with-keyword-arguments/110108 "2024-02-12T18:25:33Z")

</div>

I have a context structure with many fields and want to mutate some by reinitialising, where I could do various validations. I know there is an excellent SetField.jl package, but I have only one structure, and thus, I wo…

---

## [How to use WriteVTK properly when saving continous simulation results?](https://discourse.julialang.org/t/how-to-use-writevtk-properly-when-saving-continous-simulation-results/109506)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 7\
**Last updated:** [February 12, 2024, 6:16pm UTC](https://discourse.julialang.org/t/how-to-use-writevtk-properly-when-saving-continous-simulation-results/109506 "2024-02-12T18:16:21Z")

</div>

Hello! I would just like to check that I am doing this right. I use WriteVTK a lot and really love it. I run a simulation in which every N time steps I output a .vtp file. The ‘pseudo’ code I use looks like this: # Th…

---

## [JuMP / CPLEX: solution\_summary() seemingly returns something wrong](https://discourse.julialang.org/t/jump-cplex-solution-summary-seemingly-returns-something-wrong/110102)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 6:06pm UTC](https://discourse.julialang.org/t/jump-cplex-solution-summary-seemingly-returns-something-wrong/110102 "2024-02-12T18:06:44Z")

</div>

I am trying to do some copositivity detection using a MILP with which I find an optimal solution as expected. However, solution\_summary() says that no solution exists. Here is an MWE: using JuMP using CPLEX function my…

---

## [Is it possible to uniquely identify computing threads?](https://discourse.julialang.org/t/is-it-possible-to-uniquely-identify-computing-threads/110084)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 8\
**Last updated:** [February 12, 2024, 5:59pm UTC](https://discourse.julialang.org/t/is-it-possible-to-uniquely-identify-computing-threads/110084 "2024-02-12T17:59:59Z")

</div>

Let us say I spin up a certain number of threads, julia -t 5. Is it possible to uniquely identify which thread is running my code at some point in time? I don’t mean threadid(), unless that is guaranteed to be unique.

---

## [Error with couenne](https://discourse.julialang.org/t/error-with-couenne/110046)

<div class="topic-metadata">

**Author:** [@medardo](https://discourse.julialang.org/u/medardo)\
**Replies:** 6\
**Last updated:** [February 12, 2024, 5:44pm UTC](https://discourse.julialang.org/t/error-with-couenne/110046 "2024-02-12T17:44:46Z")

</div>

Hi, please help me. I can’t see the problem. I am using this code: using JuMP, AmplNLWriter, Couenne\_jll function run() model = Model(() → AmplNLWriter.Optimizer(Couenne\_jll.amplexe)) @variable(model, x) @variable(m…

---

## [Access a tuple of structs using the values of an integer array](https://discourse.julialang.org/t/access-a-tuple-of-structs-using-the-values-of-an-integer-array/109980)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 16\
**Last updated:** [February 12, 2024, 4:30pm UTC](https://discourse.julialang.org/t/access-a-tuple-of-structs-using-the-values-of-an-integer-array/109980 "2024-02-12T16:30:30Z")

</div>

I have a tuple of heterogeneous structures: struct Foo{T} a :: T b :: T end foos = (Foo(1,2), Foo(3.0,4.0)) and I have a 3D grid which is separated into different regions such that in a given region I want to …

---

## [Error when compiling DataToolkit.jl](https://discourse.julialang.org/t/error-when-compiling-datatoolkit-jl/110082)

<div class="topic-metadata">

**Author:** [@vtfanta](https://discourse.julialang.org/u/vtfanta)\
**Replies:** 3\
**Last updated:** [February 12, 2024, 3:57pm UTC](https://discourse.julialang.org/t/error-when-compiling-datatoolkit-jl/110082 "2024-02-12T15:57:24Z")

</div>

Hi, I wanted to try the DataToolkit.jl package, but I am getting this error when I try to compile (after \]add DataToolkit). I have already tried deleting the compiled packages to force recompilation. It probably isn’t a…

---

## [Programming error or language understanding error?](https://discourse.julialang.org/t/programming-error-or-language-understanding-error/110053)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 7\
**Last updated:** [February 12, 2024, 3:47pm UTC](https://discourse.julialang.org/t/programming-error-or-language-understanding-error/110053 "2024-02-12T15:47:44Z")

</div>

I either have a bug in my code, or a misunderstanding of the Julia language. I have two struct types: an Ellipse and a Circle. In order to simplify my code, I have a single drawing function that draws an ellipse. Since…

---

## [Copying a Model?](https://discourse.julialang.org/t/copying-a-model/71246)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 5\
**Last updated:** [February 12, 2024, 3:34pm UTC](https://discourse.julialang.org/t/copying-a-model/71246 "2024-02-12T15:34:05Z")

</div>

Hi, I was wondering if there has been progress on the front of being able to copy/deepcopy a model in JuMP? Currently what I do is re-encode everything into the model but the encoding process is rather long and I would …

---

## [Speeding up gradient of logpdf](https://discourse.julialang.org/t/speeding-up-gradient-of-logpdf/109708)

<div class="topic-metadata">

**Author:** [@bertschi](https://discourse.julialang.org/u/bertschi)\
**Replies:** 19\
**Last updated:** [February 12, 2024, 3:08pm UTC](https://discourse.julialang.org/t/speeding-up-gradient-of-logpdf/109708 "2024-02-12T15:08:06Z")

</div>

Somehow, I seem to be unable to speed up gradient calculations of a simple logpdf. As a minimal working example, consider the following computation: using Distributions import AbstractDifferentiation as AD import Forwar…

---

## [Gradient of ODESystem containing a loop](https://discourse.julialang.org/t/gradient-of-odesystem-containing-a-loop/110103)

<div class="topic-metadata">

**Author:** [@Kieran\_Marray](https://discourse.julialang.org/u/Kieran_Marray)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 2:38pm UTC](https://discourse.julialang.org/t/gradient-of-odesystem-containing-a-loop/110103 "2024-02-12T14:38:32Z")

</div>

Hi! I am trying to take the gradient of an ODESystem containing a loop using either Zygote or ForwardDiff. Both seem to fail when I do so. Here is a minimal working example (taken from a previous JuliaForum post) using…

---

## [Generate and evaluate functions programmatically](https://discourse.julialang.org/t/generate-and-evaluate-functions-programmatically/110083)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 12:27pm UTC](https://discourse.julialang.org/t/generate-and-evaluate-functions-programmatically/110083 "2024-02-12T12:27:55Z")

</div>

Hi, I wonder what is the best way (performance-wise) to generate and evaluate functions programmatically. The functions I need are generated dynamically via a Genetic Programming algorithm (i.e., they are based on previ…

---

## [CUDA + StaticArrays weird dynamic function invocation](https://discourse.julialang.org/t/cuda-staticarrays-weird-dynamic-function-invocation/109881)

<div class="topic-metadata">

**Author:** [@trahflow](https://discourse.julialang.org/u/trahflow)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 12:07pm UTC](https://discourse.julialang.org/t/cuda-staticarrays-weird-dynamic-function-invocation/109881 "2024-02-12T12:07:29Z")

</div>

Hi, I have a weird issue that is somewhat related to this thread. When using StaticArrays within a CUDA kernel, it seems to be necessary to add @inbounds before converting arrays/views to static arrays, otherwise this …

---

## [Cuda (Julia vs C++)](https://discourse.julialang.org/t/cuda-julia-vs-c/109865)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 4\
**Last updated:** [February 12, 2024, 12:03pm UTC](https://discourse.julialang.org/t/cuda-julia-vs-c/109865 "2024-02-12T12:03:44Z")

</div>

Are there any benchmarks between C++ cuda and Cuda.jl?

---

## [JuliaFEM failed to precompile](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 9\
**Last updated:** [February 12, 2024, 10:58am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908 "2024-02-12T10:58:57Z")

</div>

Hi Guys I am new to Julia, I have tried to install the JuliaFEM package however there seems to be some issues, please refer to the below errors when running the test. I have seen a post about this with the solution requ…

---

## [How to implement hybrid parallelized programs](https://discourse.julialang.org/t/how-to-implement-hybrid-parallelized-programs/109604)

<div class="topic-metadata">

**Author:** [@mdyuki](https://discourse.julialang.org/u/mdyuki)\
**Replies:** 29\
**Last updated:** [February 12, 2024, 8:31am UTC](https://discourse.julialang.org/t/how-to-implement-hybrid-parallelized-programs/109604 "2024-02-12T08:31:30Z")

</div>

Hello. I have scientific computing codes that contain nested loops. I have parallelized them so far with multithreading one of the loops. This improved performance, but I need to reduce more computational time. To increa…

---

## [Packaging a Julia library with PyJulia](https://discourse.julialang.org/t/packaging-a-julia-library-with-pyjulia/108900)

<div class="topic-metadata">

**Author:** [@stefanjon](https://discourse.julialang.org/u/stefanjon)\
**Replies:** 8\
**Last updated:** [February 12, 2024, 5:59am UTC](https://discourse.julialang.org/t/packaging-a-julia-library-with-pyjulia/108900 "2024-02-12T05:59:14Z")

</div>

I have a general question about the possibilities of Packaging a Julia library that is wrapped in python using PyJulia so that it can easily be put into a wheel for distribution. To give some context, I have develop an …

---

## [What does Aqua mean here?](https://discourse.julialang.org/t/what-does-aqua-mean-here/110085)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [February 12, 2024, 4:14am UTC](https://discourse.julialang.org/t/what-does-aqua-mean-here/110085 "2024-02-12T04:14:04Z")

</div>

Compare Project.toml and test/Project.toml | 1 1 0.00000e+00s Stale dependencies: Test Failed at C:\\Users\\pkonl\\VSCode\_Julia\_portable-main\\assets\\.julia-1.10.0-depot\\packages\\Aqua\\9p8ck\\src\\stale\_deps.jl:31 Ex…

---

## [Why does recursive dereferencing occur during printing of a tree?](https://discourse.julialang.org/t/why-does-recursive-dereferencing-occur-during-printing-of-a-tree/110008)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 12\
**Last updated:** [February 12, 2024, 3:31am UTC](https://discourse.julialang.org/t/why-does-recursive-dereferencing-occur-during-printing-of-a-tree/110008 "2024-02-12T03:31:35Z")

</div>

Hi! With my bidirectional tree (see below) I fell into the “circular reference” trap which makes me wonder why Julia (or something inside Julia?) shows this behavior in the first place. Coming from C I would expect the…

---

## [Memory management in CPLEX.jl](https://discourse.julialang.org/t/memory-management-in-cplex-jl/109704)

<div class="topic-metadata">

**Author:** [@Matheus\_Diogenes\_And](https://discourse.julialang.org/u/Matheus_Diogenes_And)\
**Replies:** 9\
**Last updated:** [February 11, 2024, 11:28pm UTC](https://discourse.julialang.org/t/memory-management-in-cplex-jl/109704 "2024-02-11T23:28:12Z")

</div>

Hello. I am investigating a behavior related to the execution of CPLEX.jl. So, let’s consider the following environment: Linux pop-os 6.4.6-76060406-generic; And Julia version 1.8.4. And the following commands: juli…

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

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