# Latest

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

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

**Page:** 427

---

## [How to use \`integration\_qawc\` with function wrapped with local variables?](https://discourse.julialang.org/t/how-to-use-integration-qawc-with-function-wrapped-with-local-variables/113269)

<div class="topic-metadata">

**Author:** [@zxct](https://discourse.julialang.org/u/zxct)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 2:05am UTC](https://discourse.julialang.org/t/how-to-use-integration-qawc-with-function-wrapped-with-local-variables/113269 "2024-04-24T02:05:09Z")

</div>

Hi, I want to calculate the cauchy principle value integration of a three arguments function inside a function with two arguments decided at runtime with local variables. But it seemed that integration\_qawc will not find…

---

## [GTK4 periodic signal to refresh data display](https://discourse.julialang.org/t/gtk4-periodic-signal-to-refresh-data-display/112997)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 12:59am UTC](https://discourse.julialang.org/t/gtk4-periodic-signal-to-refresh-data-display/112997 "2024-04-24T00:59:50Z")

</div>

Hello, I would like to know the best way to repeatedly update some labels. Currently I use Gtk4.g\_timeout\_add(cb,ms) . cb being a callback retrieving new values and updating corresponding labels. But it tends to render …

---

## [Multiplying Matrix inside a loop](https://discourse.julialang.org/t/multiplying-matrix-inside-a-loop/113352)

<div class="topic-metadata">

**Author:** [@Digidi](https://discourse.julialang.org/u/Digidi)\
**Replies:** 9\
**Last updated:** [April 23, 2024, 9:51pm UTC](https://discourse.julialang.org/t/multiplying-matrix-inside-a-loop/113352 "2024-04-23T21:51:37Z")

</div>

Hello, i try to write an alorithm where the Matrix is iterated ofer a table value. In each step the Matrix should be multiplyed with the Matrix before. I tried severl approches but i didn’t find something which is workin…

---

## [How to add variables with the same name in JuMP?](https://discourse.julialang.org/t/how-to-add-variables-with-the-same-name-in-jump/113324)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 3\
**Last updated:** [April 23, 2024, 8:55pm UTC](https://discourse.julialang.org/t/how-to-add-variables-with-the-same-name-in-jump/113324 "2024-04-23T20:55:03Z")

</div>

Hello, I am trying to reproduce a model from a mosel file in JuMP. The mosel file uses a loop to iteratively define variables at specific indices. However, in JuMP, it seems I can’t find how to add variables with the sa…

---

## [Cleaning unnecessary files after building Julia](https://discourse.julialang.org/t/cleaning-unnecessary-files-after-building-julia/110571)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 11\
**Last updated:** [April 23, 2024, 7:07pm UTC](https://discourse.julialang.org/t/cleaning-unnecessary-files-after-building-julia/110571 "2024-04-23T19:07:45Z")

</div>

Hi, I manage to build Julia from source. It seems that the outputs of the build are in a folder called “usr”. In that folder I can see that there are the default folder that comes with a “normal” Julia installation, i.…

---

## [Change parameters of array components in ModelingToolkit.jl](https://discourse.julialang.org/t/change-parameters-of-array-components-in-modelingtoolkit-jl/113358)

<div class="topic-metadata">

**Author:** [@Antomek](https://discourse.julialang.org/u/Antomek)\
**Replies:** 5\
**Last updated:** [April 23, 2024, 7:00pm UTC](https://discourse.julialang.org/t/change-parameters-of-array-components-in-modelingtoolkit-jl/113358 "2024-04-23T19:00:35Z")

</div>

Hello all, I am looking for a way of setting the individual parameters of an array of components in ModelingToolkit. Consider the following example (inspired by the ModelingToolkit docs): using ModelingToolkit using M…

---

## [Julia for processing Next-Generation Sequencing (NGS) datasets](https://discourse.julialang.org/t/julia-for-processing-next-generation-sequencing-ngs-datasets/113371)

<div class="topic-metadata">

**Author:** [@Bonjour-Lemonde](https://discourse.julialang.org/u/Bonjour-Lemonde)\
**Replies:** 5\
**Last updated:** [April 23, 2024, 5:24pm UTC](https://discourse.julialang.org/t/julia-for-processing-next-generation-sequencing-ngs-datasets/113371 "2024-04-23T17:24:40Z")

</div>

Hi all! I want to inquire how to use Julia for processing Next-Generation Sequencing (NGS) datasets, especially to merge paired-end sequencing reads. I think currently there seems no suitable packages in Julia as pandase…

---

## [Using \`\`\`@nall\`\`\` or \`\`\`@nexpr \`\`\`inside of \`\`\`@nif\`\`\` (from Base.Cartesian package)](https://discourse.julialang.org/t/using-nall-or-nexpr-inside-of-nif-from-base-cartesian-package/113403)

<div class="topic-metadata">

**Author:** [@lukeb](https://discourse.julialang.org/u/lukeb)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 4:42pm UTC](https://discourse.julialang.org/t/using-nall-or-nexpr-inside-of-nif-from-base-cartesian-package/113403 "2024-04-23T16:42:22Z")

</div>

Hi, I’m trying to do some meta-programming and have hit a wall. I’ve reduced my problem to what I think is a MWE containing the important aspects of the larger problem. It revolves around trying to use @nall (or, alterna…

---

## [Complex DataFrames.jl transform by row](https://discourse.julialang.org/t/complex-dataframes-jl-transform-by-row/112781)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 5\
**Last updated:** [April 23, 2024, 4:19pm UTC](https://discourse.julialang.org/t/complex-dataframes-jl-transform-by-row/112781 "2024-04-23T16:19:47Z")

</div>

I’m a bit rusty on data table programming and I am getting stuck using the DataFrames.jl package when trying to applying a complex function to every row of a DataFrame. e.g., I would like to take the entirety of a row, a…

---

## [What are the best practices to put a very simple plot on custom \`show\`s of the types in a package?](https://discourse.julialang.org/t/what-are-the-best-practices-to-put-a-very-simple-plot-on-custom-show-s-of-the-types-in-a-package/113260)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 6\
**Last updated:** [April 23, 2024, 3:43pm UTC](https://discourse.julialang.org/t/what-are-the-best-practices-to-put-a-very-simple-plot-on-custom-show-s-of-the-types-in-a-package/113260 "2024-04-23T15:43:52Z")

</div>

Hi all, I would like to put a very simple plot on the output of custom show(::IO, ::MIME "image/svg+xml", ::MyType). (In my case 2-d line and scatter plots are sufficient.) It is intended not only to help the user unde…

---

## [Get the type parameters of a parametric type](https://discourse.julialang.org/t/get-the-type-parameters-of-a-parametric-type/113308)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 12\
**Last updated:** [April 23, 2024, 3:43pm UTC](https://discourse.julialang.org/t/get-the-type-parameters-of-a-parametric-type/113308 "2024-04-23T15:43:35Z")

</div>

I have an instance of a parametric type. Is it possible to somehow retrieve the type parameters for this instance? E.g. for \`\`\`julia struct MyStruct{T} x::T function MyStruct(x) return new{typeof(x)}(x) end end …

---

## [Edited video of the course “GPU Programming with Julia - 2nd edition” at the Swiss National Supercomputing Centre (CSCS) now available!](https://discourse.julialang.org/t/edited-video-of-the-course-gpu-programming-with-julia-2nd-edition-at-the-swiss-national-supercomputing-centre-cscs-now-available/113392)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 3:35pm UTC](https://discourse.julialang.org/t/edited-video-of-the-course-gpu-programming-with-julia-2nd-edition-at-the-swiss-national-supercomputing-centre-cscs-now-available/113392 "2024-04-23T15:35:14Z")

</div>

Get the Jupyter notebooks discussed in the course, the edited recording and any other relevant information from here: GitHub - omlins/julia-gpu-course-2023: GPU Programming with Julia 2023 - course at the Swiss Nation…

---

## [Status of Julia on Windows](https://discourse.julialang.org/t/status-of-julia-on-windows/113050)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 13\
**Last updated:** [April 23, 2024, 3:23pm UTC](https://discourse.julialang.org/t/status-of-julia-on-windows/113050 "2024-04-23T15:23:12Z")

</div>

It is often believed that Julia somehow performs worse on Windows, while some say the situation is exaggerated. I’d like to open a topic and gather information about this. 2024 April 17th ThreadPinning cannot be used on…

---

## [Avoiding runtime dispatch randomly selecting an algorithm in a loop](https://discourse.julialang.org/t/avoiding-runtime-dispatch-randomly-selecting-an-algorithm-in-a-loop/113389)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 2:55pm UTC](https://discourse.julialang.org/t/avoiding-runtime-dispatch-randomly-selecting-an-algorithm-in-a-loop/113389 "2024-04-23T14:55:15Z")

</div>

I have a scenario where I’m switching between different methods of one function in a loop that has a long lifetime. I have a tuple of structs, where I’m selecting one randomly to be put into a function like so: functio…

---

## [Benchmark ParallelStencil & ImplicitGlobalGrid performance on cluster](https://discourse.julialang.org/t/benchmark-parallelstencil-implicitglobalgrid-performance-on-cluster/113023)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 8\
**Last updated:** [April 23, 2024, 2:24pm UTC](https://discourse.julialang.org/t/benchmark-parallelstencil-implicitglobalgrid-performance-on-cluster/113023 "2024-04-23T14:24:30Z")

</div>

I am trying to use ParallelStencil with ImplicitGlobalGrid in order to run in parallel using multithreading as well. I have a working code solving the wave equation and I would like to measure the performance of the code…

---

## [Putting linear ODESystem in matrix-vector form](https://discourse.julialang.org/t/putting-linear-odesystem-in-matrix-vector-form/113333)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 26\
**Last updated:** [April 23, 2024, 2:18pm UTC](https://discourse.julialang.org/t/putting-linear-odesystem-in-matrix-vector-form/113333 "2024-04-23T14:18:37Z")

</div>

Hi, I have an ODESystem, defined in modelingtoolkit.jl by these equations: \\begin{align} \\frac{\\mathrm{d} Ci\_{+}v\\left( t \\right)}{\\mathrm{d}t} =& \\frac{\\frac{ - Ci\_{+}v\\left( t \\right) + Ch\_{+}v\\left( t \\right)}{Rih\_…

---

## [Solving a set of equations using Symbolics.jl](https://discourse.julialang.org/t/solving-a-set-of-equations-using-symbolics-jl/113388)

<div class="topic-metadata">

**Author:** [@skvibimigger](https://discourse.julialang.org/u/skvibimigger)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 2:17pm UTC](https://discourse.julialang.org/t/solving-a-set-of-equations-using-symbolics-jl/113388 "2024-04-23T14:17:13Z")

</div>

Hello, How can I solve a system of equations to obtain the following coefficients a1, a2, a3 and a4 using the Symbolics.jl package. I know that it is possible using the SymPy package, but I am interesting in solving it…

---

## [NASA Roses Support for Open Source Tools and Libraries, NOI Due May 7th!](https://discourse.julialang.org/t/nasa-roses-support-for-open-source-tools-and-libraries-noi-due-may-7th/113311)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 12\
**Last updated:** [April 23, 2024, 1:42pm UTC](https://discourse.julialang.org/t/nasa-roses-support-for-open-source-tools-and-libraries-noi-due-may-7th/113311 "2024-04-23T13:42:31Z")

</div>

NASA is running a new round of ROSES for supporting open source software. If you would like to contribute to the Julia community, one of the best ways would be to secure grants to get more students working on the ecosyst…

---

## [How to encourage compiler optimizations?](https://discourse.julialang.org/t/how-to-encourage-compiler-optimizations/113325)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 12\
**Last updated:** [April 23, 2024, 1:32pm UTC](https://discourse.julialang.org/t/how-to-encourage-compiler-optimizations/113325 "2024-04-23T13:32:18Z")

</div>

I have two functions which contain an identical block of code foo followed by different blocks of code bar1, bar2. I time these functions using our timing tool which is essentially a derivate of \_timer\_expr from TimerOut…

---

## [\[ANN\] Shelly.jl -- cd, ls, ll and more Unix in the Julia REPL mode](https://discourse.julialang.org/t/ann-shelly-jl-cd-ls-ll-and-more-unix-in-the-julia-repl-mode/100657)

<div class="topic-metadata">

**Author:** [@martin.auer](https://discourse.julialang.org/u/martin.auer)\
**Replies:** 7\
**Last updated:** [April 23, 2024, 1:18pm UTC](https://discourse.julialang.org/t/ann-shelly-jl-cd-ls-ll-and-more-unix-in-the-julia-repl-mode/100657 "2024-04-23T13:18:06Z")

</div>

Hi all, happy to announce Shelly.jl, a tiny helper package to let you swiftly navigate the file system from within the Julia REPL mode, and without having to type any special characters. More info on the Github README;…

---

## [Why does JET seemingly not flag dynamic dispatch in this string interpolation?](https://discourse.julialang.org/t/why-does-jet-seemingly-not-flag-dynamic-dispatch-in-this-string-interpolation/112603)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [April 23, 2024, 1:13pm UTC](https://discourse.julialang.org/t/why-does-jet-seemingly-not-flag-dynamic-dispatch-in-this-string-interpolation/112603 "2024-04-23T13:13:54Z")

</div>

julia\> using LinearAlgebra, Cthulhu, JET julia\> D = Diagonal(rand(2)); julia\> @descend setindex!(D, 2, 1, 2) # Cthulhu setindex!(D::Diagonal, v, i::Int64, j::Int64) @ LinearAlgebra ~/.julia/juliaup/julia-1.11.0-alpha2+…

---

## [SVector and Type Stabilty](https://discourse.julialang.org/t/svector-and-type-stabilty/113391)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 4\
**Last updated:** [April 23, 2024, 1:05pm UTC](https://discourse.julialang.org/t/svector-and-type-stabilty/113391 "2024-04-23T13:05:17Z")

</div>

I am struggling to understand the type instability of function foo(x,y,z,r) r\_prime = Point3D(x,y,z) result = r - rprime end given as input x = 0.; y = 0.; z = 0.; r = Point3D(1.,1.,1.) @code\_warntype foo(x,…

---

## [What is the minimum mac os version supported](https://discourse.julialang.org/t/what-is-the-minimum-mac-os-version-supported/113372)

<div class="topic-metadata">

**Author:** [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 12:36pm UTC](https://discourse.julialang.org/t/what-is-the-minimum-mac-os-version-supported/113372 "2024-04-23T12:36:56Z")

</div>

As far as I can tell we build LLVM \>= 15 with Mac os SDK 10.14 on binarybuilder. So I presume that means Julia wouldn’t build on earlier versions and the distributed binaries are incompatible. Am I correct? Download Jul…

---

## [Edited recording of course “GPU Programming with Julia - 2nd edition” at the Swiss National Supercomputing Centre (CSCS) now available!](https://discourse.julialang.org/t/edited-recording-of-course-gpu-programming-with-julia-2nd-edition-at-the-swiss-national-supercomputing-centre-cscs-now-available/113390)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 0\
**Last updated:** [April 23, 2024, 12:32pm UTC](https://discourse.julialang.org/t/edited-recording-of-course-gpu-programming-with-julia-2nd-edition-at-the-swiss-national-supercomputing-centre-cscs-now-available/113390 "2024-04-23T12:32:28Z")

</div>

Get the jupyter notebooks discussed in the course, the edited recording and any other relevant information from here: GitHub - omlins/julia-gpu-course-2023: GPU Programming with Julia 2023 - course at the Swiss Nation…

---

## [\[PRE/RFC/ANN\] Color-related packages (YUVColorTypes, CMYKColorTypes, ColorProfiles, HDRColorTypes, HDRImages)](https://discourse.julialang.org/t/pre-rfc-ann-color-related-packages-yuvcolortypes-cmykcolortypes-colorprofiles-hdrcolortypes-hdrimages/113032)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 6\
**Last updated:** [April 20, 2024, 6:57am UTC](https://discourse.julialang.org/t/pre-rfc-ann-color-related-packages-yuvcolortypes-cmykcolortypes-colorprofiles-hdrcolortypes-hdrimages/113032 "2024-04-20T06:57:05Z")

</div>

To all those lamenting the slow development of ColorTypes.jl, Colors.jl, and so on I had to leave the development a few years ago due to somewhat misfortunes. I apologize for the inconvenience. I am in relatively good …

---

## [UDE example missing physics MethodError](https://discourse.julialang.org/t/ude-example-missing-physics-methoderror/113334)

<div class="topic-metadata">

**Author:** [@SzAleks](https://discourse.julialang.org/u/SzAleks)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 12:30pm UTC](https://discourse.julialang.org/t/ude-example-missing-physics-methoderror/113334 "2024-04-23T12:30:27Z")

</div>

Hello all, some time ago I reproduced the Automatically Discover Missing Physics by Embedding Machine Learning into Differential Equations · Overview of Julia's SciML example on my local machine for future projects. Some…

---

## [Specify range of gradient when plotting lines](https://discourse.julialang.org/t/specify-range-of-gradient-when-plotting-lines/113385)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [April 23, 2024, 12:06pm UTC](https://discourse.julialang.org/t/specify-range-of-gradient-when-plotting-lines/113385 "2024-04-23T12:06:12Z")

</div>

Hi all, I would like to apply a color gradient to lines based on their slopes. The problem I am having is that the line with the smallest slope is not visible. I tried changing the the values argument for cgrad, but I c…

---

## [Unexpected change of field value in struct](https://discourse.julialang.org/t/unexpected-change-of-field-value-in-struct/113364)

<div class="topic-metadata">

**Author:** [@pmarg](https://discourse.julialang.org/u/pmarg)\
**Replies:** 11\
**Last updated:** [April 23, 2024, 11:40am UTC](https://discourse.julialang.org/t/unexpected-change-of-field-value-in-struct/113364 "2024-04-23T11:40:17Z")

</div>

I was not expecting the change in the field values in the following example. Is this a recent change? julia\> x = \[10., 10.\] 2-element Vector{Float64}: 10.0 10.0 julia\> @kwdef struct Test a = x b = x…

---

## [Custom Agent constructors?](https://discourse.julialang.org/t/custom-agent-constructors/113376)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 11:37am UTC](https://discourse.julialang.org/t/custom-agent-constructors/113376 "2024-04-23T11:37:43Z")

</div>

I’d like to preprocess the parameters that are passed to an Agent upon construction. How would I go about that? A simple example of what I’d like to do: function make\_set(t::Union{Nothing, Symbol, Set{Symbol}}) if t …

---

## [/dev/gpiomem error for BaremetalPi (Mmap.mmap regression)](https://discourse.julialang.org/t/dev-gpiomem-error-for-baremetalpi-mmap-mmap-regression/112611)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 8\
**Last updated:** [April 23, 2024, 10:55am UTC](https://discourse.julialang.org/t/dev-gpiomem-error-for-baremetalpi-mmap-mmap-regression/112611 "2024-04-23T10:55:58Z")

</div>

On a Raspberry PI 4 with 8 gig memory, I have upgraded the OS to Bookworm. Now when I execute the function init\_gpio() it gives me the error Could not map /dev/gpiomem . Make sure you have the required permissions. W…

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

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