# Latest

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

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

**Page:** 1890

---

## [Composite type whose fields are all different suptypes of a supertype](https://discourse.julialang.org/t/composite-type-whose-fields-are-all-different-suptypes-of-a-supertype/30689)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 8\
**Last updated:** [November 4, 2019, 1:07pm UTC](https://discourse.julialang.org/t/composite-type-whose-fields-are-all-different-suptypes-of-a-supertype/30689 "2019-11-04T13:07:00Z")

</div>

I have a composite type whose fields are all different suptypes of a supertype. Can this be expresses in a more elagnat way then shown below? struct Operators{A\<:AbstractArray{Float64,2}, L\<:AbstractArray{Float64,2}, D\<:…

---

## [Toy Flux example with one paramemeter not working?](https://discourse.julialang.org/t/toy-flux-example-with-one-paramemeter-not-working/30679)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 10:21am UTC](https://discourse.julialang.org/t/toy-flux-example-with-one-paramemeter-not-working/30679 "2019-11-04T10:21:34Z")

</div>

I am trying to write a blog for people with no background in machine learning using the Flux framework. However, I can’t seem to figure out how to get it to work. using Flux w = param(rand()) x = 1 y = 0.5 loss(x) = (w…

---

## [Call C++ library from Julia with the Cxx package?](https://discourse.julialang.org/t/call-c-library-from-julia-with-the-cxx-package/30661)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 8:59am UTC](https://discourse.julialang.org/t/call-c-library-from-julia-with-the-cxx-package/30661 "2019-11-04T08:59:55Z")

</div>

Hi, I was wondering, does anyone have similar experiences as calling C++ library from Julia? I have only found one reference Calling C++ library (CGAL) from Julia. More specifically, the library I’m interested in is http…

---

## [How to update packages under development to the latest commit?](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 3\
**Last updated:** [November 4, 2019, 4:30am UTC](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607 "2019-11-04T04:30:58Z")

</div>

how to update packages under development to the latest commit in Julia REPL without using git? I was expecting that the '\] update\` will work but it did not?!

---

## [StaticArrays 0.12.0 - New static array literal syntax](https://discourse.julialang.org/t/staticarrays-0-12-0-new-static-array-literal-syntax/30645)

<div class="topic-metadata">

**Author:** [@c42f](https://discourse.julialang.org/u/c42f)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 12:44am UTC](https://discourse.julialang.org/t/staticarrays-0-12-0-new-static-array-literal-syntax/30645 "2019-11-04T00:44:31Z")

</div>

Hi all, I’ve just released StaticArrays Release 0.12.0. I’d like to reach version 1.0 soon so we’ve been doing some cleanup in the last few months and working on a few long standing problems. One is the issue of conveni…

---

## [Project with scripts (bin/)](https://discourse.julialang.org/t/project-with-scripts-bin/24360)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 12:27am UTC](https://discourse.julialang.org/t/project-with-scripts-bin/24360 "2019-11-04T00:27:11Z")

</div>

At some point in the bag old (pre-Pkg3) days, when discussing what Pkg3 might be able to, I asked if it would be possible to create a package in a way that would automatically “install” scripts (eg point the system $PATH …

---

## [Can I install an executable in $PREFIX/bin using Pkg?](https://discourse.julialang.org/t/can-i-install-an-executable-in-prefix-bin-using-pkg/20128)

<div class="topic-metadata">

**Author:** [@ninjaaron](https://discourse.julialang.org/u/ninjaaron)\
**Replies:** 12\
**Last updated:** [November 4, 2019, 12:18am UTC](https://discourse.julialang.org/t/can-i-install-an-executable-in-prefix-bin-using-pkg/20128 "2019-11-04T00:18:50Z")

</div>

So, in Python, there is a notion of “entry\_points” for your package that are scripts which are installed where ever your system looks for executables. Is this possible with Pkg?

---

## [Handling multiple versions of Julia](https://discourse.julialang.org/t/handling-multiple-versions-of-julia/14035)

<div class="topic-metadata">

**Author:** [@tshort](https://discourse.julialang.org/u/tshort)\
**Replies:** 12\
**Last updated:** [November 3, 2019, 11:45pm UTC](https://discourse.julialang.org/t/handling-multiple-versions-of-julia/14035 "2019-11-03T23:45:25Z")

</div>

I’m curious how folks are handling multiple versions of Julia. On Linux, I’ve been putting the generic binaries in a common folder (~/.julia\_versions). direnv works nicely as a way to customize which version of Julia i…

---

## [Add println in Julia code and reload, can this be done? (likely bug in WeakKeyDict)](https://discourse.julialang.org/t/add-println-in-julia-code-and-reload-can-this-be-done-likely-bug-in-weakkeydict/30564)

<div class="topic-metadata">

**Author:** [@swissr](https://discourse.julialang.org/u/swissr)\
**Replies:** 2\
**Last updated:** [October 31, 2019, 10:32pm UTC](https://discourse.julialang.org/t/add-println-in-julia-code-and-reload-can-this-be-done-likely-bug-in-weakkeydict/30564 "2019-10-31T22:32:50Z")

</div>

Context: The following command causes a dead-lock in 1.4.0-DEV.407 (2019-10-31) and likely also in 1.3. It works fine in 1.03 and 1.2. x = WeakKeyDict(:a1 =\> 4) push!(x, :a2 =\> 2) # WARNING: deadlock here I thought I c…

---

## [Upsampling in Flux.jl](https://discourse.julialang.org/t/upsampling-in-flux-jl/25919)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 7\
**Last updated:** [November 3, 2019, 9:28pm UTC](https://discourse.julialang.org/t/upsampling-in-flux-jl/25919 "2019-11-03T21:28:05Z")

</div>

I try to implement a convolutional auto-encoder with Flux.jl . I have a simple version working in python (Tensforflow Keras API). However the Flux.jl based model does not seem to converge and gives poor results even on t…

---

## [@cxx in julia](https://discourse.julialang.org/t/cxx-in-julia/30660)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 2\
**Last updated:** [November 3, 2019, 9:18pm UTC](https://discourse.julialang.org/t/cxx-in-julia/30660 "2019-11-03T21:18:41Z")

</div>

julia\> cxx""" #include \<iostream\> class Hello { public: void hello\_world(const char \*now) { std::string sn…

---

## [Understanding mutating functions correctly](https://discourse.julialang.org/t/understanding-mutating-functions-correctly/30651)

<div class="topic-metadata">

**Author:** [@1991sig](https://discourse.julialang.org/u/1991sig)\
**Replies:** 3\
**Last updated:** [November 3, 2019, 6:10pm UTC](https://discourse.julialang.org/t/understanding-mutating-functions-correctly/30651 "2019-11-03T18:10:57Z")

</div>

I am taking the next step with Julia, and trying to learn more. Up to now, I have used it mostly just as a calculator, but I recently started to make my own modules and so on. One thing I am having trouble understanding…

---

## [PGFPlotsX arrows and axes questions](https://discourse.julialang.org/t/pgfplotsx-arrows-and-axes-questions/30658)

<div class="topic-metadata">

**Author:** [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 6:00pm UTC](https://discourse.julialang.org/t/pgfplotsx-arrows-and-axes-questions/30658 "2019-11-03T18:00:13Z")

</div>

using PGFPlotsX x = range(0, 5; length = 200) y = .√x plottheme = @pgf {no\_marks, blue} @pgf TikzPicture( Axis({ xmin = -4, xmax = 4, xtick = -5:1:5, ymin = -4, ymax = 4, ytick = -5:1:5, …

---

## [Call c++ library from julia](https://discourse.julialang.org/t/call-c-library-from-julia/30653)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 6\
**Last updated:** [November 3, 2019, 5:16pm UTC](https://discourse.julialang.org/t/call-c-library-from-julia/30653 "2019-11-03T17:16:44Z")

</div>

I need to call a C++ library from Julia. I was thinking to try either Cxx package or CxxWrap package. For Cxx, when I was trying to install this Cxx package to my Julia, get the following error message: (v1.1) pkg\> add…

---

## [Deleterows! column length error](https://discourse.julialang.org/t/deleterows-column-length-error/30654)

<div class="topic-metadata">

**Author:** [@Donald\_Lee](https://discourse.julialang.org/u/Donald_Lee)\
**Replies:** 0\
**Last updated:** [November 3, 2019, 3:35pm UTC](https://discourse.julialang.org/t/deleterows-column-length-error/30654 "2019-11-03T15:35:04Z")

</div>

Hello, Could I get some help with the following error? I tried making df\_1std a deepcopy, in case there was some pointer issue, but that didn’t work.

---

## [Lengauer Tarjan Algorithm (Dominator Tree)](https://discourse.julialang.org/t/lengauer-tarjan-algorithm-dominator-tree/30593)

<div class="topic-metadata">

**Author:** [@markusb](https://discourse.julialang.org/u/markusb)\
**Replies:** 2\
**Last updated:** [November 3, 2019, 1:50pm UTC](https://discourse.julialang.org/t/lengauer-tarjan-algorithm-dominator-tree/30593 "2019-11-03T13:50:03Z")

</div>

Dear all, does anyone know if the Lengauer Tarjan algorithm for creating a domiator tree from a given directed graph (i’m using LightGraphs) is already implemented in a package? thanks in advance Markus

---

## [How to get a included .jl files path list in REPL](https://discourse.julialang.org/t/how-to-get-a-included-jl-files-path-list-in-repl/30647)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 1:12pm UTC](https://discourse.julialang.org/t/how-to-get-a-included-jl-files-path-list-in-repl/30647 "2019-11-03T13:12:02Z")

</div>

Is there a way to get a path list of all included .jl files in REPL?

---

## [Workflow for local packages with local dependencies](https://discourse.julialang.org/t/workflow-for-local-packages-with-local-dependencies/30636)

<div class="topic-metadata">

**Author:** [@dapz](https://discourse.julialang.org/u/dapz)\
**Replies:** 3\
**Last updated:** [November 3, 2019, 10:45am UTC](https://discourse.julialang.org/t/workflow-for-local-packages-with-local-dependencies/30636 "2019-11-03T10:45:10Z")

</div>

Hi, I am working simultaneously on a few Julia packages. Until now, all these packages are only local, so when I have for instance a local package A depending on another local package B, I add B as a dependency using \]de…

---

## [Difference between functor and treelike in Flux?](https://discourse.julialang.org/t/difference-between-functor-and-treelike-in-flux/30641)

<div class="topic-metadata">

**Author:** [@zht](https://discourse.julialang.org/u/zht)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 8:56am UTC](https://discourse.julialang.org/t/difference-between-functor-and-treelike-in-flux/30641 "2019-11-03T08:56:03Z")

</div>

In Flux some layers are decorated with @functor and some are with @treelike. I assume this is so that functions like params can find the parameters. What is the difference between the two? For example I think Chain, Dens…

---

## [Plot the Histogram of given data (txt. file with 3 columns)](https://discourse.julialang.org/t/plot-the-histogram-of-given-data-txt-file-with-3-columns/30621)

<div class="topic-metadata">

**Author:** [@Haider17233](https://discourse.julialang.org/u/Haider17233)\
**Replies:** 5\
**Last updated:** [November 3, 2019, 8:51am UTC](https://discourse.julialang.org/t/plot-the-histogram-of-given-data-txt-file-with-3-columns/30621 "2019-11-03T08:51:09Z")

</div>

Histogram of the absolute frequencies (use classes of width 0.5°C) and additional plot with the histogram of the relative frequencies. Please plot the relative frequencies of the temperatures in the month October over t…

---

## [Indexing 1-Dimentional Arrays](https://discourse.julialang.org/t/indexing-1-dimentional-arrays/30615)

<div class="topic-metadata">

**Author:** [@4aHxKzD](https://discourse.julialang.org/u/4aHxKzD)\
**Replies:** 4\
**Last updated:** [November 3, 2019, 8:18am UTC](https://discourse.julialang.org/t/indexing-1-dimentional-arrays/30615 "2019-11-03T08:18:51Z")

</div>

Hello. I was reading Julia’s manual (Section: Noteworthy differences) and came across this quote. Julia has true one-dimensional arrays. Column vectors are of size N , not Nx1 . For example, rand(N) makes a 1-dimens…

---

## [\[ANN\]: JDF.jl v0.2.3 - DataFrames serialization format for Julia](https://discourse.julialang.org/t/ann-jdf-jl-v0-2-3-dataframes-serialization-format-for-julia/30644)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [November 3, 2019, 4:08am UTC](https://discourse.julialang.org/t/ann-jdf-jl-v0-2-3-dataframes-serialization-format-for-julia/30644 "2019-11-03T04:08:02Z")

</div>

See GitHub - xiaodaigh/JDF.jl: Julia DataFrames serialization format JDF is the Julia DataFrames serialization format. It’s a specialised serialization format and hence doesn’t support arbitrary objects like JLD2 and JL…

---

## [Transpose of a sparse matrix is not a sparse matrix?](https://discourse.julialang.org/t/transpose-of-a-sparse-matrix-is-not-a-sparse-matrix/30638)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 1:09am UTC](https://discourse.julialang.org/t/transpose-of-a-sparse-matrix-is-not-a-sparse-matrix/30638 "2019-11-03T01:09:10Z")

</div>

I don’t understand what is happening here: julia\> transpose(sparse(Matrix(1I, 5, 5))) 5×5 Transpose{Int64,SparseMatrixCSC{Int64,Int64}}: 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 What i…

---

## [Type stability: ProfileView and @code\_warntype don't agree](https://discourse.julialang.org/t/type-stability-profileview-and-code-warntype-dont-agree/30619)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 4\
**Last updated:** [November 2, 2019, 11:15pm UTC](https://discourse.julialang.org/t/type-stability-profileview-and-code-warntype-dont-agree/30619 "2019-11-02T23:15:56Z")

</div>

I have some code that I feel should run faster (see below). So I ran it with @profile and looked at the results with ProfileView.view() and as expected a lot of red showed up (i.e. runtime method lookup), the correspind…

---

## [Writable global const arrays](https://discourse.julialang.org/t/writable-global-const-arrays/30635)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 2\
**Last updated:** [November 2, 2019, 8:49pm UTC](https://discourse.julialang.org/t/writable-global-const-arrays/30635 "2019-11-02T20:49:32Z")

</div>

I tried to implement the xoshiro RNG for Base julia (cf https://github.com/JuliaLang/julia/issues/27614). So, for this to work properly, I thought about using something like const global\_xorostate = zeros(UInt64, Threa…

---

## [Export Vegalite Plot with Basic Interactivity](https://discourse.julialang.org/t/export-vegalite-plot-with-basic-interactivity/30603)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 2\
**Last updated:** [November 2, 2019, 4:16pm UTC](https://discourse.julialang.org/t/export-vegalite-plot-with-basic-interactivity/30603 "2019-11-02T16:16:26Z")

</div>

After having opened a Vegalite plot in a compatible window, without having written any interactivity code, there is basic interactivity in the form of hovering over a piece causing information to pop up. If you save this…

---

## [Loading time for 2 packages \>\> sum of individual loading time](https://discourse.julialang.org/t/loading-time-for-2-packages-sum-of-individual-loading-time/30630)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 3\
**Last updated:** [November 2, 2019, 5:47pm UTC](https://discourse.julialang.org/t/loading-time-for-2-packages-sum-of-individual-loading-time/30630 "2019-11-02T17:47:25Z")

</div>

Reproducibly I get the following issue: loading just CategoricalArrays takes \< 1s; loading just Requires \< 1s loading both in the same session takes 8s. (see screenshot below FWIW) I tried this with and without Rev…

---

## [SimpleANOVA.jl 0.6.0 - Added contrasts](https://discourse.julialang.org/t/simpleanova-jl-0-6-0-added-contrasts/30631)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 0\
**Last updated:** [November 2, 2019, 5:01pm UTC](https://discourse.julialang.org/t/simpleanova-jl-0-6-0-added-contrasts/30631 "2019-11-02T17:01:50Z")

</div>

I’ve added linear contrasts for post-test comparisons of factor levels.

---

## [Problem with pop!](https://discourse.julialang.org/t/problem-with-pop/30627)

<div class="topic-metadata">

**Author:** [@Caterina\_Cerutti](https://discourse.julialang.org/u/Caterina_Cerutti)\
**Replies:** 2\
**Last updated:** [November 2, 2019, 5:01pm UTC](https://discourse.julialang.org/t/problem-with-pop/30627 "2019-11-02T17:01:12Z")

</div>

I don’t understand why it doesn’t recognise the function pop!. Can someone help me please?

---

## [StaticRanges.jl - Static and mutable range types](https://discourse.julialang.org/t/staticranges-jl-static-and-mutable-range-types/30616)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 5\
**Last updated:** [November 2, 2019, 2:11pm UTC](https://discourse.julialang.org/t/staticranges-jl-static-and-mutable-range-types/30616 "2019-11-02T14:11:03Z")

</div>

Just released the second minor version of my first package (was still trying to figure out all the registering stuff in v0.1.0). It is meant to mirror the behavior of base as closely as possible. So if you know how to…

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

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