# Latest

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

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

**Page:** 1690

---

## [Initializing array of struct with literals](https://discourse.julialang.org/t/initializing-array-of-struct-with-literals/43073)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 7\
**Last updated:** [July 15, 2020, 6:00am UTC](https://discourse.julialang.org/t/initializing-array-of-struct-with-literals/43073 "2020-07-15T06:00:09Z")

</div>

I have: using Luxor pl = \[Point(0,0), Point(1,1), Point(2,0), Point(3,0), Point(4,0)\] where Luxor.Point is defined as: struct Point x::Float64 y::Float64 end Is there a way to initialize pl without repeating th…

---

## [Interactive versus function wrapping](https://discourse.julialang.org/t/interactive-versus-function-wrapping/43036)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 5:33am UTC](https://discourse.julialang.org/t/interactive-versus-function-wrapping/43036 "2020-07-15T05:33:57Z")

</div>

Thanks to all of you, I am making substantial progress in my understanding of the Julia approach. Let us continue … My modus operandi is to develop code interactively in an Atom Window (not the REPL) and execute a line …

---

## [Neural network in Flux.jl using CUDA is slower](https://discourse.julialang.org/t/neural-network-in-flux-jl-using-cuda-is-slower/43100)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 2:47am UTC](https://discourse.julialang.org/t/neural-network-in-flux-jl-using-cuda-is-slower/43100 "2020-07-15T02:47:13Z")

</div>

I definied the same neural network on CPU and GPU but the GPU version is slower, and it’s not due to data transfer as I have already cued the data. Can anyone shed light on this? I am on Julia 1.5rc1 and Flux 0.11 and C…

---

## [Help with NearestNeighbours and array reduction](https://discourse.julialang.org/t/help-with-nearestneighbours-and-array-reduction/43094)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 1:13am UTC](https://discourse.julialang.org/t/help-with-nearestneighbours-and-array-reduction/43094 "2020-07-15T01:13:30Z")

</div>

Hi, I’m trying to find a list of points within range of given co-ordinates, using NearestNeighbours using NearestNeighbors coords = \[0. 1 0 1\] balltree = BallTree(coords) rsearch = 1.0 points = \[0.5, 0.5\] i…

---

## [Threads.nthreads() vs Activity Monitor number of threads (macOS)](https://discourse.julialang.org/t/threads-nthreads-vs-activity-monitor-number-of-threads-macos/43078)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 9:30pm UTC](https://discourse.julialang.org/t/threads-nthreads-vs-activity-monitor-number-of-threads-macos/43078 "2020-07-14T21:30:39Z")

</div>

I have Threads.nthreads() == 12, but the mac Activity Monitor shows 24 threads: Does anyone know why they’re different?

---

## [Fixing an "explicit requirement" problem](https://discourse.julialang.org/t/fixing-an-explicit-requirement-problem/43076)

<div class="topic-metadata">

**Author:** [@yha](https://discourse.julialang.org/u/yha)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 7:52pm UTC](https://discourse.julialang.org/t/fixing-an-explicit-requirement-problem/43076 "2020-07-14T19:52:27Z")

</div>

I have an odd “Unsatisfiable requirements” problem: (@v1.4) pkg\> resolve ERROR: Unsatisfiable requirements detected for package JuliaFormatter \[98e50ef6\]: JuliaFormatter \[98e50ef6\] log: ├─possible versions are: \[0.1.0…

---

## [Loading modules on remote processes from within a function](https://discourse.julialang.org/t/loading-modules-on-remote-processes-from-within-a-function/43074)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 7:50pm UTC](https://discourse.julialang.org/t/loading-modules-on-remote-processes-from-within-a-function/43074 "2020-07-14T19:50:25Z")

</div>

How can I load modules on remote processes from within a function in process 1. In other words, I’m looking to do something like this: addprocs(3) function load() @everywhere using Distributions end load()

---

## [Equivalent of MDAnalysis in Julia](https://discourse.julialang.org/t/equivalent-of-mdanalysis-in-julia/43070)

<div class="topic-metadata">

**Author:** [@Seanny123](https://discourse.julialang.org/u/Seanny123)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 5:55pm UTC](https://discourse.julialang.org/t/equivalent-of-mdanalysis-in-julia/43070 "2020-07-14T17:55:37Z")

</div>

Continuing with the theme of my previous question, Equivalent to Rosetta in Julia, I am still trying to understand the Computational Biology tool ecosystem. Currently, I’m trying to use MDAnalysis, which is a Python pac…

---

## [CuArrays deprecated?](https://discourse.julialang.org/t/cuarrays-deprecated/43064)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 5:42pm UTC](https://discourse.julialang.org/t/cuarrays-deprecated/43064 "2020-07-14T17:42:51Z")

</div>

Hi, I’ve just realized that CuArrays seems to be deprecated in favour of CUDA.jl. Now I tried add CUDA and failed, but did work add CUDA.jl why the .jl? Anyway it is not critical… Still I have lots of code lines wr…

---

## [In case of multiple legends, how to only show one legend?](https://discourse.julialang.org/t/in-case-of-multiple-legends-how-to-only-show-one-legend/43058)

<div class="topic-metadata">

**Author:** [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 5:32pm UTC](https://discourse.julialang.org/t/in-case-of-multiple-legends-how-to-only-show-one-legend/43058 "2020-07-14T17:32:48Z")

</div>

When I group for one variable and fill for another variable, legends for both are shown. It would be easiest if one could simply write legend=:colname to select the variable for which a legend should be shown. How can I…

---

## [Trouble plotting grouped data (VegaLite.jl)](https://discourse.julialang.org/t/trouble-plotting-grouped-data-vegalite-jl/42874)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 5:14pm UTC](https://discourse.julialang.org/t/trouble-plotting-grouped-data-vegalite-jl/42874 "2020-07-14T17:14:04Z")

</div>

I’m having a lot of trouble plotting this df the way I would like. What I hope to produce is seven plots (faceted by company), each plot having gear on the x axis and Overall mean on the y axis. Each company does not n…

---

## [Looking for a blog article about DifferentialEquations.jl with custom types](https://discourse.julialang.org/t/looking-for-a-blog-article-about-differentialequations-jl-with-custom-types/43025)

<div class="topic-metadata">

**Author:** [@tomohiro\_soejima](https://discourse.julialang.org/u/tomohiro_soejima)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 5:09pm UTC](https://discourse.julialang.org/t/looking-for-a-blog-article-about-differentialequations-jl-with-custom-types/43025 "2020-07-14T17:09:48Z")

</div>

Hi, This is a rather vague question, and I apologize in advance if this is considered offtopic. I remember reading this great blog article by someone (quite possibly by Dr. Chris Rackauckas) about using custom types wit…

---

## [\[Optimization\] How would you speed the RNN Flux / Zygote code up?](https://discourse.julialang.org/t/optimization-how-would-you-speed-the-rnn-flux-zygote-code-up/43037)

<div class="topic-metadata">

**Author:** [@Sixzero](https://discourse.julialang.org/u/Sixzero)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 4:44pm UTC](https://discourse.julialang.org/t/optimization-how-would-you-speed-the-rnn-flux-zygote-code-up/43037 "2020-07-14T16:44:54Z")

</div>

Hey all, I worked with tensorflow1.x/2.x/pytorch/jax for years and now I found Julia language where I find there is a lot more opportunity. I would like to ask everyone so we can learn from each other, how would you op…

---

## [Julia stops during training Flux](https://discourse.julialang.org/t/julia-stops-during-training-flux/43052)

<div class="topic-metadata">

**Author:** [@MousaGhannam](https://discourse.julialang.org/u/MousaGhannam)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 3:58pm UTC](https://discourse.julialang.org/t/julia-stops-during-training-flux/43052 "2020-07-14T15:58:26Z")

</div>

Hi all, I am currently trying to build a recurrent neural network using Flux, and during training Julia stops mid-way without throwing an error. I am using JuliaPro with the atom ide. julia\> versioninfo() Julia Version…

---

## [Reordering for memory contiguity/memory access](https://discourse.julialang.org/t/reordering-for-memory-contiguity-memory-access/43040)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [July 14, 2020, 3:54pm UTC](https://discourse.julialang.org/t/reordering-for-memory-contiguity-memory-access/43040 "2020-07-14T15:54:39Z")

</div>

I am simulating a “mass” that obeys a law of motion. The algorithm I use to discretize to a finite grid has the property that each cell is distributed to K others after being multiplied by something else. Formally, each x…

---

## [Problem with \`\`Unsatisfiable requirements detected for package"](https://discourse.julialang.org/t/problem-with-unsatisfiable-requirements-detected-for-package/42992)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 3\
**Last updated:** [July 14, 2020, 3:38pm UTC](https://discourse.julialang.org/t/problem-with-unsatisfiable-requirements-detected-for-package/42992 "2020-07-14T15:38:55Z")

</div>

I am using Julia version 1.1.0 on a Windows computer. When I try to install the Permutations.jl package (listed here), I get the following error. What should I do ? I cannot even interpret the error message. julia\> Pkg.…

---

## [Chief Software Architect position available at MIT](https://discourse.julialang.org/t/chief-software-architect-position-available-at-mit/43051)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 2:47pm UTC](https://discourse.julialang.org/t/chief-software-architect-position-available-at-mit/43051 "2020-07-14T14:47:21Z")

</div>

Research Scientist/Chief Software Architect Position Massachusetts Institute of Technology (MIT) Cambridge, MA USA MIT’s new PSAAP Simulation Center (CESMIX: Center for Exascale Simulation of Materials in Extreme Env…

---

## [\[ANN\] KernelMachines.jl](https://discourse.julialang.org/t/ann-kernelmachines-jl/43043)

<div class="topic-metadata">

**Author:** [@piever](https://discourse.julialang.org/u/piever)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 1:40pm UTC](https://discourse.julialang.org/t/ann-kernelmachines-jl/43043 "2020-07-14T13:40:47Z")

</div>

We are happy to announce the release of KernelMachines.jl. Framework Kernel machines are a special case of a more general framework, parametric machines—see this article for technical details on the framework. The key …

---

## [\[ANN\] GeneticCrosses.jl](https://discourse.julialang.org/t/ann-geneticcrosses-jl/43041)

<div class="topic-metadata">

**Author:** [@pdimens](https://discourse.julialang.org/u/pdimens)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 12:50pm UTC](https://discourse.julialang.org/t/ann-geneticcrosses-jl/43041 "2020-07-14T12:50:36Z")

</div>

Hello all, This past weekend I wrote a tiny offshoot to PopGen.jl that simulates the offspring resulting from breeding two individuals and it’s called GeneticCrosses.jl :sunglasses:. https://github.com/pdimens/GeneticCr…

---

## [\[ANN\] Plugins.jl: Zero cost plugins](https://discourse.julialang.org/t/ann-plugins-jl-zero-cost-plugins/42976)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 5\
**Last updated:** [July 14, 2020, 12:37pm UTC](https://discourse.julialang.org/t/ann-plugins-jl-zero-cost-plugins/42976 "2020-07-14T12:37:15Z")

</div>

Hi, I am thrilled to announce the result of my first contact with staged programming: Plugins.jl Motivation Let’s say you are writing a lib which performs some work in a loop quickly (up to several million times per s…

---

## [Add CUDA adds v0.1](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 10\
**Last updated:** [July 14, 2020, 11:11am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032 "2020-07-14T11:11:10Z")

</div>

I just moved from the deprecated CuArrays package to CUDA. I used add CUDA and status tells me v0.1 is installed. The most recent release is v1.1.0. Am I doing something wrong ? Maybe I have to uninstall stuff before ?

---

## [Fast sum of two sparse matrices and the Hadamard product of sparse and dense matrices](https://discourse.julialang.org/t/fast-sum-of-two-sparse-matrices-and-the-hadamard-product-of-sparse-and-dense-matrices/43029)

<div class="topic-metadata">

**Author:** [@nhavt](https://discourse.julialang.org/u/nhavt)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 10:02am UTC](https://discourse.julialang.org/t/fast-sum-of-two-sparse-matrices-and-the-hadamard-product-of-sparse-and-dense-matrices/43029 "2020-07-14T10:02:22Z")

</div>

Hello all, I would like to obtain the sum of two sparse matrices (see question 1) and the Hadamard product of a sparse matrix and a dense matrix (see question 2). Below is my current implementation. However, it is quite…

---

## [Github annouced codespace. does it mean Atom is now abandoned?](https://discourse.julialang.org/t/github-annouced-codespace-does-it-mean-atom-is-now-abandoned/38923)

<div class="topic-metadata">

**Author:** [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Replies:** 61\
**Last updated:** [July 14, 2020, 8:58am UTC](https://discourse.julialang.org/t/github-annouced-codespace-does-it-mean-atom-is-now-abandoned/38923 "2020-07-14T08:58:48Z")

</div>

Github announced new IDE GitHub Codespaces · GitHub and it’s name suggests Github now working with VSCode. Since developing 2 free code editor in 1 company is bad idea, And before codespace, co development of VSCode and…

---

## [Sifting in DataFramesMeta (or DataFrames)](https://discourse.julialang.org/t/sifting-in-dataframesmeta-or-dataframes/43022)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 8:04am UTC](https://discourse.julialang.org/t/sifting-in-dataframesmeta-or-dataframes/43022 "2020-07-14T08:04:47Z")

</div>

I have a DataFrame (df) that has a column of string and a column of floats as the first two columns. I am trying sift df by specifying particular entries in the first and second column. I was hoping that the following wo…

---

## [Flux.jl issues](https://discourse.julialang.org/t/flux-jl-issues/43012)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 7:41am UTC](https://discourse.julialang.org/t/flux-jl-issues/43012 "2020-07-14T07:41:07Z")

</div>

I am a bit perplexed as to the issue here. I am trying to create a model using Flux critic\_model1 = Chain( boardmove -\> (reshape(boardmove\[1\], 4, 4, 1, 1), boardmove\[2\]), boardmove -\> (Conv((2,2), 1=\>64, relu)(…

---

## [VarArg Dispatch Issue / Possible Bug](https://discourse.julialang.org/t/vararg-dispatch-issue-possible-bug/42993)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 6:07am UTC](https://discourse.julialang.org/t/vararg-dispatch-issue-possible-bug/42993 "2020-07-14T06:07:58Z")

</div>

julia\> typ = Vararg{Any,N} where N Vararg{Any,N} where N julia\> f(x::UnionAll) = :A f (generic function with 1 method) julia\> f(::Type{T}) where T = :B f (generic function with 2 methods) julia\> f(other) = :C f (gener…

---

## [Computing function Jacobian from Zygote.pullback](https://discourse.julialang.org/t/computing-function-jacobian-from-zygote-pullback/42979)

<div class="topic-metadata">

**Author:** [@SebastianCallh](https://discourse.julialang.org/u/SebastianCallh)\
**Replies:** 6\
**Last updated:** [July 14, 2020, 5:56am UTC](https://discourse.julialang.org/t/computing-function-jacobian-from-zygote-pullback/42979 "2020-07-14T05:56:03Z")

</div>

Zygote documentation on custom adjoints states dx/dy (in the notation from the docs) is the Jacobian when x, y are vectors. I am struggling in relating this to an implementation. For a function f : R^N -\> R^M modeled wi…

---

## [High view description of the folders in .julia?](https://discourse.julialang.org/t/high-view-description-of-the-folders-in-julia/20506)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 8\
**Last updated:** [July 14, 2020, 4:39am UTC](https://discourse.julialang.org/t/high-view-description-of-the-folders-in-julia/20506 "2020-07-14T04:39:06Z")

</div>

Hello, where can I find a discussion, possibly user-centered, about the folders inside .jullia ? I have the following folders: clones compiled conda dev environments logs packages prefs registries What’s the role of …

---

## [How to understand this "typemaker" function?](https://discourse.julialang.org/t/how-to-understand-this-typemaker-function/43014)

<div class="topic-metadata">

**Author:** [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 3:11am UTC](https://discourse.julialang.org/t/how-to-understand-this-typemaker-function/43014 "2020-07-14T03:11:47Z")

</div>

I read a post on towardsdatascience: https://towardsdatascience.com/3-smooth-syntactical-tips-for-julia-65ddf577f071 It used something that looks to me like an anonymous type, which I don’t know exists: mutable struct…

---

## [An informal comparision of Julia Packages vs Matlab Toolboxes](https://discourse.julialang.org/t/an-informal-comparision-of-julia-packages-vs-matlab-toolboxes/42939)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [July 14, 2020, 12:31am UTC](https://discourse.julialang.org/t/an-informal-comparision-of-julia-packages-vs-matlab-toolboxes/42939 "2020-07-14T00:31:07Z")

</div>

Just a thought. I went to the “fileexchange” section of MatlabCentral to have a look at user-provided “toolboxes”, just out of curiosity. Maybe I just discovered hot water, but the comparison with Julia packages is as…

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

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