# General Usage

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

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

**Page:** 158

---

## [Intermittent \`IOError: SSL\_ERROR\_SYSCALL\` on put to S3](https://discourse.julialang.org/t/intermittent-ioerror-ssl-error-syscall-on-put-to-s3/115873)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 1:38am UTC](https://discourse.julialang.org/t/intermittent-ioerror-ssl-error-syscall-on-put-to-s3/115873 "2024-06-20T01:38:59Z")

</div>

I have a loop that writes bytes to S3. It works about 95% of the time. Then periodically, I get a cryptic error from the depths of HTTP.jl about SSL\_ERROR\_SYSCALL. The function looks like this using Retry: @repeat usin…

---

## [CircularBuffer//insert value](https://discourse.julialang.org/t/circularbuffer-insert-value/115893)

<div class="topic-metadata">

**Author:** [@Sihyun\_Kim](https://discourse.julialang.org/u/Sihyun_Kim)\
**Replies:** 2\
**Last updated:** [June 20, 2024, 1:27am UTC](https://discourse.julialang.org/t/circularbuffer-insert-value/115893 "2024-06-20T01:27:38Z")

</div>

I have CircularBuffer (sorted) array, and want to insert the value into it. A simple example is cb = CircularBuffer{Float64}(5) #when full capacity append!(cb, \[1.0, 2.0, 3.0, 4.0, 5.0\]) ii = searchsortedlast(cb, 3.5) c…

---

## [Misunderstanding Allocs for Monte Carlo summation](https://discourse.julialang.org/t/misunderstanding-allocs-for-monte-carlo-summation/115894)

<div class="topic-metadata">

**Author:** [@Spuriosity1](https://discourse.julialang.org/u/Spuriosity1)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 12:55am UTC](https://discourse.julialang.org/t/misunderstanding-allocs-for-monte-carlo-summation/115894 "2024-06-20T00:55:14Z")

</div>

I have a simple test function here: function tester(nreps::Int, n\_x::Int) res = zeros(Float64, n\_x) for \_ = 1:nreps res += rand(Float64, n\_x) end return res end I do not understand the behaviour…

---

## [Structs with Unitful Types](https://discourse.julialang.org/t/structs-with-unitful-types/115884)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [June 19, 2024, 9:39pm UTC](https://discourse.julialang.org/t/structs-with-unitful-types/115884 "2024-06-19T21:39:49Z")

</div>

I am creating a number of structs with unitful types. Here is a small example: const float\_ft = typeof(1.0ft) # ft, inch, and kcf previously defined constants const float\_inch = typeof(1.0inch) const float\_kcf = typeof(…

---

## [Method overwriting error on package extensions](https://discourse.julialang.org/t/method-overwriting-error-on-package-extensions/114630)

<div class="topic-metadata">

**Author:** [@sc-dyer](https://discourse.julialang.org/u/sc-dyer)\
**Replies:** 15\
**Last updated:** [June 19, 2024, 7:34pm UTC](https://discourse.julialang.org/t/method-overwriting-error-on-package-extensions/114630 "2024-06-19T19:34:32Z")

</div>

Hello! I have been trying to write two extensions for a package so that it can operate with Plots.jl or Makie.jl. Everything works fine but when I run the tests I get a series of warnings and errors that look like this: …

---

## [Has anyone used Enzyme with LoopVectorization's @turbo macro?](https://discourse.julialang.org/t/has-anyone-used-enzyme-with-loopvectorizations-turbo-macro/115872)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 4\
**Last updated:** [June 19, 2024, 7:11pm UTC](https://discourse.julialang.org/t/has-anyone-used-enzyme-with-loopvectorizations-turbo-macro/115872 "2024-06-19T19:11:59Z")

</div>

I’m attempting to use it but facing difficulty

---

## [Merging dictionaries ensuring they are disjoint](https://discourse.julialang.org/t/merging-dictionaries-ensuring-they-are-disjoint/115859)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 6:28pm UTC](https://discourse.julialang.org/t/merging-dictionaries-ensuring-they-are-disjoint/115859 "2024-06-19T18:28:20Z")

</div>

I am merging some dictionaries that come from a computation and I want to ensure that they are disjoint. A quick way of doing it is mergewith, eg D1 = Dict(:a =\> 1, :b =\> 2) D2 = Dict(:a =\> 4, :c =\> 3) mergewith((v...)…

---

## [Is using \`Base.delete\_method\` on user-defined functions safe?](https://discourse.julialang.org/t/is-using-base-delete-method-on-user-defined-functions-safe/115194)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 14\
**Last updated:** [June 19, 2024, 6:52pm UTC](https://discourse.julialang.org/t/is-using-base-delete-method-on-user-defined-functions-safe/115194 "2024-06-19T18:52:53Z")

</div>

does someone know if using Base.delete\_method user-defined functions is dangerous in any way? I searched for its use on registered packages and someone does already make use of it: https://juliahub.com/ui/Search?q=delete…

---

## [Extendable collection with immutable values](https://discourse.julialang.org/t/extendable-collection-with-immutable-values/115869)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 5:56pm UTC](https://discourse.julialang.org/t/extendable-collection-with-immutable-values/115869 "2024-06-19T17:56:07Z")

</div>

I’m trying to build an efficient registry of certain values, and in this case, they’re all of the same type. I’m trying to find a good candidate “object” that fits this role. The desired properties are as follows: Once…

---

## [How to make log-Mel spectrogram?](https://discourse.julialang.org/t/how-to-make-log-mel-spectrogram/97927)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 4:09pm UTC](https://discourse.julialang.org/t/how-to-make-log-mel-spectrogram/97927 "2024-06-19T16:09:05Z")

</div>

The eventual goal is to make a pure Julia Whisper inference, but got stopped before 1st step. Most ingredients of the spectrogram is simply a combination of hanging window and stft: in Julia, we can find them in DSP.j…

---

## [Fastest way to concatenate many arrays along existing axis?](https://discourse.julialang.org/t/fastest-way-to-concatenate-many-arrays-along-existing-axis/115841)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 3:02pm UTC](https://discourse.julialang.org/t/fastest-way-to-concatenate-many-arrays-along-existing-axis/115841 "2024-06-19T15:02:47Z")

</div>

I’m wondering if there is a fast way to concatenate a list a of many arrays without creating a new axis. I know about stack(a), but that function creates a new axis and I don’t want that. Its docstring says The various…

---

## [Combining results from threaded calculations](https://discourse.julialang.org/t/combining-results-from-threaded-calculations/115753)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [June 19, 2024, 2:51pm UTC](https://discourse.julialang.org/t/combining-results-from-threaded-calculations/115753 "2024-06-19T14:51:50Z")

</div>

I have a calculation which uses a buffer for a subset of a cohort of agents (in the MWE below, each has different \\kappa), steps this forward from a given value in time, calculates some aggregate at each point in time. …

---

## [GLMakie: Create 3D animations with GLMakie?](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850)

<div class="topic-metadata">

**Author:** [@Vinh](https://discourse.julialang.org/u/Vinh)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 2:49pm UTC](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850 "2024-06-19T14:49:49Z")

</div>

I generate samples from the Vegas algorithm through iterations, from which I draw 3D graphs using GLMakie. The problem is that I want to animate a 3D image but I don’t really understand the tutorial to apply it to my cas…

---

## [Cannot install RecursiveArrayTools (latest version)](https://discourse.julialang.org/t/cannot-install-recursivearraytools-latest-version/115860)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 1:24pm UTC](https://discourse.julialang.org/t/cannot-install-recursivearraytools-latest-version/115860 "2024-06-19T13:24:21Z")

</div>

Today I cannot install the latest version of RecursiveArrayTools any longer. Yesterday it worked: (tmp) pkg\> add RecursiveArrayTools#v3.24.0 Resolving package versions... ERROR: Unsatisfiable requirements detected fo…

---

## [Implementing a built in julia compiler inside my website](https://discourse.julialang.org/t/implementing-a-built-in-julia-compiler-inside-my-website/115865)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 2:37pm UTC](https://discourse.julialang.org/t/implementing-a-built-in-julia-compiler-inside-my-website/115865 "2024-06-19T14:37:27Z")

</div>

Hi, I am creating a platform for studying various topics. Among them I would like to have a running julia environment for students to run code on it and have tests done over their responses. Is there any resource I shoul…

---

## [Julia used to prototype Whatsapp audio](https://discourse.julialang.org/t/julia-used-to-prototype-whatsapp-audio/115626)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 20\
**Last updated:** [June 19, 2024, 12:36pm UTC](https://discourse.julialang.org/t/julia-used-to-prototype-whatsapp-audio/115626 "2024-06-19T12:36:30Z")

</div>

This isn’t a big thing, Julia is just powering EVERY SINGLE VOICE CALL in WHATSAPP across the world (maybe this is a slight exaggeration) but check it out: (relevant bit starts at 8min 12s)

---

## [Huge distributed overhead](https://discourse.julialang.org/t/huge-distributed-overhead/115815)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 11:46am UTC](https://discourse.julialang.org/t/huge-distributed-overhead/115815 "2024-06-19T11:46:17Z")

</div>

My code looks something like this. First, I have a file where I define my functions #Functions.jl file #Here we import the relevant packages and define all the functions with @everywere @everywhere Solver(A, N) …

---

## [Limit number of @spawn'ed threads](https://discourse.julialang.org/t/limit-number-of-spawned-threads/41847)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 13\
**Last updated:** [June 19, 2024, 9:32am UTC](https://discourse.julialang.org/t/limit-number-of-spawned-threads/41847 "2024-06-19T09:32:50Z")

</div>

I’m trying to use Threads.@spawn to execute a function in parallel. According to the docs and common sense, I expected it to run Threads.nthreads() spawned functions simultaneously, and in my case nthreads() == 4. Howev…

---

## [The specification of Julia for reading text files and the different behavior between operating systems](https://discourse.julialang.org/t/the-specification-of-julia-for-reading-text-files-and-the-different-behavior-between-operating-systems/115839)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 5:08am UTC](https://discourse.julialang.org/t/the-specification-of-julia-for-reading-text-files-and-the-different-behavior-between-operating-systems/115839 "2024-06-19T05:08:34Z")

</div>

What is the specification of Julia for reading text files which have newlines (e.g. "\\n", "\\r\\n", "\\r")? My program has a bug related to the different behavior between operating systems about newlines. I made a followin…

---

## [Performance/language benchmark](https://discourse.julialang.org/t/performance-language-benchmark/115840)

<div class="topic-metadata">

**Author:** [@rfateman](https://discourse.julialang.org/u/rfateman)\
**Replies:** 0\
**Last updated:** [June 19, 2024, 3:52am UTC](https://discourse.julialang.org/t/performance-language-benchmark/115840 "2024-06-19T03:52:08Z")

</div>

Here’s an old unpublished paper with a simple-to-program slightly symbolic task that might appeal to the Python vs Julia vs Magma vs SML… … benchmarkers. ./ Simulating Cellular Automata: A Challenge for Programming Lan…

---

## [What's the deal with StaticArrays?](https://discourse.julialang.org/t/whats-the-deal-with-staticarrays/115816)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 12:23am UTC](https://discourse.julialang.org/t/whats-the-deal-with-staticarrays/115816 "2024-06-19T00:23:09Z")

</div>

First, disclaimer that I have a shallow understanding of heap and stack and allocations. Given that, here is my basic understanding of StaticArrays: They are appropriate when there are lots of small arrays involved becau…

---

## [Documenter.jl Error: no docs found](https://discourse.julialang.org/t/documenter-jl-error-no-docs-found/115812)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 5\
**Last updated:** [June 18, 2024, 9:04pm UTC](https://discourse.julialang.org/t/documenter-jl-error-no-docs-found/115812 "2024-06-18T21:04:49Z")

</div>

I am working on the documentation of a new package to be released soon. I am running locally a very simple version of the make.jl file to debug a partial version of the documentation using argument remotes = nothing in t…

---

## [No Intellisense when Importing](https://discourse.julialang.org/t/no-intellisense-when-importing/115817)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [June 18, 2024, 6:14pm UTC](https://discourse.julialang.org/t/no-intellisense-when-importing/115817 "2024-06-18T18:14:45Z")

</div>

I don’t get any intellisense when I do: import Plots as plt If I type plt. I don’t see anything in vscode. Is that normal?

---

## [How to debug generated function and FunctionWrappers?](https://discourse.julialang.org/t/how-to-debug-generated-function-and-functionwrappers/115804)

<div class="topic-metadata">

**Author:** [@wangyunyueyueniao](https://discourse.julialang.org/u/wangyunyueyueniao)\
**Replies:** 0\
**Last updated:** [June 18, 2024, 12:45pm UTC](https://discourse.julialang.org/t/how-to-debug-generated-function-and-functionwrappers/115804 "2024-06-18T12:45:06Z")

</div>

I need to step through a wrapped generated function in OrdinaryDiffEq. However I don’t even know how to debug in a generated function nor a wrapped function (which is a pointer in wrapper). Could someone please show me a…

---

## [Legend position for 3D plots](https://discourse.julialang.org/t/legend-position-for-3d-plots/115539)

<div class="topic-metadata">

**Author:** [@HahaRIP](https://discourse.julialang.org/u/HahaRIP)\
**Replies:** 2\
**Last updated:** [June 18, 2024, 9:35am UTC](https://discourse.julialang.org/t/legend-position-for-3d-plots/115539 "2024-06-18T09:35:54Z")

</div>

Hey, I am plotting surfaces which have some small values and I need the legend. But the problem is that the legend goes out of the image and can’t see the values. I tried positioning the legend, but could not move it at …

---

## [Aggresive garbage collection behavior with DataFrames in 1.10?](https://discourse.julialang.org/t/aggresive-garbage-collection-behavior-with-dataframes-in-1-10/115785)

<div class="topic-metadata">

**Author:** [@james\_thomas](https://discourse.julialang.org/u/james_thomas)\
**Replies:** 0\
**Last updated:** [June 18, 2024, 2:06am UTC](https://discourse.julialang.org/t/aggresive-garbage-collection-behavior-with-dataframes-in-1-10/115785 "2024-06-18T02:06:53Z")

</div>

I’m seeing some unexpected behavior with garbage collection in 1.10 while working with large DataFrames in the REPL. If I run this (simplified example) code in 1.10.4: using DataFrames …

---

## [Why isn't mixture model sampling in Turing?](https://discourse.julialang.org/t/why-isnt-mixture-model-sampling-in-turing/115752)

<div class="topic-metadata">

**Author:** [@Cascobayesian](https://discourse.julialang.org/u/Cascobayesian)\
**Replies:** 2\
**Last updated:** [June 18, 2024, 1:43am UTC](https://discourse.julialang.org/t/why-isnt-mixture-model-sampling-in-turing/115752 "2024-06-18T01:43:43Z")

</div>

Hello! I’m new to Julia but very excited by the possibilities. I’m particularly interested in using Turing to fit mixture models. However, in building up some non-trivial mixture examples, I’ve encountered an issue I ju…

---

## [How do I correctly make an "interface" in Julia?](https://discourse.julialang.org/t/how-do-i-correctly-make-an-interface-in-julia/115676)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 11\
**Last updated:** [June 17, 2024, 11:43pm UTC](https://discourse.julialang.org/t/how-do-i-correctly-make-an-interface-in-julia/115676 "2024-06-17T23:43:04Z")

</div>

With multiple dispatch I am able to specialize any function already written to a type, but when it comes time to define my own “interfaces” (although here they are just generic functions) I get a bit confused. I want to…

---

## [Overhead of view / reshape / transpose in linear algebra](https://discourse.julialang.org/t/overhead-of-view-reshape-transpose-in-linear-algebra/110761)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 8\
**Last updated:** [June 17, 2024, 7:27pm UTC](https://discourse.julialang.org/t/overhead-of-view-reshape-transpose-in-linear-algebra/110761 "2024-06-17T19:27:37Z")

</div>

An example: reshape + view + ' for transpose + mul! will have some overhead. using Random using LinearAlgebra using BenchmarkTools buf = zeros(1000) v1 = reshape(view(buf, 1:100), (20, 5)) v2 = view(v1, 1:16, :) m3 = ze…

---

## [Environment activation using distributed](https://discourse.julialang.org/t/environment-activation-using-distributed/115773)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 0\
**Last updated:** [June 17, 2024, 5:53pm UTC](https://discourse.julialang.org/t/environment-activation-using-distributed/115773 "2024-06-17T17:53:28Z")

</div>

Is it normal for the environment activation to take more than 10 minutes using @everywhere? In my case, all processes are on the same machine. They all activate the same environment. When doing this in an interactive …

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

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