# General Usage

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

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

**Page:** 53

---

## [How to setup Github CI for monorepo?](https://discourse.julialang.org/t/how-to-setup-github-ci-for-monorepo/130655)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 0\
**Last updated:** [July 11, 2025, 9:01pm UTC](https://discourse.julialang.org/t/how-to-setup-github-ci-for-monorepo/130655 "2025-07-11T21:01:36Z")

</div>

one approach seems to have runtests.jl essentially detect what needs to be run by ENV, but seems to be complicated. For repos that really have just 1-2 sub-package, is there a simpler way?

---

## [Find decimal year from time](https://discourse.julialang.org/t/find-decimal-year-from-time/126670)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 7\
**Last updated:** [March 11, 2025, 9:15am UTC](https://discourse.julialang.org/t/find-decimal-year-from-time/126670 "2025-03-11T09:15:45Z")

</div>

Hi, I’ve searched for something in libraries like Dates and AstroTime, but maybe missed it as I’m surprised not to find it. I would like to find the decimal time from a date, hour, minute, second, e.g.: DateTime(2018,…

---

## [LoadError: UndefVarError: \`initial\_params\` not defined in \`Flux\`](https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641)

<div class="topic-metadata">

**Author:** [@SANTOSH\_KARRA](https://discourse.julialang.org/u/SANTOSH_KARRA)\
**Replies:** 2\
**Last updated:** [July 11, 2025, 6:32pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641 "2025-07-11T18:32:02Z")

</div>

ERROR: LoadError: UndefVarError: initial\_params not defined in Flux Suggestion: check for spelling errors or missing imports. Stacktrace: \[1\] getproperty(x::Module, f::Symbol) @ Base .\\Base.jl:42 \[2\] top-level scope …

---

## [Common API for \`Integrate\`. IntegrationBase](https://discourse.julialang.org/t/common-api-for-integrate-integrationbase/130637)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 5\
**Last updated:** [July 11, 2025, 6:30pm UTC](https://discourse.julialang.org/t/common-api-for-integrate-integrationbase/130637 "2025-07-11T18:30:02Z")

</div>

I’ve observed a conflict of different packages exporting integrate (e.g.). It would be nice to have IntegrationBase with API. Currently, the ecosystem is diverse. Overview of methods integrate is exported by Polynomi…

---

## [Retrieving shortest paths from Graphs.jl](https://discourse.julialang.org/t/retrieving-shortest-paths-from-graphs-jl/130539)

<div class="topic-metadata">

**Author:** [@GRASP\_lover123](https://discourse.julialang.org/u/GRASP_lover123)\
**Replies:** 11\
**Last updated:** [July 11, 2025, 5:26pm UTC](https://discourse.julialang.org/t/retrieving-shortest-paths-from-graphs-jl/130539 "2025-07-11T17:26:57Z")

</div>

Hi everybody, I’m using Graphs.jl to get shortest paths using the a\* function, which give the list of edges in the shortest path from one node to another. Recently I’ve needed to get the shortest paths from all nodes to…

---

## [What's in your @?](https://discourse.julialang.org/t/whats-in-your/129530)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 19\
**Last updated:** [July 11, 2025, 2:01pm UTC](https://discourse.julialang.org/t/whats-in-your/129530 "2025-07-11T14:01:43Z")

</div>

Simple enough, what’s in your default environment? Could be fun to guess what everyone primarily does based only on their @s. What do you think I do? julia -e "Pkg.status()" Status \`~/.julia/environments/v1.11/Projec…

---

## [Dispatch on specific Unitful unit](https://discourse.julialang.org/t/dispatch-on-specific-unitful-unit/124774)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 7\
**Last updated:** [July 11, 2025, 1:32pm UTC](https://discourse.julialang.org/t/dispatch-on-specific-unitful-unit/124774 "2025-07-11T13:32:11Z")

</div>

Continuing the discussion from Unitful dispatch: I want to dispatch specifically on u"inch". What am I missing? In this MWE, I want mm(1), mm(1u"inch"), and mm(1.0u"inch") to all return 25.4 mm. using Unitful InchType…

---

## [How to make parallel within the parallel?](https://discourse.julialang.org/t/how-to-make-parallel-within-the-parallel/130642)

<div class="topic-metadata">

**Author:** [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Replies:** 0\
**Last updated:** [July 11, 2025, 1:22pm UTC](https://discourse.julialang.org/t/how-to-make-parallel-within-the-parallel/130642 "2025-07-11T13:22:41Z")

</div>

Hi Guys, Right now I am running a model optimization to optimize one set of parameter for several sites (in total 47 sites). Site computation is independent with each other. I am using CMAES to minimise the cost. For no…

---

## [Julia's type system : what am I missing?](https://discourse.julialang.org/t/julias-type-system-what-am-i-missing/130618)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 11\
**Last updated:** [July 11, 2025, 3:41am UTC](https://discourse.julialang.org/t/julias-type-system-what-am-i-missing/130618 "2025-07-11T03:41:44Z")

</div>

Consider this MWE: using Unitful # 1. Get the type of a quantity constructed from the Unitful macro t1 = typeof(1u"m") # 2. Manually construct a type with the same structure t2 = Unitful.Quantity{Int64, Unitful.𝐋, Uni…

---

## [About Julia's development policy regarding Windows](https://discourse.julialang.org/t/about-julias-development-policy-regarding-windows/128011)

<div class="topic-metadata">

**Author:** [@uwestoehr](https://discourse.julialang.org/u/uwestoehr)\
**Replies:** 119\
**Last updated:** [July 11, 2025, 10:21am UTC](https://discourse.julialang.org/t/about-julias-development-policy-regarding-windows/128011 "2025-07-11T10:21:55Z")

</div>

This is just a thread to give feedback as a new user working with Windows and the problems I have. I am a medical engineer and wanted to use Julia to develop software others can use (other engineers, laboratory workers,…

---

## [😤 Multi-line expressions aren't fully computed](https://discourse.julialang.org/t/multi-line-expressions-arent-fully-computed/130599)

<div class="topic-metadata">

**Author:** [@bpsomu](https://discourse.julialang.org/u/bpsomu)\
**Replies:** 22\
**Last updated:** [July 11, 2025, 7:46am UTC](https://discourse.julialang.org/t/multi-line-expressions-arent-fully-computed/130599 "2025-07-11T07:46:14Z")

</div>

I had a KernelAbstractions.jl based Kernel function with a multi-line expression as below: using KernelAbstractions @kernel function karniadakis\_update!( n\_eₜ₊₁, n\_eₜ, n\_eₜ₋₁, n\_eₜ₋₂, e\_rhsₜ, e\_rhsₜ₋₁, e\_rhsₜ₋₂, …

---

## [Channel not unblocking during some iteration situations](https://discourse.julialang.org/t/channel-not-unblocking-during-some-iteration-situations/130364)

<div class="topic-metadata">

**Author:** [@depial](https://discourse.julialang.org/u/depial)\
**Replies:** 2\
**Last updated:** [July 11, 2025, 7:01am UTC](https://discourse.julialang.org/t/channel-not-unblocking-during-some-iteration-situations/130364 "2025-07-11T07:01:09Z")

</div>

I’ve been fiddling around with iteration of a tree traversal to learn about interfaces and channels, and I’ve run into something I can’t seem to get around. When using an unbuffered Channel(), iteration in a for loop bl…

---

## [Easiest and most complete package for PostgreSQL right now (Feb 2022)?](https://discourse.julialang.org/t/easiest-and-most-complete-package-for-postgresql-right-now-feb-2022/75920)

<div class="topic-metadata">

**Author:** [@Ouji](https://discourse.julialang.org/u/Ouji)\
**Replies:** 48\
**Last updated:** [July 11, 2025, 1:52am UTC](https://discourse.julialang.org/t/easiest-and-most-complete-package-for-postgresql-right-now-feb-2022/75920 "2025-07-11T01:52:51Z")

</div>

What is the most straightforward, easiest and most complete package to use for PostgreSQL? This may pertain to documentation quality too. More particularly, it should allow me to also parse SQL/PostgreSQL syntax embedd…

---

## [Gridap.jl's Linear Elasticity Problem: Access to Global and Local Stiffness matrixes](https://discourse.julialang.org/t/gridap-jls-linear-elasticity-problem-access-to-global-and-local-stiffness-matrixes/130544)

<div class="topic-metadata">

**Author:** [@Van\_Sy\_Tnut](https://discourse.julialang.org/u/Van_Sy_Tnut)\
**Replies:** 2\
**Last updated:** [July 10, 2025, 10:53pm UTC](https://discourse.julialang.org/t/gridap-jls-linear-elasticity-problem-access-to-global-and-local-stiffness-matrixes/130544 "2025-07-10T22:53:29Z")

</div>

Hello everyone! I solved the Linear elasticity problem for a cantilever beam. Now I want to compute the compliance of structures as follows: c = \\mathbf{U}^T \\mathbf{K} \\mathbf{U} = \\sum\_{e=1}^{N} \\mathbf{u}\_e^T \\…

---

## [Passing the next proposed time step as a parameter into your ODEFunction where du depends on dt](https://discourse.julialang.org/t/passing-the-next-proposed-time-step-as-a-parameter-into-your-odefunction-where-du-depends-on-dt/130623)

<div class="topic-metadata">

**Author:** [@jrr2102](https://discourse.julialang.org/u/jrr2102)\
**Replies:** 7\
**Last updated:** [July 10, 2025, 10:04pm UTC](https://discourse.julialang.org/t/passing-the-next-proposed-time-step-as-a-parameter-into-your-odefunction-where-du-depends-on-dt/130623 "2025-07-10T22:04:39Z")

</div>

I am trying to keep my solver autodiff compatible to be able to take advantage of the ForwardDiff capabilities in Julia. I have a function f(du, u, t, p) where computing du depends on dt. I want to be able to pass the Ju…

---

## [Julia 1.11.6 installed with DMG installer on MacOS appears as 1.11.5](https://discourse.julialang.org/t/julia-1-11-6-installed-with-dmg-installer-on-macos-appears-as-1-11-5/130617)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 6:50pm UTC](https://discourse.julialang.org/t/julia-1-11-6-installed-with-dmg-installer-on-macos-appears-as-1-11-5/130617 "2025-07-10T18:50:05Z")

</div>

Last commit is Commit 760b2e5b739 (2025-04-14 06:53 UTC) Here is my versioninfo output: Julia Version 1.11.5 Commit 760b2e5b739 (2025-04-14 06:53 UTC) Build Info: Official https://julialang.org/ release Platform Info…

---

## [Start debugger after an error occurs](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 2\
**Last updated:** [July 10, 2025, 5:33pm UTC](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663 "2025-07-10T17:33:37Z")

</div>

I am running for cycle where I load text data files and post process them. One of the files is corrupted and I got an error. Is there possibility to run the julia program in vscode and start debbuging after the error. S…

---

## [Type stability in hierarchichal function calls](https://discourse.julialang.org/t/type-stability-in-hierarchichal-function-calls/130603)

<div class="topic-metadata">

**Author:** [@thomasc791](https://discourse.julialang.org/u/thomasc791)\
**Replies:** 2\
**Last updated:** [July 10, 2025, 2:39pm UTC](https://discourse.julialang.org/t/type-stability-in-hierarchichal-function-calls/130603 "2025-07-10T14:39:51Z")

</div>

Hi all, I have a question on how type stability traverses into layers of function calls. Meaning, if I have a function assembly that is not completely type stable, because it contains a Vector{Types}. In assembly I call…

---

## [How to undo \`unsafe\_string\` call](https://discourse.julialang.org/t/how-to-undo-unsafe-string-call/130605)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 11:57am UTC](https://discourse.julialang.org/t/how-to-undo-unsafe-string-call/130605 "2025-07-10T11:57:09Z")

</div>

I’m using a library (Instruments.jl) that does a bunch of ccalls to return a string. It does this by calling unsafe\_string(pointer(buf)) where buf isa Vector{UInt8}. Can I undo this call to unsafe\_string to just get th…

---

## [Read/write locks and wait/wake on atomics: are there Julia futexes?](https://discourse.julialang.org/t/read-write-locks-and-wait-wake-on-atomics-are-there-julia-futexes/130602)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 11:08am UTC](https://discourse.julialang.org/t/read-write-locks-and-wait-wake-on-atomics-are-there-julia-futexes/130602 "2025-07-10T11:08:57Z")

</div>

I wished there was a read-write lock in Julia but I couldn’t find any. But there are atomics so I figured I could write one myself, inspiring from this (inspiring) book on the nasty-gritty low-level details of concurrenc…

---

## [Who is maintainer of the General registry?](https://discourse.julialang.org/t/who-is-maintainer-of-the-general-registry/130596)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [July 10, 2025, 7:48am UTC](https://discourse.julialang.org/t/who-is-maintainer-of-the-general-registry/130596 "2025-07-10T07:48:42Z")

</div>

It would be nice if one of the maintainers would find the time to have a look at my pull request: Move KiteUtils, KiteModels and AtmosphericModels to OpenSourceAWE organization by ufechner7 · Pull Request #134420 · Julia…

---

## [Package for partial sorting output iterator](https://discourse.julialang.org/t/package-for-partial-sorting-output-iterator/130408)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [July 10, 2025, 1:14am UTC](https://discourse.julialang.org/t/package-for-partial-sorting-output-iterator/130408 "2025-07-10T01:14:48Z")

</div>

Is there an implementation that partial sorts an iterator without allocating the whole output? Eg suppose that I need the n largest elements by f from an iterator itr that has N \\gg n elements. partialsort!(collect(itr…

---

## [Should our package export an init! function?](https://discourse.julialang.org/t/should-our-package-export-an-init-function/130585)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [July 10, 2025, 12:05am UTC](https://discourse.julialang.org/t/should-our-package-export-an-init-function/130585 "2025-07-10T00:05:56Z")

</div>

We have two packages, that both export an init! function (working on different types). This is causing problems. What is the suggested solution? not having packages exporting common names not importing packages with u…

---

## [Alternative packages for nearest neighbor search](https://discourse.julialang.org/t/alternative-packages-for-nearest-neighbor-search/130446)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [July 9, 2025, 9:56am UTC](https://discourse.julialang.org/t/alternative-packages-for-nearest-neighbor-search/130446 "2025-07-09T09:56:07Z")

</div>

If you know any other package with related functionality, please share in a comment: NearestNeighbors.jl NearestNeighborsDescent.jl Shrike.jl CellLists.jl

---

## [Math notation](https://discourse.julialang.org/t/math-notation/130567)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [July 9, 2025, 8:32am UTC](https://discourse.julialang.org/t/math-notation/130567 "2025-07-09T08:32:23Z")

</div>

Could a set of uni-code characters (e.g. Greek letters) be set to be interpreted as individual variables even if they are next to other characters. α=2 δ=3 αδ #6 like 2δ gives 6 in Julia Would allow Julia code t…

---

## [Package structure: where do you expect a new function?](https://discourse.julialang.org/t/package-structure-where-do-you-expect-a-new-function/130557)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 1\
**Last updated:** [July 8, 2025, 11:13am UTC](https://discourse.julialang.org/t/package-structure-where-do-you-expect-a-new-function/130557 "2025-07-08T11:13:33Z")

</div>

While writing code in a package I try to stick to some general organisational principles to make the structure more predictable (even if its mostly for myself). One of them is the idea of functions doing only one thing w…

---

## [SparseDiffTools - PolyesterForwardDiff Pre-allocation difficulties](https://discourse.julialang.org/t/sparsedifftools-polyesterforwarddiff-pre-allocation-difficulties/130292)

<div class="topic-metadata">

**Author:** [@cardoza2](https://discourse.julialang.org/u/cardoza2)\
**Replies:** 20\
**Last updated:** [July 8, 2025, 10:10am UTC](https://discourse.julialang.org/t/sparsedifftools-polyesterforwarddiff-pre-allocation-difficulties/130292 "2025-07-08T10:10:04Z")

</div>

I’m trying to pre-allocate a cache to be used with SparseDiffTools and PolyesterForwardDiff, but I’m struggling to get a working example. My attempt is based off of the jacobian tests: difftype = ADTypes.AutoSparse(ADT…

---

## [Is the \`value\` field of \`QuoteNode\` public?](https://discourse.julialang.org/t/is-the-value-field-of-quotenode-public/130495)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 1\
**Last updated:** [July 8, 2025, 9:12am UTC](https://discourse.julialang.org/t/is-the-value-field-of-quotenode-public/130495 "2025-07-08T09:12:20Z")

</div>

Is the value field of a QuoteNode public? The docstring does not mention the value field. I just wrote the following function, but I’m not sure if using the value field means that I’m accessing internals. function is\_sy…

---

## [Syntax for extracting keys from vector of pairs?](https://discourse.julialang.org/t/syntax-for-extracting-keys-from-vector-of-pairs/130063)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 4\
**Last updated:** [June 20, 2025, 10:59pm UTC](https://discourse.julialang.org/t/syntax-for-extracting-keys-from-vector-of-pairs/130063 "2025-06-20T22:59:14Z")

</div>

julia\> X 3-element Vector{Pair{String, Any}}: "water" =\> \[1 2\] "coffee" =\> \[3 4 5\] "tea" =\> \[6 7 8 9\] To extract the keys from X, the current syntax is first.(X). However, given that the syntax for extracting a c…

---

## [Macro that construct function names and call them](https://discourse.julialang.org/t/macro-that-construct-function-names-and-call-them/130532)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 6\
**Last updated:** [July 8, 2025, 1:45am UTC](https://discourse.julialang.org/t/macro-that-construct-function-names-and-call-them/130532 "2025-07-08T01:45:28Z")

</div>

My actual usage is that I have a bunch of (~30) functions that performs similar but different operations depending on one argument. The most straight way to implement is: function do!(arg1, l) if l == 3 # d…

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

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