# Internals & Design

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

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

**Page:** 54

---

## [Types and composition in logging](https://discourse.julialang.org/t/types-and-composition-in-logging/16779)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [October 25, 2018, 1:59pm UTC](https://discourse.julialang.org/t/types-and-composition-in-logging/16779 "2018-10-25T13:59:25Z")

</div>

I am very excited about the new logging interface, as I think it would allow numerical algorithms to emit debugging information in a way that does not interrupt the process, but should allow the user to examine parts of …

---

## [Julia crashes when redefining a method of one(T::Type)](https://discourse.julialang.org/t/julia-crashes-when-redefining-a-method-of-one-t-type/16730)

<div class="topic-metadata">

**Author:** [@jklizarraga](https://discourse.julialang.org/u/jklizarraga)\
**Replies:** 14\
**Last updated:** [October 24, 2018, 8:03pm UTC](https://discourse.julialang.org/t/julia-crashes-when-redefining-a-method-of-one-t-type/16730 "2018-10-24T20:03:41Z")

</div>

I found that the following code makes Julia crash in macOS Sierra (10.12.6): import Base: one one(::Type{\<:Real}) = nothing This happens also with when replacing nothing by, for example, Real. The output I get is: Er…

---

## [Coveralls showing wrong files?](https://discourse.julialang.org/t/coveralls-showing-wrong-files/16677)

<div class="topic-metadata">

**Author:** [@petandre](https://discourse.julialang.org/u/petandre)\
**Replies:** 0\
**Last updated:** [October 23, 2018, 12:11pm UTC](https://discourse.julialang.org/t/coveralls-showing-wrong-files/16677 "2018-10-23T12:11:28Z")

</div>

Is the coveralls page for Julia looking strange for anyone else? For me it shows this instead of the actual Julia source code. Coveralls have had this issue open for over a year which could be related…

---

## [Unreachable reached with NamedTuple of StaticVector](https://discourse.julialang.org/t/unreachable-reached-with-namedtuple-of-staticvector/16507)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 7:17pm UTC](https://discourse.julialang.org/t/unreachable-reached-with-namedtuple-of-staticvector/16507 "2018-10-18T19:17:41Z")

</div>

This is an MWE I isolated tracking down a bug, happens both on master and 1.0.1, and with the latest stable and master of StaticArrays. I wonder if someone could look at it, and tell me whether I am doing something I sh…

---

## [Syntax suggestion: end\<control\>](https://discourse.julialang.org/t/syntax-suggestion-end-control/8605)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 53\
**Last updated:** [October 17, 2018, 12:50pm UTC](https://discourse.julialang.org/t/syntax-suggestion-end-control/8605 "2018-10-17T12:50:44Z")

</div>

end could be a synonym for end. so if (a=b) continue endif would be equivalent to if (a=b) continue end In the long-term, the compiler could check whether the control statement is aligned to its end, too. Thi…

---

## [Industrial standards for Julia packages](https://discourse.julialang.org/t/industrial-standards-for-julia-packages/16300)

<div class="topic-metadata">

**Author:** [@1115](https://discourse.julialang.org/u/1115)\
**Replies:** 20\
**Last updated:** [October 16, 2018, 4:04pm UTC](https://discourse.julialang.org/t/industrial-standards-for-julia-packages/16300 "2018-10-16T16:04:07Z")

</div>

Julia needs a unified industrial standard to guide the API designs. For example, we have X operator in Pauli algebra. Although the entity is same, it can be defined independently with different names (such as XGate and P…

---

## [Not possible to define primitive types with 8 bits or less?](https://discourse.julialang.org/t/not-possible-to-define-primitive-types-with-8-bits-or-less/16378)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [October 16, 2018, 12:45pm UTC](https://discourse.julialang.org/t/not-possible-to-define-primitive-types-with-8-bits-or-less/16378 "2018-10-16T12:45:40Z")

</div>

In Julia v1.0 I tried to create a primitive type that stores 4 bits of data but I get the error primitive type Cell 4 end invalid number of bits in primitive type Cell Stacktrace: \[1\] top-level scope at none:0 In …

---

## [Export \`Base.reducedim!\`, \`Base.mapreducedim!\`?](https://discourse.julialang.org/t/export-base-reducedim-base-mapreducedim/16347)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 4\
**Last updated:** [October 15, 2018, 4:02pm UTC](https://discourse.julialang.org/t/export-base-reducedim-base-mapreducedim/16347 "2018-10-15T16:02:46Z")

</div>

Why Base.reducedim!, Base.mapreducedim! are not exported? They seem generically useful. I want to use them but I don’t want my code to be broken in a future version. Also, maybe rename them to the shorter reduce!, mapred…

---

## [Thoughts on eventual Julia 2.0 transition](https://discourse.julialang.org/t/thoughts-on-eventual-julia-2-0-transition/15756)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 47\
**Last updated:** [October 15, 2018, 1:30pm UTC](https://discourse.julialang.org/t/thoughts-on-eventual-julia-2-0-transition/15756 "2018-10-15T13:30:36Z")

</div>

I agree with the tone of the preceding conversation that we need an explicit definition of “public” which includes all code which absolutely cannot be broken in patches, and in principle I think basing this on export (fo…

---

## [Suggestion --- Julia Version Header in .jl files](https://discourse.julialang.org/t/suggestion-julia-version-header-in-jl-files/16316)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 8\
**Last updated:** [October 15, 2018, 6:10am UTC](https://discourse.julialang.org/t/suggestion-julia-version-header-in-jl-files/16316 "2018-10-15T06:10:17Z")

</div>

May I suggest that we ask Julia .jl code files in the future to start with a very short (and possibly optional) header line, such as julia 1.0 If the language in the future changes in a breaking way, then there is a fa…

---

## [NamedTuple with invalid variable names](https://discourse.julialang.org/t/namedtuple-with-invalid-variable-names/16167)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [October 14, 2018, 7:49pm UTC](https://discourse.julialang.org/t/namedtuple-with-invalid-variable-names/16167 "2018-10-14T19:49:45Z")

</div>

Are NamedTuples with keys which are not valid variable names allowed? eg julia\> NamedTuple{(Symbol("1"), )}(19) (1 = 19,) they seem to work in 1.\*, so possibly yes, but I am wondering if it is OK to rely on this. I…

---

## [Inner and outer argument names](https://discourse.julialang.org/t/inner-and-outer-argument-names/16247)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 5\
**Last updated:** [October 12, 2018, 11:12pm UTC](https://discourse.julialang.org/t/inner-and-outer-argument-names/16247 "2018-10-12T23:12:47Z")

</div>

Given the possibility to write a lot of generic functions, I am sometimes torn between giving function arguments a descriptive name and the desire to have short argument names for use in the function body. E.g.: Having f…

---

## [Broader (non-concrete) types in NamedTuple](https://discourse.julialang.org/t/broader-non-concrete-types-in-namedtuple/16183)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [October 12, 2018, 2:23pm UTC](https://discourse.julialang.org/t/broader-non-concrete-types-in-namedtuple/16183 "2018-10-12T14:23:23Z")

</div>

I wonder if constructing NamedTuple{names, T}(::S) where S \<: T is a bug, eg julia\> VERSION v"1.1.0-DEV.439" julia\> NamedTuple{(:a, :b)}((missing, 10)) (a = missing, b = 10) julia\> NamedTuple{(:a, :b),Tuple{Union{Miss…

---

## [Where to PR unlisted deprecations?](https://discourse.julialang.org/t/where-to-pr-unlisted-deprecations/16190)

<div class="topic-metadata">

**Author:** [@anon32405968](https://discourse.julialang.org/u/anon32405968)\
**Replies:** 1\
**Last updated:** [October 12, 2018, 10:08am UTC](https://discourse.julialang.org/t/where-to-pr-unlisted-deprecations/16190 "2018-10-12T10:08:33Z")

</div>

Upgrading my package to Julia 1.0 I noticed two deprecations: conv: Which Julia 0.7 kindly told me had now moved to DSP.jl and readdlm: Again, Julia 0.7 told me that readdlm is deprecated and moved to the library Deli…

---

## [Configuration for Travis and Appveyor](https://discourse.julialang.org/t/configuration-for-travis-and-appveyor/16186)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 3\
**Last updated:** [October 11, 2018, 6:55pm UTC](https://discourse.julialang.org/t/configuration-for-travis-and-appveyor/16186 "2018-10-11T18:55:58Z")

</div>

Can someone recommend a package whose .travis.yml and appveyor.yml files would serve as exemplars for other package developers? I just noticed that both the coveralls and codecov coverage status for my MixedModels packa…

---

## [@\_\_DIR\_\_ different inside command (\`...\`)](https://discourse.julialang.org/t/dir-different-inside-command/16200)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [October 11, 2018, 6:46pm UTC](https://discourse.julialang.org/t/dir-different-inside-command/16200 "2018-10-11T18:46:43Z")

</div>

This MWE demonstrates it: code = raw""" @show cmd = \`echo $(@\_\_DIR\_\_)\` @show thisdir = @\_\_DIR\_\_ @show cmd2 = \`echo $(thisdir)\` """ file = tempname() \* ".jl" write(file, code) cd(expanduser("~")) include(file) as it pri…

---

## [TODOs for PyData's Julia \[mini\]sprint](https://discourse.julialang.org/t/todos-for-pydatas-julia-mini-sprint/16153)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 0\
**Last updated:** [October 11, 2018, 4:58am UTC](https://discourse.julialang.org/t/todos-for-pydatas-julia-mini-sprint/16153 "2018-10-11T04:58:29Z")

</div>

On the 21st of this month, PyData NYC is hosting a few language (mini)sprints. I am the coordinator for Julia’s. One of the people running PyData suggested I arrive with a categorized issue list. The intent is that pe…

---

## [Can Just-In-Time also be made to be Just-Once](https://discourse.julialang.org/t/can-just-in-time-also-be-made-to-be-just-once/16062)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 3\
**Last updated:** [October 9, 2018, 2:27pm UTC](https://discourse.julialang.org/t/can-just-in-time-also-be-made-to-be-just-once/16062 "2018-10-09T14:27:02Z")

</div>

hopefully for Julia compiler?

---

## [Knet does not pass all tests](https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027)

<div class="topic-metadata">

**Author:** [@lannisite110](https://discourse.julialang.org/u/lannisite110)\
**Replies:** 2\
**Last updated:** [October 9, 2018, 1:39pm UTC](https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027 "2018-10-09T13:39:00Z")

</div>

this error appeared in the final of testing knet ERROR: LoadError: LoadError: Some tests did not pass: 238 passed, 2 failed, 0 errored, 0 broken. in expression starting at /home/users/xdlan/.julia/packages/Knet/rKugL/t…

---

## [Update the docs for \`Plots\`?](https://discourse.julialang.org/t/update-the-docs-for-plots/16052)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 8\
**Last updated:** [October 9, 2018, 12:28pm UTC](https://discourse.julialang.org/t/update-the-docs-for-plots/16052 "2018-10-09T12:28:20Z")

</div>

The current docs are still based on some versions below v0.7. Any rationale for not keeping up to date with julia-1.0? Thanks.

---

## [Share package enviroments between 1.0 and master](https://discourse.julialang.org/t/share-package-enviroments-between-1-0-and-master/15988)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 12\
**Last updated:** [October 9, 2018, 6:39am UTC](https://discourse.julialang.org/t/share-package-enviroments-between-1-0-and-master/15988 "2018-10-09T06:39:28Z")

</div>

Since I use both master and 1.0, I was wondering if I could somehow maintain a consistent environment of packages (ie the global Project.toml and Manifest.toml in ~/.julia/environments/VERSION) between the two, to make i…

---

## [julia VGGforw.jlERROR: LoadError: LoadError: UndefVarError: @knet not defined](https://discourse.julialang.org/t/julia-vggforw-jlerror-loaderror-loaderror-undefvarerror-knet-not-defined/16028)

<div class="topic-metadata">

**Author:** [@lannisite110](https://discourse.julialang.org/u/lannisite110)\
**Replies:** 3\
**Last updated:** [October 9, 2018, 6:34am UTC](https://discourse.julialang.org/t/julia-vggforw-jlerror-loaderror-loaderror-undefvarerror-knet-not-defined/16028 "2018-10-09T06:34:24Z")

</div>

when i run the VGGforw.jl, i find a error in following xdlan@server-pc:~/myexperiment/VGG3D/rgbd-convnet-master/VGG3D$ julia VGGforw.jl ERROR: LoadError: LoadError: UndefVarError: @knet not defined Stacktrace: \[1\] top…

---

## [Nested tuples as types?](https://discourse.julialang.org/t/nested-tuples-as-types/16008)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 5:28am UTC](https://discourse.julialang.org/t/nested-tuples-as-types/16008 "2018-10-08T05:28:28Z")

</div>

Why is it possible to do: Type{(:a, :b)} but not: Type{((:a, :b), (:c, :d))} The second case would be very useful.

---

## [Traits: present and future](https://discourse.julialang.org/t/traits-present-and-future/16001)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [October 8, 2018, 1:00am UTC](https://discourse.julialang.org/t/traits-present-and-future/16001 "2018-10-08T01:00:01Z")

</div>

Is there a “standard” implementation of traits at the moment? Something which is aligned with the future of traits in Julia? And by the way, what IS the future of traits in Julia?

---

## [Bug with Julia 1.0.1](https://discourse.julialang.org/t/bug-with-julia-1-0-1/15964)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [October 6, 2018, 11:57am UTC](https://discourse.julialang.org/t/bug-with-julia-1-0-1/15964 "2018-10-06T11:57:41Z")

</div>

I tried to run the following code in Julia 1.0.1 and it fails and I ran the same code in v0.6.4 and it works and I’ve checked and checked and I think it’s an error with v1.0.1. last\_f = 0 max\_lrn = 0 pos\_of\_max = 0 lrn …

---

## [Can Julia be ported to D-Wave?](https://discourse.julialang.org/t/can-julia-be-ported-to-d-wave/15908)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 6:42am UTC](https://discourse.julialang.org/t/can-julia-be-ported-to-d-wave/15908 "2018-10-05T06:42:29Z")

</div>

It currently only runs Python? https://docs.ocean.dwavesys.com/en/latest/overview/install.html https://docs.ocean.dwavesys.com/en/latest/leap.html

---

## [I made a package to generate custom registries](https://discourse.julialang.org/t/i-made-a-package-to-generate-custom-registries/13500)

<div class="topic-metadata">

**Author:** [@galenlynch](https://discourse.julialang.org/u/galenlynch)\
**Replies:** 5\
**Last updated:** [October 5, 2018, 3:02am UTC](https://discourse.julialang.org/t/i-made-a-package-to-generate-custom-registries/13500 "2018-10-05T03:02:34Z")

</div>

I’ve been working on a way to make custom registries from existing branches of METADATA, and got it to generate a (seemingly) valid registry last night. Here it is. It’s basically just a reformatting of the /bin folder o…

---

## [Where I can find a complete guide to parallelize code with Julia 1.0](https://discourse.julialang.org/t/where-i-can-find-a-complete-guide-to-parallelize-code-with-julia-1-0/15797)

<div class="topic-metadata">

**Author:** [@dsHitman](https://discourse.julialang.org/u/dsHitman)\
**Replies:** 2\
**Last updated:** [October 4, 2018, 3:31pm UTC](https://discourse.julialang.org/t/where-i-can-find-a-complete-guide-to-parallelize-code-with-julia-1-0/15797 "2018-10-04T15:31:02Z")

</div>

Hi, i want to parallelize my Game Of Life ancd I want a complete guide focused on how to parallelize the Julia code with the Distributed library. Thanks for the answers. PS The code that I would like to parallelize is …

---

## [In-place multiplication methods for UniformScaling type](https://discourse.julialang.org/t/in-place-multiplication-methods-for-uniformscaling-type/15837)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 7:57pm UTC](https://discourse.julialang.org/t/in-place-multiplication-methods-for-uniformscaling-type/15837 "2018-10-03T19:57:21Z")

</div>

I have noticed that there are no methods for in-place multiplication generics like mul!, rmul! and lmul! for the UniformScaling type. I would like to use in-place multiplication, including trivial versions that amount t…

---

## [Issue with Dates.Time](https://discourse.julialang.org/t/issue-with-dates-time/15734)

<div class="topic-metadata">

**Author:** [@Marek\_Kukan](https://discourse.julialang.org/u/Marek_Kukan)\
**Replies:** 2\
**Last updated:** [October 2, 2018, 2:17pm UTC](https://discourse.julialang.org/t/issue-with-dates-time/15734 "2018-10-02T14:17:18Z")

</div>

Hello, I found this problem when I tried using Dates.Time as dictionary keys: julia\> a = Dates.Time(0) 00:00:00 julia\> b = Dates.Time(0) + Dates.Hour(24) 00:00:00 julia\> a == b true julia\> isequal(a, b) true julia\> …

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

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