# Latest

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

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

**Page:** 1967

---

## [Using structs in for loops?](https://discourse.julialang.org/t/using-structs-in-for-loops/25998)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 8\
**Last updated:** [July 4, 2019, 9:48pm UTC](https://discourse.julialang.org/t/using-structs-in-for-loops/25998 "2019-07-04T21:48:03Z")

</div>

Hey guys Can anyone explain to me why k is not defined in this case? struct MyStruct id::Int x::Float64 y::Float64 end function SquareGrid(nStart,nEnd,nStep) x = collect(range(nStart,nEnd, step=nSte…

---

## [Looking for JuliaOpt Jump programmer to deploy prototype built with Matlab](https://discourse.julialang.org/t/looking-for-juliaopt-jump-programmer-to-deploy-prototype-built-with-matlab/26017)

<div class="topic-metadata">

**Author:** [@fliteplan](https://discourse.julialang.org/u/fliteplan)\
**Replies:** 1\
**Last updated:** [July 4, 2019, 8:04pm UTC](https://discourse.julialang.org/t/looking-for-juliaopt-jump-programmer-to-deploy-prototype-built-with-matlab/26017 "2019-07-04T20:04:07Z")

</div>

Challenge! Looking for anyone interested in a project to rebuild a trajectory optimization code built in Matlab and port it into JuliaOpt & JuMP.

---

## [Odd result from Distributions quantile](https://discourse.julialang.org/t/odd-result-from-distributions-quantile/25820)

<div class="topic-metadata">

**Author:** [@abx](https://discourse.julialang.org/u/abx)\
**Replies:** 3\
**Last updated:** [July 4, 2019, 6:56pm UTC](https://discourse.julialang.org/t/odd-result-from-distributions-quantile/25820 "2019-07-04T18:56:34Z")

</div>

I am experiencing inconsistent results using the Distributions package. When I run the following code, I get two different results on different machines Distributions.quantile(Distributions.Normal(), 0.3631592166130919…

---

## [Gadfly: how to add a legend to stacked plots?](https://discourse.julialang.org/t/gadfly-how-to-add-a-legend-to-stacked-plots/24955)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 1\
**Last updated:** [July 4, 2019, 6:54pm UTC](https://discourse.julialang.org/t/gadfly-how-to-add-a-legend-to-stacked-plots/24955 "2019-07-04T18:54:19Z")

</div>

Dear folks, suppose we have two figures figA and figB which have the same legend. Is it possible to stack them together, e.g., newFig = hstack(figA, figB) and to add only one legend to newFig afterwards (in my case ce…

---

## [Flux: MethodError: no method matching Float32(::Tracker.TrackedReal{Float32})](https://discourse.julialang.org/t/flux-methoderror-no-method-matching-float32-tracker-trackedreal-float32/26018)

<div class="topic-metadata">

**Author:** [@rlrs](https://discourse.julialang.org/u/rlrs)\
**Replies:** 2\
**Last updated:** [July 4, 2019, 6:08pm UTC](https://discourse.julialang.org/t/flux-methoderror-no-method-matching-float32-tracker-trackedreal-float32/26018 "2019-07-04T18:08:11Z")

</div>

I’m trying to calculate gradients through a chain of NN applications where I have some other differentiable operations in between, but Flux fails with the error in the title. I have made a minimal example to show the pro…

---

## [How could I define my own division operation with QR decomposition?](https://discourse.julialang.org/t/how-could-i-define-my-own-division-operation-with-qr-decomposition/26015)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 0\
**Last updated:** [July 4, 2019, 4:28pm UTC](https://discourse.julialang.org/t/how-could-i-define-my-own-division-operation-with-qr-decomposition/26015 "2019-07-04T16:28:05Z")

</div>

(Feel free to skip this part and look at the minimal example below) After a long time, I had to continue again with some old code, that stillyslalom already posted here, and because is a different question, I created a …

---

## [Why can't we merge Missing and Nothing?](https://discourse.julialang.org/t/why-cant-we-merge-missing-and-nothing/25793)

<div class="topic-metadata">

**Author:** [@HFriberg-mosek](https://discourse.julialang.org/u/HFriberg-mosek)\
**Replies:** 20\
**Last updated:** [July 4, 2019, 2:41pm UTC](https://discourse.julialang.org/t/why-cant-we-merge-missing-and-nothing/25793 "2019-07-04T14:41:39Z")

</div>

I get that Missing and Nothing serves different purposes. They both encode that there is no particular value available, but the former indicates that usage is permitted as long as it is consistent with the multivalued st…

---

## [How to order a array of tuples](https://discourse.julialang.org/t/how-to-order-a-array-of-tuples/26000)

<div class="topic-metadata">

**Author:** [@Elmer\_Cusipuma](https://discourse.julialang.org/u/Elmer_Cusipuma)\
**Replies:** 4\
**Last updated:** [July 4, 2019, 2:31pm UTC](https://discourse.julialang.org/t/how-to-order-a-array-of-tuples/26000 "2019-07-04T14:31:10Z")

</div>

I have array of tuples and I want to ordered these tuples. \[(2, 3.1), (1, 5.5), (3, 4.5)\] for example, tuples can be ordered decreasing according to their first element. \[(3, 4.5), (2, 3.1), (1, 5.5)\] Is there a si…

---

## [Best way to create a julia function wrapper of a cpp function](https://discourse.julialang.org/t/best-way-to-create-a-julia-function-wrapper-of-a-cpp-function/25915)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 9\
**Last updated:** [July 4, 2019, 12:27pm UTC](https://discourse.julialang.org/t/best-way-to-create-a-julia-function-wrapper-of-a-cpp-function/25915 "2019-07-04T12:27:06Z")

</div>

Hi, what is the best way to create a julia function wrapper of a C++ function. I started with the Cxx package and just put the C++ code in cxx"“” but it is quite slow. Now I´m considering to use the CxxWrap package. Is …

---

## [Didn't get consistent result of ANOVA from R and Julia](https://discourse.julialang.org/t/didnt-get-consistent-result-of-anova-from-r-and-julia/26003)

<div class="topic-metadata">

**Author:** [@Losses](https://discourse.julialang.org/u/Losses)\
**Replies:** 2\
**Last updated:** [July 4, 2019, 10:54am UTC](https://discourse.julialang.org/t/didnt-get-consistent-result-of-anova-from-r-and-julia/26003 "2019-07-04T10:54:06Z")

</div>

Hello, everyone, I’m a new user of Julia, previously using R/Python. I’m trying to run an ANOVA with Julia but got different result from R. The test data is extracted from Jamovi: test\_data.csv - Pastebin.com The R cod…

---

## [Connect to streams via uv](https://discourse.julialang.org/t/connect-to-streams-via-uv/26004)

<div class="topic-metadata">

**Author:** [@Kane](https://discourse.julialang.org/u/Kane)\
**Replies:** 0\
**Last updated:** [July 4, 2019, 7:57am UTC](https://discourse.julialang.org/t/connect-to-streams-via-uv/26004 "2019-07-04T07:57:35Z")

</div>

Hello, I am trying to connect our frontend to Julia via the provided uv streams (JL\_STOUT,…). The goal is to receive all outputs and show them in our own terminal. However when calling uv\_is\_readable it returns 0. Also …

---

## [Avoiding allocations in \`view\`s](https://discourse.julialang.org/t/avoiding-allocations-in-view-s/25983)

<div class="topic-metadata">

**Author:** [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Replies:** 7\
**Last updated:** [July 4, 2019, 7:54am UTC](https://discourse.julialang.org/t/avoiding-allocations-in-view-s/25983 "2019-07-04T07:54:36Z")

</div>

Is there a way to avoid allocations with view and missing values? If I change the inner loop to sum then there are allocations in both tests. using BenchmarkTools X = randn(10, 1000) Xm = convert(Array{Union{Float64, …

---

## [LD\_PRELOAD on VSCode](https://discourse.julialang.org/t/ld-preload-on-vscode/25992)

<div class="topic-metadata">

**Author:** [@madprogrammer](https://discourse.julialang.org/u/madprogrammer)\
**Replies:** 3\
**Last updated:** [July 4, 2019, 7:38am UTC](https://discourse.julialang.org/t/ld-preload-on-vscode/25992 "2019-07-04T07:38:03Z")

</div>

I use VSCode with Julia 1.1.0 and the extension. Due to some system configurations, I need to set LD\_PRELOAD for libstc and libz needed by PyPlot. So, the problem is, VSCode seems to ignore preload. In the extension con…

---

## [Julia v1.0.4 and v1.1.1 have been released](https://discourse.julialang.org/t/julia-v1-0-4-and-v1-1-1-have-been-released/24298)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 18\
**Last updated:** [July 4, 2019, 5:40am UTC](https://discourse.julialang.org/t/julia-v1-0-4-and-v1-1-1-have-been-released/24298 "2019-07-04T05:40:21Z")

</div>

The Julia developers are pleased to announce the release of Julia versions 1.0.4 and 1.1.1, available for download on Installing Julia. These are both patch releases, and as such contain no new features or breaking chang…

---

## [Apply function to array in Julia](https://discourse.julialang.org/t/apply-function-to-array-in-julia/25981)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 12\
**Last updated:** [July 3, 2019, 10:47pm UTC](https://discourse.julialang.org/t/apply-function-to-array-in-julia/25981 "2019-07-03T22:47:10Z")

</div>

Dear all, I am reading a book on how to create a procedure for solving integrants using python. It is said to create an array and apply the function over an array in order to speed up the procedure. The code provided is…

---

## [Pilot on Data Analysis in Colombia](https://discourse.julialang.org/t/pilot-on-data-analysis-in-colombia/25994)

<div class="topic-metadata">

**Author:** [@catareyesv](https://discourse.julialang.org/u/catareyesv)\
**Replies:** 2\
**Last updated:** [July 3, 2019, 6:39pm UTC](https://discourse.julialang.org/t/pilot-on-data-analysis-in-colombia/25994 "2019-07-03T18:39:28Z")

</div>

Hi: I would like how to reach out to Julia in order to see if we can get together and develop a pilot on data analysis for colombian public schools

---

## [One hour difference in modification date & time bewteen mtime and displayed](https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 2\
**Last updated:** [July 3, 2019, 5:04pm UTC](https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989 "2019-07-03T17:04:21Z")

</div>

This is a bit off-topic, might have to do with MacOS more than Julia, but it does involve Julia’s mtime function… On a mac, the displayed date & time in the “modification time” column (in file-finder or whatever it’s ca…

---

## [Overlaying multiple plots in VegaLite](https://discourse.julialang.org/t/overlaying-multiple-plots-in-vegalite/25945)

<div class="topic-metadata">

**Author:** [@yanivab](https://discourse.julialang.org/u/yanivab)\
**Replies:** 3\
**Last updated:** [July 3, 2019, 3:51pm UTC](https://discourse.julialang.org/t/overlaying-multiple-plots-in-vegalite/25945 "2019-07-03T15:51:38Z")

</div>

I’m trying to plot two errorbands on top of each other (one for a 50% CI, one for a 80% CI). The lower and upperbounds of each errorband are saved as four columns in a dataframe, together with the x axis variable. As a …

---

## [Julia flags for startup - is there a list?](https://discourse.julialang.org/t/julia-flags-for-startup-is-there-a-list/25932)

<div class="topic-metadata">

**Author:** [@holger](https://discourse.julialang.org/u/holger)\
**Replies:** 9\
**Last updated:** [July 3, 2019, 2:57pm UTC](https://discourse.julialang.org/t/julia-flags-for-startup-is-there-a-list/25932 "2019-07-03T14:57:06Z")

</div>

I’m having trouble understanding the different startup flags, e.g. julia -e. Is there a list in the documentation?

---

## [Could not parse manifest](https://discourse.julialang.org/t/could-not-parse-manifest/25947)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 1\
**Last updated:** [July 3, 2019, 2:23pm UTC](https://discourse.julialang.org/t/could-not-parse-manifest/25947 "2019-07-03T14:23:31Z")

</div>

Hi, Somehow, I got into a weird state that Pkg complains about not being able to parse the manifest file: (MyPackage) pkg\> st Project MyPackage v0.1.0 ERROR: Could not parse manifest : CompositeException(Any\[ParserErro…

---

## [Vector{Real}, Vector{Float64} MethodError](https://discourse.julialang.org/t/vector-real-vector-float64-methoderror/25926)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 11\
**Last updated:** [July 3, 2019, 12:57pm UTC](https://discourse.julialang.org/t/vector-real-vector-float64-methoderror/25926 "2019-07-03T12:57:03Z")

</div>

Hi, the following code runs fine: function h(x::Real) println(x) end function j(x::Float64) println(x) end arr2 = \[1.0, 2.0\] h(arr2\[1\]) j(arr2\[1\]) giving me 1.0 1.0 But this code function f(v::Vector{R…

---

## [Gaussian Mixture Model estimation in Julia 1.0](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339)

<div class="topic-metadata">

**Author:** [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Replies:** 8\
**Last updated:** [July 3, 2019, 12:16pm UTC](https://discourse.julialang.org/t/gaussian-mixture-model-estimation-in-julia-1-0/17339 "2019-07-03T12:16:53Z")

</div>

Hello, I wonder, if there are any up-to-date Julia packages for GMM estimation? I googled around, and came across https://github.com/davidavdav/GaussianMixtures.jl and https://github.com/lindahua/MixtureModels.jl. Both …

---

## [Parameters in IPOPT](https://discourse.julialang.org/t/parameters-in-ipopt/25908)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 5\
**Last updated:** [July 3, 2019, 12:05pm UTC](https://discourse.julialang.org/t/parameters-in-ipopt/25908 "2019-07-03T12:05:38Z")

</div>

Dear all, I am with code: using Ipopt model = Model(with\_optimizer(Ipopt.Optimizer)) @variable(model, x, start = 500) @variable(model, y, start = 500) @NLobjective(model, Min, (1 - x)^2 + 100 \* (y - x^2)^2) optimi…

---

## [JuliaDB Questions/Issues](https://discourse.julialang.org/t/juliadb-questions-issues/24785)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 13\
**Last updated:** [July 3, 2019, 11:55am UTC](https://discourse.julialang.org/t/juliadb-questions-issues/24785 "2019-07-03T11:55:47Z")

</div>

I have a few questions about using JuliaDB that I’m hoping the fantastic community here can help me answer: I have a .csv file that is 4.3 GB and when I load it into JuliaDB and then save it, it ends up being 8.5 GB. I…

---

## [Unexplained gap between calculation, and fetch time](https://discourse.julialang.org/t/unexplained-gap-between-calculation-and-fetch-time/25980)

<div class="topic-metadata">

**Author:** [@Dinari](https://discourse.julialang.org/u/Dinari)\
**Replies:** 0\
**Last updated:** [July 3, 2019, 11:22am UTC](https://discourse.julialang.org/t/unexplained-gap-between-calculation-and-fetch-time/25980 "2019-07-03T11:22:54Z")

</div>

In my code I have a rather simple architecture, Master process send some calculation to a worker, the calculation is done on a DArray, and the master collects it using fetch. However, I have a big unexplained gap betwee…

---

## [Libssh2 on Windows](https://discourse.julialang.org/t/libssh2-on-windows/14193)

<div class="topic-metadata">

**Author:** [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Replies:** 7\
**Last updated:** [July 3, 2019, 4:06am UTC](https://discourse.julialang.org/t/libssh2-on-windows/14193 "2019-07-03T04:06:43Z")

</div>

Short summary: libssh2.dll in the official Windows binaries is out of date with respect to available ciphers and needs upgrade in order for Pkg to keep working with packages on private git servers using ssh protocol, if …

---

## [Types as Function Parameters](https://discourse.julialang.org/t/types-as-function-parameters/25944)

<div class="topic-metadata">

**Author:** [@clinton](https://discourse.julialang.org/u/clinton)\
**Replies:** 6\
**Last updated:** [July 3, 2019, 3:26am UTC](https://discourse.julialang.org/t/types-as-function-parameters/25944 "2019-07-03T03:26:19Z")

</div>

I feel like this is probably somewhere easily found in the documentation, but I haven’t figured out where, so I think I just don’t know the right vocabulary here. Suppose I wanted to write the following silly function: …

---

## [Infix operator with extra optional arguments](https://discourse.julialang.org/t/infix-operator-with-extra-optional-arguments/25917)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 6\
**Last updated:** [July 2, 2019, 8:47pm UTC](https://discourse.julialang.org/t/infix-operator-with-extra-optional-arguments/25917 "2019-07-02T20:47:18Z")

</div>

Hi, Assuming I have some thing like this: julia\> struct AA val end julia\> struct Composed members config end Is there any acceptable way to enable something like this: julia\> Base.…

---

## [Weird behavior of pmap](https://discourse.julialang.org/t/weird-behavior-of-pmap/25910)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 5\
**Last updated:** [July 2, 2019, 8:43pm UTC](https://discourse.julialang.org/t/weird-behavior-of-pmap/25910 "2019-07-02T20:43:57Z")

</div>

The following suboptimal behavior of the parallel map has been observed: 53.927 s (82132566 allocations: 2.81 GiB) 2.011 s (8000041 allocations: 167.85 MiB) 18.922 ms (2 allocations: 7.63 MiB) 20.058 ms (3 alloc…

---

## [Shared library errors when using optirun](https://discourse.julialang.org/t/shared-library-errors-when-using-optirun/17309)

<div class="topic-metadata">

**Author:** [@galenlynch](https://discourse.julialang.org/u/galenlynch)\
**Replies:** 4\
**Last updated:** [July 2, 2019, 8:40pm UTC](https://discourse.julialang.org/t/shared-library-errors-when-using-optirun/17309 "2019-07-02T20:40:08Z")

</div>

I’m just trying Julia’s CUDA packages for the first time, and am having problems launching Julia with optirun. I’m hoping that there are other people out there trying to run Julia with optirun, and that they may have fig…

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

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