# Internals & Design

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

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

**Page:** 50

---

## [Issue with compiling Gtk](https://discourse.julialang.org/t/issue-with-compiling-gtk/21281)

<div class="topic-metadata">

**Author:** [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 10:24pm UTC](https://discourse.julialang.org/t/issue-with-compiling-gtk/21281 "2019-02-27T22:24:32Z")

</div>

Hi, I build an executable using #PackageCompiler to execut the function Start() Base.@ccallable function julia\_main(ARGS::Vector{String})::Cint Start() return 0 end In Start() I have some GtkLabel like this: Star…

---

## [Using PackageCompiler with include function](https://discourse.julialang.org/t/using-packagecompiler-with-include-function/21242)

<div class="topic-metadata">

**Author:** [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 3:37am UTC](https://discourse.julialang.org/t/using-packagecompiler-with-include-function/21242 "2019-02-27T03:37:32Z")

</div>

Hi there, I am using PackageCompiler to build an executable on windows. I have a main function and run build\_executable function to create my executable. my julia\_main is: module mystuff Base.@ccallable function juli…

---

## [Additional package deps to doc builds](https://discourse.julialang.org/t/additional-package-deps-to-doc-builds/21193)

<div class="topic-metadata">

**Author:** [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 12:18pm UTC](https://discourse.julialang.org/t/additional-package-deps-to-doc-builds/21193 "2019-02-26T12:18:51Z")

</div>

I am wondering what is the general feeling about adding additional packages as dependencies to the documentation build. Generally, we’ve been very conservative in Documenter, since every additional dependency is somethi…

---

## [Proposed release process and schedule](https://discourse.julialang.org/t/proposed-release-process-and-schedule/15623)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 39\
**Last updated:** [January 25, 2019, 7:27am UTC](https://discourse.julialang.org/t/proposed-release-process-and-schedule/15623 "2019-01-25T07:27:06Z")

</div>

Now that we’ve released Julia 1.0 and are close to 1.0.1 and have added some new features and minor changes to the 1.1 development branch (i.e. master), it seems like time to talk about the future of the Julia release pr…

---

## [Decentralized Package Manager](https://discourse.julialang.org/t/decentralized-package-manager/20931)

<div class="topic-metadata">

**Author:** [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Replies:** 15\
**Last updated:** [February 19, 2019, 8:22pm UTC](https://discourse.julialang.org/t/decentralized-package-manager/20931 "2019-02-19T20:22:15Z")

</div>

Hi everyone :wave: TL;DR Propose to explicitly specify the registry where a package is located in the Project.toml and, by extension, have it appear in the Manifest.toml. The default registry would be General and would…

---

## [Type inference of tables /w missing cells](https://discourse.julialang.org/t/type-inference-of-tables-w-missing-cells/20769)

<div class="topic-metadata">

**Author:** [@cce](https://discourse.julialang.org/u/cce)\
**Replies:** 4\
**Last updated:** [February 17, 2019, 2:32pm UTC](https://discourse.julialang.org/t/type-inference-of-tables-w-missing-cells/20769 "2019-02-17T14:32:42Z")

</div>

This is a feature suggestion. I’m modeling database tables as a Vector of NamedTuple. I’m wondering if Julia could more smartly infer the type of these structures when values are missing. For starters, I note that Julia…

---

## [Unlock the power of threadcall](https://discourse.julialang.org/t/unlock-the-power-of-threadcall/20882)

<div class="topic-metadata">

**Author:** [@felipenoris](https://discourse.julialang.org/u/felipenoris)\
**Replies:** 4\
**Last updated:** [February 17, 2019, 12:42pm UTC](https://discourse.julialang.org/t/unlock-the-power-of-threadcall/20882 "2019-02-17T12:42:26Z")

</div>

Working on writing drivers for databases, I see that the threadcall macro would be a good fit for calling external C code that does IO operations. After some testing, it looks like the macro does not support a common pa…

---

## [Make immutable mutable again - or make arrays of structures stack-allocated](https://discourse.julialang.org/t/make-immutable-mutable-again-or-make-arrays-of-structures-stack-allocated/20800)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 12\
**Last updated:** [February 16, 2019, 11:34pm UTC](https://discourse.julialang.org/t/make-immutable-mutable-again-or-make-arrays-of-structures-stack-allocated/20800 "2019-02-16T23:34:24Z")

</div>

This post is ispired by the following discussions about mutability and stack-allocated arrays: Initializing an array of mutable objects is surprisingly slow - #6 by cnliao Fortran vs Julia stack allocated arrays Why mu…

---

## [Failed To precompile Makie](https://discourse.julialang.org/t/failed-to-precompile-makie/20758)

<div class="topic-metadata">

**Author:** [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Replies:** 12\
**Last updated:** [February 15, 2019, 10:35am UTC](https://discourse.julialang.org/t/failed-to-precompile-makie/20758 "2019-02-15T10:35:04Z")

</div>

Hi, I tried to add Mackie package (normal and master on Julia 1.1) and everytime that I do : using Makie I have error message Failed to precompile Mackie and I can’t use it. Any help? Thank you

---

## [SVD: Better default to gesvd! instead of gesdd!?](https://discourse.julialang.org/t/svd-better-default-to-gesvd-instead-of-gesdd/20603)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 21\
**Last updated:** [February 14, 2019, 12:01pm UTC](https://discourse.julialang.org/t/svd-better-default-to-gesvd-instead-of-gesdd/20603 "2019-02-14T12:01:31Z")

</div>

Currently, svd defaults to using LinearAlgebra.LAPACK.gesdd! under the hood. I vaguely mentioned some time ago that gesdd! gives incorrect results in some cases which can be circumvented by explicitly calling LinearAlgeb…

---

## [Overwrittng constant parameter restriction in method definition](https://discourse.julialang.org/t/overwrittng-constant-parameter-restriction-in-method-definition/20721)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 1\
**Last updated:** [February 13, 2019, 10:57pm UTC](https://discourse.julialang.org/t/overwrittng-constant-parameter-restriction-in-method-definition/20721 "2019-02-13T22:57:44Z")

</div>

Following the question asked here Propagate Type Parameters in Methods for Julia - Stack Overflow. If you define a constant like const RT{R\<:Real} = Type{R} then defining a method using this constant without a paramet…

---

## [Detect\_ambiguities; Skipping Base.active\_repl; Stale exports?](https://discourse.julialang.org/t/detect-ambiguities-skipping-base-active-repl-stale-exports/20747)

<div class="topic-metadata">

**Author:** [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Replies:** 6\
**Last updated:** [February 13, 2019, 3:28pm UTC](https://discourse.julialang.org/t/detect-ambiguities-skipping-base-active-repl-stale-exports/20747 "2019-02-13T15:28:06Z")

</div>

I was just looking at some tests that use detect\_ambiguities and notice it was printing Skipping Base.active\_repl Skipping Base.active\_repl\_backend Digging around a bit, I found that this is likely due to a stale expor…

---

## [Higher resolution DateTime/TimeStamp](https://discourse.julialang.org/t/higher-resolution-datetime-timestamp/3069)

<div class="topic-metadata">

**Author:** [@Fab](https://discourse.julialang.org/u/Fab)\
**Replies:** 44\
**Last updated:** [February 13, 2019, 9:19am UTC](https://discourse.julialang.org/t/higher-resolution-datetime-timestamp/3069 "2019-02-13T09:19:05Z")

</div>

Hi, as I understand, in Julia we have Date (with 1d resolution, and an “epoch” of Rata Dei 0001-01-01 with the good old proleptic Gregorian calendar), DateTime (with 1 ms resolution, and the same “epoch”, able to cover …

---

## [Coalesce function not working with data frames n x n with n\>=2](https://discourse.julialang.org/t/coalesce-function-not-working-with-data-frames-n-x-n-with-n-2/20624)

<div class="topic-metadata">

**Author:** [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Replies:** 10\
**Last updated:** [February 12, 2019, 8:21pm UTC](https://discourse.julialang.org/t/coalesce-function-not-working-with-data-frames-n-x-n-with-n-2/20624 "2019-02-12T20:21:15Z")

</div>

Hi, y=dataframe 6x6 I may be wrong but I tried to use coalesce function on a dataframe 6x6 and I get the error: no method matching iterate. coalesce.(y,0) ==\> Error But if I try coalesce.(y\[i\],0) for each i it works. …

---

## [Role of Base.Order](https://discourse.julialang.org/t/role-of-base-order/20661)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [February 12, 2019, 8:45am UTC](https://discourse.julialang.org/t/role-of-base-order/20661 "2019-02-12T08:45:35Z")

</div>

I was thinking about submitting a PR to extend findmax & friends to findmax(itr; lt, by, rev) similar to Base.sort!, but I found that the latter has an order argument, which uses constructs defined in the Base.Order mo…

---

## [Extra token, on same line as for loop start, is valid?](https://discourse.julialang.org/t/extra-token-on-same-line-as-for-loop-start-is-valid/20185)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 18\
**Last updated:** [February 7, 2019, 8:39pm UTC](https://discourse.julialang.org/t/extra-token-on-same-line-as-for-loop-start-is-valid/20185 "2019-02-07T20:39:10Z")

</div>

The following is considered valid, but should it be? for i in 1:3 4 print("hi") end # output: "hihihi" This enables one-line for expressions without semicolons, of course: for i in 1:3 print("hi") end I encountere…

---

## [Should Generators finally be given eltype](https://discourse.julialang.org/t/should-generators-finally-be-given-eltype/20507)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 25\
**Last updated:** [February 7, 2019, 8:22pm UTC](https://discourse.julialang.org/t/should-generators-finally-be-given-eltype/20507 "2019-02-07T20:22:08Z")

</div>

With the compiler improvements that went into v1 is it finally time to allow Generators to return an element type? With union splitting, it now appears that all the needed information can be inferred at compile-time. S…

---

## [RFC: result type calculations for arithmetic](https://discourse.julialang.org/t/rfc-result-type-calculations-for-arithmetic/20330)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [February 4, 2019, 2:39pm UTC](https://discourse.julialang.org/t/rfc-result-type-calculations-for-arithmetic/20330 "2019-02-04T14:39:25Z")

</div>

A lot of Julia code, including Base, standard libraries, and packages, includes some helper function to calculate the resulting container type from various inputs, when combined with +, -, \* and /. Examples are too many…

---

## [Delaration of an array with indexed type](https://discourse.julialang.org/t/delaration-of-an-array-with-indexed-type/20399)

<div class="topic-metadata">

**Author:** [@Regaieg\_Rym](https://discourse.julialang.org/u/Regaieg_Rym)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 3:50pm UTC](https://discourse.julialang.org/t/delaration-of-an-array-with-indexed-type/20399 "2019-02-03T15:50:07Z")

</div>

Hi, I found a big problem to declare an array with composite type. In my code, I would like to write tuple PM { npm::Int64 nvm::String; } indexes=PM push!(indexes,PM(1,“s”)) push!(indexes,PM(2,“s”)) push!(inde…

---

## [How to determine what facility of task context switching does my Julia use?](https://discourse.julialang.org/t/how-to-determine-what-facility-of-task-context-switching-does-my-julia-use/20390)

<div class="topic-metadata">

**Author:** [@KDr2](https://discourse.julialang.org/u/KDr2)\
**Replies:** 0\
**Last updated:** [February 3, 2019, 6:24am UTC](https://discourse.julialang.org/t/how-to-determine-what-facility-of-task-context-switching-does-my-julia-use/20390 "2019-02-03T06:24:57Z")

</div>

I see one can select setjmp or ucontext for that while compiling. But my Julia is compiled by someone else. Is there a way to know which is used in the runtime or by checking the Julia dll/exe files? I am using Julia 1…

---

## [Strange issue with Julia hanging](https://discourse.julialang.org/t/strange-issue-with-julia-hanging/20298)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 10\
**Last updated:** [February 1, 2019, 8:44pm UTC](https://discourse.julialang.org/t/strange-issue-with-julia-hanging/20298 "2019-02-01T20:44:57Z")

</div>

Hi all, I am posting some strange issue I am currently encountering with TensorOpertions.jl, here in the development category, because I think it’s pretty advanced. Consider the following code: using TensorOperations c…

---

## [Request: "type functions" for parametric dispatch](https://discourse.julialang.org/t/request-type-functions-for-parametric-dispatch/20357)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 5\
**Last updated:** [February 1, 2019, 6:37pm UTC](https://discourse.julialang.org/t/request-type-functions-for-parametric-dispatch/20357 "2019-02-01T18:37:03Z")

</div>

Wouldn’t it be great to have “type functions” in the dispatch of our methdos? Suppose we have a boolean function which determines a property of a type struct data{C} end property(::Type{data{C}}) where C = C \> 0 This …

---

## [Default parametric constructors of composite types](https://discourse.julialang.org/t/default-parametric-constructors-of-composite-types/20329)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 8\
**Last updated:** [February 1, 2019, 8:38am UTC](https://discourse.julialang.org/t/default-parametric-constructors-of-composite-types/20329 "2019-02-01T08:38:04Z")

</div>

Observe the following code under Julia 1.1 julia\> struct A{T} a::T b::Vector{Int} end julia\> A(1, \[1\]) A{Int64}(1, \[1\]) julia\> A(1, \[1,2\]) A{Int64}(1, \[1, 2\]) julia\> A(1, 1:2) ERROR: MethodError:…

---

## [Convention for read-only array getters](https://discourse.julialang.org/t/convention-for-read-only-array-getters/19356)

<div class="topic-metadata">

**Author:** [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Replies:** 24\
**Last updated:** [January 31, 2019, 8:29pm UTC](https://discourse.julialang.org/t/convention-for-read-only-array-getters/19356 "2019-01-31T20:29:29Z")

</div>

We’ve recently wondered in DataFrames what convention should be followed when a getter function returns an array which is supposed to be read-only. In the case at hand, the names function returns the names of the columns…

---

## [Discrepancy between julia 1.0 and 1.1 while installing a package](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248)

<div class="topic-metadata">

**Author:** [@Piotr\_Gawron](https://discourse.julialang.org/u/Piotr_Gawron)\
**Replies:** 7\
**Last updated:** [January 30, 2019, 6:52pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248 "2019-01-30T18:52:35Z")

</div>

Installing package QuantumInformation on julia 1.0 causes the newest version of the package 0.4.3 to be installed. Performing the same installation on julia 1.1 yields the package version 0.4.1. I am the package develope…

---

## [Map does not work with pairs(::NamedTuple)](https://discourse.julialang.org/t/map-does-not-work-with-pairs-namedtuple/20223)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 12:26pm UTC](https://discourse.julialang.org/t/map-does-not-work-with-pairs-namedtuple/20223 "2019-01-29T12:26:08Z")

</div>

Is this a bug? I somehow expected it to work. At least the error message could be improved (as no dictionaries are involved at any point). Should I open an issue? julia\> VERSION v"1.2.0-DEV.219" julia\> nt = (a = 1, b =…

---

## [Embedding Julia into multithreading apps](https://discourse.julialang.org/t/embedding-julia-into-multithreading-apps/20122)

<div class="topic-metadata">

**Author:** [@Maxim\_Kuznetsov](https://discourse.julialang.org/u/Maxim_Kuznetsov)\
**Replies:** 26\
**Last updated:** [January 28, 2019, 9:49pm UTC](https://discourse.julialang.org/t/embedding-julia-into-multithreading-apps/20122 "2019-01-28T21:49:57Z")

</div>

I have an multithreading application. I want to embed “Julia” into it so that it can be accessed from any thread. There are many questions: whether you need to protect calls through CriticalSection or Mutex is there a …

---

## [Dense .+ sparse -\> sparse?](https://discourse.julialang.org/t/dense-sparse-sparse/20126)

<div class="topic-metadata">

**Author:** [@abraunst](https://discourse.julialang.org/u/abraunst)\
**Replies:** 2\
**Last updated:** [January 26, 2019, 2:13pm UTC](https://discourse.julialang.org/t/dense-sparse-sparse/20126 "2019-01-26T14:13:04Z")

</div>

I find this counterintuitive: julia\> using SparseArrays julia\> A=rand(100,100); julia\> B=sprand(100,100,0.01); julia\> typeof(A + B) Array{Float64,2} julia\> typeof(A .+ B) SparseMatrixCSC{Float64,Int64} I would have…

---

## [Unification of \`SparseMatrixCSC\` and \`SparseVector\`](https://discourse.julialang.org/t/unification-of-sparsematrixcsc-and-sparsevector/20091)

<div class="topic-metadata">

**Author:** [@abraunst](https://discourse.julialang.org/u/abraunst)\
**Replies:** 4\
**Last updated:** [January 26, 2019, 12:25pm UTC](https://discourse.julialang.org/t/unification-of-sparsematrixcsc-and-sparsevector/20091 "2019-01-26T12:25:35Z")

</div>

Are there plans (proposals, PRs, discussions) for unifying SparseMatrixCSC and SparseVector? Something like a new type SparseArrayCSC{Tv,Ti,D} where D is the dimension (1 for SparseVector, 2 for SparseMatrixCSC). It seem…

---

## [Getter function of \`Ref\` field not inferred](https://discourse.julialang.org/t/getter-function-of-ref-field-not-inferred/19962)

<div class="topic-metadata">

**Author:** [@cnliao](https://discourse.julialang.org/u/cnliao)\
**Replies:** 5\
**Last updated:** [January 24, 2019, 9:18pm UTC](https://discourse.julialang.org/t/getter-function-of-ref-field-not-inferred/19962 "2019-01-24T21:18:24Z")

</div>

Using Ref{T} to get a mutable field in an otherwise immutable struct is causing inference problems (Julia v1.03/v1.1.0), MWE: using Test struct A i::Ref{Int} end get\_i(x) = x.i\[\] @inferred get\_i(A(2)) # ERROR: retur…

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

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