# Latest

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

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

**Page:** 1886

---

## [Thoughts around ways of ensuring compile time evaluation / const prop / inference?](https://discourse.julialang.org/t/thoughts-around-ways-of-ensuring-compile-time-evaluation-const-prop-inference/28904)

<div class="topic-metadata">

**Author:** [@jackf](https://discourse.julialang.org/u/jackf)\
**Replies:** 17\
**Last updated:** [November 10, 2019, 12:06pm UTC](https://discourse.julialang.org/t/thoughts-around-ways-of-ensuring-compile-time-evaluation-const-prop-inference/28904 "2019-11-10T12:06:36Z")

</div>

When writing julia code, I find a lot of my time is spent on a common themes: trying to ensure some piece of code is either constant propagating or inferring as I intend / expect. I find this stuff quite difficult to sys…

---

## [Abstract Interfaces (Dicts, IOs, etc) Going to be Documented?](https://discourse.julialang.org/t/abstract-interfaces-dicts-ios-etc-going-to-be-documented/20377)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 3\
**Last updated:** [November 10, 2019, 11:58am UTC](https://discourse.julialang.org/t/abstract-interfaces-dicts-ios-etc-going-to-be-documented/20377 "2019-11-10T11:58:18Z")

</div>

Are interfaces to AbstractDicts, IOs, and other things planned to be documented in the future (similar to how AbstractArrays, iterators, etc) or somewhere that I’ve completely missed? I’ve found docstrings that give hint…

---

## [Generalized Schur Decomposition with sparse matrices?](https://discourse.julialang.org/t/generalized-schur-decomposition-with-sparse-matrices/30901)

<div class="topic-metadata">

**Author:** [@qwerytyui1234](https://discourse.julialang.org/u/qwerytyui1234)\
**Replies:** 1\
**Last updated:** [November 10, 2019, 9:30am UTC](https://discourse.julialang.org/t/generalized-schur-decomposition-with-sparse-matrices/30901 "2019-11-10T09:30:51Z")

</div>

Hey guys, so I’m trying to use generalized schur decomposition, but with large sparse matrices. I know I can use schurfact(A,B) in the LinearAlgebra package, but it seems that it does not allow for sparse matrices. I …

---

## [\`@everywhere using\` fails for stdlib functions in distribution binaries](https://discourse.julialang.org/t/everywhere-using-fails-for-stdlib-functions-in-distribution-binaries/30907)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 4\
**Last updated:** [November 10, 2019, 7:15am UTC](https://discourse.julialang.org/t/everywhere-using-fails-for-stdlib-functions-in-distribution-binaries/30907 "2019-11-10T07:15:05Z")

</div>

Is this a bug? julia\> using Distributed julia\> addprocs(4) 4-element Array{Int64,1}: 2 3 4 5 julia\> using Distributed julia\> @everywhere using DistributedArrays ERROR: ArgumentError: Package DistributedArrays …

---

## [Get UndefRefError, when step into function](https://discourse.julialang.org/t/get-undefreferror-when-step-into-function/30909)

<div class="topic-metadata">

**Author:** [@nick-stu](https://discourse.julialang.org/u/nick-stu)\
**Replies:** 0\
**Last updated:** [November 10, 2019, 3:06am UTC](https://discourse.julialang.org/t/get-undefreferror-when-step-into-function/30909 "2019-11-10T03:06:14Z")

</div>

ubuntu 16.04.5 julia 0.6.4 atom 1.41.0 Hi all, I am new to julia. I try to run and debug the code “test/runtests.jl” from GitHub - jgorham/SteinDiscrepancy.jl: Practical tools for quantifying how well a sample appro…

---

## [What is the unicode for the number i, the imaginary unit of the complex numbers](https://discourse.julialang.org/t/what-is-the-unicode-for-the-number-i-the-imaginary-unit-of-the-complex-numbers/30904)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 3\
**Last updated:** [November 10, 2019, 1:33am UTC](https://discourse.julialang.org/t/what-is-the-unicode-for-the-number-i-the-imaginary-unit-of-the-complex-numbers/30904 "2019-11-10T01:33:05Z")

</div>

Er? How do I type in the imaginary unit in Julia code as an unicode character? Also how do I type it in program Textedit in normal Mac text document? The number i, the imaginary unit of the complex numbers. PS: I want …

---

## [Numerical errors in logit normal model using Turing.jl](https://discourse.julialang.org/t/numerical-errors-in-logit-normal-model-using-turing-jl/30602)

<div class="topic-metadata">

**Author:** [@aammd](https://discourse.julialang.org/u/aammd)\
**Replies:** 27\
**Last updated:** [November 9, 2019, 10:06pm UTC](https://discourse.julialang.org/t/numerical-errors-in-logit-normal-model-using-turing-jl/30602 "2019-11-09T22:06:05Z")

</div>

Hello everyone, This is my first post in a Julia forum! I have really been enjoying studying Turing.jl , Gen, and Julia in general. Thank you to all developers! I am trying to fit a simple “logit normal” model, that is…

---

## [Julia 1.0 IDE for Windows](https://discourse.julialang.org/t/julia-1-0-ide-for-windows/17449)

<div class="topic-metadata">

**Author:** [@Seanny123](https://discourse.julialang.org/u/Seanny123)\
**Replies:** 29\
**Last updated:** [November 9, 2019, 6:41pm UTC](https://discourse.julialang.org/t/julia-1-0-ide-for-windows/17449 "2019-11-09T18:41:24Z")

</div>

I was wondering if anyone has been working on Windows with Julia 1.0 and has had any positive experiences using an IDE. The Visual Studio Code extension doesn’t support Julia 1.0 and definitely doesn’t work for Windows…

---

## [Dynamic nested For-Loops? (dumb question)](https://discourse.julialang.org/t/dynamic-nested-for-loops-dumb-question/30896)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 0\
**Last updated:** [November 9, 2019, 3:32pm UTC](https://discourse.julialang.org/t/dynamic-nested-for-loops-dumb-question/30896 "2019-11-09T15:32:30Z")

</div>

This is going to sound stupid - but I have a weird question. So I’m working on a dynamic programming problem just for fun, nothing novel (been solved 20yrs ago). I’ve always found the dichotomy between recursion and loop…

---

## [Breaking the shackles -- A new registry, free of any bounds](https://discourse.julialang.org/t/breaking-the-shackles-a-new-registry-free-of-any-bounds/30749)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 4\
**Last updated:** [November 9, 2019, 3:39pm UTC](https://discourse.julialang.org/t/breaking-the-shackles-a-new-registry-free-of-any-bounds/30749 "2019-11-09T15:39:14Z")

</div>

For far too long, we have been shackled by the bounds that exist in our daily Julia life. I am, of course, talking about the bounds (upper and lower) that the General registry imposes on us. Instead of the package manage…

---

## [Convincing Julia that 2 types are the same](https://discourse.julialang.org/t/convincing-julia-that-2-types-are-the-same/30863)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 4\
**Last updated:** [November 9, 2019, 2:04pm UTC](https://discourse.julialang.org/t/convincing-julia-that-2-types-are-the-same/30863 "2019-11-09T14:04:17Z")

</div>

Let’s say I have structs A and B. They are defined the same way, but weren’t specified to be part of a common abstract type. Is there a way to tell Julia that they’re really the same type, and that functions that accept…

---

## [What's the \`Pkg\` equivalent of \`pin Pkg1@0.5.0\`?](https://discourse.julialang.org/t/whats-the-pkg-equivalent-of-pin-pkg1-0-5-0/30879)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [November 9, 2019, 4:51am UTC](https://discourse.julialang.org/t/whats-the-pkg-equivalent-of-pin-pkg1-0-5-0/30879 "2019-11-09T04:51:36Z")

</div>

I can do Pkg.add("Pkg1") which is the same as \]add Pkg1. What’s the equivalent of \]pin Pkg1@0.5.0? I can’t run this in Jupyter notebook. I tried Pkg.pin("Pkg1", v"0.50") but it doesn’t have this signature.

---

## [LoadError: MbedTLS not installed properly, run Pkg.build("MbedTLS") ](https://discourse.julialang.org/t/loaderror-mbedtls-not-installed-properly-run-pkg-build-mbedtls/13497)

<div class="topic-metadata">

**Author:** [@wang\_lin](https://discourse.julialang.org/u/wang_lin)\
**Replies:** 1\
**Last updated:** [November 9, 2019, 4:48am UTC](https://discourse.julialang.org/t/loaderror-mbedtls-not-installed-properly-run-pkg-build-mbedtls/13497 "2019-11-09T04:48:32Z")

</div>

After installing the juliaPro, the following problems arise: Starting Julia… INFO: Precompiling module Atom. ERROR: LoadError: MbedTLS not installed properly, run Pkg.build(“MbedTLS”), restart Julia and try ag ain S…

---

## [Microsecond timing in Julia](https://discourse.julialang.org/t/microsecond-timing-in-julia/30877)

<div class="topic-metadata">

**Author:** [@fleecy](https://discourse.julialang.org/u/fleecy)\
**Replies:** 4\
**Last updated:** [November 9, 2019, 3:08am UTC](https://discourse.julialang.org/t/microsecond-timing-in-julia/30877 "2019-11-09T03:08:03Z")

</div>

I’d like to take stopwatch time measurements accurate to the microsecond. Is there another way to do this besides using @elapsed? I’d ideally like to avoid encapsulating my timed piece of code in a macro. Thanks!

---

## [Assigning a Tuple to sub-entries of Tuple of Arrays](https://discourse.julialang.org/t/assigning-a-tuple-to-sub-entries-of-tuple-of-arrays/30871)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 8:42pm UTC](https://discourse.julialang.org/t/assigning-a-tuple-to-sub-entries-of-tuple-of-arrays/30871 "2019-11-08T20:42:57Z")

</div>

I’m distributing entries of a Tuple to the ith entry of each array in a Tuple of Arrays. using BenchmarkTools N = 3 X = (zeros(N),zeros(N)) Y = \[1,2\] function foo1!(X,Y,i) for fld in eachindex(X) X\[fld\]\[i\] …

---

## [SymTrididiagonal matrices performance and views allocations](https://discourse.julialang.org/t/symtrididiagonal-matrices-performance-and-views-allocations/24618)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 12\
**Last updated:** [November 8, 2019, 4:54pm UTC](https://discourse.julialang.org/t/symtrididiagonal-matrices-performance-and-views-allocations/24618 "2019-11-08T16:54:10Z")

</div>

Hi, I work on a toy 2D CFD solver and I wonder about the idiomatic Julian way to compute efficiently the product for all j \\in \[1:ny\] Pxy\[:,j\]=Lx\*Sxy\[:j\] where Lx is a a SymTridiagonal matrix of rank nx and Pxy and S…

---

## [GPU support in Knet: Cannot allocate before CuArrays has been initialized](https://discourse.julialang.org/t/gpu-support-in-knet-cannot-allocate-before-cuarrays-has-been-initialized/30859)

<div class="topic-metadata">

**Author:** [@Peter.Zentis](https://discourse.julialang.org/u/Peter.Zentis)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 3:04pm UTC](https://discourse.julialang.org/t/gpu-support-in-knet-cannot-allocate-before-cuarrays-has-been-initialized/30859 "2019-11-08T15:04:21Z")

</div>

Hi all, I am trying to work through the Knet tutorial (https://github.com/denizyuret/Knet.jl/blob/master/tutorial/50.cnn.ipynb) which worked great, just until I needed/wanted to use gpu support i.e. use a KnetArray. I …

---

## [Call for Papers: "Latest Developments & Software Tools for Ecosystem & Flux Data Analysis" at EGU (Austria) (CLIMLIST)](https://discourse.julialang.org/t/call-for-papers-latest-developments-software-tools-for-ecosystem-flux-data-analysis-at-egu-austria-climlist/30860)

<div class="topic-metadata">

**Author:** [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Replies:** 0\
**Last updated:** [November 8, 2019, 2:03pm UTC](https://discourse.julialang.org/t/call-for-papers-latest-developments-software-tools-for-ecosystem-flux-data-analysis-at-egu-austria-climlist/30860 "2019-11-08T14:03:31Z")

</div>

Hello Julia community, here’s a call for paper for the European Geosciences Union about a session called "“Latest Developments & Software Tools for Ecosystem & Flux Data Analysis”. This is a rather big event in the geop…

---

## [Atom 1.41 and Julia](https://discourse.julialang.org/t/atom-1-41-and-julia/30277)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 8\
**Last updated:** [November 8, 2019, 1:55pm UTC](https://discourse.julialang.org/t/atom-1-41-and-julia/30277 "2019-11-08T13:55:33Z")

</div>

Does the update break Juno for anyone else? Julia exits immediately after pressing any button. This is on Julia 1.2 and up-to-date versions of Atom.jl, Juno etc.

---

## [Downloading packages fails on work network](https://discourse.julialang.org/t/downloading-packages-fails-on-work-network/30700)

<div class="topic-metadata">

**Author:** [@ElectronicTeaCup](https://discourse.julialang.org/u/ElectronicTeaCup)\
**Replies:** 17\
**Last updated:** [November 8, 2019, 1:48pm UTC](https://discourse.julialang.org/t/downloading-packages-fails-on-work-network/30700 "2019-11-08T13:48:33Z")

</div>

Hi, I’ve seen a couple of threads on this but to no avail. Here is my error message: IOError(Base.IOError(“connect: connection refused (ECONNREFUSED)”, -4078) during request(https://pkg.juliacomputing.com/package/.yan…

---

## [For loop expression evaluation in DifferEq solver](https://discourse.julialang.org/t/for-loop-expression-evaluation-in-differeq-solver/30563)

<div class="topic-metadata">

**Author:** [@jbarazesh3](https://discourse.julialang.org/u/jbarazesh3)\
**Replies:** 12\
**Last updated:** [November 8, 2019, 12:54pm UTC](https://discourse.julialang.org/t/for-loop-expression-evaluation-in-differeq-solver/30563 "2019-11-08T12:54:16Z")

</div>

I am trying to evaluate strings within a for loop within an R script using JuliaCall::julia\_eval . While I was able to accomplish this in R using the deSolve package, I am running into issues when converting the code …

---

## [LightGraphs](https://discourse.julialang.org/t/lightgraphs/30850)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 6\
**Last updated:** [November 8, 2019, 12:21pm UTC](https://discourse.julialang.org/t/lightgraphs/30850 "2019-11-08T12:21:02Z")

</div>

I am trying to generate a regular-directed graph and eventually a small-world network using watts\_strogatz function in the Light Graphs’ package. For a network with 10,000 nodes, the time taken is as below: @btime watts…

---

## [Kernel Compilation error- KernelError: recursion is currently not supported](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853)

<div class="topic-metadata">

**Author:** [@Batel\_Str](https://discourse.julialang.org/u/Batel_Str)\
**Replies:** 8\
**Last updated:** [November 8, 2019, 10:36am UTC](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853 "2019-11-08T10:36:37Z")

</div>

Hi i wrote this kernel function: function gpu\_kernel\_init\_format(format\_img) gpu\_lab\_image =CuArrays.fill(128, (10,10,3)) i = (blockIdx().x - 1) \* blockDim().x + threadIdx().x j = (blockIdx().y - 1) \* blockDim().y + …

---

## [Improve test failures output to make it more readable](https://discourse.julialang.org/t/improve-test-failures-output-to-make-it-more-readable/30747)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 9:56am UTC](https://discourse.julialang.org/t/improve-test-failures-output-to-make-it-more-readable/30747 "2019-11-08T09:56:18Z")

</div>

Is any effort being undertaken to better format the output of test failures? For instance, I get something like: Evaluated: "\<html\>\<head\>\<title\>Genie test\</title\>\</head\>\<body\>\<div class=\\"template\\"\>\<h1\>Welcome\</h1\>\<di…

---

## [Looking for a blog post](https://discourse.julialang.org/t/looking-for-a-blog-post/30822)

<div class="topic-metadata">

**Author:** [@bocc](https://discourse.julialang.org/u/bocc)\
**Replies:** 5\
**Last updated:** [November 8, 2019, 8:25am UTC](https://discourse.julialang.org/t/looking-for-a-blog-post/30822 "2019-11-08T08:25:27Z")

</div>

Hello All, I remember reading a blog post about solving a system of charged particles with differentiable programming (Flux with Zygote perhaps) using a gradient based optimization method instead of explicitly solving t…

---

## [YALMIP vs JuMP](https://discourse.julialang.org/t/yalmip-vs-jump/30776)

<div class="topic-metadata">

**Author:** [@raktim](https://discourse.julialang.org/u/raktim)\
**Replies:** 13\
**Last updated:** [November 8, 2019, 7:19am UTC](https://discourse.julialang.org/t/yalmip-vs-jump/30776 "2019-11-08T07:19:23Z")

</div>

I compared JuMP and YALMIP’s performance in parsing convex problem. I noticed a difference in the problem size of the final optimization problem that is passed to Mosek. The problem from JuMP was quite large, than YALMIP…

---

## [Optimizing performance (newcomer from Matlab)](https://discourse.julialang.org/t/optimizing-performance-newcomer-from-matlab/30825)

<div class="topic-metadata">

**Author:** [@jonneguyt](https://discourse.julialang.org/u/jonneguyt)\
**Replies:** 19\
**Last updated:** [November 8, 2019, 5:47am UTC](https://discourse.julialang.org/t/optimizing-performance-newcomer-from-matlab/30825 "2019-11-08T05:47:17Z")

</div>

Hi all, I am encountering slower than hoped for performance in my usage of Julia (in comparison to Matlab). I am sure that my coding style is largely responsible for this, but would appreciate any pointers. I am calcul…

---

## [How to execute a Julia code in a shell script without using a file jl?](https://discourse.julialang.org/t/how-to-execute-a-julia-code-in-a-shell-script-without-using-a-file-jl/30846)

<div class="topic-metadata">

**Author:** [@steph\_de\_paris](https://discourse.julialang.org/u/steph_de_paris)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 10:18pm UTC](https://discourse.julialang.org/t/how-to-execute-a-julia-code-in-a-shell-script-without-using-a-file-jl/30846 "2019-11-07T22:18:01Z")

</div>

Hello, Is-it possible to execute a julia code inside a shell script by using something like: #!/bin/sh julia using Pkg ; Pkg.status() ; println("Hello the world !") Thanks very much ! NB : I know that it is possible …

---

## [Capturing a parameter of a type!](https://discourse.julialang.org/t/capturing-a-parameter-of-a-type/30842)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 12:32am UTC](https://discourse.julialang.org/t/capturing-a-parameter-of-a-type/30842 "2019-11-08T00:32:36Z")

</div>

abstract type MM{T} end capture(::Type{MM{T}}) where T = T capture(MM{Int}) Int64 julia\> const CMM{C} = MM{T} where T\<:C MM{T} where T\<:C where C julia\> capture(::Type{CMM{T}}) where T = T capture (generic function w…

---

## [Storage of a diagonal matrix (and best way to update)?](https://discourse.julialang.org/t/storage-of-a-diagonal-matrix-and-best-way-to-update/30841)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 10:24pm UTC](https://discourse.julialang.org/t/storage-of-a-diagonal-matrix-and-best-way-to-update/30841 "2019-11-07T22:24:03Z")

</div>

I have a typical situation, P is an m x n matrix Q is an m x m matrix, but only has diagonal elements, i.e. Q\[i,j\] = q\[k\], i=j=k Q\[i,j\] = 0, i != j and eventually I have to multiply Q and P, R = Q \* P Naturally, m…

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

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