# General Usage

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

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

**Page:** 104

---

## [Strange plotting problem with Makie figures](https://discourse.julialang.org/t/strange-plotting-problem-with-makie-figures/123768)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 3\
**Last updated:** [December 13, 2024, 8:31pm UTC](https://discourse.julialang.org/t/strange-plotting-problem-with-makie-figures/123768 "2024-12-13T20:31:41Z")

</div>

I get a stack overflow when I try to manipulate Makie figures. This happens in multiple use cases. I don’t know the source of the problem from the stack trace. This happens when I try to just show the figure or display i…

---

## [How do you use the "develop" command?](https://discourse.julialang.org/t/how-do-you-use-the-develop-command/123767)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [December 13, 2024, 7:25pm UTC](https://discourse.julialang.org/t/how-do-you-use-the-develop-command/123767 "2024-12-13T19:25:04Z")

</div>

I have project A, that is using package B. Now I want to make changes to B and run project A again. I can open project A in VSCode, type using Revise; include("src/A.jl) to execute my code and then type \]develop B to ma…

---

## ["could not download... /registries" error](https://discourse.julialang.org/t/could-not-download-registries-error/123555)

<div class="topic-metadata">

**Author:** [@bernie](https://discourse.julialang.org/u/bernie)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 6:15pm UTC](https://discourse.julialang.org/t/could-not-download-registries-error/123555 "2024-12-13T18:15:52Z")

</div>

pkg\> add Makie Resolving package versions… I’m getting the following error whenever I run a pkg command: ┌ Warning: could not download https://pkg.julialang.org/registries │ exception = RequestError: SSLRead() return…

---

## [Rewrite rule to transform (a\*b\*c\*d\*...)^(-1) to (a^(-1)\*b^(-1)\*c^(-1)\*d^(-1)\*...)](https://discourse.julialang.org/t/rewrite-rule-to-transform-a-b-c-d-1-to-a-1-b-1-c-1-d-1/114569)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 4:41pm UTC](https://discourse.julialang.org/t/rewrite-rule-to-transform-a-b-c-d-1-to-a-1-b-1-c-1-d-1/114569 "2024-12-13T16:41:54Z")

</div>

Hi, I wonder if we can define a rule with SymbolicUtils to rewrite (abcd…)^(-1) to (a^(-1)\*b^(-1)\*c^(-1)d^(-1)…) which would work with an arbitrary number of arguments. I would really appreciate it if you could give me …

---

## [Julia REPL: pasting code while repl is busy is slow](https://discourse.julialang.org/t/julia-repl-pasting-code-while-repl-is-busy-is-slow/123765)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 5\
**Last updated:** [December 13, 2024, 1:25pm UTC](https://discourse.julialang.org/t/julia-repl-pasting-code-while-repl-is-busy-is-slow/123765 "2024-12-13T13:25:20Z")

</div>

Hello, for a long time now I observed a strange repl behavior, which I always contributed to emacs + vterm. However I now realised, that it also appears in different terminals (iterm2 on mac and windows terminal/wsl) so…

---

## [GlobalSensitivity.jl error when precompiling](https://discourse.julialang.org/t/globalsensitivity-jl-error-when-precompiling/121536)

<div class="topic-metadata">

**Author:** [@Theodore\_Rieger](https://discourse.julialang.org/u/Theodore_Rieger)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 1:17pm UTC](https://discourse.julialang.org/t/globalsensitivity-jl-error-when-precompiling/121536 "2024-12-13T13:17:32Z")

</div>

Hello, I have a issue with GlobalSensitivity.jl not installing when I switch over to my Linux cluster. Frustratingly (or maybe fortunately), it seems to compile for me when I install on my Windows 10 laptop. In both cas…

---

## [Uninvoked logging with interpolated string screws performance](https://discourse.julialang.org/t/uninvoked-logging-with-interpolated-string-screws-performance/123806)

<div class="topic-metadata">

**Author:** [@dpinol](https://discourse.julialang.org/u/dpinol)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 11:51am UTC](https://discourse.julialang.org/t/uninvoked-logging-with-interpolated-string-screws-performance/123806 "2024-12-13T11:51:23Z")

</div>

I have a a hot loop function which merges 2 SparseVector of 1k items each. With @benchmark I can see that adding conditionWhichIsFalse && @warn lazy"msg $myIntVariable" after the loop, makes the function 3 times slow…

---

## [PackageCompiler Segfault in Julia-1.11](https://discourse.julialang.org/t/packagecompiler-segfault-in-julia-1-11/123774)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 6\
**Last updated:** [December 13, 2024, 9:10am UTC](https://discourse.julialang.org/t/packagecompiler-segfault-in-julia-1-11/123774 "2024-12-13T09:10:02Z")

</div>

Hoping for some help because I’m not sure where to even start debugging this issue! I’m developing a scientific HPC code that I run using --check-bounds=no for performance, and often want to build a system image to save…

---

## [Install from source: no such instruction](https://discourse.julialang.org/t/install-from-source-no-such-instruction/123620)

<div class="topic-metadata">

**Author:** [@VictorEijkhout](https://discourse.julialang.org/u/VictorEijkhout)\
**Replies:** 15\
**Last updated:** [December 13, 2024, 8:37am UTC](https://discourse.julialang.org/t/install-from-source-no-such-instruction/123620 "2024-12-13T08:37:02Z")

</div>

I’m installing from source on an Intel Skylake. Installation ends/fails on: /usr/bin/install -c -m 644 /work2/00434/eijkhout/stampede3/julia/julia-git/deps/srccache/mpfr-4.2.1/AUTHORS /work2/00434/eijkhout/stampede3/j…

---

## [Percent written as x%](https://discourse.julialang.org/t/percent-written-as-x/123735)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 1:36am UTC](https://discourse.julialang.org/t/percent-written-as-x/123735 "2024-12-13T01:36:53Z")

</div>

macro %(x) Unitful.percent(.01x) end @% 12 #12 % Is there a function or macro that would allow 12% instead of @% 12

---

## [Julia position in the Debian Benchmark Game can be improved, and categorization of some Julia there is unfair](https://discourse.julialang.org/t/julia-position-in-the-debian-benchmark-game-can-be-improved-and-categorization-of-some-julia-there-is-unfair/122280)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 29\
**Last updated:** [December 12, 2024, 9:55pm UTC](https://discourse.julialang.org/t/julia-position-in-the-debian-benchmark-game-can-be-improved-and-categorization-of-some-julia-there-is-unfair/122280 "2024-12-12T21:55:46Z")

</div>

EDIT: I was looking at graph here thinking Julia might be missing: Measured : Which programming language is fastest? (Benchmarks Game) it’s actually still in other graph, and I still argue the categorization (for “naked …

---

## [Is union abstract type?](https://discourse.julialang.org/t/is-union-abstract-type/123782)

<div class="topic-metadata">

**Author:** [@garazha-ilya](https://discourse.julialang.org/u/garazha-ilya)\
**Replies:** 3\
**Last updated:** [December 12, 2024, 10:15pm UTC](https://discourse.julialang.org/t/is-union-abstract-type/123782 "2024-12-12T22:15:33Z")

</div>

Despite the fact that the documentation says that union is an abstract type, the isabstracttype() function returns false: IntOrString = Union{Int,AbstractString} isabstracttype(IntOrString) false

---

## [Disable package extension](https://discourse.julialang.org/t/disable-package-extension/123779)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 8:07pm UTC](https://discourse.julialang.org/t/disable-package-extension/123779 "2024-12-12T20:07:30Z")

</div>

Hello, Is it possible to “disable” an extension of a package, marked with \[extension\] in the package Project.toml? My use case is the following: I have an environment with ModelingToolkit as dependency, and I want to …

---

## [Hiding internal methods from methods(f)?](https://discourse.julialang.org/t/hiding-internal-methods-from-methods-f/123783)

<div class="topic-metadata">

**Author:** [@jakobjpeters](https://discourse.julialang.org/u/jakobjpeters)\
**Replies:** 4\
**Last updated:** [December 12, 2024, 7:59pm UTC](https://discourse.julialang.org/t/hiding-internal-methods-from-methods-f/123783 "2024-12-12T19:59:32Z")

</div>

A pet peeve of mine is when methods(f) shows more methods than is part of the documented API. Any chance the internal methods can be moved around a bit to prevent this?

---

## [Package precompilation logs/profiling](https://discourse.julialang.org/t/package-precompilation-logs-profiling/123776)

<div class="topic-metadata">

**Author:** [@Mihai\_Costin](https://discourse.julialang.org/u/Mihai_Costin)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:08pm UTC](https://discourse.julialang.org/t/package-precompilation-logs-profiling/123776 "2024-12-12T18:08:46Z")

</div>

Hello! I have a julia package in a public github repo (GitHub - mihaicostin34/S2MPJ.jl) and when adding it through the REPL I get high precompilation times (just adding the precompTest branch takes 133 seconds). Is there…

---

## [Memory Arena](https://discourse.julialang.org/t/memory-arena/123764)

<div class="topic-metadata">

**Author:** [@NimaPoshtiban](https://discourse.julialang.org/u/NimaPoshtiban)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 4:57pm UTC](https://discourse.julialang.org/t/memory-arena/123764 "2024-12-12T16:57:30Z")

</div>

Hello, dear members of the Julia Community. I want to manage heap space for external objects (e.g. C objects) by using an Arena How is it done in Julia? The simple definition of an Arena is “An arena is just a large,…

---

## [Fastest Julia implementation for a cyclic convolution of real vectors](https://discourse.julialang.org/t/fastest-julia-implementation-for-a-cyclic-convolution-of-real-vectors/123665)

<div class="topic-metadata">

**Author:** [@lukemin](https://discourse.julialang.org/u/lukemin)\
**Replies:** 17\
**Last updated:** [December 12, 2024, 4:44pm UTC](https://discourse.julialang.org/t/fastest-julia-implementation-for-a-cyclic-convolution-of-real-vectors/123665 "2024-12-12T16:44:03Z")

</div>

Hi, I am looking for the fastest way to implement the cyclic convolution of two real vectors. In other words, given some positive integer n \> 0 which is not necessarily power-of-two, I want to multiply two degree-(n-1) …

---

## [Subtyping \`NamedTuple\`s in \`NamedTuple\`s](https://discourse.julialang.org/t/subtyping-namedtuple-s-in-namedtuple-s/123747)

<div class="topic-metadata">

**Author:** [@benedikt](https://discourse.julialang.org/u/benedikt)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 3:12pm UTC](https://discourse.julialang.org/t/subtyping-namedtuple-s-in-namedtuple-s/123747 "2024-12-12T15:12:33Z")

</div>

I don’t understand the following behavior: julia\> typeof((a = (b = 1,),)) \<: NamedTuple{(:a,), Tuple{\<:NamedTuple}} false julia\> typeof((a = (b = 1,),)) \<: NamedTuple{(:a,), Tuple{NT}} where {NT \<: NamedTuple} true

---

## [Not using PreallocationTools.jl correctly](https://discourse.julialang.org/t/not-using-preallocationtools-jl-correctly/123609)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 11\
**Last updated:** [December 12, 2024, 2:26pm UTC](https://discourse.julialang.org/t/not-using-preallocationtools-jl-correctly/123609 "2024-12-12T14:26:42Z")

</div>

I have run into the same problem that others have run into before me. Unfortunately, I can’t solve the problem despite the fact that the question has been asked in (slightly) different guises (e.g. link1, link2). The pr…

---

## [Speeding up elementwise Vector-SparseMatrixCSC multiplication broadcasting](https://discourse.julialang.org/t/speeding-up-elementwise-vector-sparsematrixcsc-multiplication-broadcasting/79437)

<div class="topic-metadata">

**Author:** [@bcsj](https://discourse.julialang.org/u/bcsj)\
**Replies:** 11\
**Last updated:** [December 12, 2024, 9:45am UTC](https://discourse.julialang.org/t/speeding-up-elementwise-vector-sparsematrixcsc-multiplication-broadcasting/79437 "2024-12-12T09:45:23Z")

</div>

I noticed today a bottleneck in my code which was causing significant performance loss. Given a vector b and a sparse matrix A, let b \\odot A be the elementwise multiplication of b on each column of A. An example in Ju…

---

## [Using IntervalArithmetic to find the number of intersections of algebraic curves](https://discourse.julialang.org/t/using-intervalarithmetic-to-find-the-number-of-intersections-of-algebraic-curves/123740)

<div class="topic-metadata">

**Author:** [@ij05](https://discourse.julialang.org/u/ij05)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 7:35am UTC](https://discourse.julialang.org/t/using-intervalarithmetic-to-find-the-number-of-intersections-of-algebraic-curves/123740 "2024-12-12T07:35:27Z")

</div>

I have two algebraic curves as the following \\begin{equation} 2x^2+4x-3-y=0\\quad(1) \\end{equation} x^2+y^2-a=0\\quad\\qquad(2) Equation (2) is parameterized in terms of a. I am interested to obtain the number of interse…

---

## [MKLSparse with AMD cpu](https://discourse.julialang.org/t/mklsparse-with-amd-cpu/50559)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 5\
**Last updated:** [December 11, 2024, 8:25pm UTC](https://discourse.julialang.org/t/mklsparse-with-amd-cpu/50559 "2024-12-11T20:25:18Z")

</div>

As discussed in other threads Acceleration of Intel MKL on AMD Ryzen CPU’s Hack: AMD Ryzen/TR/Epyc + Intel Math Kernel Library (MKL) Intel MKL descriminates against AMD cpu’s (although this might be changing). Does t…

---

## [Invalid LLVM IR was generated](https://discourse.julialang.org/t/invalid-llvm-ir-was-generated/123720)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 7:00pm UTC](https://discourse.julialang.org/t/invalid-llvm-ir-was-generated/123720 "2024-12-11T19:00:31Z")

</div>

I am trying to understand and debug the issue presented at https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by\_date/2024-12/10/Econometrics.primary.log. Is there a way to test the functionality that NanoSo…

---

## [Understanding multi-dimensional array indexing performance](https://discourse.julialang.org/t/understanding-multi-dimensional-array-indexing-performance/123683)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 7\
**Last updated:** [December 11, 2024, 2:11pm UTC](https://discourse.julialang.org/t/understanding-multi-dimensional-array-indexing-performance/123683 "2024-12-11T14:11:47Z")

</div>

Hi there, My understanding is that Julia chooses column-major ordering for storing a multi-dimensional array in linear memory. I was testing the performance differences of own-implemented functions that sum over the ele…

---

## [Avoiding allocations and run-time dispatch with ForwardDiff](https://discourse.julialang.org/t/avoiding-allocations-and-run-time-dispatch-with-forwarddiff/123699)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 1:29pm UTC](https://discourse.julialang.org/t/avoiding-allocations-and-run-time-dispatch-with-forwarddiff/123699 "2024-12-11T13:29:24Z")

</div>

I have an optimization problem which involves solving an ODE and finding the input to the “system” such that an objective is minimized. A MWE of a toy problem is below: import Optimization import ForwardDiff import Opti…

---

## [Documenter.jl - Removing unwanted versions of generated documentation in 2024](https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690)

<div class="topic-metadata">

**Author:** [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 8:51am UTC](https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690 "2024-12-11T08:51:14Z")

</div>

Backstory I made a tagging mistake that I unwisely pushed up anyway, and now there’s documentation for a non-existent version of my (unregistered) library. Home · TechnicalIndicatorCharts.jl There is no v1.2, and I…

---

## [Sorting instability issue](https://discourse.julialang.org/t/sorting-instability-issue/123660)

<div class="topic-metadata">

**Author:** [@PanT12](https://discourse.julialang.org/u/PanT12)\
**Replies:** 11\
**Last updated:** [December 11, 2024, 1:59am UTC](https://discourse.julialang.org/t/sorting-instability-issue/123660 "2024-12-11T01:59:02Z")

</div>

Hello, everyone, I work with Julia Version 1.10.2 and want to ask a question about the sorting function in Julia. Suppose I run the following code: time\_sort = zeros(100,1); for i = 1:100 n = 10^6 x0 = rand(n); tim…

---

## [Unsafe\_wrap perform memory allocations](https://discourse.julialang.org/t/unsafe-wrap-perform-memory-allocations/123662)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 6\
**Last updated:** [December 10, 2024, 3:48pm UTC](https://discourse.julialang.org/t/unsafe-wrap-perform-memory-allocations/123662 "2024-12-10T15:48:15Z")

</div>

Hi! Im trying to wrap c pointer array into julia as follows: function WrapArray(arr :: Ptr{Cdouble}, length :: Cint) :: Cdouble @timev wrapped = unsafe\_wrap(Vector{Cdouble}, arr, length) 0.000003 seconds (2 a…

---

## [Using Regex() function, how do I match the end of the string?](https://discourse.julialang.org/t/using-regex-function-how-do-i-match-the-end-of-the-string/123659)

<div class="topic-metadata">

**Author:** [@francisbarton](https://discourse.julialang.org/u/francisbarton)\
**Replies:** 4\
**Last updated:** [December 10, 2024, 2:05pm UTC](https://discourse.julialang.org/t/using-regex-function-how-do-i-match-the-end-of-the-string/123659 "2024-12-10T14:05:22Z")

</div>

I am using the Regex() function to create a regular expression pattern, instead of just using r"", because I need to interpolate a variable. If I write Regex("$(f)$") - interpolating the variable f and wanting to match …

---

## [How to set JuliaMono in Jupyter Notebook, version \>7](https://discourse.julialang.org/t/how-to-set-juliamono-in-jupyter-notebook-version-7/123636)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [December 10, 2024, 12:02pm UTC](https://discourse.julialang.org/t/how-to-set-juliamono-in-jupyter-notebook-version-7/123636 "2024-12-10T12:02:03Z")

</div>

For Julia 1.11.2 I have installed Jupyter Notebook 7.3.1 and I fail to set the JuliaMono font, to get a notebook style as I had before with version \<7.

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

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