# Internals & Design

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

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

**Page:** 67

---

## [CartesianIndex and linear index](https://discourse.julialang.org/t/cartesianindex-and-linear-index/7255)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [November 23, 2017, 9:13am UTC](https://discourse.julialang.org/t/cartesianindex-and-linear-index/7255 "2017-11-23T09:13:50Z")

</div>

In light of the CartesianIndex type, has anyone considered a LinearIndex type? Could be cool to convert between the two. They would need to contain a reference to the size of the container they index into. We could have …

---

## [Loading julia shared library in C on Windows](https://discourse.julialang.org/t/loading-julia-shared-library-in-c-on-windows/7242)

<div class="topic-metadata">

**Author:** [@randy3k](https://discourse.julialang.org/u/randy3k)\
**Replies:** 1\
**Last updated:** [November 22, 2017, 10:04pm UTC](https://discourse.julialang.org/t/loading-julia-shared-library-in-c-on-windows/7242 "2017-11-22T22:04:40Z")

</div>

I am trying to load the julia shared library in C on Windows using the following C code. And the returned pointer is NULL no matter what I tried. #include \<Windows.h\> #include \<stdio.h\> int main() { int status = 0; …

---

## [How to deprecate a change in exported names](https://discourse.julialang.org/t/how-to-deprecate-a-change-in-exported-names/7257)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 1\
**Last updated:** [November 22, 2017, 9:34pm UTC](https://discourse.julialang.org/t/how-to-deprecate-a-change-in-exported-names/7257 "2017-11-22T21:34:00Z")

</div>

if a module used to export a method, and a breaking change is made such that it doesn’t anymore, is there anyway to deprecate it? thanks.

---

## [0.7 download for Windows broken](https://discourse.julialang.org/t/0-7-download-for-windows-broken/7160)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [November 22, 2017, 4:16am UTC](https://discourse.julialang.org/t/0-7-download-for-windows-broken/7160 "2017-11-22T04:16:53Z")

</div>

Are you guys aware? Just wanted to let you know…

---

## [Pkg.add display license?](https://discourse.julialang.org/t/pkg-add-display-license/7196)

<div class="topic-metadata">

**Author:** [@oatlzzvztd](https://discourse.julialang.org/u/oatlzzvztd)\
**Replies:** 5\
**Last updated:** [November 20, 2017, 11:10pm UTC](https://discourse.julialang.org/t/pkg-add-display-license/7196 "2017-11-20T23:10:12Z")

</div>

I’d been planning on using LinearOperators.jl for a project but discovered that it is licensed under the GPL, which I am allergic to for various unimportant reasons. I guess I’m kind of used to Julia libraries being lice…

---

## [Specifying Travis CI versions](https://discourse.julialang.org/t/specifying-travis-ci-versions/7172)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 6\
**Last updated:** [November 20, 2017, 2:52am UTC](https://discourse.julialang.org/t/specifying-travis-ci-versions/7172 "2017-11-20T02:52:32Z")

</div>

How do I select which Julia version to use if it isn’t tagged? For example, if instead of using the nightly I want to use a previous Dev-version by the version number of commit. Can one specify to checkout certain packa…

---

## [Julia Modules](https://discourse.julialang.org/t/julia-modules/7028)

<div class="topic-metadata">

**Author:** [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Replies:** 20\
**Last updated:** [November 17, 2017, 12:33am UTC](https://discourse.julialang.org/t/julia-modules/7028 "2017-11-17T00:33:34Z")

</div>

The current situation with Julia modules is a nightmare with various keywords (include, using, import) and a lack of a simple and standard system for the compiler to find modules without playing around with source files.…

---

## [Multiline input and whitespace](https://discourse.julialang.org/t/multiline-input-and-whitespace/7020)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [November 14, 2017, 12:33pm UTC](https://discourse.julialang.org/t/multiline-input-and-whitespace/7020 "2017-11-14T12:33:40Z")

</div>

This issue came up when sending a function with a lot of blank lines in julia-repl. It can be reproduced like this: julia\> function f() ERROR: syntax: incomplete: premature end of input ie 3x RET after f…

---

## [Design choice for printing strings in Arrays](https://discourse.julialang.org/t/design-choice-for-printing-strings-in-arrays/6974)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 1\
**Last updated:** [November 9, 2017, 8:29am UTC](https://discourse.julialang.org/t/design-choice-for-printing-strings-in-arrays/6974 "2017-11-09T08:29:28Z")

</div>

I run up in an odd way of printing strings (compared to numbers per say) in a Vector. julia\> \[1, 2.9,"test", 3, "test2"\] 5-element Array{Any,1}: 1 2.9 "test" 3 "test2" Why is there a space before each string onl…

---

## [Is this a good behavior for \`size(::Array, ::Integer)\`?](https://discourse.julialang.org/t/is-this-a-good-behavior-for-size-array-integer/6915)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 12\
**Last updated:** [November 7, 2017, 4:59pm UTC](https://discourse.julialang.org/t/is-this-a-good-behavior-for-size-array-integer/6915 "2017-11-07T16:59:13Z")

</div>

I have an open mind here; but I recently had a screw-up that made me wonder if the current behavior of size is ideal. My screw-up was that I had called size(v, 2) where v is a Vector, when I should have been calling siz…

---

## [When will Julia 0.7 arrive?](https://discourse.julialang.org/t/when-will-julia-0-7-arrive/5581)

<div class="topic-metadata">

**Author:** [@ulysses](https://discourse.julialang.org/u/ulysses)\
**Replies:** 4\
**Last updated:** [November 6, 2017, 3:43pm UTC](https://discourse.julialang.org/t/when-will-julia-0-7-arrive/5581 "2017-11-06T15:43:49Z")

</div>

Is there any estimation for Julia 0.7 release date?

---

## [Should \`collect\` also be deprecated, like \`full\`?](https://discourse.julialang.org/t/should-collect-also-be-deprecated-like-full/6888)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 4\
**Last updated:** [November 6, 2017, 1:29pm UTC](https://discourse.julialang.org/t/should-collect-also-be-deprecated-like-full/6888 "2017-11-06T13:29:01Z")

</div>

I’m very glad to see full deprecated: I was never sure what exactly it meant, whereas Matrix(...) is unambiguous. Does the same argument apply to collect? For example, I’m surprised the following returns an Array (in 0.…

---

## [Dict: getindex and setindex in one function call](https://discourse.julialang.org/t/dict-getindex-and-setindex-in-one-function-call/6814)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [November 2, 2017, 11:19pm UTC](https://discourse.julialang.org/t/dict-getindex-and-setindex-in-one-function-call/6814 "2017-11-02T23:19:56Z")

</div>

There is a common pattern for working with Dict which is to look up the value and modify it in some way. DataStructures.jl’s Accumulator uses the value as an accumulator to keep sum, StatsBase.countmap uses it to do a fr…

---

## [Lexically Scoped Macros?](https://discourse.julialang.org/t/lexically-scoped-macros/6835)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 8\
**Last updated:** [November 2, 2017, 8:28pm UTC](https://discourse.julialang.org/t/lexically-scoped-macros/6835 "2017-11-02T20:28:56Z")

</div>

Hi, I recently had a conversation on the lisp subreddit where I was convinced that allowing for lexically scoped macros would be a potentially interesting and useful addition to Julia. My questions are Why aren’t lexi…

---

## [Small union types: present and future (looking for some guidelines)](https://discourse.julialang.org/t/small-union-types-present-and-future-looking-for-some-guidelines/6320)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [November 2, 2017, 1:08pm UTC](https://discourse.julialang.org/t/small-union-types-present-and-future-looking-for-some-guidelines/6320 "2017-11-02T13:08:08Z")

</div>

A bit of context: I am in the process of writing a micro-optimized parser for some ASCII data (a lot of it). Parse functions can return a value, or error information (“parsing failed at character …, for reasons …”). So i…

---

## [Julia.h internals](https://discourse.julialang.org/t/julia-h-internals/6829)

<div class="topic-metadata">

**Author:** [@sysint64](https://discourse.julialang.org/u/sysint64)\
**Replies:** 2\
**Last updated:** [November 1, 2017, 3:36pm UTC](https://discourse.julialang.org/t/julia-h-internals/6829 "2017-11-01T15:36:02Z")

</div>

Hello, in julia.h many structs have the JL\_DATA\_TYPE macro, what does this macro mean? this macro add some additional fields to structs? If so, which fields?

---

## [Obtain base path of sources to resolve error messages](https://discourse.julialang.org/t/obtain-base-path-of-sources-to-resolve-error-messages/6823)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [November 1, 2017, 12:36pm UTC](https://discourse.julialang.org/t/obtain-base-path-of-sources-to-resolve-error-messages/6823 "2017-11-01T12:36:27Z")

</div>

I am working on making error message locations “clickable” in Emacs. How can I obtain the directory (in Julia) that ./loading.jl and the other files are resolved in the example below: julia\> include("/tmp/Foo.jl") WARNI…

---

## [Alternative Syntax for multiline Macros?](https://discourse.julialang.org/t/alternative-syntax-for-multiline-macros/6290)

<div class="topic-metadata">

**Author:** [@Sighoya](https://discourse.julialang.org/u/Sighoya)\
**Replies:** 7\
**Last updated:** [October 30, 2017, 8:59pm UTC](https://discourse.julialang.org/t/alternative-syntax-for-multiline-macros/6290 "2017-10-30T20:59:35Z")

</div>

Is it possible to change the semantics for multiline macros, such that: @some\_macro begin ... end can be formulated to @some\_macro begin ... end where some\_macro is some multiline macro. The latter syntax is better …

---

## [BreakAt iterator suggestion](https://discourse.julialang.org/t/breakat-iterator-suggestion/6771)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 0\
**Last updated:** [October 30, 2017, 1:06pm UTC](https://discourse.julialang.org/t/breakat-iterator-suggestion/6771 "2017-10-30T13:06:43Z")

</div>

While trying to write a quick function to address a question in StackOverflow, an iterator decorator which takes another iterator and returns its values until some condition is met felt like a useful thing to have. So, h…

---

## [LLVM version of modf](https://discourse.julialang.org/t/llvm-version-of-modf/6738)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 1\
**Last updated:** [October 28, 2017, 12:53pm UTC](https://discourse.julialang.org/t/llvm-version-of-modf/6738 "2017-10-28T12:53:06Z")

</div>

Is LLVM version of modf guaranteed to be safer or faster for some input or platform, compared to the fallback method modf(x) = rem(x,one(x)), trunc(x) ? On my machine (64-bit GNU/Linux), the fallback method is much fa…

---

## [Change default precision](https://discourse.julialang.org/t/change-default-precision/6520)

<div class="topic-metadata">

**Author:** [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Replies:** 52\
**Last updated:** [October 28, 2017, 6:54am UTC](https://discourse.julialang.org/t/change-default-precision/6520 "2017-10-28T06:54:16Z")

</div>

Something I find myself doing often is write an algorithm in Float64 (without bothering with types, as I would in Matlab say), and then try to change the default precision to Float32 or BigFloat (to test the sensitivity …

---

## [Modifying lowered code](https://discourse.julialang.org/t/modifying-lowered-code/6712)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 0\
**Last updated:** [October 26, 2017, 9:50pm UTC](https://discourse.julialang.org/t/modifying-lowered-code/6712 "2017-10-26T21:50:29Z")

</div>

My tracing package currently parses files to recover the AST behind every traced function. It works, but it’s slow. Perhaps working with lowered code would be better. I’ve read the devdocs and still have a few questions.…

---

## [Cannot build Julia v0.6.1 on OSX 10.12.6](https://discourse.julialang.org/t/cannot-build-julia-v0-6-1-on-osx-10-12-6/6679)

<div class="topic-metadata">

**Author:** [@Federico\_Calboli](https://discourse.julialang.org/u/Federico_Calboli)\
**Replies:** 5\
**Last updated:** [October 26, 2017, 11:58am UTC](https://discourse.julialang.org/t/cannot-build-julia-v0-6-1-on-osx-10-12-6/6679 "2017-10-26T11:58:04Z")

</div>

Hi All, today I tried a fresh install with git clone git://github.com/JuliaLang/julia.git cd julia git checkout v0.6.1 make … ld: library not found for -lSystem collect2: error: ld returned 1 exit status make\[4\]…

---

## [TypeMapLevel](https://discourse.julialang.org/t/typemaplevel/6609)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 2\
**Last updated:** [October 24, 2017, 2:02am UTC](https://discourse.julialang.org/t/typemaplevel/6609 "2017-10-24T02:02:05Z")

</div>

Can anyone give a brief overview of TypeMapLevel? I hit one in a m.specializations field of a m::Method. The fieldnames of TypeMapLevel seem a bit inscrutable, and from the couple of comments in julia.h I’m not really ge…

---

## [Improvements to \`filter\`](https://discourse.julialang.org/t/improvements-to-filter/6600)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 1\
**Last updated:** [October 21, 2017, 7:43pm UTC](https://discourse.julialang.org/t/improvements-to-filter/6600 "2017-10-21T19:43:08Z")

</div>

One method of the Base function filter is implemented as follows: function filter(f, a::Vector) r = Vector{eltype(a)}(0) for ai in a if f(ai) push!(r, ai) end end return r end…

---

## [Type restriction on UnitRange](https://discourse.julialang.org/t/type-restriction-on-unitrange/6557)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 17\
**Last updated:** [October 21, 2017, 2:57pm UTC](https://discourse.julialang.org/t/type-restriction-on-unitrange/6557 "2017-10-21T14:57:43Z")

</div>

Why are the fields of UnitRange restricted to be \<: Real? Using that type could make sense for ranges of other types which are represented by integers under the hood (eg Date uses StepRange with Day(1), even though it co…

---

## [Shouldn't HasShape trait subtype HasLength?](https://discourse.julialang.org/t/shouldnt-hasshape-trait-subtype-haslength/6400)

<div class="topic-metadata">

**Author:** [@Alexander\_Belopolsky](https://discourse.julialang.org/u/Alexander_Belopolsky)\
**Replies:** 1\
**Last updated:** [October 12, 2017, 3:49am UTC](https://discourse.julialang.org/t/shouldnt-hasshape-trait-subtype-haslength/6400 "2017-10-12T03:49:08Z")

</div>

The HasLength and HasShape generator traits are defined as follows HasLength() if there is a fixed, finite length. HasShape() if there is a known length plus a notion of multidimensional shape (as for an array). Thi…

---

## [Eachindex in map (and broadcast?)](https://discourse.julialang.org/t/eachindex-in-map-and-broadcast/6371)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 4\
**Last updated:** [October 11, 2017, 9:13am UTC](https://discourse.julialang.org/t/eachindex-in-map-and-broadcast/6371 "2017-10-11T09:13:00Z")

</div>

I have a question about the julia implementation of map and broadcast and its relation to eachindex. In map!, as well as in a few other places, I find the pattern for (i,j) in zip(eachindex(dest),eachindex(A)), i.e. fo…

---

## [Printing of Arrays without spaces](https://discourse.julialang.org/t/printing-of-arrays-without-spaces/6283)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 10:22pm UTC](https://discourse.julialang.org/t/printing-of-arrays-without-spaces/6283 "2017-10-06T22:22:34Z")

</div>

In previous version of Julia, printing an array was done without inserting spaces \[8,7,6,5,4,3,2,1\] Now in 0.6, it has spaces \[8, 7, 6, 5, 4, 3, 2, 1\] where can I find the method in Base that I would have to overwrit…

---

## [Method definitions after const aliases](https://discourse.julialang.org/t/method-definitions-after-const-aliases/6291)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 1:59pm UTC](https://discourse.julialang.org/t/method-definitions-after-const-aliases/6291 "2017-10-06T13:59:18Z")

</div>

I am asking here before opening an issue, about the following: I use const some\_alias = some\_function to define convenient shorthands. Especially for infix in tests, eg const ≅ = isequal If I later accidentally define…

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

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