# Latest

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

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

**Page:** 1793

---

## [Setindex for CartesianIndex](https://discourse.julialang.org/t/setindex-for-cartesianindex/36424)

<div class="topic-metadata">

**Author:** [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Replies:** 5\
**Last updated:** [March 25, 2020, 8:38am UTC](https://discourse.julialang.org/t/setindex-for-cartesianindex/36424 "2020-03-25T08:38:50Z")

</div>

The question is related to the general topic of mutating immutables. StaticArrays comes with a helpful convenience function setindex, which allows modifying an array element at a given position and returning a new Stati…

---

## [Extend for vector-valued matrix multiplication?](https://discourse.julialang.org/t/extend-for-vector-valued-matrix-multiplication/36286)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 14\
**Last updated:** [March 25, 2020, 7:37am UTC](https://discourse.julialang.org/t/extend-for-vector-valued-matrix-multiplication/36286 "2020-03-25T07:37:14Z")

</div>

Consider a UV::Vector{SVector{2}} or alternatively (U,V)::Tuple{Vector,Vector}. I would like to compute the same matrix multiplication formula for U and V but would prefer storing the information in the Vector{SVector{2…

---

## [Julia language server in VS Code couldn´t start](https://discourse.julialang.org/t/julia-language-server-in-vs-code-couldn-t-start/36449)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 6:48am UTC](https://discourse.julialang.org/t/julia-language-server-in-vs-code-couldn-t-start/36449 "2020-03-25T06:48:25Z")

</div>

Hey, I´m having problems to setup the julia VS code extension. I´m using Julia 1.3.1 on Windows 10 and the latest VS Code extension 0.15.16. I set the julia executable path of the julia VS Code extension to my julia ins…

---

## [Unreachable reached at 0x7fa478093547 in Julia 1.0.5](https://discourse.julialang.org/t/unreachable-reached-at-0x7fa478093547-in-julia-1-0-5/36404)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 4\
**Last updated:** [March 25, 2020, 4:53am UTC](https://discourse.julialang.org/t/unreachable-reached-at-0x7fa478093547-in-julia-1-0-5/36404 "2020-03-25T04:53:07Z")

</div>

I had the test code of a package I am developing for my PhD suddenly start crashing after a seemingly inoffensive commit. The complete error log is here. It happens if I execute the tests in my last commit (i.e., git c…

---

## [Ccall when argtype is a struct](https://discourse.julialang.org/t/ccall-when-argtype-is-a-struct/36328)

<div class="topic-metadata">

**Author:** [@iloaiza](https://discourse.julialang.org/u/iloaiza)\
**Replies:** 4\
**Last updated:** [March 25, 2020, 2:55am UTC](https://discourse.julialang.org/t/ccall-when-argtype-is-a-struct/36328 "2020-03-25T02:55:12Z")

</div>

Hey guys! I am trying to write my own small module to interface a C package to my existing Julia code. This C package is working, and I have compiled it with all the necessary flags so it’s a .so file. My problem is tha…

---

## [Get the enumerate type components from the string counterpart](https://discourse.julialang.org/t/get-the-enumerate-type-components-from-the-string-counterpart/23083)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 11\
**Last updated:** [March 25, 2020, 1:42am UTC](https://discourse.julialang.org/t/get-the-enumerate-type-components-from-the-string-counterpart/23083 "2020-03-25T01:42:48Z")

</div>

This is a simple task. I tried the following and it did not work. julia\> @enum Fruit apple=0 pear=1 banana=2 julia\> Fruit("apple") ERROR: MethodError: no method matching Fruit(::String) Closest candidates are: Fruit(…

---

## [StaticArrays as vector elements](https://discourse.julialang.org/t/staticarrays-as-vector-elements/36472)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 12:57am UTC](https://discourse.julialang.org/t/staticarrays-as-vector-elements/36472 "2020-03-25T00:57:13Z")

</div>

I remember having seen somewhere an argument that stated that static vectors were stored sequentially (contiguously) in an array of such vectors. No pointers were stored, the data itself. Would anyone remember where to f…

---

## [Intel MKL Error on mac](https://discourse.julialang.org/t/intel-mkl-error-on-mac/34826)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 3\
**Last updated:** [March 24, 2020, 10:47pm UTC](https://discourse.julialang.org/t/intel-mkl-error-on-mac/34826 "2020-03-24T22:47:51Z")

</div>

I downloaded Julia 1.3.1. versioninfo() Julia Version 1.3.1 Commit 2d5741174c (2019-12-30 21:36 UTC) Platform Info: OS: macOS (x86\_64-apple-darwin18.6.0) CPU: Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz WORD\_SIZE: …

---

## [ChaosTools lyapunovs with stiff solvers](https://discourse.julialang.org/t/chaostools-lyapunovs-with-stiff-solvers/35961)

<div class="topic-metadata">

**Author:** [@rusandris](https://discourse.julialang.org/u/rusandris)\
**Replies:** 3\
**Last updated:** [March 24, 2020, 9:25pm UTC](https://discourse.julialang.org/t/chaostools-lyapunovs-with-stiff-solvers/35961 "2020-03-24T21:25:54Z")

</div>

I’ve come across a problem regarding using lyapunovs() with stiff diffeq solvers. It is very similar to this one: Problem with tangent\_integrator: Chaostools tangent\_integrator stiff solvers tangent\_integrator not comp…

---

## [\[ANN\] Trapz 2.0 - Fast integration routines for discrete domains](https://discourse.julialang.org/t/ann-trapz-2-0-fast-integration-routines-for-discrete-domains/36446)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 6\
**Last updated:** [March 24, 2020, 9:06pm UTC](https://discourse.julialang.org/t/ann-trapz-2-0-fast-integration-routines-for-discrete-domains/36446 "2020-03-24T21:06:30Z")

</div>

Hi everyone, this package is not exactly new, but i never announced it, and recently i had the time&need to make it even faster and flexible a copy of readme.md: Trapz.jl A simple Julia package to perform trapezoidal…

---

## [How do I kill a task / coroutine in Julia?](https://discourse.julialang.org/t/how-do-i-kill-a-task-coroutine-in-julia/26683)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 3\
**Last updated:** [March 24, 2020, 8:10pm UTC](https://discourse.julialang.org/t/how-do-i-kill-a-task-coroutine-in-julia/26683 "2020-03-24T20:10:45Z")

</div>

I have a totally same question as this: How do I kill a task / coroutine in Julia? - Stack Overflow How do I kill a task / coroutine in Julia? - Stack Overflow I tried the same way to kill the task of the answer like: …

---

## [Error building PyCall in Windows 10](https://discourse.julialang.org/t/error-building-pycall-in-windows-10/36455)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 6:53pm UTC](https://discourse.julialang.org/t/error-building-pycall-in-windows-10/36455 "2020-03-24T18:53:46Z")

</div>

When I try to build PyCall in Julia 1.4 I get: (@v1.4) pkg\> build PyCall Building Conda ─→ C:\\Users\\sbac\\.julia\\packages\\Conda\\3rPhK\\deps\\build.log Building PyCall → C:\\Users\\sbac\\.julia\\packages\\PyCall\\zqDXB\\deps\\bu…

---

## [Struct with immutable arrays](https://discourse.julialang.org/t/struct-with-immutable-arrays/36457)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 6:33pm UTC](https://discourse.julialang.org/t/struct-with-immutable-arrays/36457 "2020-03-24T18:33:19Z")

</div>

I need to be able to keep certain arrays of a mixed type (e.g. ImmutableN.n::Array{Int,1}) from being modified. Here is an example: struct ImmutableN n::Array{Int64,1} cond::Float64 ImmutableN(n) = new(n,rand(1)\[…

---

## [Julia HTTP server behind a reverse proxy](https://discourse.julialang.org/t/julia-http-server-behind-a-reverse-proxy/36456)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 0\
**Last updated:** [March 24, 2020, 6:00pm UTC](https://discourse.julialang.org/t/julia-http-server-behind-a-reverse-proxy/36456 "2020-03-24T18:00:07Z")

</div>

I am sharing a workaround solution to this error when calling a Julia HTTP server behind HAProxy: Error: (Base.IOError("read: connection reset by peer (ECONNRESET)", -104) If you google it you’ll find other application…

---

## [Running julia over ssh](https://discourse.julialang.org/t/running-julia-over-ssh/36447)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 3\
**Last updated:** [March 24, 2020, 5:29pm UTC](https://discourse.julialang.org/t/running-julia-over-ssh/36447 "2020-03-24T17:29:28Z")

</div>

If I run julia over ssh: ssh user@host julia -i it doesn’t seem to give me prompts, though it does respond to commands, even though I passed the -i “interactive” option. Is there any way I can get it to do this? I’d …

---

## [@ in function declartion](https://discourse.julialang.org/t/in-function-declartion/36418)

<div class="topic-metadata">

**Author:** [@donkeysaddle](https://discourse.julialang.org/u/donkeysaddle)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 5:27pm UTC](https://discourse.julialang.org/t/in-function-declartion/36418 "2020-03-24T17:27:37Z")

</div>

Hi, I am currently going through the DifferentialEquations documentation and am trying to run an example. Unfortunately, I am failing to achieve liftoff: f = @ode\_def\_nohes LotkaVolterraTest begin dx = a\*x - b\*x\*y d…

---

## [REPL flickers when pasting large text](https://discourse.julialang.org/t/repl-flickers-when-pasting-large-text/36453)

<div class="topic-metadata">

**Author:** [@MaximilianJHuber](https://discourse.julialang.org/u/MaximilianJHuber)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 5:05pm UTC](https://discourse.julialang.org/t/repl-flickers-when-pasting-large-text/36453 "2020-03-24T17:05:32Z")

</div>

My REPL flickers and is very slow when I paste a large text. I have this issue on Win10 with several Julia versions: See this issue on GitHub. I do not use OhMyREPL.jl. Any thoughts?

---

## [How to get reproducible results of classification models?: example using DecisionTree](https://discourse.julialang.org/t/how-to-get-reproducible-results-of-classification-models-example-using-decisiontree/36452)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 0\
**Last updated:** [March 24, 2020, 3:12pm UTC](https://discourse.julialang.org/t/how-to-get-reproducible-results-of-classification-models-example-using-decisiontree/36452 "2020-03-24T15:12:55Z")

</div>

Hi! I would like to train a classifier (eg. Random Forests) and I would like to get the same results if I train/run the model again. My first attempt was to try to set the seed of the random number generator, like this: …

---

## [How to define Deep Q learning loss function in Knet?](https://discourse.julialang.org/t/how-to-define-deep-q-learning-loss-function-in-knet/36439)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 2:33pm UTC](https://discourse.julialang.org/t/how-to-define-deep-q-learning-loss-function-in-knet/36439 "2020-03-24T14:33:07Z")

</div>

I’am trying to implement a Deep Q learning loss function as part of my thesis. I’m trying to use Knet but I can’t find a simple example.

---

## [How to create a function in Julia that can accept an array or a scalar as input argument?](https://discourse.julialang.org/t/how-to-create-a-function-in-julia-that-can-accept-an-array-or-a-scalar-as-input-argument/36394)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 4\
**Last updated:** [March 24, 2020, 1:45pm UTC](https://discourse.julialang.org/t/how-to-create-a-function-in-julia-that-can-accept-an-array-or-a-scalar-as-input-argument/36394 "2020-03-24T13:45:18Z")

</div>

Hi, when creating new functions in Julia, do I need to specify the input type of the arguments ? Is this required for speed or only for organization ? For example, I would like to create a function that takes as input e…

---

## [Embedding Julia and two-way communication with cpp code?](https://discourse.julialang.org/t/embedding-julia-and-two-way-communication-with-cpp-code/36445)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 0\
**Last updated:** [March 24, 2020, 1:22pm UTC](https://discourse.julialang.org/t/embedding-julia-and-two-way-communication-with-cpp-code/36445 "2020-03-24T13:22:24Z")

</div>

As far as I know, it is possible to embedd Julia in Cpp code and call Cpp libraries from Julia. But if I embedd Julia and call it from Cpp, how can I callback some Cpp functions and methods on Cpp objects and pass resul…

---

## [Own Registry Problems](https://discourse.julialang.org/t/own-registry-problems/36433)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 12:53pm UTC](https://discourse.julialang.org/t/own-registry-problems/36433 "2020-03-24T12:53:32Z")

</div>

I’m managing a small registry for Julia packages related to molecular simulation. I’ve recently started to run into errors that I don’t understand and cannot fix usually I’ll find a workaround that I don’t understand eit…

---

## [Version of Pkg in JuliaPro 1.2.0 for Windows](https://discourse.julialang.org/t/version-of-pkg-in-juliapro-1-2-0-for-windows/34006)

<div class="topic-metadata">

**Author:** [@ethomag](https://discourse.julialang.org/u/ethomag)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 12:43pm UTC](https://discourse.julialang.org/t/version-of-pkg-in-juliapro-1-2-0-for-windows/34006 "2020-03-24T12:43:44Z")

</div>

Hi, In my company we have a local non-github based registry. In order for it to work we need to put this in our startup.jl: import Pkg Pkg.GitTools.setprotocol!(domain="...", protocol="ssh", user="...") I am now trying…

---

## [StackOverflowError in Bayesian Neural Networks Tutorial](https://discourse.julialang.org/t/stackoverflowerror-in-bayesian-neural-networks-tutorial/36372)

<div class="topic-metadata">

**Author:** [@Farlein](https://discourse.julialang.org/u/Farlein)\
**Replies:** 5\
**Last updated:** [March 24, 2020, 12:35pm UTC](https://discourse.julialang.org/t/stackoverflowerror-in-bayesian-neural-networks-tutorial/36372 "2020-03-24T12:35:41Z")

</div>

Hi there, I am learning Bayesian Neural Networks (BNN) using Turing. I have copied the codes from the tutorial, https://turing.ml/dev/tutorials/3-bayesnn/. The original code trains a BNN model with a synthetic dataset …

---

## [Incompatibility detected between CUDA and LLVM 8.0+;](https://discourse.julialang.org/t/incompatibility-detected-between-cuda-and-llvm-8-0/36434)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 12:28pm UTC](https://discourse.julialang.org/t/incompatibility-detected-between-cuda-and-llvm-8-0/36434 "2020-03-24T12:28:30Z")

</div>

Hi, this is julia 1.4.0 updated as of today. When I ran using CuArrays using CuArrays.CURAND using CUDAnative using CUDAdrv I got the above warning Warning: Incompatibility detected between CUDA and LLVM 8.0+; disabl…

---

## [Set up Sublime Text 3 for Julia](https://discourse.julialang.org/t/set-up-sublime-text-3-for-julia/11702)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 20\
**Last updated:** [March 24, 2020, 11:51am UTC](https://discourse.julialang.org/t/set-up-sublime-text-3-for-julia/11702 "2020-03-24T11:51:26Z")

</div>

I want to set up Sublime Text 3 for Julia, but could not find a detailed instruction. I followed this guidance: https://github.com/JuliaEditorSupport/Julia-sublime but I am not sure how to link Julia to it.

---

## [An object which is Tuple, but not an NTuple{N, Any}](https://discourse.julialang.org/t/an-object-which-is-tuple-but-not-an-ntuple-n-any/36426)

<div class="topic-metadata">

**Author:** [@ravi.joshi](https://discourse.julialang.org/u/ravi.joshi)\
**Replies:** 3\
**Last updated:** [March 24, 2020, 11:01am UTC](https://discourse.julialang.org/t/an-object-which-is-tuple-but-not-an-ntuple-n-any/36426 "2020-03-24T11:01:02Z")

</div>

In Julia, is it possible to have an object, which is a Tuple, but not an NTuple{N, Any}? I am thinking about this because, in the Iterators module, there are different method dispatches for NTuple and Tuple object for t…

---

## [Converting Tables into arrays](https://discourse.julialang.org/t/converting-tables-into-arrays/36396)

<div class="topic-metadata">

**Author:** [@bandaya](https://discourse.julialang.org/u/bandaya)\
**Replies:** 2\
**Last updated:** [March 24, 2020, 10:35am UTC](https://discourse.julialang.org/t/converting-tables-into-arrays/36396 "2020-03-24T10:35:19Z")

</div>

Hi, I am converting some columns from a table in to a 5x5 array. I have managed to do it in inefficient way as I first convert the table into a DataFrame and then convert that into an array. Is there a more efficient wa…

---

## [How to specify the SSH key for Pkg to use](https://discourse.julialang.org/t/how-to-specify-the-ssh-key-for-pkg-to-use/14784)

<div class="topic-metadata">

**Author:** [@danielmatz](https://discourse.julialang.org/u/danielmatz)\
**Replies:** 5\
**Last updated:** [March 24, 2020, 9:52am UTC](https://discourse.julialang.org/t/how-to-specify-the-ssh-key-for-pkg-to-use/14784 "2020-03-24T09:52:21Z")

</div>

I’m trying to get Pkg to use a different SSH key when it instantiates a project. I naively tried this: env GIT\_SSH\_COMMAND='ssh -i /path/to/key' julia --project -e 'using Pkg; Pkg.instantiate()' But it doesn’t seem to…

---

## [Programatically access version of third party package](https://discourse.julialang.org/t/programatically-access-version-of-third-party-package/36357)

<div class="topic-metadata">

**Author:** [@mfh](https://discourse.julialang.org/u/mfh)\
**Replies:** 9\
**Last updated:** [March 24, 2020, 8:41am UTC](https://discourse.julialang.org/t/programatically-access-version-of-third-party-package/36357 "2020-03-24T08:41:59Z")

</div>

I would like to access the version information of an installed third-party package in terms of a VersionNumber object or similar. Is this possible somehow? I did bit of digging in the documentation of Base and Pkg, but n…

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

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