# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1862

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

**Page:** 1863

---

## [Passing arguments explicitly to a closure or not](https://discourse.julialang.org/t/passing-arguments-explicitly-to-a-closure-or-not/32268)

<div class="topic-metadata">

**Author:** [@rvignolo](https://discourse.julialang.org/u/rvignolo)\
**Replies:** 5\
**Last updated:** [December 14, 2019, 7:12pm UTC](https://discourse.julialang.org/t/passing-arguments-explicitly-to-a-closure-or-not/32268 "2019-12-14T19:12:59Z")

</div>

Hi there, I am having problems to understand which of the following two scenarios is correct or if they are similar and have the same performance. function input() # define variables and functions inside the # \`in…

---

## [How to Compute the integration of the following formula by HCubature](https://discourse.julialang.org/t/how-to-compute-the-integration-of-the-following-formula-by-hcubature/32269)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 1\
**Last updated:** [December 14, 2019, 3:15pm UTC](https://discourse.julialang.org/t/how-to-compute-the-integration-of-the-following-formula-by-hcubature/32269 "2019-12-14T15:15:43Z")

</div>

julia\> f2(x)=x\[1\]\*x\[2\]/(1-x\[1\]) f2 (generic function with 1 method) julia\> a=\[0;x\[1\]\] ERROR: UndefVarError: x not defined Stacktrace: \[1\] top-level scope at none:0 julia\> b=\[1;1\]

---

## [Open position at Airbus in Munich](https://discourse.julialang.org/t/open-position-at-airbus-in-munich/32222)

<div class="topic-metadata">

**Author:** [@kschertler](https://discourse.julialang.org/u/kschertler)\
**Replies:** 1\
**Last updated:** [December 14, 2019, 2:08pm UTC](https://discourse.julialang.org/t/open-position-at-airbus-in-munich/32222 "2019-12-14T14:08:59Z")

</div>

Our team in Munich has an open senior position in the field of AI research. We are part of the Airbus Central Research & Technology organisation, looking into novel applications of AI across all Airbus divisions. Speakin…

---

## [Zygote @adjoint with matrices](https://discourse.julialang.org/t/zygote-adjoint-with-matrices/32188)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 7\
**Last updated:** [December 14, 2019, 1:41pm UTC](https://discourse.julialang.org/t/zygote-adjoint-with-matrices/32188 "2019-12-14T13:41:42Z")

</div>

Hi! I would like to use Zygote, because of the amazing possibility to tag the parameters you want to optimize and let Zygote do the rest. However in my case I am creating a matrix (K) given a (potentially highly neste…

---

## [Modifying internal fields inside a nested hierarchy](https://discourse.julialang.org/t/modifying-internal-fields-inside-a-nested-hierarchy/32263)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 2\
**Last updated:** [December 14, 2019, 11:52am UTC](https://discourse.julialang.org/t/modifying-internal-fields-inside-a-nested-hierarchy/32263 "2019-12-14T11:52:27Z")

</div>

Suppose I have the following situtation with a nested hierarchy: julia\> mutable struct Foo x end julia\> struct Bar y::Vector{Foo} end julia\> b = Bar(\[Foo(1), Foo(2)\]) Bar(Foo\[Foo(1)…

---

## [Testing on travis with \>10min initial compile time](https://discourse.julialang.org/t/testing-on-travis-with-10min-initial-compile-time/26721)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 13\
**Last updated:** [December 14, 2019, 4:26am UTC](https://discourse.julialang.org/t/testing-on-travis-with-10min-initial-compile-time/26721 "2019-12-14T04:26:02Z")

</div>

My tests are starting to fail due to initial compile time: $ julia --check-bounds=yes --color=yes -e "if VERSION \< v\\"0.7.0-DEV.5183\\"; Pkg.test(\\"${JL\_PKG}\\", coverage=true); else using Pkg; Pkg.test(coverage=true); en…

---

## [How would you write a beautiful DSL?](https://discourse.julialang.org/t/how-would-you-write-a-beautiful-dsl/32241)

<div class="topic-metadata">

**Author:** [@rvignolo](https://discourse.julialang.org/u/rvignolo)\
**Replies:** 20\
**Last updated:** [December 14, 2019, 3:44am UTC](https://discourse.julialang.org/t/how-would-you-write-a-beautiful-dsl/32241 "2019-12-14T03:44:51Z")

</div>

Please jump to this post below if you do not want to read my implementation and want to code it yourself! Hi, community, I am trying to write a beautiful DSL so the user can feel that she is writing mathematical equati…

---

## [\[RFC\] Taking directional/orientational statistics seriously](https://discourse.julialang.org/t/rfc-taking-directional-orientational-statistics-seriously/31951)

<div class="topic-metadata">

**Author:** [@sethaxen](https://discourse.julialang.org/u/sethaxen)\
**Replies:** 20\
**Last updated:** [December 13, 2019, 11:30pm UTC](https://discourse.julialang.org/t/rfc-taking-directional-orientational-statistics-seriously/31951 "2019-12-13T23:30:39Z")

</div>

To my knowledge, there are no Julia packages with good support for directional and orientational statistics. Directional statistics is used in biology (especially structural biology), crystallography, astronomy, and vari…

---

## [ControlSystems bug?](https://discourse.julialang.org/t/controlsystems-bug/30209)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 13\
**Last updated:** [December 13, 2019, 10:15pm UTC](https://discourse.julialang.org/t/controlsystems-bug/30209 "2019-12-13T22:15:11Z")

</div>

I use Julia v. 1.2 on 64bit Windows 10, v. v0.5.3 of package ControlSystems. Consider the following simple system – is there anything wrong in what I do?: julia\> using ControlSystems julia\> A = \[-1. -2.; 0 -2\]; B=\[2.; …

---

## [Weekly Julia challenge?](https://discourse.julialang.org/t/weekly-julia-challenge/32248)

<div class="topic-metadata">

**Author:** [@wsphillips](https://discourse.julialang.org/u/wsphillips)\
**Replies:** 2\
**Last updated:** [December 13, 2019, 8:24pm UTC](https://discourse.julialang.org/t/weekly-julia-challenge/32248 "2019-12-13T20:24:22Z")

</div>

Would people be up for a weekly computational challenge? I was thinking maybe to post a thread with problems from the archives of Project Euler and let people try to come up with the best (being either fastest or most “c…

---

## [Probabilistic shaping with flux (Telecommunication)](https://discourse.julialang.org/t/probabilistic-shaping-with-flux-telecommunication/32230)

<div class="topic-metadata">

**Author:** [@Rassibassi](https://discourse.julialang.org/u/Rassibassi)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 7:21pm UTC](https://discourse.julialang.org/t/probabilistic-shaping-with-flux-telecommunication/32230 "2019-12-13T19:21:41Z")

</div>

Hi, trying to implement the following paper: \[1906.07748\] Joint Learning of Geometric and Probabilistic Constellation Shaping already got a working version in TF: https://github.com/Rassibassi/claude/blob/master/example…

---

## [Disappearing REPL text on linux](https://discourse.julialang.org/t/disappearing-repl-text-on-linux/32244)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 7:17pm UTC](https://discourse.julialang.org/t/disappearing-repl-text-on-linux/32244 "2019-12-13T19:17:05Z")

</div>

On linux only, when the machine is reawakened from sleep, the text in an existing REPL session (or other terminal window) has all or mostly been redrawn in the background color. The sessions are still active, but most ne…

---

## [PlotlyJS GenericTrace Error](https://discourse.julialang.org/t/plotlyjs-generictrace-error/32243)

<div class="topic-metadata">

**Author:** [@alphasig329](https://discourse.julialang.org/u/alphasig329)\
**Replies:** 2\
**Last updated:** [December 13, 2019, 7:08pm UTC](https://discourse.julialang.org/t/plotlyjs-generictrace-error/32243 "2019-12-13T19:08:37Z")

</div>

I am trying to plot a series of boxplot following http://spencerlyon.com/PlotlyJS.jl/examples/box\_plots/ and export it to a static file. However, I am getting errors running the following code: using PlotlyJS using Blin…

---

## [How convert a string with a date and time info with submilisecond resolution to DateTime or perhaps just Time?](https://discourse.julialang.org/t/how-convert-a-string-with-a-date-and-time-info-with-submilisecond-resolution-to-datetime-or-perhaps-just-time/32213)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 6:16pm UTC](https://discourse.julialang.org/t/how-convert-a-string-with-a-date-and-time-info-with-submilisecond-resolution-to-datetime-or-perhaps-just-time/32213 "2019-12-13T18:16:18Z")

</div>

What is the simplest way to convert the 2019-12-06 12:01:40.300199 string into a DateTime or perhaps Time type of a variable? The trouble is obviously that the DateTime only considers integer milliseconds as the time re…

---

## [Some possibly useful Julia code: Getpwnam, NetworkInterfaces, hrbc](https://discourse.julialang.org/t/some-possibly-useful-julia-code-getpwnam-networkinterfaces-hrbc/32238)

<div class="topic-metadata">

**Author:** [@mleisher](https://discourse.julialang.org/u/mleisher)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 6:07pm UTC](https://discourse.julialang.org/t/some-possibly-useful-julia-code-getpwnam-networkinterfaces-hrbc/32238 "2019-12-13T18:07:03Z")

</div>

In pursuit of my own amusements, I whipped up some code I needed for a personal project: Getpwnam.jl This module implements getpwnam() for Julia. The Windows-specific portion is kludgy, but my project doesn’t depend …

---

## [Pprof() error?](https://discourse.julialang.org/t/pprof-error/31900)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 8\
**Last updated:** [December 13, 2019, 5:34pm UTC](https://discourse.julialang.org/t/pprof-error/31900 "2019-12-13T17:34:14Z")

</div>

when I use the PProf package, I see the following problem: julia\> pprof() ERROR: SystemError: opening file "profile.pb.gz": Permission denied I’m using MacOS help please. thanks.

---

## [Using other Integer types as type parameters](https://discourse.julialang.org/t/using-other-integer-types-as-type-parameters/32204)

<div class="topic-metadata">

**Author:** [@dstarerstor](https://discourse.julialang.org/u/dstarerstor)\
**Replies:** 3\
**Last updated:** [December 13, 2019, 5:28pm UTC](https://discourse.julialang.org/t/using-other-integer-types-as-type-parameters/32204 "2019-12-13T17:28:29Z")

</div>

I’ve recently been using a lot of Int16s, and found really unexpected behavior when I ended up plugging one of them in as a type parameter. For example: You can’t use one to define an NTuple julia\> NTuple{2, Nothing} T…

---

## [Preallocating Array in a Memory Efficient Way](https://discourse.julialang.org/t/preallocating-array-in-a-memory-efficient-way/32206)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 5\
**Last updated:** [December 13, 2019, 2:32pm UTC](https://discourse.julialang.org/t/preallocating-array-in-a-memory-efficient-way/32206 "2019-12-13T14:32:14Z")

</div>

Hi, I need to work with a very big Array z=zeros(Int64,2^K,2^K,K,T) What is the proper way of pre-allocating this Array in such a way that it uses the least memory possible when K is large?

---

## [Scientific Machine Learning, Differential Equations, and Symbolic Mathematics Opportunities in Julia](https://discourse.julialang.org/t/scientific-machine-learning-differential-equations-and-symbolic-mathematics-opportunities-in-julia/32232)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 2:08pm UTC](https://discourse.julialang.org/t/scientific-machine-learning-differential-equations-and-symbolic-mathematics-opportunities-in-julia/32232 "2019-12-13T14:08:37Z")

</div>

If you’re an undergraduate, graduating undergraduate, grad student looking for research directions, or graduating and looking for opportunities, then there may be some Julia-based development projects for you. If you’re …

---

## [Simple challenge: Is there a more "Julian" solution?](https://discourse.julialang.org/t/simple-challenge-is-there-a-more-julian-solution/32211)

<div class="topic-metadata">

**Author:** [@wsphillips](https://discourse.julialang.org/u/wsphillips)\
**Replies:** 12\
**Last updated:** [December 13, 2019, 1:51pm UTC](https://discourse.julialang.org/t/simple-challenge-is-there-a-more-julian-solution/32211 "2019-12-13T13:51:55Z")

</div>

I am porting someone else’s MATLAB code and found an indexing pattern that was baked in rather than generated programmatically. After hacking at it for a bit I managed to generalize the pattern. My solution isn’t very pr…

---

## [ERROR: Unsatisfiable requirements detected for package FactCheck \[01605889\]](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-factcheck-01605889/28214)

<div class="topic-metadata">

**Author:** [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Replies:** 4\
**Last updated:** [December 13, 2019, 1:33pm UTC](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-factcheck-01605889/28214 "2019-12-13T13:33:54Z")

</div>

I’m trying to install the package DeterminantalPointProcesses.jl of alshedivat from Github, but I get the following error message: ERROR: Unsatisfiable requirements detected for package FactCheck \[01605889\]: FactCheck…

---

## [Gadfly: orientation of ticks](https://discourse.julialang.org/t/gadfly-orientation-of-ticks/32174)

<div class="topic-metadata">

**Author:** [@alphasig329](https://discourse.julialang.org/u/alphasig329)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 12:09pm UTC](https://discourse.julialang.org/t/gadfly-orientation-of-ticks/32174 "2019-12-13T12:09:35Z")

</div>

Is it possible to have the orientation of ticks in a plot to be at 45 degrees as opposed to :vertical and :horizontal?

---

## [Juno block end](https://discourse.julialang.org/t/juno-block-end/32214)

<div class="topic-metadata">

**Author:** [@economyboy](https://discourse.julialang.org/u/economyboy)\
**Replies:** 2\
**Last updated:** [December 13, 2019, 8:44am UTC](https://discourse.julialang.org/t/juno-block-end/32214 "2019-12-13T08:44:46Z")

</div>

I encountered a strange issue: Sometimes Juno does not find the end-statement of a block and therefore execution is not possible. When I move the end statement to the last regular line, it works. I recall having had …

---

## [Untracking a Flux Model](https://discourse.julialang.org/t/untracking-a-flux-model/24811)

<div class="topic-metadata">

**Author:** [@mboutros](https://discourse.julialang.org/u/mboutros)\
**Replies:** 10\
**Last updated:** [December 13, 2019, 4:17am UTC](https://discourse.julialang.org/t/untracking-a-flux-model/24811 "2019-12-13T04:17:18Z")

</div>

I’m using Flux to train a model and it’s working wonderfully. After the model has been trained, it’s parameters are still tracked, which means the output of calling the model is tracked. Is there a way to “untrack” each …

---

## [Is it possible to put weights on clusters in MixedModels.jl?](https://discourse.julialang.org/t/is-it-possible-to-put-weights-on-clusters-in-mixedmodels-jl/32216)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 12:00am UTC](https://discourse.julialang.org/t/is-it-possible-to-put-weights-on-clusters-in-mixedmodels-jl/32216 "2019-12-13T00:00:25Z")

</div>

The package currently supports “case weights” - weights on individual observations. I wonder if there is a way to tweak the code so that I can put weights on clusters? Specifically, the package currently can take a vect…

---

## [\[ANN\] CryptoGroups, CryptoSignatures, DiffieHellman, SecureIO, Multiplexers](https://discourse.julialang.org/t/ann-cryptogroups-cryptosignatures-diffiehellman-secureio-multiplexers/32176)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 11:39pm UTC](https://discourse.julialang.org/t/ann-cryptogroups-cryptosignatures-diffiehellman-secureio-multiplexers/32176 "2019-12-12T23:39:50Z")

</div>

Hello everyone! I have been persistently prototyping a new kind of electronic voting system (see SynchronicBallot.jl) which produced commonly used cryptographic tools along the way. I am a theoretical physicist, and I k…

---

## [Struct containing a tuple of unknown length](https://discourse.julialang.org/t/struct-containing-a-tuple-of-unknown-length/32202)

<div class="topic-metadata">

**Author:** [@jbaxter](https://discourse.julialang.org/u/jbaxter)\
**Replies:** 4\
**Last updated:** [December 12, 2019, 11:08pm UTC](https://discourse.julialang.org/t/struct-containing-a-tuple-of-unknown-length/32202 "2019-12-12T23:08:32Z")

</div>

I’m thinking about some kind of immutable version of the following mutable object: mutable struct MGlob id::Int children::Array{MGlob} end For example the immutable version, called struct Glob, would have the same …

---

## [Lerche: A partial port of the Lark EBNF parser generator to Julia](https://discourse.julialang.org/t/lerche-a-partial-port-of-the-lark-ebnf-parser-generator-to-julia/32212)

<div class="topic-metadata">

**Author:** [@frtps](https://discourse.julialang.org/u/frtps)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 10:49pm UTC](https://discourse.julialang.org/t/lerche-a-partial-port-of-the-lark-ebnf-parser-generator-to-julia/32212 "2019-12-12T22:49:49Z")

</div>

A partial port of the Lark parser from Python to Julia has been released as Lerche (i.e. “Lark” in another language). Like Lark, Lerche generates parsers from EBNF grammars. These parsers create parse trees from supplie…

---

## [Fastest way to check if condition is true](https://discourse.julialang.org/t/fastest-way-to-check-if-condition-is-true/32057)

<div class="topic-metadata">

**Author:** [@Diger](https://discourse.julialang.org/u/Diger)\
**Replies:** 29\
**Last updated:** [December 12, 2019, 8:38pm UTC](https://discourse.julialang.org/t/fastest-way-to-check-if-condition-is-true/32057 "2019-12-12T20:38:30Z")

</div>

Hello, I’m looking for the fastest way to check whether this condition is true: minimum(broadcast(abs,broadcast(-,P,Ds\[i\]))) == 0 here P is an Array of integers and Ds\[i\] an integer of another array inside a loop I wa…

---

## [Tell Julia to use more memory than physical RAM, swapping](https://discourse.julialang.org/t/tell-julia-to-use-more-memory-than-physical-ram-swapping/19848)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 7\
**Last updated:** [December 12, 2019, 7:29pm UTC](https://discourse.julialang.org/t/tell-julia-to-use-more-memory-than-physical-ram-swapping/19848 "2019-12-12T19:29:02Z")

</div>

Hello. In R there is a setting, utils::memory.limit(20000), to let R use a quantity of memory larger than the RAM, if needed. The swap file on the SSD is much slower but sometimes is the only option if you want to per…

[Previous page](https://discourse.julialang.org/latest.md?page=1861)

[Next page](https://discourse.julialang.org/latest.md?page=1863)
