# General Usage

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

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

**Page:** 137

---

## [Type stable specializations of \`getproperty\` without code duplication?](https://discourse.julialang.org/t/type-stable-specializations-of-getproperty-without-code-duplication/92404)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 20\
**Last updated:** [September 2, 2024, 2:12pm UTC](https://discourse.julialang.org/t/type-stable-specializations-of-getproperty-without-code-duplication/92404 "2024-09-02T14:12:56Z")

</div>

I have a parametric type that I’m trying to specialize getproperty for. There are some properties which I’d like to always access independently of the type parameter, and there are some that only apply to specific type p…

---

## [Does this still crash on new Julia versions?](https://discourse.julialang.org/t/does-this-still-crash-on-new-julia-versions/118945)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [September 2, 2024, 2:11pm UTC](https://discourse.julialang.org/t/does-this-still-crash-on-new-julia-versions/118945 "2024-09-02T14:11:39Z")

</div>

\#GC.enable(false) a = \[1,2,3,4,5\] b = \[Ptr{Int64}(i) for i in a\] #a = nothing c = Base.unsafe\_convert(Ptr{Ref{Int}},b) d = unsafe\_wrap(Array,c,5) #Even with GC disabled, the crash still exists. It asked me to file a bu…

---

## [Bits and bytes manipulation library](https://discourse.julialang.org/t/bits-and-bytes-manipulation-library/118843)

<div class="topic-metadata">

**Author:** [@sivakon](https://discourse.julialang.org/u/sivakon)\
**Replies:** 12\
**Last updated:** [September 2, 2024, 1:39pm UTC](https://discourse.julialang.org/t/bits-and-bytes-manipulation-library/118843 "2024-09-02T13:39:33Z")

</div>

Are there any available packages in Julia ecosystem for byte level data manipulation? Similar packages are scodec from Scala - GitHub - scodec/scodec: Scala combinator library for working with binary data Elixir has Bi…

---

## [How to implement the julia code on web](https://discourse.julialang.org/t/how-to-implement-the-julia-code-on-web/118947)

<div class="topic-metadata">

**Author:** [@fasihullahsaleem](https://discourse.julialang.org/u/fasihullahsaleem)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 1:17pm UTC](https://discourse.julialang.org/t/how-to-implement-the-julia-code-on-web/118947 "2024-09-02T13:17:37Z")

</div>

Hello Everyone, I have created a julia code that take some input as form of json file and gave me output in dictionary. I want to deploy it on the website. I want to know the exact process of how to implement it on the …

---

## [Help needed getting started with threads!](https://discourse.julialang.org/t/help-needed-getting-started-with-threads/118911)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 27\
**Last updated:** [September 2, 2024, 11:09am UTC](https://discourse.julialang.org/t/help-needed-getting-started-with-threads/118911 "2024-09-02T11:09:05Z")

</div>

I can’t get threads to work for me despite the sense I’ve picked up here that it should be easy. I have a large number (hundreds) of Excel files to write out. I construct them from a largeish dataset using a simple temp…

---

## [Make HTTP request immediatly but wait for the response async](https://discourse.julialang.org/t/make-http-request-immediatly-but-wait-for-the-response-async/118928)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 10:30am UTC](https://discourse.julialang.org/t/make-http-request-immediatly-but-wait-for-the-response-async/118928 "2024-09-02T10:30:19Z")

</div>

I want to make HTTP requests to some server. Such that the following holds: I want data to reach the server as soon as possible. I don’t care much about getting the response from the server quickly. Instead, I want the…

---

## [Curious CSV round-trip problem](https://discourse.julialang.org/t/curious-csv-round-trip-problem/118334)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 11\
**Last updated:** [September 2, 2024, 10:17am UTC](https://discourse.julialang.org/t/curious-csv-round-trip-problem/118334 "2024-09-02T10:17:01Z")

</div>

(Apologies for a long post. There is a long set-up for this issue!) This website provides data on all the grants to good causes that the National Lottery has made since it began 30 years ago. It is possible to download …

---

## [How does RuntimeGeneratedFunctions.jl work?](https://discourse.julialang.org/t/how-does-runtimegeneratedfunctions-jl-work/112925)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 9:53am UTC](https://discourse.julialang.org/t/how-does-runtimegeneratedfunctions-jl-work/112925 "2024-09-02T09:53:34Z")

</div>

Hi, Could you help me by explaining how does RuntimeGeneratedFunctions.jl work, i.e., how it generates functions without world-age issue? I would really appreciate it.

---

## [Julia/JuMP efficiency comparison between different CPUs](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 2:32am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920 "2024-09-02T02:32:16Z")

</div>

What performance metrics of CPUs should we pay attention to since I noticed that for two kinds of CPUs, the modeling speed and memory consumption is totally different. For Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, m…

---

## [Implementation implicit Gauss method](https://discourse.julialang.org/t/implementation-implicit-gauss-method/118912)

<div class="topic-metadata">

**Author:** [@khaledharizb](https://discourse.julialang.org/u/khaledharizb)\
**Replies:** 5\
**Last updated:** [September 1, 2024, 11:34pm UTC](https://discourse.julialang.org/t/implementation-implicit-gauss-method/118912 "2024-09-01T23:34:18Z")

</div>

I would like to implement Runge Kutta Gauss method. This method is implicit and need a nonlinear solver to do so. For that I define a fixed point solver FixIter, then the function Gauss(f::Function,u₀,h,N) using Linear…

---

## [Some iterative solvers in LinearSolve ignore the initial conditions](https://discourse.julialang.org/t/some-iterative-solvers-in-linearsolve-ignore-the-initial-conditions/118903)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 2\
**Last updated:** [September 1, 2024, 2:57pm UTC](https://discourse.julialang.org/t/some-iterative-solvers-in-linearsolve-ignore-the-initial-conditions/118903 "2024-09-01T14:57:32Z")

</div>

Hello, I think I might be doing something wrong, but it seems that none of the Krylov methods in LinearSolve are using the initial guess I provide. (In the small example below, the initial guess is the true solution.) i…

---

## [How to use Base.Libc.errno](https://discourse.julialang.org/t/how-to-use-base-libc-errno/118832)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 3\
**Last updated:** [September 1, 2024, 7:20am UTC](https://discourse.julialang.org/t/how-to-use-base-libc-errno/118832 "2024-09-01T07:20:21Z")

</div>

The docs for errno in Julia states: The value of errno is only valid immediately after a ccall to a C library routine that sets it. Specifically, you cannot call errno at the next prompt in a REPL, because lots of code…

---

## [Juliaup modifications to .zshrc](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 4\
**Last updated:** [August 31, 2024, 5:50pm UTC](https://discourse.julialang.org/t/juliaup-modifications-to-zshrc/118844 "2024-08-31T17:50:41Z")

</div>

I recently bought a new MacBook. A few weeks ago I installed juliaup. I noticed that MacOS now uses z-shell as the default shell, so today I made the mistake of taking my old .bash\_profile and doing this: mv .bash\_profi…

---

## [Enzyme ready for everyday use? (2024)](https://discourse.julialang.org/t/enzyme-ready-for-everyday-use-2024/118819)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 16\
**Last updated:** [August 31, 2024, 5:29pm UTC](https://discourse.julialang.org/t/enzyme-ready-for-everyday-use-2024/118819 "2024-08-31T17:29:08Z")

</div>

I’ve got a Turing Bayesian model with hundreds of thousands of data points (as usual :roll\_eyes: :sweat\_smile: ). For whatever reason with my current situation is that LBFGS is working to optimize it. I tried to speed up…

---

## [Difference between \`Base.@assume\_effects :foldable\` and \`Base.@constprop :aggressive\`](https://discourse.julialang.org/t/difference-between-base-assume-effects-foldable-and-base-constprop-aggressive/118846)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 7\
**Last updated:** [August 31, 2024, 5:21pm UTC](https://discourse.julialang.org/t/difference-between-base-assume-effects-foldable-and-base-constprop-aggressive/118846 "2024-08-31T17:21:17Z")

</div>

What’s the difference between Base.@assume\_effects :foldable and Base.@constprop :aggressive?

---

## [V1.11-rc include("") will try to include the current folder](https://discourse.julialang.org/t/v1-11-rc-include-will-try-to-include-the-current-folder/118848)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 3:43pm UTC](https://discourse.julialang.org/t/v1-11-rc-include-will-try-to-include-the-current-folder/118848 "2024-08-31T15:43:50Z")

</div>

Hi there, I just stumbled upon the oddity that include("") was not doing anything in julia 1.10, but in 1.11 it tries to load the current folder (or something similar), which fails. Someone knows why this got changed?

---

## [Julia/VSCode on new MS Copilot Surface 7 laptops](https://discourse.julialang.org/t/julia-vscode-on-new-ms-copilot-surface-7-laptops/117203)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 20\
**Last updated:** [August 30, 2024, 11:40pm UTC](https://discourse.julialang.org/t/julia-vscode-on-new-ms-copilot-surface-7-laptops/117203 "2024-08-30T23:40:35Z")

</div>

I’ve been trying to use Julia/Jupyter in VSCode on the new Microsoft Copilot Plus PC (15" Laptop). Without going into too much detail, if I open VSCode on a Julia notebook, it responds that it can’t find the language ker…

---

## [Inflecting error/warning messages correctly](https://discourse.julialang.org/t/inflecting-error-warning-messages-correctly/118648)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 9\
**Last updated:** [August 28, 2024, 8:55pm UTC](https://discourse.julialang.org/t/inflecting-error-warning-messages-correctly/118648 "2024-08-28T20:55:32Z")

</div>

In my old Perl days I got a lot of great mileage out of the Lingua::EN::Inflect module, which helped write messages like so: print "I saw $n ", PL("cat", $n), "\\n"; and depending on the value of $n, that would generate…

---

## [Axes not working on reshaped array?](https://discourse.julialang.org/t/axes-not-working-on-reshaped-array/118820)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 6\
**Last updated:** [August 30, 2024, 8:38pm UTC](https://discourse.julialang.org/t/axes-not-working-on-reshaped-array/118820 "2024-08-30T20:38:52Z")

</div>

Hi, I’m confused about this behavior of axes: using Distributions using FillArrays using LinearAlgebra Nz = 5 My = 10 a = reshape(MvNormal(Fill(0.5, My\*Nz), 0.01 \* I), (My, Nz)) axes(a) axes(a,1) Calling axes on a wor…

---

## [Memory management for C bindings](https://discourse.julialang.org/t/memory-management-for-c-bindings/118822)

<div class="topic-metadata">

**Author:** [@bthorne93](https://discourse.julialang.org/u/bthorne93)\
**Replies:** 1\
**Last updated:** [August 30, 2024, 7:22pm UTC](https://discourse.julialang.org/t/memory-management-for-c-bindings/118822 "2024-08-30T19:22:33Z")

</div>

When writing bindings for a C library which performs memory allocations, how can we perform automatic memory management in the style of Julia with the external free functions? We want something similar to the defer keywo…

---

## [Are objects costly?](https://discourse.julialang.org/t/are-objects-costly/118818)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 6\
**Last updated:** [August 30, 2024, 6:13pm UTC](https://discourse.julialang.org/t/are-objects-costly/118818 "2024-08-30T18:13:18Z")

</div>

Here is a case where I could use either a function or a struct/type: function bounded(val::Real, lo::Real, hi::Real) @assert isfinite(lo) && isfinite(hi) && isfinite(val) lo \<= val \<= hi end struct Bounds{T \<: Real} …

---

## [Optimum use of Julia for two tasks](https://discourse.julialang.org/t/optimum-use-of-julia-for-two-tasks/118810)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 2\
**Last updated:** [August 30, 2024, 3:13pm UTC](https://discourse.julialang.org/t/optimum-use-of-julia-for-two-tasks/118810 "2024-08-30T15:13:07Z")

</div>

I have been working on an application that first collects data and then stores it to file. Then the file is read, processed and summary information stored in a database. The system is meant to operate continuously. fu…

---

## [How to split a vector (or a dataframe) in two parts?](https://discourse.julialang.org/t/how-to-split-a-vector-or-a-dataframe-in-two-parts/118809)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 3\
**Last updated:** [August 30, 2024, 2:53pm UTC](https://discourse.julialang.org/t/how-to-split-a-vector-or-a-dataframe-in-two-parts/118809 "2024-08-30T14:53:49Z")

</div>

Hi, I would like to cut this vector in half: julia\> y 5-element Vector{Int64}: 325 328 329 330 331 to obtain, let’s say a and b: julia\> a 2-element Vector{Int64}: 325 328 julia\> b 3-element Vector{Int64}: 32…

---

## [Workflow for faster testing of Julia packages?](https://discourse.julialang.org/t/workflow-for-faster-testing-of-julia-packages/113836)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 20\
**Last updated:** [May 5, 2024, 11:21pm UTC](https://discourse.julialang.org/t/workflow-for-faster-testing-of-julia-packages/113836 "2024-05-05T23:21:41Z")

</div>

What is the fastest possible way to run a Julia test suite (and also get test coverage)? Normally I call julia --startup-file=no --code-coverage=user --project=. -e 'using Pkg; Pkg.test(coverage=true)' julia --startup-…

---

## [Symbolics.jl with Linear Algebra+derivative](https://discourse.julialang.org/t/symbolics-jl-with-linear-algebra-derivative/118807)

<div class="topic-metadata">

**Author:** [@arnerob](https://discourse.julialang.org/u/arnerob)\
**Replies:** 1\
**Last updated:** [August 30, 2024, 1:13pm UTC](https://discourse.julialang.org/t/symbolics-jl-with-linear-algebra-derivative/118807 "2024-08-30T13:13:17Z")

</div>

I am trying to use Symbolics.derivative and Linear Algebra. I am confused with how things work and I am stuck with a specific problem that I have reduced to a MWE. using Symbolics @variables x A\[1:3,1:3\] v=\[1,x,x^2\] Sym…

---

## [Sharing precompiled code across docker images](https://discourse.julialang.org/t/sharing-precompiled-code-across-docker-images/68229)

<div class="topic-metadata">

**Author:** [@racinmat](https://discourse.julialang.org/u/racinmat)\
**Replies:** 5\
**Last updated:** [August 30, 2024, 11:21am UTC](https://discourse.julialang.org/t/sharing-precompiled-code-across-docker-images/68229 "2024-08-30T11:21:28Z")

</div>

I’m struggling with the precompilation time in julia inside docker image. We have some projects in julia in docker, and we’re doing changes quite often to this project, but the packages that take most time to precompile…

---

## [Julia 1.11 ignoring cache file ... since it does not provide desired build\_id](https://discourse.julialang.org/t/julia-1-11-ignoring-cache-file-since-it-does-not-provide-desired-build-id/118804)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 0\
**Last updated:** [August 30, 2024, 11:14am UTC](https://discourse.julialang.org/t/julia-1-11-ignoring-cache-file-since-it-does-not-provide-desired-build-id/118804 "2024-08-30T11:14:26Z")

</div>

I am trying to cache the .julia/compiled folder, and already switched to using v1.11 rc, but stumbled upon outputs similar to the following Debug: Ignoring cache file /home/jolin\_user/.julia/compiled/v1.11/Libgpg\_error…

---

## [Error in Julia v1.11 when updating Registry or packages](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 9\
**Last updated:** [August 30, 2024, 7:10am UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547 "2024-08-30T07:10:25Z")

</div>

Problem I installed Julia with juliaup in Windows, and I am currently on v1.11 beta. When I try to run \] update the following appears: (@v1.11) pkg\> update ┌ Warning: could not download https://pkg.julialang.org/registr…

---

## [LoopVectorization.vsum : invalid index: 4 x VectorizationBase.Vec](https://discourse.julialang.org/t/loopvectorization-vsum-invalid-index-4-x-vectorizationbase-vec/118297)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [August 17, 2024, 2:06pm UTC](https://discourse.julialang.org/t/loopvectorization-vsum-invalid-index-4-x-vectorizationbase-vec/118297 "2024-08-17T14:06:15Z")

</div>

What’s wrong here? using LoopVectorization let n = 10000, k = 3, A = rand(n, k) sum(1:n) do i A\[i,1\] end # ok vsum(1:n) do i A\[i,1\] end #= ERROR: ArgumentError: invalid index: 4 …

---

## [Package pretty tree](https://discourse.julialang.org/t/package-pretty-tree/118578)

<div class="topic-metadata">

**Author:** [@AlexisRenchon](https://discourse.julialang.org/u/AlexisRenchon)\
**Replies:** 10\
**Last updated:** [August 30, 2024, 12:09am UTC](https://discourse.julialang.org/t/package-pretty-tree/118578 "2024-08-30T00:09:13Z")

</div>

Hello, So I may be wrong, but I have been looking and asking around, and I found no package that builds a pretty tree of a package content. Something like this: ClimaLand ├─ Artifacts ├─ Bucket ├─ Canopy │ └─ PlantHy…

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

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