# Internals & Design

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

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

**Page:** 68

---

## [Auto singly promotion for bittypes upon overflow?](https://discourse.julialang.org/t/auto-singly-promotion-for-bittypes-upon-overflow/6255)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 11:36am UTC](https://discourse.julialang.org/t/auto-singly-promotion-for-bittypes-upon-overflow/6255 "2017-10-06T11:36:51Z")

</div>

function overflow() a = 2^63 return a end overflow() function overflow\_no() a = BigInt(2)^63 return a end overflow\_no() In the above example overflow() will overflow with no warning, but overflow\_no() works fin…

---

## [Round methods for Complex](https://discourse.julialang.org/t/round-methods-for-complex/6260)

<div class="topic-metadata">

**Author:** [@ethomag](https://discourse.julialang.org/u/ethomag)\
**Replies:** 2\
**Last updated:** [October 5, 2017, 2:18pm UTC](https://discourse.julialang.org/t/round-methods-for-complex/6260 "2017-10-05T14:18:31Z")

</div>

To me it seems that there are some round methods missing in Base julia\> round(Complex64, Complex(0, 1.0)) ERROR: MethodError: no method matching round(::Type{Complex{Float32}}, ::Complex{Float64}) Shouldn’t there be so…

---

## [LLVM patches for NVPTX](https://discourse.julialang.org/t/llvm-patches-for-nvptx/6236)

<div class="topic-metadata">

**Author:** [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Replies:** 9\
**Last updated:** [October 5, 2017, 12:15pm UTC](https://discourse.julialang.org/t/llvm-patches-for-nvptx/6236 "2017-10-05T12:15:04Z")

</div>

Since we’re going to stick with LLVM 3.9 for Julia 1.0, CUDA support is falling behind a little. Not only is NVPTX still under heavy development, NVIDIA also regularly adds new intrinsics with new CUDA versions (eg. CUDA…

---

## [Can 0.6 and 0.7 no longer coexist?](https://discourse.julialang.org/t/can-0-6-and-0-7-no-longer-coexist/6223)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 13\
**Last updated:** [October 4, 2017, 9:47pm UTC](https://discourse.julialang.org/t/can-0-6-and-0-7-no-longer-coexist/6223 "2017-10-04T21:47:14Z")

</div>

I think there was a breaking change in 0.7 yesterday. Is that an indication that 0.6 and 0.7 cannot really coexist at this point?

---

## [Brevity and StaticArrays](https://discourse.julialang.org/t/brevity-and-staticarrays/6142)

<div class="topic-metadata">

**Author:** [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Replies:** 10\
**Last updated:** [October 3, 2017, 10:00am UTC](https://discourse.julialang.org/t/brevity-and-staticarrays/6142 "2017-10-03T10:00:18Z")

</div>

I like StaticArrays – the ability to say, “The type of this variable is a matrix with such-and-such a size.” I also love how powerfully brief my code can be in Julia, allowing me to stay very “mathy”, using LaTeX charact…

---

## [Is const tuple... = documented?](https://discourse.julialang.org/t/is-const-tuple-documented/6194)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [October 3, 2017, 8:47am UTC](https://discourse.julialang.org/t/is-const-tuple-documented/6194 "2017-10-03T08:47:04Z")

</div>

Eg this works fine: const a, b = 1, 2 and both a and b end up as constants. I have seen #7314 and #8925 so this should be supported and valid syntax, but I could not find it in the documentation. Is it documented? I am…

---

## [Are there any plans to support higher order ranked types in julia?](https://discourse.julialang.org/t/are-there-any-plans-to-support-higher-order-ranked-types-in-julia/6137)

<div class="topic-metadata">

**Author:** [@Sighoya](https://discourse.julialang.org/u/Sighoya)\
**Replies:** 19\
**Last updated:** [September 30, 2017, 6:40pm UTC](https://discourse.julialang.org/t/are-there-any-plans-to-support-higher-order-ranked-types-in-julia/6137 "2017-09-30T18:40:26Z")

</div>

Higher ranked types is some form of higher order generics, but is not the same as higher kinded types (nested generics). A typical situation occurs, if we want to apply a length function to a collection of heterogenous …

---

## [\`plan\_fft\` fails when Julia is built with Intel MKL?](https://discourse.julialang.org/t/plan-fft-fails-when-julia-is-built-with-intel-mkl/4284)

<div class="topic-metadata">

**Author:** [@fasiha](https://discourse.julialang.org/u/fasiha)\
**Replies:** 6\
**Last updated:** [October 1, 2017, 12:30am UTC](https://discourse.julialang.org/t/plan-fft-fails-when-julia-is-built-with-intel-mkl/4284 "2017-10-01T00:30:49Z")

</div>

I built Julia 0.5.2 with Intel MKL on macOS (with some effort) and am enjoying some nice speedups in 3D FFTs. However, it appears that plan\_fft doesn’t work with MKL: julia\> Base.libfftw\_name "libmkl\_rt" julia\> x = re…

---

## [In what order are multiple finalizers of one object run?](https://discourse.julialang.org/t/in-what-order-are-multiple-finalizers-of-one-object-run/6136)

<div class="topic-metadata">

**Author:** [@thofma](https://discourse.julialang.org/u/thofma)\
**Replies:** 2\
**Last updated:** [September 30, 2017, 2:41pm UTC](https://discourse.julialang.org/t/in-what-order-are-multiple-finalizers-of-one-object-run/6136 "2017-09-30T14:41:50Z")

</div>

It seems that WeakKeyDict contains finalized elements? shows that currently WeakKeyDict should not (cannot?) be used with objects, which already have finalizers registered. This excludes for example the usage of BigFloat …

---

## [Question mark in variable names](https://discourse.julialang.org/t/question-mark-in-variable-names/3836)

<div class="topic-metadata">

**Author:** [@nsmith](https://discourse.julialang.org/u/nsmith)\
**Replies:** 33\
**Last updated:** [September 29, 2017, 9:51am UTC](https://discourse.julialang.org/t/question-mark-in-variable-names/3836 "2017-09-29T09:51:34Z")

</div>

Why aren’t question marks allowed in variable names in Julia? This question has probably been discussed elsewhere so perhaps someone can point me there if they know the location. Its a small thing, but it would be nice …

---

## [Why so many internals in C?](https://discourse.julialang.org/t/why-so-many-internals-in-c/6119)

<div class="topic-metadata">

**Author:** [@foobar\_lv](https://discourse.julialang.org/u/foobar_lv)\
**Replies:** 5\
**Last updated:** [September 27, 2017, 10:53pm UTC](https://discourse.julialang.org/t/why-so-many-internals-in-c/6119 "2017-09-27T22:53:11Z")

</div>

\[sorry if this question does not belong here; feel free to move it\] I was wondering why so many internals are implemented in C and not conveniently made available in Julia. For example, take array.c / array.jl. It woul…

---

## [Rename Complex2n to Complexn?](https://discourse.julialang.org/t/rename-complex2n-to-complexn/6081)

<div class="topic-metadata">

**Author:** [@rfourquet](https://discourse.julialang.org/u/rfourquet)\
**Replies:** 6\
**Last updated:** [September 27, 2017, 10:36pm UTC](https://discourse.julialang.org/t/rename-complex2n-to-complexn/6081 "2017-09-27T22:36:20Z")

</div>

I have always been bugged by the names Complex128 = Complex{Float64}, etc, as there is always (probably because I’m not a heavy user) a tiny mental step to divide the number to know the actual precision (64 bits for Comp…

---

## [Define zero for DateTime](https://discourse.julialang.org/t/define-zero-for-datetime/6035)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 16\
**Last updated:** [September 25, 2017, 5:42pm UTC](https://discourse.julialang.org/t/define-zero-for-datetime/6035 "2017-09-25T17:42:28Z")

</div>

Do you even…? More seriously, it would be useful if we could treat time like any other quantity. Everyone seems to agree that the world started either now() ago, or on 00:00 1st January 1970. Not sure what convention ot…

---

## [Why is \`+(::Number, UniformScaling)\` deprecated?](https://discourse.julialang.org/t/why-is-number-uniformscaling-deprecated/6021)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 22\
**Last updated:** [September 24, 2017, 9:13pm UTC](https://discourse.julialang.org/t/why-is-number-uniformscaling-deprecated/6021 "2017-09-24T21:13:20Z")

</div>

This deprecation makes writing generic code that works with both matrices and scalars harder. What’s the logic behind it? WARNING: x::Number + J::UniformScaling is deprecated, use x + J.λ instead. Stacktrace: \[1\] depwa…

---

## [1.0 roadmap](https://discourse.julialang.org/t/1-0-roadmap/2643)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 11\
**Last updated:** [September 22, 2017, 1:00am UTC](https://discourse.julialang.org/t/1-0-roadmap/2643 "2017-09-22T01:00:00Z")

</div>

I’m pitching julia for a major project right now, and any information I could get about the current plans for 1.0 would help enormously. Here are some specific questions, I understand that some of them probably don’t hav…

---

## [Invokelatest() makes code run slower](https://discourse.julialang.org/t/invokelatest-makes-code-run-slower/6027)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 14\
**Last updated:** [September 22, 2017, 12:43am UTC](https://discourse.julialang.org/t/invokelatest-makes-code-run-slower/6027 "2017-09-22T00:43:56Z")

</div>

It seems that when I upgraded the Fatou to julia 0.6 from 0.5, I needed to work around the new world counting feature in the julia language. It was possible to make Fatou functional in 0.6 by using the new invokelatest() …

---

## [Enforce SemVer like Elm?](https://discourse.julialang.org/t/enforce-semver-like-elm/6026)

<div class="topic-metadata">

**Author:** [@Kaiyin\_Zhong](https://discourse.julialang.org/u/Kaiyin_Zhong)\
**Replies:** 2\
**Last updated:** [September 21, 2017, 8:54pm UTC](https://discourse.julialang.org/t/enforce-semver-like-elm/6026 "2017-09-21T20:54:57Z")

</div>

I played around with Elm a bit lately. It’s interesting that the package manager actually detects api changes and bumps version for you when incompatibility happens. Wouldn’t it be nice to have for Pkg3?

---

## [Gc() and WeakKeyDict does not work with local variable in function](https://discourse.julialang.org/t/gc-and-weakkeydict-does-not-work-with-local-variable-in-function/6015)

<div class="topic-metadata">

**Author:** [@usefulhyun](https://discourse.julialang.org/u/usefulhyun)\
**Replies:** 4\
**Last updated:** [September 21, 2017, 5:32pm UTC](https://discourse.julialang.org/t/gc-and-weakkeydict-does-not-work-with-local-variable-in-function/6015 "2017-09-21T17:32:50Z")

</div>

Hi, I am use WeakKeyDict for manage memory for parallel implementations. I found it does not work properly the object created and assigned locally in a function. Below is an example. The results of main function and t…

---

## [Inconsistent behavior of \`sum\`,\`mean\` (and probably others) on different collection types](https://discourse.julialang.org/t/inconsistent-behavior-of-sum-mean-and-probably-others-on-different-collection-types/1167)

<div class="topic-metadata">

**Author:** [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Replies:** 29\
**Last updated:** [January 2, 2017, 3:25pm UTC](https://discourse.julialang.org/t/inconsistent-behavior-of-sum-mean-and-probably-others-on-different-collection-types/1167 "2017-01-02T15:25:57Z")

</div>

I’ve discovered a lot of inconsistent behavior today with the sum and mean functions (while investigating a question asked here on Discourse), some of which are regressions compared to v0.4.x. For example, on v0.4.x: j…

---

## [Consumption analysis of programming languages: add Julia?](https://discourse.julialang.org/t/consumption-analysis-of-programming-languages-add-julia/5969)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 1\
**Last updated:** [September 19, 2017, 1:03pm UTC](https://discourse.julialang.org/t/consumption-analysis-of-programming-languages-add-julia/5969 "2017-09-19T13:03:47Z")

</div>

Green Software Lab made a “set of tools for energy consumption analysis of programming languages, using Computer Language Benchmark Game”: https://github.com/greensoftwarelab/Energy-Languages Since Julia has some of th…

---

## [List operator associativity in the documentation](https://discourse.julialang.org/t/list-operator-associativity-in-the-documentation/5080)

<div class="topic-metadata">

**Author:** [@tparker](https://discourse.julialang.org/u/tparker)\
**Replies:** 5\
**Last updated:** [September 19, 2017, 8:50am UTC](https://discourse.julialang.org/t/list-operator-associativity-in-the-documentation/5080 "2017-09-19T08:50:23Z")

</div>

The documentation should discuss operator associativity somewhere (presumably on the “Mathematical Operations and Elementary Functions” page). The Operator precedence table on that page is quite helpful, but it would be …

---

## [Asking for code review (extending broadcast)](https://discourse.julialang.org/t/asking-for-code-review-extending-broadcast/5927)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [September 17, 2017, 2:20pm UTC](https://discourse.julialang.org/t/asking-for-code-review-extending-broadcast/5927 "2017-09-17T14:20:42Z")

</div>

I thought I would make an attempt at #23734, but before submitting even a WIP PR, I wanted to ask for some preliminary help, because I am not sure I grasp all the details in Base.Broadcast. Could the following be a viab…

---

## [Method dispatch for tuples](https://discourse.julialang.org/t/method-dispatch-for-tuples/5925)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 3\
**Last updated:** [September 17, 2017, 7:54am UTC](https://discourse.julialang.org/t/method-dispatch-for-tuples/5925 "2017-09-17T07:54:08Z")

</div>

I have the following definitions: f(x::Tuple{Any, Any}) = "Tuple{Any, Any}" f(x::NTuple{N}) where N = "NTuple{N}" When I write f((1,2)) the call satisfies both definitions. On Julia 0.6 the second definition is called …

---

## [Use of Module, Vector and Matrix in Main](https://discourse.julialang.org/t/use-of-module-vector-and-matrix-in-main/5924)

<div class="topic-metadata">

**Author:** [@wbhart](https://discourse.julialang.org/u/wbhart)\
**Replies:** 5\
**Last updated:** [September 16, 2017, 8:31pm UTC](https://discourse.julialang.org/t/use-of-module-vector-and-matrix-in-main/5924 "2017-09-16T20:31:18Z")

</div>

We are currently developing a new commutative algebra package (called Singular.jl) for which modules, vectors and matrices are of central importance. We defined Module, Vector and Matrix in our Singular module, with the …

---

## [Plots.jl but for GUI](https://discourse.julialang.org/t/plots-jl-but-for-gui/5905)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 8\
**Last updated:** [September 16, 2017, 8:08pm UTC](https://discourse.julialang.org/t/plots-jl-but-for-gui/5905 "2017-09-16T20:08:17Z")

</div>

Plots.jl is awesome because it made plotting simpler while retaining most of the ability to configure stuff. Wouldn’t it be great if there was a similar meta-package that does what Plots.jl does for plotting, but for GUI…

---

## [MS or Ph.D. level problems for Julia compilation?](https://discourse.julialang.org/t/ms-or-ph-d-level-problems-for-julia-compilation/5879)

<div class="topic-metadata">

**Author:** [@arch.d.robison](https://discourse.julialang.org/u/arch.d.robison)\
**Replies:** 1\
**Last updated:** [September 16, 2017, 3:54am UTC](https://discourse.julialang.org/t/ms-or-ph-d-level-problems-for-julia-compilation/5879 "2017-09-16T03:54:38Z")

</div>

I’m giving a talk on Julia compilation for a CS seminar course on compilers at UIUC. I have only 50 minutes, so I can’t go very deep, so I’ll mainly cover the compilation chain and type inference (and the type stability…

---

## [Ccall from 32-bit Julia to 64-bit OS](https://discourse.julialang.org/t/ccall-from-32-bit-julia-to-64-bit-os/5851)

<div class="topic-metadata">

**Author:** [@Frank\_Applin](https://discourse.julialang.org/u/Frank_Applin)\
**Replies:** 14\
**Last updated:** [September 14, 2017, 3:18pm UTC](https://discourse.julialang.org/t/ccall-from-32-bit-julia-to-64-bit-os/5851 "2017-09-14T15:18:55Z")

</div>

Can I make a calls to libc from a 32-bit version of Julia that is running on a 64-bit version of Linux? I’m working on code dealing with termios in libc. I’m running 32-bit Julia on my 64-bit machine (I have a cluster wi…

---

## ["concepts" as Array abstractions for multiple simultaneous conceptual paradigms?](https://discourse.julialang.org/t/concepts-as-array-abstractions-for-multiple-simultaneous-conceptual-paradigms/5874)

<div class="topic-metadata">

**Author:** [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Replies:** 3\
**Last updated:** [September 14, 2017, 1:33pm UTC](https://discourse.julialang.org/t/concepts-as-array-abstractions-for-multiple-simultaneous-conceptual-paradigms/5874 "2017-09-14T13:33:59Z")

</div>

There’s a language feature that I have always wanted and am wondering if julia has anything close. Just wanted to check before attempting to implement anything… My idea is based on the fact that one way of accessing and…

---

## [Exception subtypes in Base](https://discourse.julialang.org/t/exception-subtypes-in-base/5875)

<div class="topic-metadata">

**Author:** [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Replies:** 4\
**Last updated:** [September 13, 2017, 9:41pm UTC](https://discourse.julialang.org/t/exception-subtypes-in-base/5875 "2017-09-13T21:41:27Z")

</div>

As I was implementing an Exception subtype for the first time, I looked at some implementations in Base, for example ArgumentError. I was surprised by two things: a lot of the subtypes are mutable a lot of the subtype…

---

## [DragonFly port: Assertion Failed when compiling precompile.jl](https://discourse.julialang.org/t/dragonfly-port-assertion-failed-when-compiling-precompile-jl/5740)

<div class="topic-metadata">

**Author:** [@markuspf](https://discourse.julialang.org/u/markuspf)\
**Replies:** 9\
**Last updated:** [September 13, 2017, 6:53pm UTC](https://discourse.julialang.org/t/dragonfly-port-assertion-failed-when-compiling-precompile-jl/5740 "2017-09-13T18:53:25Z")

</div>

Hi all, I collected some patches to the julia master branch to make julia build out of the box on DragonFly, here https://github.com/markuspf/julia/tree/dfly-port-2 Building Julia works ok if I am using the correct in…

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

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