# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=76

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

**Page:** 77

---

## [Julia installation file sizes](https://discourse.julialang.org/t/julia-installation-file-sizes/119130)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 19\
**Last updated:** [March 27, 2025, 9:06am UTC](https://discourse.julialang.org/t/julia-installation-file-sizes/119130 "2025-03-27T09:06:47Z")

</div>

Hi, Julia install sizes has been steadily growing in size. It was on the range 400-600 MB for versions \< 1.10 (can’t remember anymore) and is. v1.10 ~700 MB v1.11 ~870 MB v112 ~0.99 GB (nightly) I found that the mai…

---

## [Why does \`Cthulhu.@descend\` report incorrect \`Any\` inference in the call menu?](https://discourse.julialang.org/t/why-does-cthulhu-descend-report-incorrect-any-inference-in-the-call-menu/127400)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 0\
**Last updated:** [March 27, 2025, 4:33am UTC](https://discourse.julialang.org/t/why-does-cthulhu-descend-report-incorrect-any-inference-in-the-call-menu/127400 "2025-03-27T04:33:30Z")

</div>

Cthulhu.@descend sometimes annotates return types of calls as ::Any in the call menu, contradicting @code\_warntype. Descending into the ::Any calls show different return types in the annotated method body, consistent wit…

---

## [Kwargs allocating (?)](https://discourse.julialang.org/t/kwargs-allocating/127326)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 6\
**Last updated:** [March 27, 2025, 4:21am UTC](https://discourse.julialang.org/t/kwargs-allocating/127326 "2025-03-27T04:21:00Z")

</div>

Hi there, consider the following simple function: M = \[1.0 2.0; 3.0 4.0\] n = size(M,1) I\_n = Matrix{Float64}(I, n, n) A\_temp = zeros(n, n) diff\_temp = zeros(n, n) function inf\_norm\_dif…

---

## [Inconsistency in \`accumulate\` between \`Array\` and \`CuArray.\`](https://discourse.julialang.org/t/inconsistency-in-accumulate-between-array-and-cuarray/127382)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 11:58pm UTC](https://discourse.julialang.org/t/inconsistency-in-accumulate-between-array-and-cuarray/127382 "2025-03-26T23:58:38Z")

</div>

Hi all. I’m performing the following computation using GPUArrays: julia\> using GPUArrays julia\> src = CuArray(rand(0:9, 10)) 10-element CuArray{Int64, 1, CUDA.DeviceMemory}: 3 4 3 7 3 9 7 2 9 6 julia\> dst =…

---

## [ISO8601 year week formatting](https://discourse.julialang.org/t/iso8601-year-week-formatting/127065)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 4\
**Last updated:** [March 26, 2025, 4:20am UTC](https://discourse.julialang.org/t/iso8601-year-week-formatting/127065 "2025-03-26T04:20:43Z")

</div>

Hello All This seems like it should be a very common situation, but I cannot seem to find a standard function in Dates to return the ISO 8601 Year and Week in Julia? The week number is correct, but It doesn’t seem to r…

---

## [Can anyone improve this macro?](https://discourse.julialang.org/t/can-anyone-improve-this-macro/127359)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 3\
**Last updated:** [March 26, 2025, 4:05am UTC](https://discourse.julialang.org/t/can-anyone-improve-this-macro/127359 "2025-03-26T04:05:37Z")

</div>

I have written the following macro: using Logging """ @no\_logging(code\_to\_execute) Execute \`code\_to\_execute\` sending all logging to the \[\`Logging.NullLogger\`\](@ref). """ macro no\_logging(code) return :( with\_…

---

## [Parallel feeding of a dataframe](https://discourse.julialang.org/t/parallel-feeding-of-a-dataframe/127061)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 17\
**Last updated:** [March 26, 2025, 12:39am UTC](https://discourse.julialang.org/t/parallel-feeding-of-a-dataframe/127061 "2025-03-26T00:39:12Z")

</div>

Hi, this is my problem: I have files of the same type in year folders, e.g.: ./2024/file1.csv ./2024/file2.csv ./2023/file1.csv ./2023/file2.csv etc. I want to fill a dataframe with all this data. I already use read…

---

## [Slower times to TTFX for GMT in 1.11 and even more in nightly](https://discourse.julialang.org/t/slower-times-to-ttfx-for-gmt-in-1-11-and-even-more-in-nightly/126350)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 6\
**Last updated:** [March 25, 2025, 7:08pm UTC](https://discourse.julialang.org/t/slower-times-to-ttfx-for-gmt-in-1-11-and-even-more-in-nightly/126350 "2025-03-25T19:08:39Z")

</div>

Hi, I’ve been delaying this post but not that time to v1.12 release seems to approach I think I should not delay it no more. Since the 1.10 I have notice that building and using has become progressively slower but this…

---

## [Any reason to specify triu()?](https://discourse.julialang.org/t/any-reason-to-specify-triu/127361)

<div class="topic-metadata">

**Author:** [@Huputus](https://discourse.julialang.org/u/Huputus)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 5:46pm UTC](https://discourse.julialang.org/t/any-reason-to-specify-triu/127361 "2025-03-25T17:46:14Z")

</div>

Is there any reason to use triu() when working with upper triangular matrices? Performance-wise, it doesn’t seem to have any impact. Here is sample code: function upper\_triangular\_means(mate) n = size(mate, 1) …

---

## [Plots and plot result in strange messages in the REPL](https://discourse.julialang.org/t/plots-and-plot-result-in-strange-messages-in-the-repl/127317)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 4\
**Last updated:** [March 25, 2025, 3:42pm UTC](https://discourse.julialang.org/t/plots-and-plot-result-in-strange-messages-in-the-repl/127317 "2025-03-25T15:42:28Z")

</div>

I have reported this at the Plots github repository but maybe someone here has already seen this. A new, seemingly incorrect plots behavior. In the repl, just use Plots and make any plot: using Plots plot(1:5). # or a…

---

## [Subtyping FieldVector from StaticArrays.jl](https://discourse.julialang.org/t/subtyping-fieldvector-from-staticarrays-jl/127312)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 2\
**Last updated:** [March 25, 2025, 3:12pm UTC](https://discourse.julialang.org/t/subtyping-fieldvector-from-staticarrays-jl/127312 "2025-03-25T15:12:18Z")

</div>

I am using this approach in a couple of projects: julia\> import StaticArrays: FieldVector, Size, similar\_type julia\> struct Direction{T\<:AbstractFloat} \<: FieldVector{3, T} x::T y::T z:…

---

## [Literate programming workflow with ordinary jl scripts](https://discourse.julialang.org/t/literate-programming-workflow-with-ordinary-jl-scripts/104598)

<div class="topic-metadata">

**Author:** [@martin.d.maas](https://discourse.julialang.org/u/martin.d.maas)\
**Replies:** 6\
**Last updated:** [March 25, 2025, 2:58pm UTC](https://discourse.julialang.org/t/literate-programming-workflow-with-ordinary-jl-scripts/104598 "2025-03-25T14:58:58Z")

</div>

I am trying to do some literate programming. The workflow I want to pursue is writing valid Julia code in a script that I can execute with VSCode to see the results, add markdown content in comments, and then produce so…

---

## [Functionality like the SAVE statement in Fortran?](https://discourse.julialang.org/t/functionality-like-the-save-statement-in-fortran/127268)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 30\
**Last updated:** [March 25, 2025, 2:37pm UTC](https://discourse.julialang.org/t/functionality-like-the-save-statement-in-fortran/127268 "2025-03-25T14:37:38Z")

</div>

I am converting some Fortran code to Julia, and I noticed the fortran code uses the SAVE statement (SAVE (FORTRAN 77 Language Reference)). I have very little experience in Fortran, but it seems like this statement allow…

---

## [Initializing a matrix-valued species in Catalyst](https://discourse.julialang.org/t/initializing-a-matrix-valued-species-in-catalyst/127345)

<div class="topic-metadata">

**Author:** [@Menno](https://discourse.julialang.org/u/Menno)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 12:36pm UTC](https://discourse.julialang.org/t/initializing-a-matrix-valued-species-in-catalyst/127345 "2025-03-25T12:36:21Z")

</div>

Sometimes when setting up a reaction network in Catalyst it is useful to have a matrix of species of which only some participate in reactions. In this case when setting up the ODEProblem I run into an ‘initialization inc…

---

## [@threads and vmap](https://discourse.julialang.org/t/threads-and-vmap/127340)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 12:13pm UTC](https://discourse.julialang.org/t/threads-and-vmap/127340 "2025-03-25T12:13:46Z")

</div>

Is it possible to speed this up further? f(x) = sin(x)cos(x)sin(x)cos(x) X = repeat( \[randn(10^7)\], 5 ) @time for x in X; map(f,x) end # 1.0s @time Threads.@threads for x in X; map…

---

## [Solving a linear system without modifying and allocating arrays](https://discourse.julialang.org/t/solving-a-linear-system-without-modifying-and-allocating-arrays/127315)

<div class="topic-metadata">

**Author:** [@cneverett](https://discourse.julialang.org/u/cneverett)\
**Replies:** 3\
**Last updated:** [March 25, 2025, 10:48am UTC](https://discourse.julialang.org/t/solving-a-linear-system-without-modifying-and-allocating-arrays/127315 "2025-03-25T10:48:41Z")

</div>

Hi, I have a setup where I need to repeatedly solve a linear system like A \\ B = C every timestep of a system. A is a matrix, B is a vector and both changing each timestep and more importantly A is reused later each time…

---

## [Should I learn C++ to better understand and use Julia multi-threading and GPU programming package?](https://discourse.julialang.org/t/should-i-learn-c-to-better-understand-and-use-julia-multi-threading-and-gpu-programming-package/127298)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 7:51am UTC](https://discourse.julialang.org/t/should-i-learn-c-to-better-understand-and-use-julia-multi-threading-and-gpu-programming-package/127298 "2025-03-25T07:51:12Z")

</div>

Sorry for the potentially opinionated question here, but I figured that the folks on Julia discourse have the best insights into this question. So I want to start using more of the Julia multi-threading and GPU packages…

---

## [How to handle compat when a dep is only used in an extension?](https://discourse.julialang.org/t/how-to-handle-compat-when-a-dep-is-only-used-in-an-extension/127284)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 7\
**Last updated:** [March 24, 2025, 8:37pm UTC](https://discourse.julialang.org/t/how-to-handle-compat-when-a-dep-is-only-used-in-an-extension/127284 "2025-03-24T20:37:30Z")

</div>

I’m using Julia’s extensions system (with ext/ and \[extensions\] in Project.toml), and I ran into a small issue. I use a package like QuadGK only inside an extension (e.g. for DataInterpolationsExt), but Aqua marks it as …

---

## [ERROR: Unable to load dependent library ... libopenlibm.so](https://discourse.julialang.org/t/error-unable-to-load-dependent-library-libopenlibm-so/127308)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [March 24, 2025, 3:38pm UTC](https://discourse.julialang.org/t/error-unable-to-load-dependent-library-libopenlibm-so/127308 "2025-03-24T15:38:32Z")

</div>

I am trying to bisect an issue with Julia, it is fixed in master and present in v11.4. My problem is that if I try to compile anything in the release-1.11 branch, I get an error like ERROR: Unable to load dependent libr…

---

## [What is in your startup.jl?](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 35\
**Last updated:** [March 24, 2025, 3:04pm UTC](https://discourse.julialang.org/t/what-is-in-your-startup-jl/18228 "2025-03-24T15:04:00Z")

</div>

I now have a fair bit in my startup.jl I am wondering if anyone else also has cool things. What mine does: Load Revise and OhMyRepl. - installing them if they are not already installed Update all packages - It doe…

---

## [Static Array type syntax](https://discourse.julialang.org/t/static-array-type-syntax/21927)

<div class="topic-metadata">

**Author:** [@Alex\_Ellison](https://discourse.julialang.org/u/Alex_Ellison)\
**Replies:** 15\
**Last updated:** [March 24, 2025, 2:01pm UTC](https://discourse.julialang.org/t/static-array-type-syntax/21927 "2025-03-24T14:01:53Z")

</div>

If we look at the documentation for StaticArrays we see this: SArray{S}(a::Array) Construct a statically-sized array of dimensions S (expressed as a Tuple{...} ) using the data from a . The S parameter is mandator…

---

## [Dynamical systems with AbstractArray Interface](https://discourse.julialang.org/t/dynamical-systems-with-abstractarray-interface/127073)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 1:32pm UTC](https://discourse.julialang.org/t/dynamical-systems-with-abstractarray-interface/127073 "2025-03-24T13:32:26Z")

</div>

Dear all, I am interested in a “survey” of which packages, in the context of dynamical systems (Trixi, VoronoiFVM, Gridap…), linear solvers, etc is using AbstractArray as a state space and which one is not. Bifurcation…

---

## [How to improve CI.yml to avoid running a test-set twice](https://discourse.julialang.org/t/how-to-improve-ci-yml-to-avoid-running-a-test-set-twice/127258)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [March 24, 2025, 10:33am UTC](https://discourse.julialang.org/t/how-to-improve-ci-yml-to-avoid-running-a-test-set-twice/127258 "2025-03-24T10:33:29Z")

</div>

Im my CI.yml file I have: matrix: version: - '1.10' - '1' - 'pre' This is intended. I want to test with the latest stable Julia release, the latest Julia release and any upco…

---

## [Julia Broadcasting Issue with SubArray in Complex Expressions](https://discourse.julialang.org/t/julia-broadcasting-issue-with-subarray-in-complex-expressions/127269)

<div class="topic-metadata">

**Author:** [@chooron](https://discourse.julialang.org/u/chooron)\
**Replies:** 2\
**Last updated:** [March 23, 2025, 6:35am UTC](https://discourse.julialang.org/t/julia-broadcasting-issue-with-subarray-in-complex-expressions/127269 "2025-03-23T06:35:53Z")

</div>

I’m encountering an issue with Julia broadcasting when working with SubArrays in complex nested expressions. When using @views to create SubArrays and then applying broadcasting with @. to complex expressions, I get type…

---

## [Subtyped parameters in constructors](https://discourse.julialang.org/t/subtyped-parameters-in-constructors/127287)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 4\
**Last updated:** [March 24, 2025, 12:01am UTC](https://discourse.julialang.org/t/subtyped-parameters-in-constructors/127287 "2025-03-24T00:01:01Z")

</div>

I was playing around with vague constructors and I noticed some very interesting and useful behavior of arrays. I can use “subtype” notation in array constructors! julia\> S = Diagonal(randn(5)) 5×5 Diagonal{Float64, Vec…

---

## [Shorter way to rename property, with Accessors](https://discourse.julialang.org/t/shorter-way-to-rename-property-with-accessors/127256)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 16\
**Last updated:** [March 23, 2025, 8:51pm UTC](https://discourse.julialang.org/t/shorter-way-to-rename-property-with-accessors/127256 "2025-03-23T20:51:47Z")

</div>

How to do rename with Accessors? This is too long. julia\> let x = (;a=1) @delete (@insert x.b = x.a).a end (b = 1,)

---

## [DataFrames: \`@combine\` only if a condition is met](https://discourse.julialang.org/t/dataframes-combine-only-if-a-condition-is-met/127232)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 10\
**Last updated:** [March 23, 2025, 12:44pm UTC](https://discourse.julialang.org/t/dataframes-combine-only-if-a-condition-is-met/127232 "2025-03-23T12:44:20Z")

</div>

How can I compute a variable with @combine only if some condition is met? MWE: using DataFrames, DataFramesMeta dfTmp = DataFrame(y = 1:3, x = 10:12) @combine dfTmp begin # Always compute \`a\` :a = :y \* 2; #…

---

## [Run c++ app with embedded julia on a machine without julia installation](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274)

<div class="topic-metadata">

**Author:** [@mitrandirsergey](https://discourse.julialang.org/u/mitrandirsergey)\
**Replies:** 3\
**Last updated:** [March 23, 2025, 11:40am UTC](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274 "2025-03-23T11:40:08Z")

</div>

Hi. Is it possible to provide julia dll along with my exe file, so it could be run on a PC without julia installation? I found out an example to dynamically load julia (which is quite old) But how to provide julia mo…

---

## [Error: Missing source file for Base.PkgId(Base.UUID("..."))](https://discourse.julialang.org/t/error-missing-source-file-for-base-pkgid-base-uuid/127272)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 1\
**Last updated:** [March 23, 2025, 10:02am UTC](https://discourse.julialang.org/t/error-missing-source-file-for-base-pkgid-base-uuid/127272 "2025-03-23T10:02:45Z")

</div>

I get a weird error while trying to add an extension, Maybe I did something wrong : 1- added the folder ext and the file “BloodFlowTrixiDataInterpolationsExt.jl” in it. 2- added DataInterpolations.jl as a weakdeps \[we…

---

## [What's your workflow to develop packages with complex dependencies?](https://discourse.julialang.org/t/whats-your-workflow-to-develop-packages-with-complex-dependencies/127246)

<div class="topic-metadata">

**Author:** [@benc](https://discourse.julialang.org/u/benc)\
**Replies:** 5\
**Last updated:** [March 23, 2025, 12:51am UTC](https://discourse.julialang.org/t/whats-your-workflow-to-develop-packages-with-complex-dependencies/127246 "2025-03-23T00:51:03Z")

</div>

Hi all, I developed quite a few small packages with self-contained functionality, but inevitably during development I need complex dependencies (eg. Plots.jl) for functionality not required by the package itself, but re…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=75)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=77)
