# Internals & Design

**URL:** https://discourse.julialang.org/c/dev/5.md?page=68

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

**Page:** 69

---

## [Atom announces atom-ide](https://discourse.julialang.org/t/atom-announces-atom-ide/5865)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 5\
**Last updated:** [September 13, 2017, 6:35pm UTC](https://discourse.julialang.org/t/atom-announces-atom-ide/5865 "2017-09-13T18:35:00Z")

</div>

Atom (Github) announces atom-ide. Might be relevant for all our IDEing?

---

## [Test 'spawn' failure in conda build (julia-0.6.0)](https://discourse.julialang.org/t/test-spawn-failure-in-conda-build-julia-0-6-0/5848)

<div class="topic-metadata">

**Author:** [@dfornika](https://discourse.julialang.org/u/dfornika)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 7:07pm UTC](https://discourse.julialang.org/t/test-spawn-failure-in-conda-build-julia-0-6-0/5848 "2017-09-11T19:07:52Z")

</div>

I’m working on a conda recipe for julia: https://github.com/conda-forge/julia-feedstock We’re preparing a recipe for version 0.6.0, and are running into a test failure: Worker 1 failed running test spawn: Some tests d…

---

## [Allow \`return\` in \`@parallel\`?](https://discourse.julialang.org/t/allow-return-in-parallel/5845)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 0\
**Last updated:** [September 11, 2017, 5:43pm UTC](https://discourse.julialang.org/t/allow-return-in-parallel/5845 "2017-09-11T17:43:43Z")

</div>

I recently ran into some unexpected behavior with the @parrallel operator that I think might warrant a syntax change. In particular, since @parallel requires specification of a reduction function for value returned by ea…

---

## [Why does the type of an index default to Int?](https://discourse.julialang.org/t/why-does-the-type-of-an-index-default-to-int/5802)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 4\
**Last updated:** [September 10, 2017, 9:57am UTC](https://discourse.julialang.org/t/why-does-the-type-of-an-index-default-to-int/5802 "2017-09-10T09:57:38Z")

</div>

I’m wondering why functions like find return Int instead of say UInt. Indexes, as such, cannot be negative, so they should be unsigned, and the scope of UIntis much larger than an Int (not that we would need an array of …

---

## [Help with adding GLIBC's termios routines](https://discourse.julialang.org/t/help-with-adding-glibcs-termios-routines/5735)

<div class="topic-metadata">

**Author:** [@Frank\_Applin](https://discourse.julialang.org/u/Frank_Applin)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 7:48pm UTC](https://discourse.julialang.org/t/help-with-adding-glibcs-termios-routines/5735 "2017-09-05T19:48:37Z")

</div>

Hi. I haven’t been using Julia very long, but I have been a programmer for 30 years doing everything from FORTRAN on a Honeywell CP-6 to C/C++, PowerBuilder, C#, Java, and PowerBasic on PCs and client/server platforms. I…

---

## [Proposal: drop relation SparseMatrixCSC \<: AbstractArray](https://discourse.julialang.org/t/proposal-drop-relation-sparsematrixcsc-abstractarray/5617)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 53\
**Last updated:** [September 6, 2017, 12:02pm UTC](https://discourse.julialang.org/t/proposal-drop-relation-sparsematrixcsc-abstractarray/5617 "2017-09-06T12:02:23Z")

</div>

I have encountered two distinct major performance hits caused by bugs in different versions of 0.6.0 (both reported in earlier threads here and as Julia issues) that in turn were caused by the fact that SparseMatrixCSC{T…

---

## [Static julia compilation with own package](https://discourse.julialang.org/t/static-julia-compilation-with-own-package/1435)

<div class="topic-metadata">

**Author:** [@Martin\_Florek](https://discourse.julialang.org/u/Martin_Florek)\
**Replies:** 3\
**Last updated:** [September 3, 2017, 1:53am UTC](https://discourse.julialang.org/t/static-julia-compilation-with-own-package/1435 "2017-09-03T01:53:38Z")

</div>

I tried to compile Julie with my own package “FOO” with the help of script. I ran it with the following command line arguments. julia.exe “C:/Julia-0.5.0/build\_sysimg.jl” libBar core2 “C:/Julia-0.5.0/userimg.jl” --forc…

---

## [Argument ordering: subject first or last? Just pick one and stick with it!](https://discourse.julialang.org/t/argument-ordering-subject-first-or-last-just-pick-one-and-stick-with-it/5655)

<div class="topic-metadata">

**Author:** [@Ford](https://discourse.julialang.org/u/Ford)\
**Replies:** 4\
**Last updated:** [August 31, 2017, 3:28pm UTC](https://discourse.julialang.org/t/argument-ordering-subject-first-or-last-just-pick-one-and-stick-with-it/5655 "2017-08-31T15:28:04Z")

</div>

I have decided to use julia for a small script, that changes string ip4 address to integer ip4 address in a .csv with ~20e+6 rows. I have to say the syntax for function chaining is pretty bad. You can’t even put |\> at th…

---

## [Remove Reactive's map from the equation](https://discourse.julialang.org/t/remove-reactives-map-from-the-equation/5635)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [August 31, 2017, 7:56am UTC](https://discourse.julialang.org/t/remove-reactives-map-from-the-equation/5635 "2017-08-31T07:56:55Z")

</div>

I find Reactive.Signals extremely useful, especially for GUIs and in combination with Gtk à la GtkReactive. To map one signal to another via some function we use Reactive.map. I can’t help but think that the resulting c…

---

## [Should \`min.(1,f)\` be broadcasting as \`broadcast(x-\>min(1,x),f)\`?](https://discourse.julialang.org/t/should-min-1-f-be-broadcasting-as-broadcast-x-min-1-x-f/5554)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 21\
**Last updated:** [August 26, 2017, 6:55am UTC](https://discourse.julialang.org/t/should-min-1-f-be-broadcasting-as-broadcast-x-min-1-x-f/5554 "2017-08-26T06:55:30Z")

</div>

I ran into an issue where I expected min.(1,f) to be lowered to broadcast(min,1,f), but instead it is lowered to broadcast(x-\>min(1,x),f). There are a few issues with this behaviour: It breaks the “semantic” contract …

---

## [More informative \`@inferred\`, especially for unit testing?](https://discourse.julialang.org/t/more-informative-inferred-especially-for-unit-testing/5481)

<div class="topic-metadata">

**Author:** [@Andras\_Niedermayer](https://discourse.julialang.org/u/Andras_Niedermayer)\
**Replies:** 12\
**Last updated:** [August 24, 2017, 3:53pm UTC](https://discourse.julialang.org/t/more-informative-inferred-especially-for-unit-testing/5481 "2017-08-24T15:53:07Z")

</div>

@inferred doesn’t seem to be sufficiently informative (especially in unit test sets), see e.g. https://github.com/JuliaLang/julia/issues/23371 : contrary to the error message @inferred doesn’t show up on line 177 of test…

---

## [Is it possible to create different operator for the dot-call syntax?](https://discourse.julialang.org/t/is-it-possible-to-create-different-operator-for-the-dot-call-syntax/5511)

<div class="topic-metadata">

**Author:** [@morningkyle](https://discourse.julialang.org/u/morningkyle)\
**Replies:** 10\
**Last updated:** [August 24, 2017, 2:02pm UTC](https://discourse.julialang.org/t/is-it-possible-to-create-different-operator-for-the-dot-call-syntax/5511 "2017-08-24T14:02:15Z")

</div>

The dot-call is such a great feature of Julia. But it strangely use the same operator as field value accessor. The f.() syntax looks strange and the dot symbol is not consistent as the dot production symbol in math boo…

---

## [Notes on the Julia compiler (JIT vs static)](https://discourse.julialang.org/t/notes-on-the-julia-compiler-jit-vs-static/4275)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 13\
**Last updated:** [August 23, 2017, 6:34pm UTC](https://discourse.julialang.org/t/notes-on-the-julia-compiler-jit-vs-static/4275 "2017-08-23T18:34:01Z")

</div>

Off-topic: Could you please expand on how the compiler is terrible? Just curious.

---

## [Crashing the REPL with big numbers](https://discourse.julialang.org/t/crashing-the-repl-with-big-numbers/5524)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 2\
**Last updated:** [August 23, 2017, 11:45am UTC](https://discourse.julialang.org/t/crashing-the-repl-with-big-numbers/5524 "2017-08-23T11:45:10Z")

</div>

My 9 years old son is learning Julia (he is loving it!). He is especially fascinated by huge numbers. He recently found a crashing bug that breaks the REPL under OSX from v0.5 to current master. The following julia\> big…

---

## [Storage of -0.0 in sparse arrays](https://discourse.julialang.org/t/storage-of-0-0-in-sparse-arrays/5461)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 2\
**Last updated:** [August 19, 2017, 3:42pm UTC](https://discourse.julialang.org/t/storage-of-0-0-in-sparse-arrays/5461 "2017-08-19T15:42:04Z")

</div>

If I store -0.0 as array element of a SparseVector, it depends on the history of modifications, whether I retrieve -0.0 or 0.0: julia\> A = sparse(\[0.0;0.0\]) 2-element SparseVector{Float64,Int64} with 0 stored entries ju…

---

## [Add \`find\` method to look for a specific element (paralleling \`findfirst\`, etc.)](https://discourse.julialang.org/t/add-find-method-to-look-for-a-specific-element-paralleling-findfirst-etc/5397)

<div class="topic-metadata">

**Author:** [@tparker](https://discourse.julialang.org/u/tparker)\
**Replies:** 4\
**Last updated:** [August 16, 2017, 7:34am UTC](https://discourse.julialang.org/t/add-find-method-to-look-for-a-specific-element-paralleling-findfirst-etc/5397 "2017-08-16T07:34:29Z")

</div>

Probably the single most common use of the variants of the find method is to search for a specific element in an array. The Base methods findfirst, findlast, findnext, and findprev all conveniently implement this functi…

---

## [Possible bug in conversions of Float16 NaN values to Float32/Float64](https://discourse.julialang.org/t/possible-bug-in-conversions-of-float16-nan-values-to-float32-float64/5225)

<div class="topic-metadata">

**Author:** [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Replies:** 3\
**Last updated:** [August 16, 2017, 3:21am UTC](https://discourse.julialang.org/t/possible-bug-in-conversions-of-float16-nan-values-to-float32-float64/5225 "2017-08-16T03:21:56Z")

</div>

The code for convert(::Type{Float32}, val::Float16) in Base at float.jl:155 seems to be incorrect. I had expected that conversions of NaN values from Float16 to larger types would preserve the NaN payload, so that a ro…

---

## [Type inference broken?](https://discourse.julialang.org/t/type-inference-broken/5373)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 6\
**Last updated:** [August 14, 2017, 7:26pm UTC](https://discourse.julialang.org/t/type-inference-broken/5373 "2017-08-14T19:26:55Z")

</div>

Motivation: Imagine I want to use the return type of a function to define an output array of that type. julia\> makearray(f::Function, ::Type{T}) where T = Core.Inference.return…

---

## [Why does Julia not support multiple traits?](https://discourse.julialang.org/t/why-does-julia-not-support-multiple-traits/5278)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 44\
**Last updated:** [August 14, 2017, 3:28pm UTC](https://discourse.julialang.org/t/why-does-julia-not-support-multiple-traits/5278 "2017-08-14T15:28:13Z")

</div>

Wouldn’t it be nice, if we could define a method like this: # assuming Iterable{T} is an abstract type in Base, # and merged into all relevant iterable classes. function myfindmax(itr::Iterable{T}) println("inferre…

---

## [Union and intersect with unexpected return types](https://discourse.julialang.org/t/union-and-intersect-with-unexpected-return-types/5222)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 5\
**Last updated:** [August 14, 2017, 6:37am UTC](https://discourse.julialang.org/t/union-and-intersect-with-unexpected-return-types/5222 "2017-08-14T06:37:16Z")

</div>

Tried the following: | | |\_| | | | (\_| | | Version 0.6.0 (2017-06-19 13:05 UTC) \_/ |\\\_\_'\_|\_|\_|\\\_\_'\_| | |\_\_/ | x86\_64-redhat-linux julia\> union(Set(Int16\[1,2,3\]), IntSet(\[1,42\])) 4-element Arr…

---

## [Development tools for Julia?](https://discourse.julialang.org/t/development-tools-for-julia/5361)

<div class="topic-metadata">

**Author:** [@jeffwong](https://discourse.julialang.org/u/jeffwong)\
**Replies:** 7\
**Last updated:** [August 13, 2017, 8:57pm UTC](https://discourse.julialang.org/t/development-tools-for-julia/5361 "2017-08-13T20:57:31Z")

</div>

I am a new contributor to Julia and feel like I have a very inefficient workflow. For example, I am trying to contribute to this function in GLM https://github.com/JuliaStats/GLM.jl/blob/master/src/linpred.jl#L128 I kn…

---

## [PSA: Parametric method syntax deprecation about to drop](https://discourse.julialang.org/t/psa-parametric-method-syntax-deprecation-about-to-drop/4931)

<div class="topic-metadata">

**Author:** [@jeff.bezanson](https://discourse.julialang.org/u/jeff.bezanson)\
**Replies:** 28\
**Last updated:** [August 12, 2017, 6:58pm UTC](https://discourse.julialang.org/t/psa-parametric-method-syntax-deprecation-about-to-drop/4931 "2017-08-12T18:58:38Z")

</div>

https://github.com/JuliaLang/julia/pull/22834 Just a heads up. In my estimation, this could very well be the single biggest source of deprecation warnings ever, and that’s saying something. If anyone has any final thoug…

---

## [More control over writedlm formatting](https://discourse.julialang.org/t/more-control-over-writedlm-formatting/2840)

<div class="topic-metadata">

**Author:** [@mcopik](https://discourse.julialang.org/u/mcopik)\
**Replies:** 21\
**Last updated:** [August 10, 2017, 1:39am UTC](https://discourse.julialang.org/t/more-control-over-writedlm-formatting/2840 "2017-08-10T01:39:49Z")

</div>

Hi, I’ve recently discovered that writedlm() tends to output floating-point numbers using a very strange format pattern which removes the fractional part by decreasing exponent. Not only it is terribly confusing, the da…

---

## [Is map(f,collection) memory inefficient?](https://discourse.julialang.org/t/is-map-f-collection-memory-inefficient/5268)

<div class="topic-metadata">

**Author:** [@sambitdash](https://discourse.julialang.org/u/sambitdash)\
**Replies:** 3\
**Last updated:** [August 7, 2017, 10:59pm UTC](https://discourse.julialang.org/t/is-map-f-collection-memory-inefficient/5268 "2017-08-07T22:59:09Z")

</div>

Hi All, I used a 1MB array and applied map on it for some computation. It shows me an estimated allocation of 8MB. Can this happen or it’s some issue in reporting of BenchmarkTools package? From pure intuition one can …

---

## [General julia v0.4 deprecation/drop?](https://discourse.julialang.org/t/general-julia-v0-4-deprecation-drop/5248)

<div class="topic-metadata">

**Author:** [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Replies:** 5\
**Last updated:** [August 7, 2017, 3:50pm UTC](https://discourse.julialang.org/t/general-julia-v0-4-deprecation-drop/5248 "2017-08-07T15:50:13Z")

</div>

At the moment i’m moving my own, local, production environment from 0.5 to 0.6 and start supporting v0.7 for the packages (two) i maintain: Cairo and Rsvg. And i somehow have the feeling nobody told me, that we have deci…

---

## [Inconsistent results based on number of processes](https://discourse.julialang.org/t/inconsistent-results-based-on-number-of-processes/5191)

<div class="topic-metadata">

**Author:** [@appascoe](https://discourse.julialang.org/u/appascoe)\
**Replies:** 11\
**Last updated:** [August 4, 2017, 5:59pm UTC](https://discourse.julialang.org/t/inconsistent-results-based-on-number-of-processes/5191 "2017-08-04T17:59:03Z")

</div>

I stumbled across this inconsistency, which I find disconcerting, during a process of upgrading from 0.4.7 to 0.6. (Also, I discovered that the manual’s example of an echo server does not properly handle multiple connect…

---

## [max(x::T, y::T) and min must be commutative!](https://discourse.julialang.org/t/max-x-t-y-t-and-min-must-be-commutative/5165)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 20\
**Last updated:** [August 3, 2017, 7:24pm UTC](https://discourse.julialang.org/t/max-x-t-y-t-and-min-must-be-commutative/5165 "2017-08-03T19:24:27Z")

</div>

I could not believe it in julia Version 0.6.0 (2017-06-19 13:05 UTC) I got julia\> max(Set(\[1\]), Set(\[2\])) Set(\[2\]) julia\> max(Set(\[2\]), Set(\[1\])) Set(\[1\]) julia\> min(Set(\[1\]), Set(\[2\])) Set(\[1\]) julia\> min(Set(\[2\]), Set…

---

## [Generator - iterators should deliver accurate eltype](https://discourse.julialang.org/t/generator-iterators-should-deliver-accurate-eltype/5149)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 3\
**Last updated:** [August 3, 2017, 1:27pm UTC](https://discourse.julialang.org/t/generator-iterators-should-deliver-accurate-eltype/5149 "2017-08-03T13:27:36Z")

</div>

The following snippet of code unexpectedly returns Any and not Int64 from eltype: julia\> g = (x for x in 1:5) Base.Generator{UnitRange{Int64},##1#2}(#1, 1:5) julia\> eltype(g) Any Reason seems that Base.Generator does n…

---

## [Why is d::Dict !== Dict(d)?](https://discourse.julialang.org/t/why-is-d-dict-dict-d/5197)

<div class="topic-metadata">

**Author:** [@garborg](https://discourse.julialang.org/u/garborg)\
**Replies:** 2\
**Last updated:** [August 3, 2017, 9:49am UTC](https://discourse.julialang.org/t/why-is-d-dict-dict-d/5197 "2017-08-03T09:49:43Z")

</div>

Does Dict(::Dict) copy only because the method is the vehicle for implementing copy(d::Dict)? Fallback for T(::T): (::Type{T})(arg) where {T} = convert(T, arg)::T # Hidden from the REPL. usually leads to no copying: j…

---

## [Bug in sparse matrix .+= scalar?](https://discourse.julialang.org/t/bug-in-sparse-matrix-scalar/5169)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 7\
**Last updated:** [August 1, 2017, 10:52pm UTC](https://discourse.julialang.org/t/bug-in-sparse-matrix-scalar/5169 "2017-08-01T22:52:39Z")

</div>

I guess this is a bug, but I’d like some feedback before opening an issue in github, in case there is already an open discussion somewhere In v0.5.1 (correct behavior) julia\> sp = sprand(10,10,.05) 10×10 sparse matrix …

[Previous page](https://discourse.julialang.org/c/dev/5.md?page=67)

[Next page](https://discourse.julialang.org/c/dev/5.md?page=69)
