# Latest

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

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

**Page:** 1903

---

## [How to get the significand and the exponent of a floating point number?](https://discourse.julialang.org/t/how-to-get-the-significand-and-the-exponent-of-a-floating-point-number/29900)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 3\
**Last updated:** [October 14, 2019, 1:58pm UTC](https://discourse.julialang.org/t/how-to-get-the-significand-and-the-exponent-of-a-floating-point-number/29900 "2019-10-14T13:58:24Z")

</div>

Given a floating point number, I would like to print the significand and the exponent in binary. This is for teaching purposes. I guess I can use mathematical functions to get them but on one hand it seems that this can…

---

## [Juno 0.11 wokspace does not work](https://discourse.julialang.org/t/juno-0-11-wokspace-does-not-work/29892)

<div class="topic-metadata">

**Author:** [@amin\_ghareyazi](https://discourse.julialang.org/u/amin_ghareyazi)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 1:49pm UTC](https://discourse.julialang.org/t/juno-0-11-wokspace-does-not-work/29892 "2019-10-14T13:49:05Z")

</div>

Hi I’m working with Julia 1.2 and Juno 0.11 I love the way the results are shown next to codes. but they are not selectable for copying. I changed Result display mode to: Display results in REPL but after this change,…

---

## [Sys.WORD\_SIZE gives wrong bit size](https://discourse.julialang.org/t/sys-word-size-gives-wrong-bit-size/29879)

<div class="topic-metadata">

**Author:** [@Nirvik](https://discourse.julialang.org/u/Nirvik)\
**Replies:** 3\
**Last updated:** [October 14, 2019, 1:16pm UTC](https://discourse.julialang.org/t/sys-word-size-gives-wrong-bit-size/29879 "2019-10-14T13:16:04Z")

</div>

I was trying to use ODE solvers from MATLAB using the MATLABDiffEq package, however i find a load error due to matlab path not being found. I found that the function matlab\_libpath gets the the MATLAB path variable usin…

---

## [Open-sourcing the Blue Style Guide for Julia](https://discourse.julialang.org/t/open-sourcing-the-blue-style-guide-for-julia/29495)

<div class="topic-metadata">

**Author:** [@npr](https://discourse.julialang.org/u/npr)\
**Replies:** 33\
**Last updated:** [October 14, 2019, 12:57pm UTC](https://discourse.julialang.org/t/open-sourcing-the-blue-style-guide-for-julia/29495 "2019-10-14T12:57:49Z")

</div>

We just made available the style guide that we use at Invenia. See the Blue Style Guide at: GitHub - invenia/BlueStyle: A Julia style guide that lives in a blue world The style guide if of course opinionated, and may b…

---

## [Package for precision / recall?](https://discourse.julialang.org/t/package-for-precision-recall/29868)

<div class="topic-metadata">

**Author:** [@mpratland](https://discourse.julialang.org/u/mpratland)\
**Replies:** 4\
**Last updated:** [October 14, 2019, 11:05am UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868 "2019-10-14T11:05:26Z")

</div>

I’m slowly moving all my personal projects and ML hacking over to Julia, so I’m trying to find substitutes for packages that I’m used to. On in particular I’m heavily dependent on is Python’s scikit-learn, and in particu…

---

## [Kernel Error: kernel returns a value of type \`Union{}\`](https://discourse.julialang.org/t/kernel-error-kernel-returns-a-value-of-type-union/29885)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 3\
**Last updated:** [October 14, 2019, 6:52am UTC](https://discourse.julialang.org/t/kernel-error-kernel-returns-a-value-of-type-union/29885 "2019-10-14T06:52:37Z")

</div>

I am trying to port my Julia code to be able to run with GPU support. I use LightGraphs package. My code and error message are as follows: cmin=0.5;cmax=0.9;N=1000;P=500;od=125;Pr=0.5;sigma=10;Pi=1.0; mutable struct Pa…

---

## [Seemingly incorrect dependencies resolution in Pkg](https://discourse.julialang.org/t/seemingly-incorrect-dependencies-resolution-in-pkg/29845)

<div class="topic-metadata">

**Author:** [@rdyro](https://discourse.julialang.org/u/rdyro)\
**Replies:** 8\
**Last updated:** [October 14, 2019, 4:31am UTC](https://discourse.julialang.org/t/seemingly-incorrect-dependencies-resolution-in-pkg/29845 "2019-10-14T04:31:20Z")

</div>

I’m trying to develop Zygote, but can’t successfully install the latest development version from Github. When I try installing the package from the Github repo directly or trying to use the dev command with it, I get the…

---

## [Variable declarations within let blocks](https://discourse.julialang.org/t/variable-declarations-within-let-blocks/29882)

<div class="topic-metadata">

**Author:** [@yurivish](https://discourse.julialang.org/u/yurivish)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 2:31am UTC](https://discourse.julialang.org/t/variable-declarations-within-let-blocks/29882 "2019-10-14T02:31:11Z")

</div>

Is there any semantic difference between the following two forms? let a = 2, b = 3 a + b end and let a = 2 b = 3 a + b end I’m specifically curious about whether these are equivalent with respect to a…

---

## [Tic() + toc/toq() VS @elapsed](https://discourse.julialang.org/t/tic-toc-toq-vs-elapsed/1681)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 27\
**Last updated:** [October 14, 2019, 1:11am UTC](https://discourse.julialang.org/t/tic-toc-toq-vs-elapsed/1681 "2019-10-14T01:11:51Z")

</div>

Other than the difference in syntax, is there any essential difference between a combination of tic+toc and @elapsed? Any difference between what they return? The only difference described by the doc is as follows, which…

---

## [Zygote gradient: problem with indexing constant arrays](https://discourse.julialang.org/t/zygote-gradient-problem-with-indexing-constant-arrays/29871)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 12:28am UTC](https://discourse.julialang.org/t/zygote-gradient-problem-with-indexing-constant-arrays/29871 "2019-10-14T00:28:14Z")

</div>

It looks super simple, function h(pars) my\_array = \[1.0, 2.0, 3.0\] indices = \[2,3,1\] # v = 0.0 for (c,i) in zip(pars,indices) v += c \* my\_array\[i\] end return v end h(\[1.0,2.0,3.0\]) # …

---

## [Make IJulia completly independent from Python](https://discourse.julialang.org/t/make-ijulia-completly-independent-from-python/17375)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 27\
**Last updated:** [October 13, 2019, 9:54pm UTC](https://discourse.julialang.org/t/make-ijulia-completly-independent-from-python/17375 "2019-10-13T21:54:09Z")

</div>

Why do we need to have python installed on our computers in order to use Julia? If we want to use Julia through a GUI such as VS Code, Juno, Jupyter… we need to install IJulia and therefore python. Is there any alterna…

---

## [Error "Package does not have LinearAlgebra in its dependencies" running \`Pkg.test\`](https://discourse.julialang.org/t/error-package-does-not-have-linearalgebra-in-its-dependencies-running-pkg-test/29763)

<div class="topic-metadata">

**Author:** [@riccardomurri](https://discourse.julialang.org/u/riccardomurri)\
**Replies:** 3\
**Last updated:** [October 13, 2019, 9:38pm UTC](https://discourse.julialang.org/t/error-package-does-not-have-linearalgebra-in-its-dependencies-running-pkg-test/29763 "2019-10-13T21:38:49Z")

</div>

Hello! I am trying to write my first Julia package (called “BEAM”), but keep getting an error when I run Pkg.test("BEAM"): (BEAM) pkg\> test BEAM Testing BEAM Resolving package versions... ERROR: LoadError: Argument…

---

## [Interpolate a ND vector at once](https://discourse.julialang.org/t/interpolate-a-nd-vector-at-once/29844)

<div class="topic-metadata">

**Author:** [@MatsMor](https://discourse.julialang.org/u/MatsMor)\
**Replies:** 3\
**Last updated:** [October 13, 2019, 8:25pm UTC](https://discourse.julialang.org/t/interpolate-a-nd-vector-at-once/29844 "2019-10-13T20:25:38Z")

</div>

Hi all, I am trying to perform linear interpolation on some gridded data using the Interpolations.jl package. Suppose that I have 2 variables (x,y) and a function z=f(x,y). I want to interpolate a vector of values V={…

---

## [Missing dependencies error in new package](https://discourse.julialang.org/t/missing-dependencies-error-in-new-package/29851)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 5\
**Last updated:** [October 13, 2019, 7:08pm UTC](https://discourse.julialang.org/t/missing-dependencies-error-in-new-package/29851 "2019-10-13T19:08:35Z")

</div>

As I develop a new package (initialized using the instructions here PkgTemplates.jl, I receive these kinds of warnings: julia\> using PolarDemixing \[ Info: Recompiling stale cache file /Users/mpf/.julia/compiled/v1.2/Pol…

---

## [Publishing Packages](https://discourse.julialang.org/t/publishing-packages/29839)

<div class="topic-metadata">

**Author:** [@sstadick](https://discourse.julialang.org/u/sstadick)\
**Replies:** 2\
**Last updated:** [October 13, 2019, 6:24pm UTC](https://discourse.julialang.org/t/publishing-packages/29839 "2019-10-13T18:24:47Z")

</div>

Is there any official documentation on publishing packages to the Registrator? I see the README, and was able to follow it, but I’m looking for more details on how versions are managed, and how documentation is generated…

---

## [Shape of input arrays for an LSTM in Flux.jl? julia 1.0](https://discourse.julialang.org/t/shape-of-input-arrays-for-an-lstm-in-flux-jl-julia-1-0/27418)

<div class="topic-metadata">

**Author:** [@Simon\_Besnard](https://discourse.julialang.org/u/Simon_Besnard)\
**Replies:** 1\
**Last updated:** [October 13, 2019, 5:39pm UTC](https://discourse.julialang.org/t/shape-of-input-arrays-for-an-lstm-in-flux-jl-julia-1-0/27418 "2019-10-13T17:39:34Z")

</div>

I am currently trying to implement an LSTM model for a regression exercise using the flux.jl library. Although it is rather straightforward to build-up the model, I have rather some issues in understanding the right shap…

---

## [I discovered a new tutorial series on YouTube](https://discourse.julialang.org/t/i-discovered-a-new-tutorial-series-on-youtube/29867)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 0\
**Last updated:** [October 13, 2019, 4:59pm UTC](https://discourse.julialang.org/t/i-discovered-a-new-tutorial-series-on-youtube/29867 "2019-10-13T16:59:42Z")

</div>

---

## [Wrong line reported in error on parse error?](https://discourse.julialang.org/t/wrong-line-reported-in-error-on-parse-error/29866)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 0\
**Last updated:** [October 13, 2019, 4:01pm UTC](https://discourse.julialang.org/t/wrong-line-reported-in-error-on-parse-error/29866 "2019-10-13T16:01:13Z")

</div>

Would this be considered a bug? When you loading this: function foo(c:Int, b::Dict{String, Any}) # move # down # some local a : Dict{String, Any} = b\["d"\] return a end I get: ERROR: LoadError: sy…

---

## [How to make clickable julia script for Windows](https://discourse.julialang.org/t/how-to-make-clickable-julia-script-for-windows/8618)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 7\
**Last updated:** [October 13, 2019, 2:03pm UTC](https://discourse.julialang.org/t/how-to-make-clickable-julia-script-for-windows/8618 "2019-10-13T14:03:21Z")

</div>

This questions is more a windows question than a Julia one, so, I’m sorry if this is out of place. Background I’m taking a Computational Fluid Dynamics class, where we will be building a cfd code along the semester, and…

---

## [Tuple vs Union as struct parameter](https://discourse.julialang.org/t/tuple-vs-union-as-struct-parameter/29820)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 3\
**Last updated:** [October 13, 2019, 12:34pm UTC](https://discourse.julialang.org/t/tuple-vs-union-as-struct-parameter/29820 "2019-10-13T12:34:39Z")

</div>

This seems OK. julia\> struct TupleTest{T\<:Tuple} end julia\> TupleTest{Tuple{Int,Float64}} TupleTest{Tuple{Int64,Float64}} However this is not: julia\> struct UnionTest{U\<:Union} end julia\> UnionTest{Union…

---

## [Error trying to isntall Jupyter notebook](https://discourse.julialang.org/t/error-trying-to-isntall-jupyter-notebook/29790)

<div class="topic-metadata">

**Author:** [@Baederlee](https://discourse.julialang.org/u/Baederlee)\
**Replies:** 4\
**Last updated:** [October 13, 2019, 10:18am UTC](https://discourse.julialang.org/t/error-trying-to-isntall-jupyter-notebook/29790 "2019-10-13T10:18:07Z")

</div>

Hello, I am having trouble after installing Julia on a new Laptop. I want to add jupyter notebook to my Julia. So after adding IJulia, I type "using IJulia; notebook() ". After some downloading I get the Error-message be…

---

## [Juno - Defining \`juliaPath\` Using Relative Path](https://discourse.julialang.org/t/juno-defining-juliapath-using-relative-path/29841)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 3\
**Last updated:** [October 13, 2019, 9:27am UTC](https://discourse.julialang.org/t/juno-defining-juliapath-using-relative-path/29841 "2019-10-13T09:27:32Z")

</div>

Hello, I downloaded JuliaPro and I’m using Juno. The folder structure in Julia Pro is as following: In Juno settings there is an absolute path describing Julia Binary path (juliaPath). I was wondering, In case I wa…

---

## [Serious group-by performance issue with Query.jl](https://discourse.julialang.org/t/serious-group-by-performance-issue-with-query-jl/29070)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 26\
**Last updated:** [October 13, 2019, 5:34am UTC](https://discourse.julialang.org/t/serious-group-by-performance-issue-with-query-jl/29070 "2019-10-13T05:34:41Z")

</div>

Wanted to raise a performance issue at Query.jl but got directed here. I think Query.jl group-by is really inefficient and that’s why I never warmed to it. I use FileIO.jl but never Query.jl due to performance issues. E.…

---

## [Replacing all array elements with a single value](https://discourse.julialang.org/t/replacing-all-array-elements-with-a-single-value/29847)

<div class="topic-metadata">

**Author:** [@JeffC](https://discourse.julialang.org/u/JeffC)\
**Replies:** 7\
**Last updated:** [October 13, 2019, 2:42am UTC](https://discourse.julialang.org/t/replacing-all-array-elements-with-a-single-value/29847 "2019-10-13T02:42:01Z")

</div>

I am new to the Julia Language and like what I have seen so far. However, I have few questions. Here is one of them. In Matlab, I can create an array of zeros Example: ub=zeros(1,nz); and replace all elements with a…

---

## [Generate all subsets of a set](https://discourse.julialang.org/t/generate-all-subsets-of-a-set/12810)

<div class="topic-metadata">

**Author:** [@iin](https://discourse.julialang.org/u/iin)\
**Replies:** 13\
**Last updated:** [October 13, 2019, 1:23am UTC](https://discourse.julialang.org/t/generate-all-subsets-of-a-set/12810 "2019-10-13T01:23:18Z")

</div>

Hi, I’m very new in Julia, & I really need help to generate all subsets of a set. For example: I have a set \[1, 2, 3, 4, 5\], then I need to generate all subsets from it, such \[\[1,2\], \[1,3\], \[2,3\],…\[2,3,4\], …\[2,3,4,5\], e…

---

## [Preview longer arrays and dictionaries in Workspace : Atom - Julia](https://discourse.julialang.org/t/preview-longer-arrays-and-dictionaries-in-workspace-atom-julia/29827)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 1\
**Last updated:** [October 13, 2019, 1:18am UTC](https://discourse.julialang.org/t/preview-longer-arrays-and-dictionaries-in-workspace-atom-julia/29827 "2019-10-13T01:18:08Z")

</div>

I am using PowerModels package and it has rather long dictionaries as model data. When the inner structure has a lot of rows, it displays either …=\>… for a dict. or just … for arrays. I don’t see any way to preview mor…

---

## [Good Practises for making performant DSL's? (My Dissertation Topic)](https://discourse.julialang.org/t/good-practises-for-making-performant-dsls-my-dissertation-topic/29832)

<div class="topic-metadata">

**Author:** [@Specs](https://discourse.julialang.org/u/Specs)\
**Replies:** 2\
**Last updated:** [October 12, 2019, 10:21pm UTC](https://discourse.julialang.org/t/good-practises-for-making-performant-dsls-my-dissertation-topic/29832 "2019-10-12T22:21:18Z")

</div>

Hiya, I’m currently a final year student and my supervisor is into scientific computing. He has a tool that makes heavy use of a DSL written into python and he wants me to investigate whether writing DSL’s in Julia are …

---

## [Building Clp](https://discourse.julialang.org/t/building-clp/29835)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 9:19pm UTC](https://discourse.julialang.org/t/building-clp/29835 "2019-10-12T21:19:41Z")

</div>

i wanted to build my module and then it showed me that there is a problem in Clp, and now i’m having hard times to build it it shows me this : Building Clp → \`~/.julia/packages/Clp/9Gz64/deps/build.log\` ┌ Error: Error …

---

## [Changing an element inside array of arrays](https://discourse.julialang.org/t/changing-an-element-inside-array-of-arrays/29829)

<div class="topic-metadata">

**Author:** [@Vadim\_Zotin](https://discourse.julialang.org/u/Vadim_Zotin)\
**Replies:** 7\
**Last updated:** [October 12, 2019, 9:04pm UTC](https://discourse.julialang.org/t/changing-an-element-inside-array-of-arrays/29829 "2019-10-12T21:04:02Z")

</div>

Hello! Can anyone explain a strange result of changing one element inside an array of arrays? julia\> b1=fill(zeros(4),4) 4-element Array{Array{Float64,1},1}: \[0.0, 0.0, 0.0, 0.0\] \[0.0, 0.0, 0.0, 0.0\] \[0.0, 0.0, 0.0…

---

## [I hope you like brainteasers](https://discourse.julialang.org/t/i-hope-you-like-brainteasers/29813)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 7:21am UTC](https://discourse.julialang.org/t/i-hope-you-like-brainteasers/29813 "2019-10-12T07:21:21Z")

</div>

We all know how important it is to keep data that we process “local”. That should help the CPU memory pipeline to supply the data quickly. One of the standard operations in the finite element method is the “gather”: col…

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

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