# Latest

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

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

**Page:** 1822

---

## [Performance of Cartesian Indices and Views](https://discourse.julialang.org/t/performance-of-cartesian-indices-and-views/34820)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 0\
**Last updated:** [February 18, 2020, 5:51pm UTC](https://discourse.julialang.org/t/performance-of-cartesian-indices-and-views/34820 "2020-02-18T17:51:55Z")

</div>

Hello all, I have a some code that uses Cartesian Indices that slows down heavily when views are involved. The slowdown is dimension dependent, I was able to figure out that it is because in some cases things inline/unr…

---

## [Julia v1.1.0 has been released](https://discourse.julialang.org/t/julia-v1-1-0-has-been-released/19911)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 34\
**Last updated:** [February 18, 2020, 5:20pm UTC](https://discourse.julialang.org/t/julia-v1-1-0-has-been-released/19911 "2020-02-18T17:20:21Z")

</div>

The Julia developers are pleased to announce the release of Julia v1.1.0. Binaries are available on Download Julia for Linux (i686 and x86-64), Windows (32- and 64-bit), macOS, and FreeBSD (x86-64). Julia v1.1.0 is the …

---

## [\[ANN\] Transformers.jl](https://discourse.julialang.org/t/ann-transformers-jl/24124)

<div class="topic-metadata">

**Author:** [@chengchingwen](https://discourse.julialang.org/u/chengchingwen)\
**Replies:** 6\
**Last updated:** [February 18, 2020, 4:13pm UTC](https://discourse.julialang.org/t/ann-transformers-jl/24124 "2020-02-18T16:13:11Z")

</div>

Hey guys, I want to announce this package for building Transformer related model with Flux.jl. GitHub: https://github.com/chengchingwen/Transformers.jl With the package you can build this model with this syntax us…

---

## [Perf improvement suggestion for simple extrema](https://discourse.julialang.org/t/perf-improvement-suggestion-for-simple-extrema/34776)

<div class="topic-metadata">

**Author:** [@wizebt](https://discourse.julialang.org/u/wizebt)\
**Replies:** 4\
**Last updated:** [February 18, 2020, 2:30pm UTC](https://discourse.julialang.org/t/perf-improvement-suggestion-for-simple-extrema/34776 "2020-02-18T14:30:28Z")

</div>

While working on large arrays (images) searching for the fastest min/max and extrema I struggled to findout that recent fast minimum and maximum implementation use reduce. However extrema can be improved julia\> versioni…

---

## [@inbounds macro on sparse arrays](https://discourse.julialang.org/t/inbounds-macro-on-sparse-arrays/34810)

<div class="topic-metadata">

**Author:** [@mlanghinrichs](https://discourse.julialang.org/u/mlanghinrichs)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 2:19pm UTC](https://discourse.julialang.org/t/inbounds-macro-on-sparse-arrays/34810 "2020-02-18T14:19:21Z")

</div>

Hi all, the @inbounds macro can speed up the in-place editing of a standard array by a factor of two; however it has no performance gain for the same task when applied on a sparse matrix. Please see my test functions an…

---

## [Status of libraries for saving binary files: composite datatypes](https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 2:16pm UTC](https://discourse.julialang.org/t/status-of-libraries-for-saving-binary-files-composite-datatypes/34809 "2020-02-18T14:16:29Z")

</div>

Hi, I am having some serious trouble saving composite datatypes. For small output files, BSON works fine. However, in cases where it is hard to split the output into many chunks, I tried to use JLD2. Unfortunately, thi…

---

## [I managed to make Flux.jl work with GPUs again!](https://discourse.julialang.org/t/i-managed-to-make-flux-jl-work-with-gpus-again/19386)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [February 18, 2020, 2:14pm UTC](https://discourse.julialang.org/t/i-managed-to-make-flux-jl-work-with-gpus-again/19386 "2020-02-18T14:14:21Z")

</div>

If you look at the model zoo for mnist mlp for Flux.jl you may notice the line using CuArrays is commented out. Presumably, this was because the rest of the code would fail if that line was turned on. Of course, CuArrays…

---

## [Profiling module precompilation](https://discourse.julialang.org/t/profiling-module-precompilation/33438)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 6\
**Last updated:** [February 18, 2020, 1:30pm UTC](https://discourse.julialang.org/t/profiling-module-precompilation/33438 "2020-02-18T13:30:20Z")

</div>

Hi! My package (AugmentedGaussianProcesses.jl) always take forever to precompile when I make modifications. I would like to see where the bottlenecks are to eventually optimize or remove problematic stuff. Is there any…

---

## [Evaluating a Julia Expr using a C++ class](https://discourse.julialang.org/t/evaluating-a-julia-expr-using-a-c-class/34621)

<div class="topic-metadata">

**Author:** [@ReinhardMu](https://discourse.julialang.org/u/ReinhardMu)\
**Replies:** 1\
**Last updated:** [February 18, 2020, 12:30pm UTC](https://discourse.julialang.org/t/evaluating-a-julia-expr-using-a-c-class/34621 "2020-02-18T12:30:58Z")

</div>

Hello, I am trying to write an interface for an existing global optimization solver written in C++, so that it can be used in JUMP. The solver needs to evaluate the functions defining the optimization problem with a gi…

---

## [How to define a new infix operator?](https://discourse.julialang.org/t/how-to-define-a-new-infix-operator/34803)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [February 18, 2020, 11:08am UTC](https://discourse.julialang.org/t/how-to-define-a-new-infix-operator/34803 "2020-02-18T11:08:30Z")

</div>

see in base\\operators.jl that the built-in operators are defined concisely like: \<(x, y) = isless(x, y) however, seems like I can’t define a custom infix operator like: julia\> (α)(x, y) = x + y α (generic function wit…

---

## [Executing on the root Task from the REPL](https://discourse.julialang.org/t/executing-on-the-root-task-from-the-repl/34801)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [February 18, 2020, 10:39am UTC](https://discourse.julialang.org/t/executing-on-the-root-task-from-the-repl/34801 "2020-02-18T10:39:11Z")

</div>

I would like to a explore a mechanism by which a user could execute a command from the REPL on the root task rather than the backend. Motivation: JavaCall Without JULIA\_COPY\_STACKS=yes it appears JavaCall will only fun…

---

## [Cell array or 3d array that enable its sub-matrix (2d array) freely renew themself without size constraint](https://discourse.julialang.org/t/cell-array-or-3d-array-that-enable-its-sub-matrix-2d-array-freely-renew-themself-without-size-constraint/34211)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 9\
**Last updated:** [February 18, 2020, 10:26am UTC](https://discourse.julialang.org/t/cell-array-or-3d-array-that-enable-its-sub-matrix-2d-array-freely-renew-themself-without-size-constraint/34211 "2020-02-18T10:26:17Z")

</div>

Hi community, What I am looking for is described in the title (as the row numbers of my 2d sub-matrixs are changing within a for loop). The only expression of cell array I found, as below, doesn’t work any more. A = …

---

## [Fortran - common block](https://discourse.julialang.org/t/fortran-common-block/34798)

<div class="topic-metadata">

**Author:** [@josemaria](https://discourse.julialang.org/u/josemaria)\
**Replies:** 1\
**Last updated:** [February 18, 2020, 8:58am UTC](https://discourse.julialang.org/t/fortran-common-block/34798 "2020-02-18T08:58:22Z")

</div>

Where could I see an example about how to interface with common blocks in Fortran?

---

## [Dimensional Data: Using 2-dimensional lat,lon dims when defining a DimensionalArray?](https://discourse.julialang.org/t/dimensional-data-using-2-dimensional-lat-lon-dims-when-defining-a-dimensionalarray/34794)

<div class="topic-metadata">

**Author:** [@k945](https://discourse.julialang.org/u/k945)\
**Replies:** 0\
**Last updated:** [February 18, 2020, 7:48am UTC](https://discourse.julialang.org/t/dimensional-data-using-2-dimensional-lat-lon-dims-when-defining-a-dimensionalarray/34794 "2020-02-18T07:48:17Z")

</div>

While it is possible to create a DimensionalArray with 1d dims. For example using DimensionalData arr = rand(4,4) x = rand(4); y = rand(4); z = 1:4 l = DimensionalArray(arr, (X(x), Y(y), Z(z))) is there a way to create…

---

## [How to "fix" stacktraces for macros?](https://discourse.julialang.org/t/how-to-fix-stacktraces-for-macros/34454)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 12\
**Last updated:** [February 18, 2020, 7:44am UTC](https://discourse.julialang.org/t/how-to-fix-stacktraces-for-macros/34454 "2020-02-18T07:44:05Z")

</div>

When I time a function using TimerOutputs.jl’s @timeit, I get broken stacktraces when there is a compilation error inside the called function. Example: @timeit to "mesh loading" mesh = load\_mesh(restart\_filename) yie…

---

## [How to remove empty array of a list of array](https://discourse.julialang.org/t/how-to-remove-empty-array-of-a-list-of-array/34790)

<div class="topic-metadata">

**Author:** [@jayce\_ram](https://discourse.julialang.org/u/jayce_ram)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 7:39am UTC](https://discourse.julialang.org/t/how-to-remove-empty-array-of-a-list-of-array/34790 "2020-02-18T07:39:31Z")

</div>

I have a vector that might look like these forms : list\_temp = Any\[(Any\[(“Bus1”, “Bus2"”), (“Bus2”, “Bus1”)\],), (Any,)\] list\_temp = Any\[(Any,), (Any\[(“Madagascar1”, “Madagascar2”)\],)\] I would like to remove any empt…

---

## [Force specialization on varargs when the arguments are not all of the same concrete type](https://discourse.julialang.org/t/force-specialization-on-varargs-when-the-arguments-are-not-all-of-the-same-concrete-type/34788)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 5\
**Last updated:** [February 18, 2020, 7:23am UTC](https://discourse.julialang.org/t/force-specialization-on-varargs-when-the-arguments-are-not-all-of-the-same-concrete-type/34788 "2020-02-18T07:23:32Z")

</div>

The manual page on Performance Tips (https://github.com/JuliaLang/julia/blob/master/doc/src/manual/performance-tips.md) says: This will not specialize: f\_vararg(x::Int...) = tuple(x...) but this will: g\_vararg(x::Va…

---

## [CSV.jl : how to specify the columns types when the total columns number is not known?](https://discourse.julialang.org/t/csv-jl-how-to-specify-the-columns-types-when-the-total-columns-number-is-not-known/34753)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 8\
**Last updated:** [February 18, 2020, 6:27am UTC](https://discourse.julialang.org/t/csv-jl-how-to-specify-the-columns-types-when-the-total-columns-number-is-not-known/34753 "2020-02-18T06:27:12Z")

</div>

Hi, I have to read large tables, I don’t know the total number of columns of the tables but I do know that the first one contains strings and all the others are Float64. I can easily specify the type of the first one li…

---

## [How to use CompressedSensing package by using function instead of measurement matrix?](https://discourse.julialang.org/t/how-to-use-compressedsensing-package-by-using-function-instead-of-measurement-matrix/34787)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 5:48am UTC](https://discourse.julialang.org/t/how-to-use-compressedsensing-package-by-using-function-instead-of-measurement-matrix/34787 "2020-02-18T05:48:26Z")

</div>

Hi, I am trying to use CompressedSensing package. I went through the examples in the documentation is as follows: n=1000 #Signal Dimensions m=400 #Measurement Dimension k=100 #Approximate Sparsity Signal = ze…

---

## [Filtfilt in DSP.jl - I really don't get it](https://discourse.julialang.org/t/filtfilt-in-dsp-jl-i-really-dont-get-it/10437)

<div class="topic-metadata">

**Author:** [@ceysa75](https://discourse.julialang.org/u/ceysa75)\
**Replies:** 3\
**Last updated:** [February 17, 2020, 11:21pm UTC](https://discourse.julialang.org/t/filtfilt-in-dsp-jl-i-really-dont-get-it/10437 "2020-02-17T23:21:49Z")

</div>

Hi dear community members, while making bigger steps forwards switching completely from Matlab to Julia here and there I am often struggling to solve some issues. This is mainly due to the poor/missing documentation of…

---

## [Jupyter Notebook CSS styling](https://discourse.julialang.org/t/jupyter-notebook-css-styling/34770)

<div class="topic-metadata">

**Author:** [@kumarbalachandran](https://discourse.julialang.org/u/kumarbalachandran)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 10:31pm UTC](https://discourse.julialang.org/t/jupyter-notebook-css-styling/34770 "2020-02-17T22:31:05Z")

</div>

I am trying to clean up a Jupyter notebook so it can be distributed and I figured out that you can insert CSS into a code cell using e.g. HTML(""" \<style\> body { counter-reset: section; /\* Set a …

---

## [Is VegaLite.jl fully written in julia language?](https://discourse.julialang.org/t/is-vegalite-jl-fully-written-in-julia-language/34778)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 10:06pm UTC](https://discourse.julialang.org/t/is-vegalite-jl-fully-written-in-julia-language/34778 "2020-02-17T22:06:54Z")

</div>

Hi I have used VegaLite.jl to plot a choropleth map in Julia. And Geopandas to plot the same in Python. As I want to make a benchmark between both I would like to know if VegaLite.jl has been fully written in Julia or…

---

## [How to send an array from Splunk to a dataframe?](https://discourse.julialang.org/t/how-to-send-an-array-from-splunk-to-a-dataframe/34765)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 11\
**Last updated:** [February 17, 2020, 9:22pm UTC](https://discourse.julialang.org/t/how-to-send-an-array-from-splunk-to-a-dataframe/34765 "2020-02-17T21:22:18Z")

</div>

Hi I have used Splunk API (in Python) to retrive data. Then I am sending that data to a Dataframe. This is the code: results=pyimport("splunklib.results") kwargs\_oneshot = (earliest\_time= "2019-09-07T12:00:00.000-07:0…

---

## [Looping over rows and columns: what am I doing wrong?](https://discourse.julialang.org/t/looping-over-rows-and-columns-what-am-i-doing-wrong/34761)

<div class="topic-metadata">

**Author:** [@edwinb-ai](https://discourse.julialang.org/u/edwinb-ai)\
**Replies:** 4\
**Last updated:** [February 17, 2020, 8:42pm UTC](https://discourse.julialang.org/t/looping-over-rows-and-columns-what-am-i-doing-wrong/34761 "2020-02-17T20:42:08Z")

</div>

Following some of the Performance Tips in the main Julia documentation I was a trying the following code, timing it with BenchmarkTools.jl: using Random using BenchmarkTools b = rand(3, 100) function loop\_rows(a::Abst…

---

## [Can Makie render a scene at resolutions larger than the display?](https://discourse.julialang.org/t/can-makie-render-a-scene-at-resolutions-larger-than-the-display/34772)

<div class="topic-metadata">

**Author:** [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Replies:** 0\
**Last updated:** [February 17, 2020, 8:13pm UTC](https://discourse.julialang.org/t/can-makie-render-a-scene-at-resolutions-larger-than-the-display/34772 "2020-02-17T20:13:58Z")

</div>

For example, suppose I want the simple line demo in the Makie docs rendered into a 5000x3000 PNG: using Makie x = range(0, stop = 2pi, length = 40) f(x) = sin.(x) y = f(x) scene = lines(x, y, color = :blue; resolution=…

---

## [Pie charts](https://discourse.julialang.org/t/pie-charts/34707)

<div class="topic-metadata">

**Author:** [@Michaela\_Maskova](https://discourse.julialang.org/u/Michaela_Maskova)\
**Replies:** 11\
**Last updated:** [February 17, 2020, 8:07pm UTC](https://discourse.julialang.org/t/pie-charts/34707 "2020-02-17T20:07:07Z")

</div>

Hello everyone, I am trying to plot a pie chart, unfortunately the only thing I could plot was the simplest version of it. I was unable to find any documentation and would love some help. I did find some examples using …

---

## [Colorize error output by default when running Julia script](https://discourse.julialang.org/t/colorize-error-output-by-default-when-running-julia-script/34456)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 6\
**Last updated:** [February 17, 2020, 3:44pm UTC](https://discourse.julialang.org/t/colorize-error-output-by-default-when-running-julia-script/34456 "2020-02-17T15:44:12Z")

</div>

On my system (Ubuntu 19.10), Julia does not colorize error output when run through the shebang of an executable script. That is, if I create a script foo.jl with a shebang as #!/usr/bin/env julia ... and run it as ./f…

---

## [Change Base Level Categorical Vector in GLM](https://discourse.julialang.org/t/change-base-level-categorical-vector-in-glm/18288)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 11\
**Last updated:** [February 17, 2020, 3:44pm UTC](https://discourse.julialang.org/t/change-base-level-categorical-vector-in-glm/18288 "2020-02-17T15:44:42Z")

</div>

Is there a way to change the base level of a categorical vector in GLM? It looks like the first level in the vector is chosen as the base level. I have tried to change the order of levels using levels! but it does not se…

---

## [Problem trying to build julia-1.3.1 from source](https://discourse.julialang.org/t/problem-trying-to-build-julia-1-3-1-from-source/34758)

<div class="topic-metadata">

**Author:** [@dslate](https://discourse.julialang.org/u/dslate)\
**Replies:** 0\
**Last updated:** [February 17, 2020, 2:20pm UTC](https://discourse.julialang.org/t/problem-trying-to-build-julia-1-3-1-from-source/34758 "2020-02-17T14:20:56Z")

</div>

For various reasons I would like to build julia-1.3.1 from source offline. So I downloaded and unpacked julia-1.3.1-full.tar.gz on my online machine, which is an x86\_64 workstation running Ubuntu Linux 16.04.6 LTS. I cd’…

---

## [Single line function with output type annotation?](https://discourse.julialang.org/t/single-line-function-with-output-type-annotation/34757)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 2:19pm UTC](https://discourse.julialang.org/t/single-line-function-with-output-type-annotation/34757 "2020-02-17T14:19:10Z")

</div>

function f(x::A{T}, y)::A{T} where {T} xxxx end is valid, but f(x::A{T}, y)::A{T} where {T} = xxxx is invalid as long as there’s a return type annotation (::A{T}). what’s the correct syntax? thanks.

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

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