# Latest

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

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

**Page:** 906

---

## [When to use broadcasting with . vs map](https://discourse.julialang.org/t/when-to-use-broadcasting-with-vs-map/58078)

<div class="topic-metadata">

**Author:** [@SL6Trip](https://discourse.julialang.org/u/SL6Trip)\
**Replies:** 23\
**Last updated:** [October 4, 2022, 2:49am UTC](https://discourse.julialang.org/t/when-to-use-broadcasting-with-vs-map/58078 "2022-10-04T02:49:56Z")

</div>

If I want to apply a function across say a Vector in julia, there are two ways I could do it: map(f, seq) f.(seq) Is any way “better” than the other? In fact, is there any difference in the implementation between usin…

---

## [Question about Javis.render](https://discourse.julialang.org/t/question-about-javis-render/87710)

<div class="topic-metadata">

**Author:** [@radio](https://discourse.julialang.org/u/radio)\
**Replies:** 6\
**Last updated:** [October 4, 2022, 2:35am UTC](https://discourse.julialang.org/t/question-about-javis-render/87710 "2022-10-04T02:35:32Z")

</div>

Trying to liveview on Linux an animation I made with Javis, I keep getting this error, which I couldn’t find a solution or reference to anywhere, how can I solve it?

---

## [Mysterious allocation in function returning Union type](https://discourse.julialang.org/t/mysterious-allocation-in-function-returning-union-type/88189)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 3\
**Last updated:** [October 4, 2022, 1:48am UTC](https://discourse.julialang.org/t/mysterious-allocation-in-function-returning-union-type/88189 "2022-10-04T01:48:40Z")

</div>

I’m looking at functions with return type Union{T,Nothing} for some concrete type T. Most of the time they don’t allocate. But where does the allocation in f(a1, nothing) in the code below come from? Is there a way to av…

---

## [MutableBinaryHeap suddenly stopped working?](https://discourse.julialang.org/t/mutablebinaryheap-suddenly-stopped-working/88197)

<div class="topic-metadata">

**Author:** [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Replies:** 0\
**Last updated:** [October 4, 2022, 12:33am UTC](https://discourse.julialang.org/t/mutablebinaryheap-suddenly-stopped-working/88197 "2022-10-04T00:33:29Z")

</div>

Hello, I have a function that is using a MutableBinaryHeap. The code was running fine, and suddenly it stopped working. It is giving the following error: ERROR: MethodError: no method matching MutableBinaryHeap(::typeof…

---

## [Very best way to concatenate array of arrays, while applying a function](https://discourse.julialang.org/t/very-best-way-to-concatenate-array-of-arrays-while-applying-a-function/88151)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 10\
**Last updated:** [October 4, 2022, 12:20am UTC](https://discourse.julialang.org/t/very-best-way-to-concatenate-array-of-arrays-while-applying-a-function/88151 "2022-10-04T00:20:58Z")

</div>

Continuing on this nice dicussion about reduce would there be a way to use the same syntax while applying another function, if at al relevant. Basically, I have some calls that look like reduce(vcat, fun.(array\_of\_array…

---

## [Are Internships at Julia Computing coming back?](https://discourse.julialang.org/t/are-internships-at-julia-computing-coming-back/87849)

<div class="topic-metadata">

**Author:** [@OmarElrefaei](https://discourse.julialang.org/u/OmarElrefaei)\
**Replies:** 1\
**Last updated:** [October 4, 2022, 12:10am UTC](https://discourse.julialang.org/t/are-internships-at-julia-computing-coming-back/87849 "2022-10-04T00:10:29Z")

</div>

For quite a while there was around 5 internships posted on the Julia computing website. But now that I have my scheduled 8 months internship period coming up, these postings are nowhere to be found. Is there any plan to…

---

## [\[ANN\] MPI.jl 0.20](https://discourse.julialang.org/t/ann-mpi-jl-0-20/88195)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 0\
**Last updated:** [October 3, 2022, 10:37pm UTC](https://discourse.julialang.org/t/ann-mpi-jl-0-20/88195 "2022-10-03T22:37:33Z")

</div>

I’m happy to announce the latest release of MPI.jl, version 0.20. It is our hope that this will serve as a release candidate for future version 1.0. The biggest change by far in this release is the configuration procedu…

---

## [Problem converting serial code to parallel code with FLoops](https://discourse.julialang.org/t/problem-converting-serial-code-to-parallel-code-with-floops/87610)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 9\
**Last updated:** [October 3, 2022, 9:52pm UTC](https://discourse.julialang.org/t/problem-converting-serial-code-to-parallel-code-with-floops/87610 "2022-10-03T21:52:55Z")

</div>

I have the following code which loops over some indices and adds values to two separate parts of an array. using FLoops, Random function update\_u!(du, u, k, q, j) v = \[k, (k + 1) % length(u) + 1, (k + 7) % length(u…

---

## [GPU Kernel Compilation Error -- Error in sharing functions in memory?](https://discourse.julialang.org/t/gpu-kernel-compilation-error-error-in-sharing-functions-in-memory/88046)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 9:17pm UTC](https://discourse.julialang.org/t/gpu-kernel-compilation-error-error-in-sharing-functions-in-memory/88046 "2022-10-03T21:17:43Z")

</div>

I’m struggling to troubleshoot my code – I’m receiving a GPU kernel compilation error. Is there some problem with how my functions are defined? (Note how the errors seem to appear on my “current equations” – seen in the …

---

## [A problem about performance](https://discourse.julialang.org/t/a-problem-about-performance/88182)

<div class="topic-metadata">

**Author:** [@XuJingye2022](https://discourse.julialang.org/u/XuJingye2022)\
**Replies:** 30\
**Last updated:** [October 3, 2022, 8:40pm UTC](https://discourse.julialang.org/t/a-problem-about-performance/88182 "2022-10-03T20:40:15Z")

</div>

My version is 1.6.7, # global variable v = rand(10000) function fun1() s = 0.0 for i in v::Vector{Float64} s += i end end function fun2(x::Vector{Float64}) s = 0.0 for i in x s += i…

---

## [Updating Julia in VS Code](https://discourse.julialang.org/t/updating-julia-in-vs-code/88186)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 8:08pm UTC](https://discourse.julialang.org/t/updating-julia-in-vs-code/88186 "2022-10-03T20:08:34Z")

</div>

The Download Julia page says the latest current release is v1.8.2, and the description begins by saying “Almost everyone should be downloading and using the latest stable release of Julia.” Sounds good. How do I upgrade…

---

## [Fastest way to calculate a rasterised Voronoi diagram without a GPU](https://discourse.julialang.org/t/fastest-way-to-calculate-a-rasterised-voronoi-diagram-without-a-gpu/77016)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 17\
**Last updated:** [October 3, 2022, 8:05pm UTC](https://discourse.julialang.org/t/fastest-way-to-calculate-a-rasterised-voronoi-diagram-without-a-gpu/77016 "2022-10-03T20:05:39Z")

</div>

Context: Hi everyone, I’m using Turing.jl with NUTS, to infer the parameters a chaotic ODE system. Due to the chaos, doing inference on the positions of the particles as the time window of the inference gets longer beco…

---

## [Why Plots.spy directive does not show \`one values\`?](https://discourse.julialang.org/t/why-plots-spy-directive-does-not-show-one-values/88168)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 7:35pm UTC](https://discourse.julialang.org/t/why-plots-spy-directive-does-not-show-one-values/88168 "2022-10-03T19:35:22Z")

</div>

I am plotting the sparsity of matrix A by using Plots.spy, but the plot is not showing the ones values, e.g., A\[13,4\], A\[14,5\],A\[15,6\]. Can you guide me for the reason? Is there a way also to show the non-zero elements…

---

## [How do you get a Matrix back from a file?](https://discourse.julialang.org/t/how-do-you-get-a-matrix-back-from-a-file/88154)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 5\
**Last updated:** [October 3, 2022, 7:27pm UTC](https://discourse.julialang.org/t/how-do-you-get-a-matrix-back-from-a-file/88154 "2022-10-03T19:27:24Z")

</div>

When you pass a Matrix to write like so A = rand(UInt, 20,20) write("mat.bin", A) It works just fine. No errors. But how do you get the matrix back out? The docs show the string example which leads one to try Matri…

---

## [MethodError: no method matching Float64(::Num) ERROR](https://discourse.julialang.org/t/methoderror-no-method-matching-float64-num-error/80888)

<div class="topic-metadata">

**Author:** [@Shantanu\_Singh](https://discourse.julialang.org/u/Shantanu_Singh)\
**Replies:** 16\
**Last updated:** [October 3, 2022, 1:05pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-float64-num-error/80888 "2022-10-03T13:05:01Z")

</div>

Hello, I am new to Julia. I have used MATLAB earlier. I am trying to solve a system of ODE using BoundaryValueDiffEq with the help of simple pendulum example in Julia docs and I am getting an error. Please help me resolv…

---

## [Error with bunchkaufman factorization in Turing.jl](https://discourse.julialang.org/t/error-with-bunchkaufman-factorization-in-turing-jl/88174)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [October 3, 2022, 5:58pm UTC](https://discourse.julialang.org/t/error-with-bunchkaufman-factorization-in-turing-jl/88174 "2022-10-03T17:58:21Z")

</div>

I have a Turing.jl model that makes use of the LinearAlgebra.bunchkaufman factorization routine. Whenever I try to sample from the posterior, I get the following error message saying that there is no method available wit…

---

## [How to quickly identify nearby stations?](https://discourse.julialang.org/t/how-to-quickly-identify-nearby-stations/88124)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 5\
**Last updated:** [October 3, 2022, 2:52pm UTC](https://discourse.julialang.org/t/how-to-quickly-identify-nearby-stations/88124 "2022-10-03T14:52:16Z")

</div>

I have a total of 1 million stations numbered from 1 to 1 million. For each of them, how do I quickly identify the rest of the stations (Station numbers) that are within 2 km of distance? Any tips would be greatly appre…

---

## [How to retrive input values from Flux Dense layer](https://discourse.julialang.org/t/how-to-retrive-input-values-from-flux-dense-layer/88142)

<div class="topic-metadata">

**Author:** [@Molox](https://discourse.julialang.org/u/Molox)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 5:34pm UTC](https://discourse.julialang.org/t/how-to-retrive-input-values-from-flux-dense-layer/88142 "2022-10-03T17:34:40Z")

</div>

Hi, I was loading many Flux models (bson file) and had no idea about the layer information. I am able to find the activation function by calling the field “σ”. I searched around but just could not find the field name t…

---

## [How does @orderby work with multiple columns?](https://discourse.julialang.org/t/how-does-orderby-work-with-multiple-columns/88155)

<div class="topic-metadata">

**Author:** [@huguesmp](https://discourse.julialang.org/u/huguesmp)\
**Replies:** 3\
**Last updated:** [October 3, 2022, 5:08pm UTC](https://discourse.julialang.org/t/how-does-orderby-work-with-multiple-columns/88155 "2022-10-03T17:08:26Z")

</div>

Hello everyone, I’m a new Julia user coming from an R/dplyr background. I’m going through the “Tutorial for coming from dplyr” on the DataFramesMeta.jl documentation site, specifically the @orderby section using Chain.…

---

## [JuliaCall: is it possible to pass objects from Python to Julia Main?](https://discourse.julialang.org/t/juliacall-is-it-possible-to-pass-objects-from-python-to-julia-main/88156)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 4:11pm UTC](https://discourse.julialang.org/t/juliacall-is-it-possible-to-pass-objects-from-python-to-julia-main/88156 "2022-10-03T16:11:52Z")

</div>

Using JuliaCall, is it possible to pass objects from Python to Julia so that I can then use them in evaluated Julia code ? E.g.: \>\>\> from juliacall import Main as jl \>\>\> xpy = \[1,2,3\] \>\>\> jl.xj = xpy # AttributeError: …

---

## [How to list parametric type instances(?](https://discourse.julialang.org/t/how-to-list-parametric-type-instances/88165)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 0\
**Last updated:** [October 3, 2022, 4:11pm UTC](https://discourse.julialang.org/t/how-to-list-parametric-type-instances/88165 "2022-10-03T16:11:15Z")

</div>

I have a bit of code that can result in the recursive combination of types. Where the below mytype can be type with A & B being primitive types as well as mytype. Is there anyway to list out all the different variations…

---

## [How long should I wait to hear something on a pull request?](https://discourse.julialang.org/t/how-long-should-i-wait-to-hear-something-on-a-pull-request/85125)

<div class="topic-metadata">

**Author:** [@natemcintosh](https://discourse.julialang.org/u/natemcintosh)\
**Replies:** 3\
**Last updated:** [October 3, 2022, 3:54pm UTC](https://discourse.julialang.org/t/how-long-should-i-wait-to-hear-something-on-a-pull-request/85125 "2022-10-03T15:54:10Z")

</div>

I recently created my first pull request for the Julia ecosystem, and I’m very excited about it. It doesn’t seem like there has been much activity on this package recently. How long should I be prepared to wait to hear s…

---

## [Permissions denied to github actions bot while building documentation](https://discourse.julialang.org/t/permissions-denied-to-github-actions-bot-while-building-documentation/88158)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 3:10pm UTC](https://discourse.julialang.org/t/permissions-denied-to-github-actions-bot-while-building-documentation/88158 "2022-10-03T15:10:04Z")

</div>

The documentation for ApproxFun is not being built, and the build process fails with an error message remote: Permission to JuliaApproximation/ApproxFun.jl.git denied to github-actions\[bot\]. fatal: unable to access 'htt…

---

## [Refer to variables by a different name](https://discourse.julialang.org/t/refer-to-variables-by-a-different-name/88162)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 2:33pm UTC](https://discourse.julialang.org/t/refer-to-variables-by-a-different-name/88162 "2022-10-03T14:33:40Z")

</div>

I pass a struct (containing pre-allocated arrays for intermediate calculations) to many different functions. My struct looks something like this struct Workspace fN\_1::MVector{N, Float64} fN\_2::MVector{N, Float6…

---

## [Julia 1.8.1 pkg.update() crashes OS / software during precompilation phase](https://discourse.julialang.org/t/julia-1-8-1-pkg-update-crashes-os-software-during-precompilation-phase/87979)

<div class="topic-metadata">

**Author:** [@Asdow](https://discourse.julialang.org/u/Asdow)\
**Replies:** 17\
**Last updated:** [October 3, 2022, 2:00pm UTC](https://discourse.julialang.org/t/julia-1-8-1-pkg-update-crashes-os-software-during-precompilation-phase/87979 "2022-10-03T14:00:19Z")

</div>

So ever since julia 1.8-rc4 I’ve had very weird issues when trying to add or update packages via the package manager. It started off with failing precompilation via LoadError when trying to add a package and has now prog…

---

## [\[ANN\] BetaML v0.8: Model defininition, hyperparameters tuning and fitting in 2 lines](https://discourse.julialang.org/t/ann-betaml-v0-8-model-defininition-hyperparameters-tuning-and-fitting-in-2-lines/88119)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [October 3, 2022, 1:56pm UTC](https://discourse.julialang.org/t/ann-betaml-v0-8-model-defininition-hyperparameters-tuning-and-fitting-in-2-lines/88119 "2022-10-03T13:56:05Z")

</div>

Dear all, I’m pleased to announce BetaML v0.8. The Beta Machine Learning Toolkit is a package including many algorithms and utilities to implement machine learning workflows in Julia, with a detailed tutorial on its usa…

---

## [Inferring marginal distributions on graphs](https://discourse.julialang.org/t/inferring-marginal-distributions-on-graphs/88159)

<div class="topic-metadata">

**Author:** [@hbooth](https://discourse.julialang.org/u/hbooth)\
**Replies:** 0\
**Last updated:** [October 3, 2022, 1:36pm UTC](https://discourse.julialang.org/t/inferring-marginal-distributions-on-graphs/88159 "2022-10-03T13:36:59Z")

</div>

Hi all, I am looking for some guidance on how to approach a computational problem I have, hopefully using some of the amazing julia packages! This is early stages, and more conceptual at this point. I want to get some h…

---

## [Sampling an index from a boolean array](https://discourse.julialang.org/t/sampling-an-index-from-a-boolean-array/87931)

<div class="topic-metadata">

**Author:** [@yuvalw](https://discourse.julialang.org/u/yuvalw)\
**Replies:** 7\
**Last updated:** [October 3, 2022, 11:15am UTC](https://discourse.julialang.org/t/sampling-an-index-from-a-boolean-array/87931 "2022-10-03T11:15:24Z")

</div>

Hello, I often need to sample an index from a boolean array. For example: julia\> A = rand(Bool,3,3) 3×3 Matrix{Bool}: 1 1 1 1 0 0 1 0 0 julia\> idx = rand(findall(A)) CartesianIndex(2, 1) Can I somehow sample …

---

## [List of Games in Julia](https://discourse.julialang.org/t/list-of-games-in-julia/88131)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 10:49am UTC](https://discourse.julialang.org/t/list-of-games-in-julia/88131 "2022-10-03T10:49:47Z")

</div>

Some games have already been made with Julia, I like to know if there’s a list somewhere or if there’s a good place to make a list. Since I got no response I made Introducing Julia/Games - Wikibooks, open books for an op…

---

## [Coupling Sliders in GLMakie](https://discourse.julialang.org/t/coupling-sliders-in-glmakie/88130)

<div class="topic-metadata">

**Author:** [@lassepe](https://discourse.julialang.org/u/lassepe)\
**Replies:** 4\
**Last updated:** [October 3, 2022, 9:31am UTC](https://discourse.julialang.org/t/coupling-sliders-in-glmakie/88130 "2022-10-03T09:31:34Z")

</div>

I would like to be able to “couple” two sliders of a Makie.SliderGrid so that their value always adds to 1. That is, if I move the first slider I would like to Makie.set\_close\_to!(slider2, 1-slider1.value) and vice versa…

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

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