# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1191

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

**Page:** 1192

---

## [Huge performance fluctuations in parallel benchmark: insights?](https://discourse.julialang.org/t/huge-performance-fluctuations-in-parallel-benchmark-insights/67953)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 52\
**Last updated:** [December 1, 2021, 4:28pm UTC](https://discourse.julialang.org/t/huge-performance-fluctuations-in-parallel-benchmark-insights/67953 "2021-12-01T16:28:17Z")

</div>

I have the following scenario. The function I am evaluating uses multi-threading, and it takes 5 to 6s to finish. But sometimes, to do exactly the same thing, it takes 2, 3 times that time. The machine is not running any…

---

## [Multidimensional array syntax](https://discourse.julialang.org/t/multidimensional-array-syntax/72349)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 11\
**Last updated:** [December 1, 2021, 4:26pm UTC](https://discourse.julialang.org/t/multidimensional-array-syntax/72349 "2021-12-01T16:26:59Z")

</div>

Are there any articles explaining the multidomensional array syntax at a level a complete idiot (me) can understand?

---

## [Multi-threading or multi-processing, how to know which to use and when?](https://discourse.julialang.org/t/multi-threading-or-multi-processing-how-to-know-which-to-use-and-when/72278)

<div class="topic-metadata">

**Author:** [@Lamma](https://discourse.julialang.org/u/Lamma)\
**Replies:** 32\
**Last updated:** [December 1, 2021, 3:23pm UTC](https://discourse.julialang.org/t/multi-threading-or-multi-processing-how-to-know-which-to-use-and-when/72278 "2021-12-01T15:23:52Z")

</div>

I am wanting to run a simple for loop that is writing certain lines from a very large file to a new file based on a if check of pre computed criteria. reader = FASTA.Reader(GzipDecompressorStream(open("/home/people/robm…

---

## [Is there a PEP8 for Julia?](https://discourse.julialang.org/t/is-there-a-pep8-for-julia/1433)

<div class="topic-metadata">

**Author:** [@cripcate](https://discourse.julialang.org/u/cripcate)\
**Replies:** 11\
**Last updated:** [December 1, 2021, 2:20pm UTC](https://discourse.julialang.org/t/is-there-a-pep8-for-julia/1433 "2021-12-01T14:20:28Z")

</div>

Is there a Guide to “pretty” Julia code yet? Meaning somehting similar to PEP8 and PEP250 (was it that numbers) from python? Also: is there a linter for Atom / Juno yet? Greetings!

---

## [Error: Installing “julia-client@0.12.6” failed.](https://discourse.julialang.org/t/error-installing-julia-client-0-12-6-failed/72381)

<div class="topic-metadata">

**Author:** [@glaicer](https://discourse.julialang.org/u/glaicer)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 2:11pm UTC](https://discourse.julialang.org/t/error-installing-julia-client-0-12-6-failed/72381 "2021-12-01T14:11:35Z")

</div>

Juno: Error installing package julia-client Please check your internet connection, or report this to https://github.com/JunoLab/Juno.jl/issues or https://discourse.julialang.org and we’ll try to help. Error: Installing…

---

## [Braket symbol in Pluto does not work](https://discourse.julialang.org/t/braket-symbol-in-pluto-does-not-work/72376)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 1:30pm UTC](https://discourse.julialang.org/t/braket-symbol-in-pluto-does-not-work/72376 "2021-12-01T13:30:39Z")

</div>

Hi all, In the example below, the braket and contents are scrunched together. Am I doing something incorrect or is this a bug?

---

## [Field insertion in immutable @with\_kw struct](https://discourse.julialang.org/t/field-insertion-in-immutable-with-kw-struct/72373)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 1:10pm UTC](https://discourse.julialang.org/t/field-insertion-in-immutable-with-kw-struct/72373 "2021-12-01T13:10:37Z")

</div>

Hi, I am trying to load a @with\_kw struct from a named tuple, but I cannot find a way to associate the fields correctly. I would like to use something like a split operator, but the split operator on a named tuple retu…

---

## [Type annotations with abstract types (or when is \`\<:\` required?)](https://discourse.julialang.org/t/type-annotations-with-abstract-types-or-when-is-required/72364)

<div class="topic-metadata">

**Author:** [@cbrnr](https://discourse.julialang.org/u/cbrnr)\
**Replies:** 7\
**Last updated:** [December 1, 2021, 12:58pm UTC](https://discourse.julialang.org/t/type-annotations-with-abstract-types-or-when-is-required/72364 "2021-12-01T12:58:06Z")

</div>

Let’s assume I define a function f with two parameters x and n, where x should be a vector of integer numbers and n should be an integer. I though that I could use the abstract Integer type to write the following functio…

---

## [Changing Ipopt options](https://discourse.julialang.org/t/changing-ipopt-options/72156)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 8\
**Last updated:** [December 1, 2021, 12:28pm UTC](https://discourse.julialang.org/t/changing-ipopt-options/72156 "2021-12-01T12:28:37Z")

</div>

I have a nonlinear program which Ipopt finds the optimal solution for it, with adding some changes into the problem the solver can not find the optimal solution anymore and iterates till the maximum number of iterations…

---

## [Problem with Plots using Julia V1.7.0 and VS Code](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363)

<div class="topic-metadata">

**Author:** [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 12:15pm UTC](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363 "2021-12-01T12:15:34Z")

</div>

Using Julia version 1.6.4 and VS Code and running the following code using Plots x = 1:10; y = rand(10) plot(x, y) end I get the expected graph in the plot pane. However running the same code with Julia version 1.7.0 …

---

## [How to inherit packages from Julia 1.6.4?](https://discourse.julialang.org/t/how-to-inherit-packages-from-julia-1-6-4/72362)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 12:15pm UTC](https://discourse.julialang.org/t/how-to-inherit-packages-from-julia-1-6-4/72362 "2021-12-01T12:15:31Z")

</div>

I have installed Julia 1.7.0. But it does not recognize (load) the packages installed in the previous Version Julia 1.6.4. (@v1.7) pkg\> up Updating registry at \`C:\\Users\\Hermesr\\.julia\\registries\\General\` Updati…

---

## [Strange allocations in broadcasting (with \`^\`?)](https://discourse.julialang.org/t/strange-allocations-in-broadcasting-with/72229)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 11:51am UTC](https://discourse.julialang.org/t/strange-allocations-in-broadcasting-with/72229 "2021-12-01T11:51:16Z")

</div>

I think d ^ 2 should be optimized into just d \* d (here), so the following two operations should be identical, but the form with ^ allocates with the one with \* does not: julia\> using BenchmarkTools julia\> const a = ra…

---

## [Plotting a distribution](https://discourse.julialang.org/t/plotting-a-distribution/25356)

<div class="topic-metadata">

**Author:** [@stene](https://discourse.julialang.org/u/stene)\
**Replies:** 6\
**Last updated:** [December 1, 2021, 10:04am UTC](https://discourse.julialang.org/t/plotting-a-distribution/25356 "2021-12-01T10:04:36Z")

</div>

Trying to plot normal distributions from the Distributions package. How do I do this? julia\> normalDist = fit(Normal, data) Normal{Float64}(μ=100.3434334, σ=0.05) julia\> plot(normalDist) ERROR: No user recipe defined…

---

## [Makie.jl - how to change the cursor?](https://discourse.julialang.org/t/makie-jl-how-to-change-the-cursor/60380)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [December 1, 2021, 9:59am UTC](https://discourse.julialang.org/t/makie-jl-how-to-change-the-cursor/60380 "2021-12-01T09:59:23Z")

</div>

How can I change the cursor to a sand clock to indicate the user to wait with MakieGL?

---

## [Gsub function in Julia](https://discourse.julialang.org/t/gsub-function-in-julia/72351)

<div class="topic-metadata">

**Author:** [@jnewbie](https://discourse.julialang.org/u/jnewbie)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 9:05am UTC](https://discourse.julialang.org/t/gsub-function-in-julia/72351 "2021-12-01T09:05:39Z")

</div>

Hi everyone, I am translating an R code into a Julia code, I have this function in R : for (i in 1:length(l)) { if(length(l\[\[i\]\])\>0){ a ← l\[\[i\]\] y\[i,a+c-1\] ← as.numeric( gsub(“,”,“”, work.matrix\[which(row.names(wo…

---

## [Serializing Functions / Methods / Closures](https://discourse.julialang.org/t/serializing-functions-methods-closures/57061)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 8:14am UTC](https://discourse.julialang.org/t/serializing-functions-methods-closures/57061 "2021-12-01T08:14:35Z")

</div>

Hi all, over the last months I’ve spent quite some time to bring JLD2 back up to speed. One of the remaining pain points is that it is not possible to properly store and recover (anonymous) functions and closures. This…

---

## [Gadfly question: How to make Geom.bar slimmer, give alternating colors to bars and bars display their values](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 4:15am UTC](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327 "2021-12-01T04:15:22Z")

</div>

Hello, I am trying to learn gadfly plotting library. I have a very simple dataset as follows: country,percent country1,47 country2,41 country3,39 country4,39 country5,36 country6,36 country7,36 country8,35 country9,34…

---

## [Spawning a new worker process fails: Cannot serialize a running task](https://discourse.julialang.org/t/spawning-a-new-worker-process-fails-cannot-serialize-a-running-task/72335)

<div class="topic-metadata">

**Author:** [@Bossax](https://discourse.julialang.org/u/Bossax)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 2:27am UTC](https://discourse.julialang.org/t/spawning-a-new-worker-process-fails-cannot-serialize-a-running-task/72335 "2021-12-01T02:27:13Z")

</div>

Hi everyone, I am working on image acquisition for a camera. The main task is to continuously taking images and put them in sharred memory for other programs to grab. The main function is just a simple while loop which …

---

## [Data Scientist, Product Team at Ancera](https://discourse.julialang.org/t/data-scientist-product-team-at-ancera/72332)

<div class="topic-metadata">

**Author:** [@Craig\_K](https://discourse.julialang.org/u/Craig_K)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 1:33am UTC](https://discourse.julialang.org/t/data-scientist-product-team-at-ancera/72332 "2021-12-01T01:33:36Z")

</div>

Looking to find a data scientist with strong Bayesian skill set to develop innovative risk and microbial security products for the food industry. It’s an opportunity to drive product development by delivering decision su…

---

## [Channel hangs with \>8 threads but not 7 in REPL](https://discourse.julialang.org/t/channel-hangs-with-8-threads-but-not-7-in-repl/72274)

<div class="topic-metadata">

**Author:** [@kykim0](https://discourse.julialang.org/u/kykim0)\
**Replies:** 6\
**Last updated:** [December 1, 2021, 1:29am UTC](https://discourse.julialang.org/t/channel-hangs-with-8-threads-but-not-7-in-repl/72274 "2021-12-01T01:29:56Z")

</div>

Hello! I have the following code that uses Channel to manage Tasks created with Threads.@spawn. The idea is to be able to run a method (called simulate()) in parallel using multiple threads, wait for some timeout for th…

---

## [Join parts of a URL - joinpath?](https://discourse.julialang.org/t/join-parts-of-a-url-joinpath/12441)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 16\
**Last updated:** [December 1, 2021, 1:19am UTC](https://discourse.julialang.org/t/join-parts-of-a-url-joinpath/12441 "2021-12-01T01:19:29Z")

</div>

Hello, I’d like to build a url like “http://www.domain.com/get/data” from a Vector parts = \["http://www.domain.com", "get", "data"\] At first sight, on a \*nix system I will do julia\> joinpath(parts...) "http://www.dom…

---

## [Julia Bus Error after wake-up from sleep on linux](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 7\
**Last updated:** [December 1, 2021, 12:56am UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965 "2021-12-01T00:56:09Z")

</div>

I run Julia on a Linux machine, the machine has NFS home directories with kerberos security. I have no idea if that is relevant but I mention it because it’s non-standard. Pretty consistently after waking my computer up…

---

## [Gadfly, the native Julia statistical plotting library, adds Julia 1.0 support!](https://discourse.julialang.org/t/gadfly-the-native-julia-statistical-plotting-library-adds-julia-1-0-support/16585)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 10\
**Last updated:** [December 1, 2021, 12:49am UTC](https://discourse.julialang.org/t/gadfly-the-native-julia-statistical-plotting-library-adds-julia-1-0-support/16585 "2021-12-01T00:49:28Z")

</div>

We’re excited to announce that Gadfly.jl v1.0 :sparkles: is now officially released! The headlining feature is that Gadfly now supports Julia 1.0 :tada: You can find it via the Julia package manager. It’s been about a m…

---

## [Mapreduce for binary operations on SparseVector](https://discourse.julialang.org/t/mapreduce-for-binary-operations-on-sparsevector/72173)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 11:38pm UTC](https://discourse.julialang.org/t/mapreduce-for-binary-operations-on-sparsevector/72173 "2021-11-30T23:38:10Z")

</div>

SparseArrays has support for mapping a binary function over two SparseVectors. For example here. But, I don’t see similar support for mapreduce. The function linked above can be modified to reduce the output vector as …

---

## [Backslash operator "\\" works differently in REPL versus in function?](https://discourse.julialang.org/t/backslash-operator-works-differently-in-repl-versus-in-function/72318)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 8:57pm UTC](https://discourse.julialang.org/t/backslash-operator-works-differently-in-repl-versus-in-function/72318 "2021-11-30T20:57:12Z")

</div>

I have two Array{Float32,2} variables, X1 and X2. Both are 5 by 949. In the REPL, this works: Julia\> X2\\X1 949x949 Array{Float32,2}: \<lots of stuff\> which is what I expect and want. but doing the exact same operation…

---

## [Julia v1.7.0-rc3 is now available](https://discourse.julialang.org/t/julia-v1-7-0-rc3-is-now-available/71539)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 9\
**Last updated:** [November 30, 2021, 9:56pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-rc3-is-now-available/71539 "2021-11-30T21:56:14Z")

</div>

The Julia developers are pleased to announce that the third release candidate for Julia v1.7.0 is now available. You can download binaries at https://julialang.org/downloads in the “upcoming release” section for macOS (…

---

## [Get output of trig function as a multiple of pi?](https://discourse.julialang.org/t/get-output-of-trig-function-as-a-multiple-of-pi/50229)

<div class="topic-metadata">

**Author:** [@GuidoDipietro](https://discourse.julialang.org/u/GuidoDipietro)\
**Replies:** 12\
**Last updated:** [November 30, 2021, 8:31pm UTC](https://discourse.julialang.org/t/get-output-of-trig-function-as-a-multiple-of-pi/50229 "2021-11-30T20:31:21Z")

</div>

Hi there, I’ve been using the Julia REPL a lot as a calculator for my day to day life (as a student of engineering, this is really helpful, and definitely much more comfortable to use than a Casio calc for simple things,…

---

## [Embed interactive .html plot in documentation using Documenter.jl](https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890)

<div class="topic-metadata">

**Author:** [@cyrieln](https://discourse.julialang.org/u/cyrieln)\
**Replies:** 1\
**Last updated:** [November 30, 2021, 8:24pm UTC](https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890 "2021-11-30T20:24:04Z")

</div>

I was wondering if it is possible to embed an interactive .html plot as outputted by Plots plotlyjs() savefig to a documentation page as rendered by Documenter.jl. I tried copy pasting the raw HTML from the plot .html f…

---

## [Where do you use (elaborated) structs?](https://discourse.julialang.org/t/where-do-you-use-elaborated-structs/72303)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 0\
**Last updated:** [November 30, 2021, 3:04pm UTC](https://discourse.julialang.org/t/where-do-you-use-elaborated-structs/72303 "2021-11-30T15:04:41Z")

</div>

In his book Data-Oriented Programming - Unlearning Objects, the author Sharvit gives some guidelines for programming, which at first glance seem to be already baked in the Julia language like the separation of functions …

---

## [Error in solving simple SDP in Mosek+JuMP after updating related Julia packages (previously worked)](https://discourse.julialang.org/t/error-in-solving-simple-sdp-in-mosek-jump-after-updating-related-julia-packages-previously-worked/72308)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 7:14pm UTC](https://discourse.julialang.org/t/error-in-solving-simple-sdp-in-mosek-jump-after-updating-related-julia-packages-previously-worked/72308 "2021-11-30T19:14:30Z")

</div>

Dear All, I recently updated some of my Julia packages related to optimization as follows: \[4076af6c\] ↑ JuMP v0.21.10 ⇒ v0.22.1 \[b8f27783\] ↑ MathOptInterface v0.9.22 ⇒ v0.10.6 \[1ec41992\] ↑ MosekTools v0.9.4 ⇒ v0.10.0 \[…

[Previous page](https://discourse.julialang.org/latest.md?page=1190)

[Next page](https://discourse.julialang.org/latest.md?page=1192)
