# Internals & Design

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

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

**Page:** 48

---

## [PackageCompiler: issue with .exe file](https://discourse.julialang.org/t/packagecompiler-issue-with-exe-file/21284)

<div class="topic-metadata">

**Author:** [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Replies:** 12\
**Last updated:** [April 24, 2019, 5:07pm UTC](https://discourse.julialang.org/t/packagecompiler-issue-with-exe-file/21284 "2019-04-24T17:07:36Z")

</div>

Hi all, I create an .exe file with Build\_Executable function from PackageCompiler. It works very well if I run it from my computer. If I want to share the executable file and run it on another computer it doesnt work. I…

---

## [Getting VERSION from a git commit](https://discourse.julialang.org/t/getting-version-from-a-git-commit/23440)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 6\
**Last updated:** [April 23, 2019, 1:38pm UTC](https://discourse.julialang.org/t/getting-version-from-a-git-commit/23440 "2019-04-23T13:38:46Z")

</div>

If I want to condition code on a particular commit in the upcoming master/release branch, how can I figure out the VERSION value from the commit hash? Is there some lookup table?

---

## [Suggestion: findall to work on strings](https://discourse.julialang.org/t/suggestion-findall-to-work-on-strings/23143)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [April 21, 2019, 6:24pm UTC](https://discourse.julialang.org/t/suggestion-findall-to-work-on-strings/23143 "2019-04-21T18:24:51Z")

</div>

Just a small suggestion regarding “findall” functionality in Julia. Maybe it could be possible to do it in a way so that it would work on strings as well? See Find index of all occurences of a string for reference of wh…

---

## [Using Random.SamplerSimple](https://discourse.julialang.org/t/using-random-samplersimple/17864)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [April 21, 2019, 12:24pm UTC](https://discourse.julialang.org/t/using-random-samplersimple/17864 "2019-04-21T12:24:59Z")

</div>

I am trying to come up with MWEs for objects with and without precomputed data for generating draws. If someone could check that this is the way to go, I would contribute to the manual (which I found hard to comprehend, …

---

## [1.0 progress/status](https://discourse.julialang.org/t/1-0-progress-status/9762)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 60\
**Last updated:** [April 20, 2019, 4:28pm UTC](https://discourse.julialang.org/t/1-0-progress-status/9762 "2019-04-20T16:28:43Z")

</div>

I figured I’d write a post updating people with where we’re at on getting Julia 1.0-alpha ready. We’re several months overdue at this point, so people may be getting impatient. I know that I am and I feel confident that …

---

## [Abbreviations in source](https://discourse.julialang.org/t/abbreviations-in-source/23126)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 32\
**Last updated:** [April 20, 2019, 3:55pm UTC](https://discourse.julialang.org/t/abbreviations-in-source/23126 "2019-04-20T15:55:18Z")

</div>

So I have a somewhat obsessive need to use full words instead of abbreviations when I code. I think it really helps public library code to be readable and self-documenting. I was thinking today that I would have fun goin…

---

## [\`similar\` does not produce a SharedArray when fed one](https://discourse.julialang.org/t/similar-does-not-produce-a-sharedarray-when-fed-one/23287)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 1\
**Last updated:** [April 19, 2019, 1:42am UTC](https://discourse.julialang.org/t/similar-does-not-produce-a-sharedarray-when-fed-one/23287 "2019-04-19T01:42:36Z")

</div>

Consider this: using SharedArrays x = SharedArray{Float64}(1, 1) y = similar(x) I would expect y to also be a SharedArray, however julia\> typeof(x) SharedArray{Float64,2} julia\> typeof(y) Array{Float64,2}

---

## [Julia 1.2 feature freeze April 4th](https://discourse.julialang.org/t/julia-1-2-feature-freeze-april-4th/22478)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 18\
**Last updated:** [April 17, 2019, 8:49am UTC](https://discourse.julialang.org/t/julia-1-2-feature-freeze-april-4th/22478 "2019-04-17T08:49:34Z")

</div>

Heads up: this is to let people know that if they have any PRs that they really want to get into Julia 1.2, the feature freeze for the 1.2 release will be one week from today, on Thursday, April 4th. If you want somethin…

---

## [Multithreading in julia 1.1](https://discourse.julialang.org/t/multithreading-in-julia-1-1/23206)

<div class="topic-metadata">

**Author:** [@catosp](https://discourse.julialang.org/u/catosp)\
**Replies:** 5\
**Last updated:** [April 16, 2019, 2:49pm UTC](https://discourse.julialang.org/t/multithreading-in-julia-1-1/23206 "2019-04-16T14:49:30Z")

</div>

Hello everyone, I have a little problem: 2 functions function fa(x) for i=1:x println("Thread1: $i") sleep(1) end end function fb(x) for i=1:x println("Thread2: $i") sleep(1) end end How to run these 2 f…

---

## [In case of method ambiguity, choose method with tighter first argument](https://discourse.julialang.org/t/in-case-of-method-ambiguity-choose-method-with-tighter-first-argument/23096)

<div class="topic-metadata">

**Author:** [@piever](https://discourse.julialang.org/u/piever)\
**Replies:** 5\
**Last updated:** [April 14, 2019, 3:09pm UTC](https://discourse.julialang.org/t/in-case-of-method-ambiguity-choose-method-with-tighter-first-argument/23096 "2019-04-14T15:09:48Z")

</div>

I was wondering whether in principle one could mostly get rid of method ambiguities by adding simple rules like “in case of ambiguity, the method with the most specific first argument wins (if the first argument is equal…

---

## [Document Future, at least a stub?](https://discourse.julialang.org/t/document-future-at-least-a-stub/23133)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [April 14, 2019, 11:50am UTC](https://discourse.julialang.org/t/document-future-at-least-a-stub/23133 "2019-04-14T11:50:56Z")

</div>

I could not find an issue about this, so I thought I would first ask here. Various docstrings in Base and the standard libraries mention Future, which has no docs in the manual that I could find. The module is document…

---

## [Using generated functions to preallocate memory?](https://discourse.julialang.org/t/using-generated-functions-to-preallocate-memory/23070)

<div class="topic-metadata">

**Author:** [@Elrod](https://discourse.julialang.org/u/Elrod)\
**Replies:** 16\
**Last updated:** [April 14, 2019, 12:16am UTC](https://discourse.julialang.org/t/using-generated-functions-to-preallocate-memory/23070 "2019-04-14T00:16:55Z")

</div>

This feels like a terrible hack: @noinline DimensionMisMatchError(M,N,P) = throw("Dimensions $M, $N, and $P are not equal.") @generated function preallocated\_quadform(A::AbstractMatrix{T}, x::AbstractVector{T}) where {T…

---

## [Method ambiguity for unions](https://discourse.julialang.org/t/method-ambiguity-for-unions/23086)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 5:45pm UTC](https://discourse.julialang.org/t/method-ambiguity-for-unions/23086 "2019-04-12T17:45:34Z")

</div>

I have hit the following problem already several times: ERROR: MethodError: f(::Int64, ::Int64) is ambiguous. Candidates: f(x::Union{Float64, Int64}, y::Int64) in Main at REPL\[4\]:1 f(x::Int64, y) in Main at REPL\[3\]:…

---

## [Should better error messages be added to \`inv\`?](https://discourse.julialang.org/t/should-better-error-messages-be-added-to-inv/23065)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 6:35am UTC](https://discourse.julialang.org/t/should-better-error-messages-be-added-to-inv/23065 "2019-04-12T06:35:31Z")

</div>

When I am using LinearAlgebra.inv, I found that the error message of it could be very primitive julia\> inv(zeros(3,3)) ERROR: LAPACKException(1) Stacktrace: \[1\] chklapackerror at /Users/osx/buildbot/slave/package\_osx64…

---

## [! notation for individual modified variables](https://discourse.julialang.org/t/notation-for-individual-modified-variables/9653)

<div class="topic-metadata">

**Author:** [@Robert\_Honig](https://discourse.julialang.org/u/Robert_Honig)\
**Replies:** 39\
**Last updated:** [April 11, 2019, 11:47am UTC](https://discourse.julialang.org/t/notation-for-individual-modified-variables/9653 "2019-04-11T11:47:16Z")

</div>

I’m a big fan of the ! style recommendation for functions that modify their parameters. For certain functions with many arguments, functionname!(foo, bar, baz) can be ambiguous: How do I know if foo, bar or baz gets mod…

---

## [Difficulties with recent julia releases](https://discourse.julialang.org/t/difficulties-with-recent-julia-releases/22969)

<div class="topic-metadata">

**Author:** [@Dave\_Marchant](https://discourse.julialang.org/u/Dave_Marchant)\
**Replies:** 4\
**Last updated:** [April 9, 2019, 8:03pm UTC](https://discourse.julialang.org/t/difficulties-with-recent-julia-releases/22969 "2019-04-09T20:03:20Z")

</div>

I work at a small consulting company who’s primary business involves solving large scale PDE constrained optimization problems. Back in 2015 we decided to move our code base from fortran into Julia - it was a painful pr…

---

## [Which of these gsoc project should I choose?](https://discourse.julialang.org/t/which-of-these-gsoc-project-should-i-choose/22794)

<div class="topic-metadata">

**Author:** [@sagartewari01](https://discourse.julialang.org/u/sagartewari01)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 8:08am UTC](https://discourse.julialang.org/t/which-of-these-gsoc-project-should-i-choose/22794 "2019-04-06T08:08:04Z")

</div>

Hi, I intend to work on julia as a GSOC project this year. These are the ideas that I have in mind: Bringing FunctionalCollections to a usable state. I’m familiar with the clojure’s implementations of persistent colle…

---

## [ERROR: type Task has no field parent](https://discourse.julialang.org/t/error-type-task-has-no-field-parent/16674)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 7:50pm UTC](https://discourse.julialang.org/t/error-type-task-has-no-field-parent/16674 "2019-04-05T19:50:50Z")

</div>

The following example on latest Julia master produces the error below. I managed to reproduce it using Flux#master and the latest released version in a simple example, but I am not entirely sure if it has anything to do …

---

## [Suggestion: Put licenses for dependencies in deps](https://discourse.julialang.org/t/suggestion-put-licenses-for-dependencies-in-deps/22743)

<div class="topic-metadata">

**Author:** [@madprogrammer](https://discourse.julialang.org/u/madprogrammer)\
**Replies:** 12\
**Last updated:** [April 5, 2019, 4:05pm UTC](https://discourse.julialang.org/t/suggestion-put-licenses-for-dependencies-in-deps/22743 "2019-04-05T16:05:26Z")

</div>

I would like to suggest the addition of a license directory in deps, where we could have a copy of the dependencies license files. I think that is important to make it clear to the user which licenses they are dealing wi…

---

## [Make struct definition return the defined type](https://discourse.julialang.org/t/make-struct-definition-return-the-defined-type/22741)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 3:04pm UTC](https://discourse.julialang.org/t/make-struct-definition-return-the-defined-type/22741 "2019-04-04T15:04:29Z")

</div>

Currently a struct definition returns nothing: julia\> x = struct Foo end julia\> x === nothing true How about it returning the defined type instead? julia\> x = struct Foo end julia\> x === Foo true Why would this beh…

---

## [Strange include path in unix.h in "Generic Linux Binaries for x86"](https://discourse.julialang.org/t/strange-include-path-in-unix-h-in-generic-linux-binaries-for-x86/21511)

<div class="topic-metadata">

**Author:** [@mmmm1998](https://discourse.julialang.org/u/mmmm1998)\
**Replies:** 5\
**Last updated:** [April 4, 2019, 9:31am UTC](https://discourse.julialang.org/t/strange-include-path-in-unix-h-in-generic-linux-binaries-for-x86/21511 "2019-04-04T09:31:54Z")

</div>

I have a question about include/julia/uv/unix.h:45 (obvicious, this is relative path from the julia root directory). That this line #include "uv/threadpool.h" First, isn’t this statement tried to include include/julia/…

---

## [Julia v1.1 Language changes: ambiguities](https://discourse.julialang.org/t/julia-v1-1-language-changes-ambiguities/22695)

<div class="topic-metadata">

**Author:** [@maxchendt](https://discourse.julialang.org/u/maxchendt)\
**Replies:** 5\
**Last updated:** [April 4, 2019, 12:05am UTC](https://discourse.julialang.org/t/julia-v1-1-language-changes-ambiguities/22695 "2019-04-04T00:05:02Z")

</div>

https://docs.julialang.org/en/v1/NEWS/ Method signatures such as f(::Type{T}, ::T) where {T \<: X} and f(::Type{X}, ::Any) are now considered ambiguous. Previously a bug caused the first one to be considered more sp…

---

## [Upgrading JuliaLang/Julia buildbot CI](https://discourse.julialang.org/t/upgrading-julialang-julia-buildbot-ci/22078)

<div class="topic-metadata">

**Author:** [@staticfloat](https://discourse.julialang.org/u/staticfloat)\
**Replies:** 12\
**Last updated:** [April 3, 2019, 11:22pm UTC](https://discourse.julialang.org/t/upgrading-julialang-julia-buildbot-ci/22078 "2019-04-03T23:22:58Z")

</div>

For many years now, we have had buildbots connected to https://build.juilialang.org that build the actual Julia binaries that get hosted on the main website/nightlies. For most of this time, however, the state of a buil…

---

## [The future of REQUIRE and Project.toml for package managers](https://discourse.julialang.org/t/the-future-of-require-and-project-toml-for-package-managers/22618)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 3:31am UTC](https://discourse.julialang.org/t/the-future-of-require-and-project-toml-for-package-managers/22618 "2019-04-02T03:31:15Z")

</div>

Hi all, Various thread posts and things in the docs seem to suggest that the long-term plan for registered packages is to get rid of REQUIRE files and replace them with Project.toml files. Is this actually the case, or …

---

## [Non-inplace \`map\` for Dictionaries](https://discourse.julialang.org/t/non-inplace-map-for-dictionaries/22593)

<div class="topic-metadata">

**Author:** [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Replies:** 3\
**Last updated:** [April 1, 2019, 3:55pm UTC](https://discourse.julialang.org/t/non-inplace-map-for-dictionaries/22593 "2019-04-01T15:55:57Z")

</div>

I am currently implementing a custom Dict type, which allows for different key and value types. This means that iterate is not type stable, but many operations like getindex, merge or map can be implemented to be type st…

---

## [Underscore currying in 1.2?](https://discourse.julialang.org/t/underscore-currying-in-1-2/22209)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 20\
**Last updated:** [March 31, 2019, 6:30pm UTC](https://discourse.julialang.org/t/underscore-currying-in-1-2/22209 "2019-03-31T18:30:10Z")

</div>

I was wondering what the prospects were of this being resurrected for 1.2. I notice it was on the milestones, but it seemed to me there was a bit of skepticism and I’m not sure what its status is. I have to admit, I ha…

---

## [Arbitrary Bit Width Integers](https://discourse.julialang.org/t/arbitrary-bit-width-integers/22499)

<div class="topic-metadata">

**Author:** [@Sumit\_Adhikari](https://discourse.julialang.org/u/Sumit_Adhikari)\
**Replies:** 15\
**Last updated:** [March 30, 2019, 10:37pm UTC](https://discourse.julialang.org/t/arbitrary-bit-width-integers/22499 "2019-03-30T22:37:38Z")

</div>

Hi, First of all I want to thank for making Julia so useful for systems architects to set up initial algorithms. It ia very elegant and very modern. For me when doing the digital signal processing in HW perspective, I …

---

## [Testing for scalar indexes from to\_indices](https://discourse.julialang.org/t/testing-for-scalar-indexes-from-to-indices/22534)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [March 30, 2019, 10:52am UTC](https://discourse.julialang.org/t/testing-for-scalar-indexes-from-to-indices/22534 "2019-03-30T10:52:43Z")

</div>

I wonder if there is an API for testing if something returned by to\_indices is a “scalar” index (ie one that would drop dimensions). I could not find anything, and I think it would be useful to have, and thought I would …

---

## [Memory Profiler](https://discourse.julialang.org/t/memory-profiler/22490)

<div class="topic-metadata">

**Author:** [@staticfloat](https://discourse.julialang.org/u/staticfloat)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 8:58am UTC](https://discourse.julialang.org/t/memory-profiler/22490 "2019-03-29T08:58:14Z")

</div>

As Julia continues to mature and we build ever more complicated towers of code, it becomes increasingly important for us to ensure that good tools are available for developers to figure out what on earth is going on insi…

---

## [Iterator transformation results in 40% time reduction in Iteration over arrays](https://discourse.julialang.org/t/iterator-transformation-results-in-40-time-reduction-in-iteration-over-arrays/22428)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 3\
**Last updated:** [March 28, 2019, 6:07pm UTC](https://discourse.julialang.org/t/iterator-transformation-results-in-40-time-reduction-in-iteration-over-arrays/22428 "2019-03-28T18:07:04Z")

</div>

Recently it has bugged me that for i in 1:length(array) @inbounds v=array\[i\] body ... end Was on the order of 30 % faster than: for v in array body ... end So I wanted to see if I could transform the…

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

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