# Latest

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

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

**Page:** 492

---

## [Juliaup: remove old versions?](https://discourse.julialang.org/t/juliaup-remove-old-versions/109799)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 3:10pm UTC](https://discourse.julialang.org/t/juliaup-remove-old-versions/109799 "2024-02-06T15:10:28Z")

</div>

I’ve been using juliaup and keeping updating. I think I’ve subscribed to the “release” channel. Now my ~/.julia/compiled/ includes several versions: $ cd ~/.julia/compiled/ $ du -skh \* 60M v1.6 181M v1.7 970M v1.8 3.…

---

## [Number of domains in method of lines](https://discourse.julialang.org/t/number-of-domains-in-method-of-lines/109813)

<div class="topic-metadata">

**Author:** [@Sisuvoima10](https://discourse.julialang.org/u/Sisuvoima10)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 2:49pm UTC](https://discourse.julialang.org/t/number-of-domains-in-method-of-lines/109813 "2024-02-06T14:49:32Z")

</div>

Hello to all, I have been trying to model a simple diffusion problem consisting from 3 different domains that are connected through interfaces. Problem is just in 1D and and the domains are connected to each other in fo…

---

## [If find some problems with Julia YT channel, write them here](https://discourse.julialang.org/t/if-find-some-problems-with-julia-yt-channel-write-them-here/109812)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 2:45pm UTC](https://discourse.julialang.org/t/if-find-some-problems-with-julia-yt-channel-write-them-here/109812 "2024-02-06T14:45:53Z")

</div>

Since few weeks, due to generosity of many people in Julia Community, I’m a co-manager of The Julia Programming Language YT channel. I used my times in this role to put timestamps in their places (GitHub PR are another s…

---

## [Profiler doesn't show Threads](https://discourse.julialang.org/t/profiler-doesnt-show-threads/109774)

<div class="topic-metadata">

**Author:** [@dbrohl](https://discourse.julialang.org/u/dbrohl)\
**Replies:** 6\
**Last updated:** [February 6, 2024, 2:45pm UTC](https://discourse.julialang.org/t/profiler-doesnt-show-threads/109774 "2024-02-06T14:45:52Z")

</div>

I want to use multithreading in a project. I use Julia in VS Code and use the build-in profiler of the VSCode extension. The 8 threads appear in the profiler dropdown menu, but all threads except the first only have one …

---

## [Why are the types in this example different?](https://discourse.julialang.org/t/why-are-the-types-in-this-example-different/109811)

<div class="topic-metadata">

**Author:** [@Daniel\_Lincke](https://discourse.julialang.org/u/Daniel_Lincke)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 2:33pm UTC](https://discourse.julialang.org/t/why-are-the-types-in-this-example-different/109811 "2024-02-06T14:33:39Z")

</div>

f0(x :: Float32) = 1f0 f1(p :: Float32) = function(x :: Float32); return (x+p) end println(typeof(\[f0,f1(1.0f0)\])) println(typeof(\[f1(0.0f0),f1(1.0f0)\])) this results in Vector{Function} Vector{var"#1#2"{Float32}…

---

## [Type intersection with \`NTuple{len,Any}\`](https://discourse.julialang.org/t/type-intersection-with-ntuple-len-any/109765)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 2:30pm UTC](https://discourse.julialang.org/t/type-intersection-with-ntuple-len-any/109765 "2024-02-06T14:30:53Z")

</div>

Problem: say I have a type T such that T \<: Tuple, and len, a nonnegative Int value. I want the intersection of T and NTuple{len,Any}. Is it possible to solve the above correctly and exactly? I have three candidate solu…

---

## [Profiling in VSCode returns some red bars with "Flag: GC" - what do they mean?](https://discourse.julialang.org/t/profiling-in-vscode-returns-some-red-bars-with-flag-gc-what-do-they-mean/109570)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 12\
**Last updated:** [February 6, 2024, 2:09pm UTC](https://discourse.julialang.org/t/profiling-in-vscode-returns-some-red-bars-with-flag-gc-what-do-they-mean/109570 "2024-02-06T14:09:22Z")

</div>

Hello! When using @profview in Julia I observe that there exists both blue and red bars. The blue bars I think are fine, they just mention how much time is spent. But what about the red ones? Is this something I should…

---

## [Julia 1.10.1 testing period](https://discourse.julialang.org/t/julia-1-10-1-testing-period/109805)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 1:46pm UTC](https://discourse.julialang.org/t/julia-1-10-1-testing-period/109805 "2024-02-06T13:46:11Z")

</div>

The release-1.10 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.10.1. The list of commits included since v1.10.0 is available here . As a patch release, it should be non-breaki…

---

## [Websocket problem using WGLMakie from Pluto on a remote server](https://discourse.julialang.org/t/websocket-problem-using-wglmakie-from-pluto-on-a-remote-server/109802)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 1:36pm UTC](https://discourse.julialang.org/t/websocket-problem-using-wglmakie-from-pluto-on-a-remote-server/109802 "2024-02-06T13:36:10Z")

</div>

Hi! I’m having troubles rendering WGLMakie plots in Pluto on a remote Windows server. According to the documentation, the following should work: # ╔═╡ d64ef27e-c4dc-11ee-00ed-d16bd2708611 using WGLMakie # ╔═╡ 3e80ef35-…

---

## [How to prove stability of discrete time system](https://discourse.julialang.org/t/how-to-prove-stability-of-discrete-time-system/109789)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 11:37am UTC](https://discourse.julialang.org/t/how-to-prove-stability-of-discrete-time-system/109789 "2024-02-06T11:37:46Z")

</div>

I am simulating the following discrete time feedback system: How can I prove that it is stable for K\_\\mathrm{u} \< 2 \\frac{1}{T\_\\mathrm{s} K\_2} ? Code: using ControlSystemsBase Ts = 0.01 Ku = 100/5e6 K2 = 5e6 nu…

---

## [How do I set permissions for a binary executable artifact?](https://discourse.julialang.org/t/how-do-i-set-permissions-for-a-binary-executable-artifact/109791)

<div class="topic-metadata">

**Author:** [@evanderveer](https://discourse.julialang.org/u/evanderveer)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 10:37am UTC](https://discourse.julialang.org/t/how-do-i-set-permissions-for-a-binary-executable-artifact/109791 "2024-02-06T10:37:27Z")

</div>

I am trying to use Artifacts.jl to download a binary executable as part of a package I am developing. It seems like the executable file is downloading just fine when I \] add \<package\_name\>, but after installation the fil…

---

## [Getting the eigen spectrum of a large matrix (representing a microgrid)](https://discourse.julialang.org/t/getting-the-eigen-spectrum-of-a-large-matrix-representing-a-microgrid/109781)

<div class="topic-metadata">

**Author:** [@Tony\_avito](https://discourse.julialang.org/u/Tony_avito)\
**Replies:** 4\
**Last updated:** [February 6, 2024, 10:36am UTC](https://discourse.julialang.org/t/getting-the-eigen-spectrum-of-a-large-matrix-representing-a-microgrid/109781 "2024-02-06T10:36:54Z")

</div>

Hello, I am really newb in Julia. I am looking to see a solution for finding the eigenvalues (eigen spectrum) of a microgrid. The grid matriz is not that big (47x47). I will be using some symbolic variables related to …

---

## [Is it normal for the Julia language server to take ~20 s to start up?](https://discourse.julialang.org/t/is-it-normal-for-the-julia-language-server-to-take-20-s-to-start-up/109683)

<div class="topic-metadata">

**Author:** [@tokujin](https://discourse.julialang.org/u/tokujin)\
**Replies:** 15\
**Last updated:** [February 6, 2024, 10:02am UTC](https://discourse.julialang.org/t/is-it-normal-for-the-julia-language-server-to-take-20-s-to-start-up/109683 "2024-02-06T10:02:03Z")

</div>

Hi everyone. I’m new to Julia and language servers. I’ve set up Eglot with eglot-jl and it seems to be working fine. The only thing that’s off is that Eglot takes 15 to 30 s to start up. It’s not a big deal but it got me…

---

## [Nested using](https://discourse.julialang.org/t/nested-using/109788)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 9:59am UTC](https://discourse.julialang.org/t/nested-using/109788 "2024-02-06T09:59:15Z")

</div>

I see codes like using pkg1 using pkg1.mod1 using pkg1.mod1: fun1, fun2 Why is a single ‘using pkg1’ not enough?

---

## [Connect to external REPL no longer working](https://discourse.julialang.org/t/connect-to-external-repl-no-longer-working/109763)

<div class="topic-metadata">

**Author:** [@keithjlee](https://discourse.julialang.org/u/keithjlee)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 8:48am UTC](https://discourse.julialang.org/t/connect-to-external-repl-no-longer-working/109763 "2024-02-06T08:48:03Z")

</div>

Recently, after updating to Julia 1.10, the Connect to External REPL functionality with VS code is no longer working. I’m following the same steps, where I paste the auto-copied command into an external REPL, and VS Code…

---

## [What is meant by this tip for StaticArrays?](https://discourse.julialang.org/t/what-is-meant-by-this-tip-for-staticarrays/109757)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 6\
**Last updated:** [February 6, 2024, 8:21am UTC](https://discourse.julialang.org/t/what-is-meant-by-this-tip-for-staticarrays/109757 "2024-02-06T08:21:49Z")

</div>

Hello! In the Github of StaticArrays.jl, the following is stated: Note that in the current implementation, working with large StaticArray s puts a lot of stress on the compiler, and becomes slower than Base.Array as t…

---

## [Julia's shell mode can't recognize user-defined aliases of system commands on Linux](https://discourse.julialang.org/t/julias-shell-mode-cant-recognize-user-defined-aliases-of-system-commands-on-linux/109724)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 11\
**Last updated:** [February 6, 2024, 6:47am UTC](https://discourse.julialang.org/t/julias-shell-mode-cant-recognize-user-defined-aliases-of-system-commands-on-linux/109724 "2024-02-06T06:47:32Z")

</div>

Why can’t Julia’s shell mode recognize user-defined aliases of system commands on Linux? I defined some aliases in the ~/.bashrc file such as alias mydir="cd ~/path/to/my/directory/" so that I can conveniently cd to m…

---

## [Apply transform conditioning on laged values](https://discourse.julialang.org/t/apply-transform-conditioning-on-laged-values/109777)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 6:12am UTC](https://discourse.julialang.org/t/apply-transform-conditioning-on-laged-values/109777 "2024-02-06T06:12:26Z")

</div>

Hi there, I am trying to add a column in my DataFrame by using the function transform. I need to groupby a couple of categories and then calculate add a new column based on the lagged values of each row. The reason why …

---

## [Crystal Graphs w/ GeometricFlux.jl](https://discourse.julialang.org/t/crystal-graphs-w-geometricflux-jl/109773)

<div class="topic-metadata">

**Author:** [@Stefan\_Bringuier](https://discourse.julialang.org/u/Stefan_Bringuier)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 12:25am UTC](https://discourse.julialang.org/t/crystal-graphs-w-geometricflux-jl/109773 "2024-02-06T00:25:40Z")

</div>

I’m fairly new to GeometricFlux.jl and working on trying to implement the Crystal Graph CNN approach by Xie and Grossman. I have the following FeaturedGraph, target pair dataset. I guess what I’m wondering is 1.) How sho…

---

## [Make @with\_kw structure display with detail all its parameters](https://discourse.julialang.org/t/make-with-kw-structure-display-with-detail-all-its-parameters/109731)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 10:09pm UTC](https://discourse.julialang.org/t/make-with-kw-structure-display-with-detail-all-its-parameters/109731 "2024-02-05T22:09:34Z")

</div>

Suppose that I use Parameters.jl and the following @with\_kw structure: using Parameters using Dates @with\_kw struct Params @deftype Int #PARAMETERS foo = 5 bar::Dict{String,Int} = Dict("a"=\>0,"b"=\>1) ti…

---

## [Explanation and examples for "Subtyping currently intentionally answers certain queries incorrectly for kind types"?](https://discourse.julialang.org/t/explanation-and-examples-for-subtyping-currently-intentionally-answers-certain-queries-incorrectly-for-kind-types/109722)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [February 5, 2024, 4:44am UTC](https://discourse.julialang.org/t/explanation-and-examples-for-subtyping-currently-intentionally-answers-certain-queries-incorrectly-for-kind-types/109722 "2024-02-05T04:44:24Z")

</div>

I noticed this in the Julia source: It was added in this PR: AFAIU isnotbrokensubtype(a, b) basically means “a \<: b is probably valid”? But when is it not valid? I think some examples would help my understanding an…

---

## [Function and no method matching](https://discourse.julialang.org/t/function-and-no-method-matching/109760)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 2\
**Last updated:** [February 5, 2024, 9:30pm UTC](https://discourse.julialang.org/t/function-and-no-method-matching/109760 "2024-02-05T21:30:46Z")

</div>

Hi, I am writing this function in gridap and I got the error. Is there any suggestions how to solve this? function dψP(uh,ψPlusnext\_in,hh\_in) h\_in = hh\_in if h\_in \> ψPlusnext\_in dp\_out = project(CellSta…

---

## [How to Kronecker by row (one dimension only)](https://discourse.julialang.org/t/how-to-kronecker-by-row-one-dimension-only/33942)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 9:14pm UTC](https://discourse.julialang.org/t/how-to-kronecker-by-row-one-dimension-only/33942 "2024-02-05T21:14:29Z")

</div>

I have two matrices A and B. Rather than a full Kronecker product kron(A,B), I would like to Kronecker in a row-by-row fashion. That is, the first row of the resulting matrix should have kron(A\[1,:\],B\[1,:\]), the second r…

---

## [Supporting SIMD-enabled objective functions in optimization APIs](https://discourse.julialang.org/t/supporting-simd-enabled-objective-functions-in-optimization-apis/109728)

<div class="topic-metadata">

**Author:** [@nielsls](https://discourse.julialang.org/u/nielsls)\
**Replies:** 3\
**Last updated:** [February 5, 2024, 8:22pm UTC](https://discourse.julialang.org/t/supporting-simd-enabled-objective-functions-in-optimization-apis/109728 "2024-02-05T20:22:32Z")

</div>

With SIMD the CPU may execute the same instructions on e.g. 4x differents datasets just as fast as on 1x dataset. Assuming the user has a SIMD-enabled objective function - are there optimization algos that can exploit t…

---

## [Help with column generation implementation](https://discourse.julialang.org/t/help-with-column-generation-implementation/109737)

<div class="topic-metadata">

**Author:** [@Carl\_Baier](https://discourse.julialang.org/u/Carl_Baier)\
**Replies:** 1\
**Last updated:** [February 5, 2024, 8:12pm UTC](https://discourse.julialang.org/t/help-with-column-generation-implementation/109737 "2024-02-05T20:12:29Z")

</div>

Hello, i am currently working on a column generation model which i would like to solve with gurobi in Julia. As i am a total newbie, i dont really know where to start. This is the model i would like to implement.PDF Thi…

---

## [Promoting union types](https://discourse.julialang.org/t/promoting-union-types/109745)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 8:08pm UTC](https://discourse.julialang.org/t/promoting-union-types/109745 "2024-02-05T20:08:59Z")

</div>

Since we have julia\> promote\_type(Float64, Rational{Int}) Float64 julia\> promote\_type(Float64, Complex{Rational{Int}}) ComplexF64 (alias for Complex{Float64}) julia\> promote\_type(Float64, ComplexF64) ComplexF64 (alias…

---

## [Scaling up a Dash.jl application?](https://discourse.julialang.org/t/scaling-up-a-dash-jl-application/109660)

<div class="topic-metadata">

**Author:** [@JesperMartinsson](https://discourse.julialang.org/u/JesperMartinsson)\
**Replies:** 2\
**Last updated:** [February 5, 2024, 7:29pm UTC](https://discourse.julialang.org/t/scaling-up-a-dash-jl-application/109660 "2024-02-05T19:29:26Z")

</div>

I’m running a Dash.jl application simply as: run\_server(app, "0.0.0.0", 8081) Is it possible to scale it up easily (e.g. by adding more threads)?

---

## [How to insert columns in sub-tables for a grouped dataframe in \`DataFrames.jl\`?](https://discourse.julialang.org/t/how-to-insert-columns-in-sub-tables-for-a-grouped-dataframe-in-dataframes-jl/109713)

<div class="topic-metadata">

**Author:** [@anon56682678](https://discourse.julialang.org/u/anon56682678)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 6:49pm UTC](https://discourse.julialang.org/t/how-to-insert-columns-in-sub-tables-for-a-grouped-dataframe-in-dataframes-jl/109713 "2024-02-05T18:49:54Z")

</div>

What I want to do is: Group a data-frame by column (“col1”) in DataFrames.jl, call it grouped\_df Send the sub-tables from the grouped\_df to a user defined function The user-defined function will transform an exis…

---

## [Help with WeakStringRef when inserting into database](https://discourse.julialang.org/t/help-with-weakstringref-when-inserting-into-database/109744)

<div class="topic-metadata">

**Author:** [@rdavis120](https://discourse.julialang.org/u/rdavis120)\
**Replies:** 0\
**Last updated:** [February 5, 2024, 3:36pm UTC](https://discourse.julialang.org/t/help-with-weakstringref-when-inserting-into-database/109744 "2024-02-05T15:36:11Z")

</div>

The duckdb appender api has a line of non-working code to convert a WeakStringRef types to be inserted into the database as a type Varchar. I have never used the WeakStringRef type so I do not know how this conversion sh…

---

## [Lux (And Flux), "parallel" Network Input. When Input is flat, Zygote gradient works, when input is not flat it doesn't](https://discourse.julialang.org/t/lux-and-flux-parallel-network-input-when-input-is-flat-zygote-gradient-works-when-input-is-not-flat-it-doesnt/107763)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 10\
**Last updated:** [February 5, 2024, 6:10pm UTC](https://discourse.julialang.org/t/lux-and-flux-parallel-network-input-when-input-is-flat-zygote-gradient-works-when-input-is-not-flat-it-doesnt/107763 "2024-02-05T18:10:42Z")

</div>

It’s easier to see the code: using Lux using Zygote using ComponentArrays using Random x\_test\_flat = rand(16) x\_test\_p = \[rand(4) for \_ in 1:4\] NNmodel\_1 = Lux.Chain(Lux.Dense(16 =\> 18, sigmoid), …

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

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