# Latest

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

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

**Page:** 512

---

## [Documenter.jl: @repl generated output differs from REPL](https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 0\
**Last updated:** [January 12, 2024, 12:54am UTC](https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713 "2024-01-12T00:54:27Z")

</div>

Let’s say I want to generate the REPL sequence julia\> f(x) = x f (generic function with 1 method) julia\> repr(f) "f" with a @repl block in Documenter.jl. If I write \`\`\`@repl f(x) = x repr(f) \`\`\` then I get the outpu…

---

## [Parametric type construction with Parameters.jl fails](https://discourse.julialang.org/t/parametric-type-construction-with-parameters-jl-fails/108712)

<div class="topic-metadata">

**Author:** [@apo383](https://discourse.julialang.org/u/apo383)\
**Replies:** 0\
**Last updated:** [January 12, 2024, 12:40am UTC](https://discourse.julialang.org/t/parametric-type-construction-with-parameters-jl-fails/108712 "2024-01-12T00:40:36Z")

</div>

I like how @with\_kw can construct new type instances based on an existing one, and was successful with it until I made my struct parametric. First, the non-parametric version: using Parameters abstract type SomeTypes en…

---

## [Loopless calculations](https://discourse.julialang.org/t/loopless-calculations/108628)

<div class="topic-metadata">

**Author:** [@SergeantMike](https://discourse.julialang.org/u/SergeantMike)\
**Replies:** 12\
**Last updated:** [January 11, 2024, 11:27pm UTC](https://discourse.julialang.org/t/loopless-calculations/108628 "2024-01-11T23:27:28Z")

</div>

As an Ecologist, I have a hard time wrapping my head around some of the more esoteric mathematical voo-doo that Julia does, and by that I mean pretty much anything more complicated than x+y=z. With that said, here’s wha…

---

## [Race condition reading from Pipe](https://discourse.julialang.org/t/race-condition-reading-from-pipe/108707)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 11:10pm UTC](https://discourse.julialang.org/t/race-condition-reading-from-pipe/108707 "2024-01-11T23:10:24Z")

</div>

Splitting this off from A \`tee\` option for \`IOCapture\` Does the following minimal working example for asynchronously reading data from a Pipe involve a race condition? using Random function main() pipe = Pipe() …

---

## [Optimizating computational time of gradient on big linear UDEs](https://discourse.julialang.org/t/optimizating-computational-time-of-gradient-on-big-linear-udes/108645)

<div class="topic-metadata">

**Author:** [@jarroyoe](https://discourse.julialang.org/u/jarroyoe)\
**Replies:** 11\
**Last updated:** [January 11, 2024, 10:28pm UTC](https://discourse.julialang.org/t/optimizating-computational-time-of-gradient-on-big-linear-udes/108645 "2024-01-11T22:28:25Z")

</div>

I have an high-dimensional UDE model that includes a linear model. A MWE of the linear component of the model is: using ForwardDiff, DifferentialEquations, SciMLSensitivity trainingData = rand(100,4) p0 = rand(100,100)…

---

## [Quadratures and cubatures with Dirac deltas](https://discourse.julialang.org/t/quadratures-and-cubatures-with-dirac-deltas/108683)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 11\
**Last updated:** [January 11, 2024, 6:46pm UTC](https://discourse.julialang.org/t/quadratures-and-cubatures-with-dirac-deltas/108683 "2024-01-11T18:46:46Z")

</div>

Are there ways to compute cubatures of functions that include the Dirac delta function?

---

## [How do I edit and test code changes in a package](https://discourse.julialang.org/t/how-do-i-edit-and-test-code-changes-in-a-package/108686)

<div class="topic-metadata">

**Author:** [@Fenrir\_Sivar](https://discourse.julialang.org/u/Fenrir_Sivar)\
**Replies:** 7\
**Last updated:** [January 11, 2024, 8:31pm UTC](https://discourse.julialang.org/t/how-do-i-edit-and-test-code-changes-in-a-package/108686 "2024-01-11T20:31:01Z")

</div>

I’m new to Julia and inherited a package from a work member (the only one with Julia experience around, left the company) I know how to install the package from my git repo, but I have no clue how to make my local chan…

---

## [How to update function coefficients during run time](https://discourse.julialang.org/t/how-to-update-function-coefficients-during-run-time/108700)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 7:52pm UTC](https://discourse.julialang.org/t/how-to-update-function-coefficients-during-run-time/108700 "2024-01-11T19:52:52Z")

</div>

I need to define a function: ddx(v) = ((v\[4\] + v\[6\]) / 2 - v\[5\]) / X.^ 2 where X is only known at run time and changes with each high level iteration of a loop. I’ve tried using @eval: @eval ddx(v) = ((v\[4\] + v\[6\]) /…

---

## [How to get rid of the straight line?](https://discourse.julialang.org/t/how-to-get-rid-of-the-straight-line/108646)

<div class="topic-metadata">

**Author:** [@kim1](https://discourse.julialang.org/u/kim1)\
**Replies:** 11\
**Last updated:** [January 11, 2024, 6:54pm UTC](https://discourse.julialang.org/t/how-to-get-rid-of-the-straight-line/108646 "2024-01-11T18:54:37Z")

</div>

Hi guys this may sound weird but Im trying to plot my graph without the straight line that connecting to the curve in it, unfortunately I dont know how from my own equation. :joy: so that the result at the end i will get…

---

## [How to return all variable values of a non-simplified system of equations from a structurally-simplified solution output](https://discourse.julialang.org/t/how-to-return-all-variable-values-of-a-non-simplified-system-of-equations-from-a-structurally-simplified-solution-output/107915)

<div class="topic-metadata">

**Author:** [@chris-hampel-CA](https://discourse.julialang.org/u/chris-hampel-CA)\
**Replies:** 13\
**Last updated:** [January 11, 2024, 5:46pm UTC](https://discourse.julialang.org/t/how-to-return-all-variable-values-of-a-non-simplified-system-of-equations-from-a-structurally-simplified-solution-output/107915 "2024-01-11T17:46:00Z")

</div>

Hello, I am using MTK to solve a system of algebraic nonlinear equations. Using structural\_simplify() helps make these types of problems much easier to solve. However, I have noticed an inefficiency when trying to retu…

---

## [Update & call for community involvement on the Facebook group "Julia programming language"](https://discourse.julialang.org/t/update-call-for-community-involvement-on-the-facebook-group-julia-programming-language/108692)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 5:22pm UTC](https://discourse.julialang.org/t/update-call-for-community-involvement-on-the-facebook-group-julia-programming-language/108692 "2024-01-11T17:22:47Z")

</div>

I haven’t been using FB as frequently anymore, but today, entirely by accident, I noticed that over the past few weeks, I have been receiving notifications for new members in the Julia Programming Language group. At some…

---

## [CURAND no longer makes CU Array for Complex Numbers](https://discourse.julialang.org/t/curand-no-longer-makes-cu-array-for-complex-numbers/108602)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 6\
**Last updated:** [January 11, 2024, 5:13pm UTC](https://discourse.julialang.org/t/curand-no-longer-makes-cu-array-for-complex-numbers/108602 "2024-01-11T17:13:33Z")

</div>

I feel I am doing something wrong. I’m not an expert in this GPU coding, so I was happy when I got this working maybe a year or two ago. I’m revisiting this code and it has stopped working. I have a vector of complex …

---

## [Mapslices and @threads](https://discourse.julialang.org/t/mapslices-and-threads/28138)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 4\
**Last updated:** [January 11, 2024, 4:57pm UTC](https://discourse.julialang.org/t/mapslices-and-threads/28138 "2024-01-11T16:57:17Z")

</div>

I am fooling around with 1.30-rc1 and would like to understand how to make a call on mapslices threaded. Since mapslices can emulate a loop over an array dimension, it would nice to make that “loop” Threads.@threads. Do…

---

## [JuliaCon 2024: CFP is now live!](https://discourse.julialang.org/t/juliacon-2024-cfp-is-now-live/106234)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 4:16pm UTC](https://discourse.julialang.org/t/juliacon-2024-cfp-is-now-live/106234 "2024-01-11T16:16:03Z")

</div>

The JuliaCon 2024 Call for Proposals deadline is Wednesday, January 31 at 10:59 PM (UTC)! Submit your talk idea for the Global JuliaCon 2024 at the Philips Stadion in Eindhoven, NL on 9-13 July 2024.

---

## [Learning rate decay in callback function](https://discourse.julialang.org/t/learning-rate-decay-in-callback-function/107859)

<div class="topic-metadata">

**Author:** [@KianH](https://discourse.julialang.org/u/KianH)\
**Replies:** 3\
**Last updated:** [January 11, 2024, 4:10pm UTC](https://discourse.julialang.org/t/learning-rate-decay-in-callback-function/107859 "2024-01-11T16:10:06Z")

</div>

I was wondering if there is a way to access the learning rate through a callback function when using Lux.jl and Optimization.jl packages. For instance in the line below: Optimization.solve(optprob, ADAM(1e-3), callback …

---

## [FFTW with @parallel seg faults](https://discourse.julialang.org/t/fftw-with-parallel-seg-faults/10590)

<div class="topic-metadata">

**Author:** [@mzilhao](https://discourse.julialang.org/u/mzilhao)\
**Replies:** 7\
**Last updated:** [January 11, 2024, 3:47pm UTC](https://discourse.julialang.org/t/fftw-with-parallel-seg-faults/10590 "2024-01-11T15:47:05Z")

</div>

hi all, I have a code that I’m trying to trivially parallelize with @parallel, but I’m getting a strange segmentation fault that I’ve tracked down to a call to FFTW.plan\_r2r. This is the simplest example that reproduces…

---

## [Package extention for Test allways loads](https://discourse.julialang.org/t/package-extention-for-test-allways-loads/108668)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 2:35pm UTC](https://discourse.julialang.org/t/package-extention-for-test-allways-loads/108668 "2024-01-11T14:35:51Z")

</div>

Hi all :slight\_smile: I want to use some default during testing and put them in my packages in the ext foulder. In the Project.toml I put: \[weakdeps\] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" \[extensions\] TestExt…

---

## [Converting Gtk.GtkAspectFrame to Gtk4.jl](https://discourse.julialang.org/t/converting-gtk-gtkaspectframe-to-gtk4-jl/108684)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 2:10pm UTC](https://discourse.julialang.org/t/converting-gtk-gtkaspectframe-to-gtk4-jl/108684 "2024-01-11T14:10:18Z")

</div>

There seems to be a few subtle changes between Gtk.jl to Gtk4.jl that I’m just not able to figure out by myself. Perhaps anyone has a clue? In Gtk there’s a af = GtkAspectFrame("label", 0.5, 0.5, 4/3), that you can then…

---

## [Using and understanding multi-threading](https://discourse.julialang.org/t/using-and-understanding-multi-threading/108682)

<div class="topic-metadata">

**Author:** [@Andrea\_Vigliotti](https://discourse.julialang.org/u/Andrea_Vigliotti)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 2:01pm UTC](https://discourse.julialang.org/t/using-and-understanding-multi-threading/108682 "2024-01-11T14:01:30Z")

</div>

so, I am trying to understand how multi threading works, I started julia as julia -t 16 on a 32 cores node where I reserved 8, then I run the example from the documentation here these are the lines function sum\_single(a…

---

## [Using Polyester.jl with ChunkSplitters.jl](https://discourse.julialang.org/t/using-polyester-jl-with-chunksplitters-jl/108528)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 4\
**Last updated:** [January 11, 2024, 1:33pm UTC](https://discourse.julialang.org/t/using-polyester-jl-with-chunksplitters-jl/108528 "2024-01-11T13:33:46Z")

</div>

I am trying to paralelize a function, where I have some quantity a that I split in chunks and paralelize over the differente chunks. After that I combine the results obtained from all chunks. An example of this would be …

---

## [Parallel PyJulia](https://discourse.julialang.org/t/parallel-pyjulia/108680)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 0\
**Last updated:** [January 11, 2024, 12:57pm UTC](https://discourse.julialang.org/t/parallel-pyjulia/108680 "2024-01-11T12:57:00Z")

</div>

I am trying to train a RL model for controlling a kite. I am using python for training, and julia for the simulation. I want to speed up training using parallel deep RL. When trying to run julia functions from python in …

---

## [Importing only specific lines from large csv file](https://discourse.julialang.org/t/importing-only-specific-lines-from-large-csv-file/108672)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 6\
**Last updated:** [January 11, 2024, 12:23pm UTC](https://discourse.julialang.org/t/importing-only-specific-lines-from-large-csv-file/108672 "2024-01-11T12:23:05Z")

</div>

Greetings everyone, I am dealing with a very large CSV file, and I would like to only read specific parts of it and import them as a matrix. Effectively, I want something like: using DelimitedFiles data = readdlm("myf…

---

## [\[ANN\] Announcing MusicTheory.jl](https://discourse.julialang.org/t/ann-announcing-musictheory-jl/108444)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 31\
**Last updated:** [January 11, 2024, 12:07pm UTC](https://discourse.julialang.org/t/ann-announcing-musictheory-jl/108444 "2024-01-11T12:07:51Z")

</div>

MusicTheory.jl I’m happy to announce the new package MusicTheory.jl. The goal of the package is to provide a foundation for representing musical objects in a Julian way. The main challenge has been to find the right ab…

---

## [Substantial increase in time in copying an instantiated broadcasted object vs a non-instantiated one](https://discourse.julialang.org/t/substantial-increase-in-time-in-copying-an-instantiated-broadcasted-object-vs-a-non-instantiated-one/108673)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 11:49am UTC](https://discourse.julialang.org/t/substantial-increase-in-time-in-copying-an-instantiated-broadcasted-object-vs-a-non-instantiated-one/108673 "2024-01-11T11:49:58Z")

</div>

I’m trying to understand the difference in performance here: julia\> using LinearAlgebra julia\> n=40; U = UpperTriangular(rand(n,n)); C = similar(U); B = Broadcast.broadcasted(\*, 2.0, U); julia\> @btime copyto!($C, $B);…

---

## [Julia crashing with jfptr\_task\_done\_hook\_75249.1](https://discourse.julialang.org/t/julia-crashing-with-jfptr-task-done-hook-75249-1/108676)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 11:35am UTC](https://discourse.julialang.org/t/julia-crashing-with-jfptr-task-done-hook-75249-1/108676 "2024-01-11T11:35:54Z")

</div>

My julia code is crashing with the following error. RAM usage stays at a low value throughout, around 6/64GB. jfptr\_task\_done\_hook\_75249.1 at /home/aritra/julia-1.10.0/lib/julia/sys.so (unknown line) \_jl\_invoke at /cac…

---

## [Setting up worker local buffers when using Distributed.jl](https://discourse.julialang.org/t/setting-up-worker-local-buffers-when-using-distributed-jl/108671)

<div class="topic-metadata">

**Author:** [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 11:20am UTC](https://discourse.julialang.org/t/setting-up-worker-local-buffers-when-using-distributed-jl/108671 "2024-01-11T11:20:10Z")

</div>

Hello all, I am in the process of incrementally optimizing an algorithm, having focused first on single-core performance, then threading, and now want to scale to Distributed workers. One key element of my optimization…

---

## [Weird error in Flux model](https://discourse.julialang.org/t/weird-error-in-flux-model/108650)

<div class="topic-metadata">

**Author:** [@artp96](https://discourse.julialang.org/u/artp96)\
**Replies:** 4\
**Last updated:** [January 11, 2024, 11:15am UTC](https://discourse.julialang.org/t/weird-error-in-flux-model/108650 "2024-01-11T11:15:29Z")

</div>

I hate to blindly dump but I’m getting a weird error with this code. I’ve tried looking for something similar, and I’ve spent some time trying to debug it and even asked GPT-4 but I’m stumped. using cuDNN, Flux, CUDA h …

---

## [How to change specific parameter in DifferentialEquations CallbackSet?](https://discourse.julialang.org/t/how-to-change-specific-parameter-in-differentialequations-callbackset/108378)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [January 11, 2024, 11:02am UTC](https://discourse.julialang.org/t/how-to-change-specific-parameter-in-differentialequations-callbackset/108378 "2024-01-11T11:02:05Z")

</div>

Hello, I am trying to run a simulation of a bacterial population with Julia. I set a function that takes one parameter (growth rate, mu) that should change at a specific time point (t\_in). I set the CallbackSet for the…

---

## [Sampling (no inference) from a mixture model (compound probability distribution)](https://discourse.julialang.org/t/sampling-no-inference-from-a-mixture-model-compound-probability-distribution/108637)

<div class="topic-metadata">

**Author:** [@adomasbaliuka](https://discourse.julialang.org/u/adomasbaliuka)\
**Replies:** 3\
**Last updated:** [January 11, 2024, 10:09am UTC](https://discourse.julialang.org/t/sampling-no-inference-from-a-mixture-model-compound-probability-distribution/108637 "2024-01-11T10:09:15Z")

</div>

I’ve never used Turing before and don’t have a lot of statistics knowledge but I’d love to be able to do this kind of thing anyway: I don’t have any data. I only want to compute the expectation value of a somewhat compl…

---

## [How to start Pluto with a specified notebook?](https://discourse.julialang.org/t/how-to-start-pluto-with-a-specified-notebook/108665)

<div class="topic-metadata">

**Author:** [@ddrake](https://discourse.julialang.org/u/ddrake)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 9:42am UTC](https://discourse.julialang.org/t/how-to-start-pluto-with-a-specified-notebook/108665 "2024-01-11T09:42:24Z")

</div>

I have a Pluto notebook source file – say, my\_notebook.jl and would like to start the notebook. I’d expect something like this would work: $ julia -e 'using Pluto; Pluto.run("my\_notebook.jl")' but of course it doesn’t.…

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

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