# Internals & Design

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

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

**Page:** 28

---

## [An internal Julia plotting package?](https://discourse.julialang.org/t/an-internal-julia-plotting-package/73079)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 62\
**Last updated:** [December 20, 2021, 8:40pm UTC](https://discourse.julialang.org/t/an-internal-julia-plotting-package/73079 "2021-12-20T20:40:24Z")

</div>

My understanding is that right now there are many Julia plotting packages but none of them is quite capable of producing high quality publication ready plots yet, is that right? I wonder if Julia could consider implement…

---

## [Julia transplant](https://discourse.julialang.org/t/julia-transplant/73292)

<div class="topic-metadata">

**Author:** [@envyslee](https://discourse.julialang.org/u/envyslee)\
**Replies:** 1\
**Last updated:** [December 18, 2021, 1:31pm UTC](https://discourse.julialang.org/t/julia-transplant/73292 "2021-12-18T13:31:12Z")

</div>

Julia Version 1.6.3 LLVM 11.1.0 File: jltypes.c Function: typekeyvalue\_hash I am devloping a new backend for Julia. I have made some modification for now and I got the executable file Julia in path /usr/lib/bin. Ever…

---

## [A plea for int overflow checking as the default](https://discourse.julialang.org/t/a-plea-for-int-overflow-checking-as-the-default/3338)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 79\
**Last updated:** [December 17, 2021, 2:18am UTC](https://discourse.julialang.org/t/a-plea-for-int-overflow-checking-as-the-default/3338 "2021-12-17T02:18:36Z")

</div>

Hello JuliaLang Community! I am a social scientist making his way from the Python ecosystem (mostly numpy & pandas) to Julia, and have in general been delighted by the language – concise, generally quite readable, and p…

---

## [The behavior of appending an empty matrix to a non-empty one](https://discourse.julialang.org/t/the-behavior-of-appending-an-empty-matrix-to-a-non-empty-one/73107)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 7\
**Last updated:** [December 15, 2021, 4:47pm UTC](https://discourse.julialang.org/t/the-behavior-of-appending-an-empty-matrix-to-a-non-empty-one/73107 "2021-12-15T16:47:34Z")

</div>

For example, A = \[1 2 3; 4 5 6\]; B can be either a N x 3 matrix or empty like the below: B = \[\]; When B is empty, why couldn’t I append B to A C = vcat(A, B); Error message: ArgumentError: number of columns of eac…

---

## [An easy way to call Julia function from Java](https://discourse.julialang.org/t/an-easy-way-to-call-julia-function-from-java/18357)

<div class="topic-metadata">

**Author:** [@piofel](https://discourse.julialang.org/u/piofel)\
**Replies:** 2\
**Last updated:** [December 15, 2021, 10:10am UTC](https://discourse.julialang.org/t/an-easy-way-to-call-julia-function-from-java/18357 "2021-12-15T10:10:45Z")

</div>

What is the easiest way to call a Julia function from Java? And if such possibility is not straightforward, will it be implemented in further versions of Julia (or maybe this requires a new library for Java)? I feel that…

---

## [Julia opening behavior](https://discourse.julialang.org/t/julia-opening-behavior/72979)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 2\
**Last updated:** [December 12, 2021, 5:44pm UTC](https://discourse.julialang.org/t/julia-opening-behavior/72979 "2021-12-12T17:44:39Z")

</div>

Right now, every time I click the Julia icon in my Dock (Mac OS Monterey), it will open a new session. Normally, when I do this to other programs, if it has already been open, it will just bring forward the already open…

---

## [Possible to get structured assembly code?](https://discourse.julialang.org/t/possible-to-get-structured-assembly-code/53931)

<div class="topic-metadata">

**Author:** [@1m1](https://discourse.julialang.org/u/1m1)\
**Replies:** 10\
**Last updated:** [December 11, 2021, 10:33pm UTC](https://discourse.julialang.org/t/possible-to-get-structured-assembly-code/53931 "2021-12-11T22:33:28Z")

</div>

I have seen code\_native and code\_typed and code\_llvm. These seem to only provide an unstructured text. Though the text itself appears structured and could be parsed to create a structure, this is tedious. Should the in…

---

## [Is there a call to read task id?](https://discourse.julialang.org/t/is-there-a-call-to-read-task-id/72906)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 6:13pm UTC](https://discourse.julialang.org/t/is-there-a-call-to-read-task-id/72906 "2021-12-10T18:13:12Z")

</div>

Dear All, from a toy school demonstration project on IRTools, I have started to work on https://github.com/pevnak/LoggingProfiler.jl, which surrounds every call by a logging its start and its end. I want to create somet…

---

## [Julia 1.7.0 ignores SIGTERMs (Signal 15)](https://discourse.julialang.org/t/julia-1-7-0-ignores-sigterms-signal-15/72357)

<div class="topic-metadata">

**Author:** [@vmuser](https://discourse.julialang.org/u/vmuser)\
**Replies:** 7\
**Last updated:** [December 10, 2021, 7:44am UTC](https://discourse.julialang.org/t/julia-1-7-0-ignores-sigterms-signal-15/72357 "2021-12-10T07:44:51Z")

</div>

Julia 1.6.3 handled SIGTERMs nicely, so Ctrl+C worked like expected. However, Julia 1.7.0 ignores these signals. To reproduce simply start two Julia-processes with the two versions and call pkill julia (where pkill is su…

---

## [Testing a package with runtests.jl does not generate graphical outputs](https://discourse.julialang.org/t/testing-a-package-with-runtests-jl-does-not-generate-graphical-outputs/16539)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 7\
**Last updated:** [December 8, 2021, 5:40am UTC](https://discourse.julialang.org/t/testing-a-package-with-runtests-jl-does-not-generate-graphical-outputs/16539 "2021-12-08T05:40:53Z")

</div>

My students and I have been developing a package in Julia, and under the test directory, we have a file runtests.jl as the other packages. In it, we try to run some plotting functions to show some graphics (via Plots.jl)…

---

## [Truncating conversion to days](https://discourse.julialang.org/t/truncating-conversion-to-days/72694)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 6\
**Last updated:** [December 7, 2021, 9:20pm UTC](https://discourse.julialang.org/t/truncating-conversion-to-days/72694 "2021-12-07T21:20:44Z")

</div>

julia\> Dates.days(Hour(1)) 0 julia\> Dates.days(Year(1)) 365.2425 One of these truncates and one does not. What is the rationale behind this distinction?

---

## [Namespacing of methods](https://discourse.julialang.org/t/namespacing-of-methods/72677)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 8\
**Last updated:** [December 7, 2021, 1:34am UTC](https://discourse.julialang.org/t/namespacing-of-methods/72677 "2021-12-07T01:34:30Z")

</div>

After a couple of months of using Julia, I’m still a little confused about how methods interact with packages/namespaces. That is, situations where a package adds additional methods to a function originally defined in an…

---

## [Struct update syntax](https://discourse.julialang.org/t/struct-update-syntax/72557)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 2\
**Last updated:** [December 4, 2021, 1:16am UTC](https://discourse.julialang.org/t/struct-update-syntax/72557 "2021-12-04T01:16:25Z")

</div>

Rust has a struct update syntax that allows you to create a new struct object from another one by changing only some fields. That looks very convenient and would make me want to use more immutable types. Has there been …

---

## [Silent modification of random variable under implicit type conversion](https://discourse.julialang.org/t/silent-modification-of-random-variable-under-implicit-type-conversion/72461)

<div class="topic-metadata">

**Author:** [@dcasbol](https://discourse.julialang.org/u/dcasbol)\
**Replies:** 7\
**Last updated:** [December 3, 2021, 1:24pm UTC](https://discourse.julialang.org/t/silent-modification-of-random-variable-under-implicit-type-conversion/72461 "2021-12-03T13:24:20Z")

</div>

I had two versions of the same operation in a function. Version 1 works just fine: output::Vector{UInt8} action = length(output) \> 0 && output\[1\] \> 0 ? 2 : 1 But this other version silently modifies a value which is pa…

---

## ['inv' Causes Stack Overflow on Julia 1.7.0 and Mac OS](https://discourse.julialang.org/t/inv-causes-stack-overflow-on-julia-1-7-0-and-mac-os/72411)

<div class="topic-metadata">

**Author:** [@SEA](https://discourse.julialang.org/u/SEA)\
**Replies:** 20\
**Last updated:** [December 2, 2021, 4:53pm UTC](https://discourse.julialang.org/t/inv-causes-stack-overflow-on-julia-1-7-0-and-mac-os/72411 "2021-12-02T16:53:03Z")

</div>

I am running into an odd error when using Julia 1.7.0 on my 2017 Mac Book Pro (Intel i7) on Mac OS 12.01. In particular, executing n = 1000; A = randn(Float32, n, n); inv(A) ERROR: StackOverflowError: With no furthe…

---

## [Serializing Functions / Methods / Closures](https://discourse.julialang.org/t/serializing-functions-methods-closures/57061)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 8:14am UTC](https://discourse.julialang.org/t/serializing-functions-methods-closures/57061 "2021-12-01T08:14:35Z")

</div>

Hi all, over the last months I’ve spent quite some time to bring JLD2 back up to speed. One of the remaining pain points is that it is not possible to properly store and recover (anonymous) functions and closures. This…

---

## [Support for non-POSIX shells](https://discourse.julialang.org/t/support-for-non-posix-shells/72236)

<div class="topic-metadata">

**Author:** [@kubouch](https://discourse.julialang.org/u/kubouch)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 2:55pm UTC](https://discourse.julialang.org/t/support-for-non-posix-shells/72236 "2021-11-29T14:55:21Z")

</div>

The Julia’s shell mode does not seem to work properly when a non-POSIX shell is set as the default system shell. I’m using Nushell, however, I imagine a similar issue is also present with other popular non-POSIX shells, …

---

## [The way to update Julia](https://discourse.julialang.org/t/the-way-to-update-julia/71869)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 13\
**Last updated:** [November 29, 2021, 9:21am UTC](https://discourse.julialang.org/t/the-way-to-update-julia/71869 "2021-11-29T09:21:52Z")

</div>

Is is correct that right now if I want to upgrade my Julia I would have to install it from the scratch? This is a problem, because the users would have to change settings for Juypter and Atom Juno, etc. in order for them…

---

## [How do (long held) security concerns in Python’s \`pip\` relate to Julia’s \`Pkg\`?](https://discourse.julialang.org/t/how-do-long-held-security-concerns-in-python-s-pip-relate-to-julia-s-pkg/72198)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 3:00pm UTC](https://discourse.julialang.org/t/how-do-long-held-security-concerns-in-python-s-pip-relate-to-julia-s-pkg/72198 "2021-11-28T15:00:41Z")

</div>

I’ve learned that, for a while, folks have noted some security concerns with Python’s pip because packages can execute code arbitrarily on install. I believe Julia’s Pkg can also execute code arbitrarily on install thro…

---

## [Appending trailing slashes to paths](https://discourse.julialang.org/t/appending-trailing-slashes-to-paths/15922)

<div class="topic-metadata">

**Author:** [@fbruetting](https://discourse.julialang.org/u/fbruetting)\
**Replies:** 24\
**Last updated:** [November 28, 2021, 2:07am UTC](https://discourse.julialang.org/t/appending-trailing-slashes-to-paths/15922 "2021-11-28T02:07:08Z")

</div>

Won’t it be useful to always append trailing slashes to paths for all core path functions? We then would see at first glance if a path leads to a directory or a file. When you see for example ~/config, you can’t tell if …

---

## [Why no := operator for initializing variables](https://discourse.julialang.org/t/why-no-operator-for-initializing-variables/62949)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 39\
**Last updated:** [November 27, 2021, 6:17pm UTC](https://discourse.julialang.org/t/why-no-operator-for-initializing-variables/62949 "2021-11-27T18:17:11Z")

</div>

Hi, I have been wondering if there is a reason for not making for not making the initialization of variables explicit. I think this is done very elegantly in golang with the “:=” operator. Like this one would know exact…

---

## [Julia under rosetta 2 on mac m1: threading/scheduling issues with openblas?](https://discourse.julialang.org/t/julia-under-rosetta-2-on-mac-m1-threading-scheduling-issues-with-openblas/72087)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 2\
**Last updated:** [November 26, 2021, 4:07am UTC](https://discourse.julialang.org/t/julia-under-rosetta-2-on-mac-m1-threading-scheduling-issues-with-openblas/72087 "2021-11-26T04:07:13Z")

</div>

Not sure where is the best place to post this: I noticed that with julia (x86) running under rosetta translation, for codes that heavily uses linear algebra, the performance can be 7-10 times slower with default (8) vs s…

---

## [Built in parallel computing capabilities?](https://discourse.julialang.org/t/built-in-parallel-computing-capabilities/72069)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 11:41pm UTC](https://discourse.julialang.org/t/built-in-parallel-computing-capabilities/72069 "2021-11-25T23:41:05Z")

</div>

Most computers nowadays have multiple cores. Instead of asking users to determine whether parallel computing is possible, when to turn on parallel computing, and how to program it, I wonder if Julia can become one of the…

---

## [Compiling Julia using LTO+PGO](https://discourse.julialang.org/t/compiling-julia-using-lto-pgo/39168)

<div class="topic-metadata">

**Author:** [@D4taV1s](https://discourse.julialang.org/u/D4taV1s)\
**Replies:** 4\
**Last updated:** [November 24, 2021, 2:44pm UTC](https://discourse.julialang.org/t/compiling-julia-using-lto-pgo/39168 "2021-11-24T14:44:42Z")

</div>

to what extent would this affect performance, also for julia, what part outside of benchmark framework isn’t measured e.g. not only throughput, latency(time to first paint, hurts), RAM/power usage, how close is this to …

---

## [How to overdub static parameters in overdubbing](https://discourse.julialang.org/t/how-to-overdub-static-parameters-in-overdubbing/71993)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 6:15am UTC](https://discourse.julialang.org/t/how-to-overdub-static-parameters-in-overdubbing/71993 "2021-11-24T06:15:22Z")

</div>

Hello, This question has stemmed from the work described in Does overdubbing in generated function inserts inlined code , where I would like to understand the code rewriting of CodeInstances. I decided to try to do ever…

---

## [Does overdubbing in generated function inserts inlined code](https://discourse.julialang.org/t/does-overdubbing-in-generated-function-inserts-inlined-code/71868)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 8\
**Last updated:** [November 23, 2021, 4:26am UTC](https://discourse.julialang.org/t/does-overdubbing-in-generated-function-inserts-inlined-code/71868 "2021-11-23T04:26:41Z")

</div>

Dear All, I am trying to understand the role of generated functions in Zygote / Cassette, as want to properly understand “overdubbing design pattern”. I decided to test the idea by writing a profiler, which will log the…

---

## [What is a RecursiveLock?](https://discourse.julialang.org/t/what-is-a-recursivelock/71897)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 7\
**Last updated:** [November 22, 2021, 4:50pm UTC](https://discourse.julialang.org/t/what-is-a-recursivelock/71897 "2021-11-22T16:50:14Z")

</div>

Hi all :slight\_smile: I just stumbled over that: https://github.com/JuliaLang/julia/blob/ae336abc0ed7e63ab933d0073df28c51e981d8fc/base/condition.jl#L37 Where is the RecursiveLock defined? Cheers

---

## [When compiler decide it will use generated function](https://discourse.julialang.org/t/when-compiler-decide-it-will-use-generated-function/71636)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 9:31am UTC](https://discourse.julialang.org/t/when-compiler-decide-it-will-use-generated-function/71636 "2021-11-17T09:31:36Z")

</div>

Hello, I am reading and experimenting with generated functions. The docs mention to give the compiler an option to use or not use the generated function using the construction function foo(x) if @generated :(x+…

---

## [What happens when you throw an error from a \`@cfunction\`?](https://discourse.julialang.org/t/what-happens-when-you-throw-an-error-from-a-cfunction/71510)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 4\
**Last updated:** [November 16, 2021, 6:23pm UTC](https://discourse.julialang.org/t/what-happens-when-you-throw-an-error-from-a-cfunction/71510 "2021-11-16T18:23:30Z")

</div>

If I define a C-callable function pointer (via @cfunction) which can internally throw an error, and then perform a ccall which would then invoke the function and trigger the error, what actually happens? I assume it does…

---

## [Higher dimensional cross product in LinearAlgebra](https://discourse.julialang.org/t/higher-dimensional-cross-product-in-linearalgebra/47919)

<div class="topic-metadata">

**Author:** [@akshu3398](https://discourse.julialang.org/u/akshu3398)\
**Replies:** 25\
**Last updated:** [October 20, 2020, 3:08am UTC](https://discourse.julialang.org/t/higher-dimensional-cross-product-in-linearalgebra/47919 "2020-10-20T03:08:48Z")

</div>

Is there any function (specifically in LineaAlgebra or Base Julia) similar to cross, but one that works(gives cross product) on (mathematically speaking) higher dimensional(length) Vectors??? As cross currently only supp…

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

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