# Latest

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

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

**Page:** 1763

---

## [Missing references when working on include-files (e.g. in Emacs via julia-mode)](https://discourse.julialang.org/t/missing-references-when-working-on-include-files-e-g-in-emacs-via-julia-mode/37935)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 4:29am UTC](https://discourse.julialang.org/t/missing-references-when-working-on-include-files-e-g-in-emacs-via-julia-mode/37935 "2020-04-29T04:29:49Z")

</div>

I finally switched to Emacs after being a hardcore Vim user for more than 23 years… and yes, I admit, Emacs is a better software (but I am still evil). I am using the Doom Emacs configuration and quite happy with the Jul…

---

## [Speeding up julia on aarch64](https://discourse.julialang.org/t/speeding-up-julia-on-aarch64/38209)

<div class="topic-metadata">

**Author:** [@ianshmean](https://discourse.julialang.org/u/ianshmean)\
**Replies:** 15\
**Last updated:** [April 29, 2020, 4:23am UTC](https://discourse.julialang.org/t/speeding-up-julia-on-aarch64/38209 "2020-04-29T04:23:46Z")

</div>

I’m looking to speed up julia on aarch64, and thought I’d write up attempts so far to see if anyone had any tips? Thanks @staticfloat for the pointers already It seems that julia loading runs slower than it should on a…

---

## [Strange memory allocation with DistributedArrays](https://discourse.julialang.org/t/strange-memory-allocation-with-distributedarrays/38325)

<div class="topic-metadata">

**Author:** [@mipiro](https://discourse.julialang.org/u/mipiro)\
**Replies:** 11\
**Last updated:** [April 29, 2020, 3:51am UTC](https://discourse.julialang.org/t/strange-memory-allocation-with-distributedarrays/38325 "2020-04-29T03:51:37Z")

</div>

Hello! I noticed a strange thing while I was playing with distributed arrays. Here is an example of the code: using Distributed; addprocs(2) @everywhere using DistributedArrays function create\_big\_darray(n) darr =…

---

## [How to remove irrelevant array entries?](https://discourse.julialang.org/t/how-to-remove-irrelevant-array-entries/38245)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 12\
**Last updated:** [April 29, 2020, 3:17am UTC](https://discourse.julialang.org/t/how-to-remove-irrelevant-array-entries/38245 "2020-04-29T03:17:15Z")

</div>

Hello! In this case I have: idc 2×9 Array{Int64,2}: 1 2 0 1 1 2 0 0 2 1 1 1 2 0 2 2 0 0 I only care about columns, in which 0 does not appear. Therefore, coming from Matlab, I would like to do somet…

---

## [Could/should Pkg.build be triggered more often](https://discourse.julialang.org/t/could-should-pkg-build-be-triggered-more-often/37765)

<div class="topic-metadata">

**Author:** [@fingolfin](https://discourse.julialang.org/u/fingolfin)\
**Replies:** 11\
**Last updated:** [April 29, 2020, 12:11am UTC](https://discourse.julialang.org/t/could-should-pkg-build-be-triggered-more-often/37765 "2020-04-29T00:11:42Z")

</div>

Right now, as I understand it, Pkg.build is basically only called once when a package is installed; and again (?) whenever it is updated. That’s of course sufficient in basic use cases. But I am dealing with multiple mo…

---

## [How to create an array consists of indices of elements in one array that exists in the other array?](https://discourse.julialang.org/t/how-to-create-an-array-consists-of-indices-of-elements-in-one-array-that-exists-in-the-other-array/38237)

<div class="topic-metadata">

**Author:** [@QUANG\_VU\_NGUY\_N\_PH\_M](https://discourse.julialang.org/u/QUANG_VU_NGUY_N_PH_M)\
**Replies:** 4\
**Last updated:** [April 28, 2020, 11:21pm UTC](https://discourse.julialang.org/t/how-to-create-an-array-consists-of-indices-of-elements-in-one-array-that-exists-in-the-other-array/38237 "2020-04-28T23:21:45Z")

</div>

I firstly declared 2 arrays: coord1 = \[\[0.0, 0.0\], \[1.0, 0.0\], \[0.0, 1.0\], \[1.0, 1.0\], \[0.0, 2.0\], \[1.0, 2.0\]\] coord2 = \[\[1.0, 0.0\], \[2.0, 0.0\], …

---

## [Custom width intergers in Clang/LLVM](https://discourse.julialang.org/t/custom-width-intergers-in-clang-llvm/38141)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 9:33pm UTC](https://discourse.julialang.org/t/custom-width-intergers-in-clang-llvm/38141 "2020-04-28T21:33:26Z")

</div>

Specialised types for different problems? Now there is a thought!

---

## [On iterating through columns of a data frame and check if they contain String values](https://discourse.julialang.org/t/on-iterating-through-columns-of-a-data-frame-and-check-if-they-contain-string-values/38093)

<div class="topic-metadata">

**Author:** [@abianco](https://discourse.julialang.org/u/abianco)\
**Replies:** 4\
**Last updated:** [April 28, 2020, 8:49pm UTC](https://discourse.julialang.org/t/on-iterating-through-columns-of-a-data-frame-and-check-if-they-contain-string-values/38093 "2020-04-28T20:49:54Z")

</div>

I am still new to Julia and I am a bit confused about how loop through the columns of a data frame and check their type. I have looked into the documentation and couldn’t find any clarification yet, so I am posting this …

---

## [Combining pmap with EnsembleProblem](https://discourse.julialang.org/t/combining-pmap-with-ensembleproblem/38383)

<div class="topic-metadata">

**Author:** [@MFairley](https://discourse.julialang.org/u/MFairley)\
**Replies:** 5\
**Last updated:** [April 28, 2020, 8:40pm UTC](https://discourse.julialang.org/t/combining-pmap-with-ensembleproblem/38383 "2020-04-28T20:40:59Z")

</div>

I have an EnsembleProblem defined that calculates outputs for a range of different start times. I need to repeat the the whole EnsembleProblem many times for different parameter values and save the output of each Ensembl…

---

## [How to find min/max by column from a matrix with missing values?](https://discourse.julialang.org/t/how-to-find-min-max-by-column-from-a-matrix-with-missing-values/38372)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [April 28, 2020, 8:29pm UTC](https://discourse.julialang.org/t/how-to-find-min-max-by-column-from-a-matrix-with-missing-values/38372 "2020-04-28T20:29:54Z")

</div>

This doesn’t (obviously) work: X = \[1 10.5;1.5 missing; 1.8 8; 1.7 15; 3.2 40; 3.6 32; 3.3 38; missing -2.3; 5.2 -2.4\] minX = minimum(X,dims=1) maxX = maximum(X,dims=1) But the problem is that skipmissing() doesn’t kee…

---

## [\[ANN\] AdaptiveSampling.jl](https://discourse.julialang.org/t/ann-adaptivesampling-jl/38153)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 5\
**Last updated:** [April 28, 2020, 8:22pm UTC](https://discourse.julialang.org/t/ann-adaptivesampling-jl/38153 "2020-04-28T20:22:10Z")

</div>

I have been using this code to perform lossy compression on oversampled time domain waveforms and decided to transform it into a package and make it available. (not registered yet) The main idea behind is approximatin…

---

## [Using macros to implement function decorators for logging / measuring time](https://discourse.julialang.org/t/using-macros-to-implement-function-decorators-for-logging-measuring-time/38363)

<div class="topic-metadata">

**Author:** [@quatrix](https://discourse.julialang.org/u/quatrix)\
**Replies:** 7\
**Last updated:** [April 28, 2020, 7:18pm UTC](https://discourse.julialang.org/t/using-macros-to-implement-function-decorators-for-logging-measuring-time/38363 "2020-04-28T19:18:42Z")

</div>

Hi All, I’m trying to implement something like Python’s decorators so that I can log whenever a function get’s called (eventually I want to log execution time / exceptions / etc) This is the API I’d like to have: @log…

---

## [Infix function notation for \`setdiff\`](https://discourse.julialang.org/t/infix-function-notation-for-setdiff/38381)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 5\
**Last updated:** [April 28, 2020, 6:40pm UTC](https://discourse.julialang.org/t/infix-function-notation-for-setdiff/38381 "2020-04-28T18:40:41Z")

</div>

I’m looking for suggestions for an infix function for Base.setdiff. I’ve seen $\\setminus$ (∖) used, but that’s not a valid identifier character probably because it’s often indistinguishable from backslash (\\) (Ah yes: be…

---

## [I would like to know about the use of Julia in small companies . Does anyone know any articles that talk about this to refer me?](https://discourse.julialang.org/t/i-would-like-to-know-about-the-use-of-julia-in-small-companies-does-anyone-know-any-articles-that-talk-about-this-to-refer-me/38317)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 6\
**Last updated:** [April 28, 2020, 6:35pm UTC](https://discourse.julialang.org/t/i-would-like-to-know-about-the-use-of-julia-in-small-companies-does-anyone-know-any-articles-that-talk-about-this-to-refer-me/38317 "2020-04-28T18:35:33Z")

</div>

I would like to know about using Julia in small businesses (since it is free software). Does anyone know any article that talks about this to refer me?

---

## [Improving performance of mapping algorithm](https://discourse.julialang.org/t/improving-performance-of-mapping-algorithm/38161)

<div class="topic-metadata">

**Author:** [@Mabo87](https://discourse.julialang.org/u/Mabo87)\
**Replies:** 17\
**Last updated:** [April 28, 2020, 5:30pm UTC](https://discourse.julialang.org/t/improving-performance-of-mapping-algorithm/38161 "2020-04-28T17:30:29Z")

</div>

Hi all, I ported a code from MATLAB to Julia, because it takes too long right now: using Random using Printf start = time() Lk = 4 Lp = 1500 # create test data: coordinates of relative points and points to be mapped p…

---

## [Creating sub types](https://discourse.julialang.org/t/creating-sub-types/38377)

<div class="topic-metadata">

**Author:** [@Nithin\_Govindarajan](https://discourse.julialang.org/u/Nithin_Govindarajan)\
**Replies:** 3\
**Last updated:** [April 28, 2020, 5:22pm UTC](https://discourse.julialang.org/t/creating-sub-types/38377 "2020-04-28T17:22:58Z")

</div>

I am trying to create an abstract subtype: abstract type StructuredMatrix{T} \<: AbstractMatrix{T} However when i run this line code i get: “invalid redefinition of constant” edit: i am using juno and entering comman…

---

## [Histogram from a set of values from EnsembleProblem](https://discourse.julialang.org/t/histogram-from-a-set-of-values-from-ensembleproblem/36891)

<div class="topic-metadata">

**Author:** [@Frederic\_Gilt](https://discourse.julialang.org/u/Frederic_Gilt)\
**Replies:** 15\
**Last updated:** [April 28, 2020, 4:28pm UTC](https://discourse.julialang.org/t/histogram-from-a-set-of-values-from-ensembleproblem/36891 "2020-04-28T16:28:04Z")

</div>

Dear All, I have a system of six SDEs I solved with prob\_sde = SDEProblem(qdelta,qsigma,u0,(0.0,600.0),noise=W) ensembleprob = EnsembleProblem(prob\_sde,prob\_func=prob\_func) sol = solve(ensembleprob,SRIW1(),EnsembleDist…

---

## [Type stability nested dictionary](https://discourse.julialang.org/t/type-stability-nested-dictionary/38349)

<div class="topic-metadata">

**Author:** [@mopg](https://discourse.julialang.org/u/mopg)\
**Replies:** 3\
**Last updated:** [April 28, 2020, 3:27pm UTC](https://discourse.julialang.org/t/type-stability-nested-dictionary/38349 "2020-04-28T15:27:52Z")

</div>

I am getting a nested input dictionary as input to my code, the structure of which I’d like to preserve. It is a nested dictionary where the “end state” is always an object of the same type (which I know). See the exampl…

---

## [Thoughts on Jax vs CuArrays and Zygote](https://discourse.julialang.org/t/thoughts-on-jax-vs-cuarrays-and-zygote/19915)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 10\
**Last updated:** [April 28, 2020, 3:00pm UTC](https://discourse.julialang.org/t/thoughts-on-jax-vs-cuarrays-and-zygote/19915 "2020-04-28T15:00:31Z")

</div>

Google’s JAX looks like a combination of CuArrays and Zygote for Python. I wonder if anyone can compare and contrast Jax with CuArrays and Zygote? I can’t gather how Jax is different apart from the fact that it compiles…

---

## [Local inter-dependent packages development workflow](https://discourse.julialang.org/t/local-inter-dependent-packages-development-workflow/38376)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 2:45pm UTC](https://discourse.julialang.org/t/local-inter-dependent-packages-development-workflow/38376 "2020-04-28T14:45:32Z")

</div>

When I have local package A that uses local package B, it appears that any code changes to B is not seen by A until the the code from B is committed to git. Is this proper and expected behavior? Is there a way that I c…

---

## [Julia on old desktop vs Matlab on old desktop vs Julia on Raspberry Pi-4](https://discourse.julialang.org/t/julia-on-old-desktop-vs-matlab-on-old-desktop-vs-julia-on-raspberry-pi-4/38162)

<div class="topic-metadata">

**Author:** [@kw\_martin](https://discourse.julialang.org/u/kw_martin)\
**Replies:** 5\
**Last updated:** [April 28, 2020, 2:30pm UTC](https://discourse.julialang.org/t/julia-on-old-desktop-vs-matlab-on-old-desktop-vs-julia-on-raspberry-pi-4/38162 "2020-04-28T14:30:20Z")

</div>

I have an early but complete and working (fairly well) version of a set of routines for analyzing ECG signals for the heart rate. It is mostly based on a popular technique called Pan/Tompkins (published in 1985 that oper…

---

## [Composite types and their subtypes](https://discourse.julialang.org/t/composite-types-and-their-subtypes/38371)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 1:46pm UTC](https://discourse.julialang.org/t/composite-types-and-their-subtypes/38371 "2020-04-28T13:46:32Z")

</div>

I’m still getting used to the type system in Julia. Is the following composite type, mutable struct Point{Float64} x y end equivalent to mutable struct Point x::Float64 y::Float64 end It seems like th…

---

## [Just wrote a package for playing with SAT solvers](https://discourse.julialang.org/t/just-wrote-a-package-for-playing-with-sat-solvers/37822)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 1:40pm UTC](https://discourse.julialang.org/t/just-wrote-a-package-for-playing-with-sat-solvers/37822 "2020-04-28T13:40:10Z")

</div>

Hi everyone, I just put a small package BEE.jl on github. If you want to play with SAT solvers, this might be helpful.

---

## [Strange comparison in Base's split method](https://discourse.julialang.org/t/strange-comparison-in-bases-split-method/38321)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 10\
**Last updated:** [April 28, 2020, 1:33pm UTC](https://discourse.julialang.org/t/strange-comparison-in-bases-split-method/38321 "2020-04-28T13:33:06Z")

</div>

Moderator’s note: this was split from Non-friendly documentation - #49 by rjmoses, but the initial post is mirrored here as an edited-in quote: It seems to be a weird way of checking that r is not an empty array: ju…

---

## [I want to implement a normal log in julia and i'm new in and don't know how to do it](https://discourse.julialang.org/t/i-want-to-implement-a-normal-log-in-julia-and-im-new-in-and-dont-know-how-to-do-it/38355)

<div class="topic-metadata">

**Author:** [@Rezvious](https://discourse.julialang.org/u/Rezvious)\
**Replies:** 12\
**Last updated:** [April 28, 2020, 1:06pm UTC](https://discourse.julialang.org/t/i-want-to-implement-a-normal-log-in-julia-and-im-new-in-and-dont-know-how-to-do-it/38355 "2020-04-28T13:06:18Z")

</div>

hi all; i want to implement a normal log in Julia, I used “using Distributions” and i’m trying to run in it in Jupiter notebook but when I press TAB and write LogNormal it doesn’t show me anything like there doesn’t exi…

---

## [Need help to make imfilter calculate only on specifies indices](https://discourse.julialang.org/t/need-help-to-make-imfilter-calculate-only-on-specifies-indices/37963)

<div class="topic-metadata">

**Author:** [@Kunz-David](https://discourse.julialang.org/u/Kunz-David)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 2:32pm UTC](https://discourse.julialang.org/t/need-help-to-make-imfilter-calculate-only-on-specifies-indices/37963 "2020-04-21T14:32:59Z")

</div>

Hi, I have a question about how to use the imfilter! function from ImageFiltering so that is computes only on provided inds. I am having trouble making a simple example work. Here is my code: using ImageFiltering, Imag…

---

## [Convert not defined](https://discourse.julialang.org/t/convert-not-defined/38361)

<div class="topic-metadata">

**Author:** [@Immanuel\_Diener](https://discourse.julialang.org/u/Immanuel_Diener)\
**Replies:** 4\
**Last updated:** [April 28, 2020, 11:22am UTC](https://discourse.julialang.org/t/convert-not-defined/38361 "2020-04-28T11:22:00Z")

</div>

Loading an Image worked fine for months and now suddenly I can’t make it work anymore (since my computer crashed, idk if this is in any way connected). julia\> Pkg.status() Status \`C:\\Users\\immanueldiener\\.julia\\envi…

---

## [Wrapping iterator, caching intermediate transformation](https://discourse.julialang.org/t/wrapping-iterator-caching-intermediate-transformation/38229)

<div class="topic-metadata">

**Author:** [@phg](https://discourse.julialang.org/u/phg)\
**Replies:** 6\
**Last updated:** [April 28, 2020, 10:35am UTC](https://discourse.julialang.org/t/wrapping-iterator-caching-intermediate-transformation/38229 "2020-04-28T10:35:45Z")

</div>

I want to wrap a dictionary in a data structure that lets you iterate over it in sorted order. Is there any more elegant solution than the following? struct Graph # For example's sake statements::Dict{Int, Int} …

---

## [Savefig not showing green in png with intrinsic fonts](https://discourse.julialang.org/t/savefig-not-showing-green-in-png-with-intrinsic-fonts/38334)

<div class="topic-metadata">

**Author:** [@Varghese](https://discourse.julialang.org/u/Varghese)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 10:29am UTC](https://discourse.julialang.org/t/savefig-not-showing-green-in-png-with-intrinsic-fonts/38334 "2020-04-28T10:29:33Z")

</div>

When saving a plot with different colors, saving it to pdf shows the right colors, but with png it does not. In png it will show the right colors for the text with vector fonts but not with intrinsic fonts. I am using G…

---

## [Stop custom type that inherits from SparseArray getting converted to full array](https://discourse.julialang.org/t/stop-custom-type-that-inherits-from-sparsearray-getting-converted-to-full-array/38256)

<div class="topic-metadata">

**Author:** [@james-a-mcmanus](https://discourse.julialang.org/u/james-a-mcmanus)\
**Replies:** 5\
**Last updated:** [April 28, 2020, 10:25am UTC](https://discourse.julialang.org/t/stop-custom-type-that-inherits-from-sparsearray-getting-converted-to-full-array/38256 "2020-04-28T10:25:13Z")

</div>

Hello all, I’m very new to julia and trying to essentially make a wrapper for a sparse-type array. When I set up the type to inherit from AbstractSparseArrays, operations with non-sparse arrays output a full array. usi…

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

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