# Latest

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

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

**Page:** 1036

---

## [Julia execution inside a container with restricted RAM](https://discourse.julialang.org/t/julia-execution-inside-a-container-with-restricted-ram/81173)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 8\
**Last updated:** [May 19, 2022, 9:14pm UTC](https://discourse.julialang.org/t/julia-execution-inside-a-container-with-restricted-ram/81173 "2022-05-19T21:14:29Z")

</div>

Hello, is any way to restrict Julia’s process in memory consumption when that’s executed inside a Docker container? Sometimes we are getting out-of-memory kills just because Julia’s garbage collector didn’t do memory cle…

---

## [Julia double semicolon tutorial](https://discourse.julialang.org/t/julia-double-semicolon-tutorial/81333)

<div class="topic-metadata">

**Author:** [@juliafriend](https://discourse.julialang.org/u/juliafriend)\
**Replies:** 2\
**Last updated:** [May 19, 2022, 8:35pm UTC](https://discourse.julialang.org/t/julia-double-semicolon-tutorial/81333 "2022-05-19T20:35:43Z")

</div>

Hello, I’m new to Julia and trying to tackle learning arrays. I’m using Julia 1.6 and trying to use double semicolons to horizontally concatenate numbers into an array, following the tutorial example shown below: As…

---

## [MutatePlainDataArray.jl: Mutate nested immutables in arrays safely and efficiently](https://discourse.julialang.org/t/mutateplaindataarray-jl-mutate-nested-immutables-in-arrays-safely-and-efficiently/81328)

<div class="topic-metadata">

**Author:** [@drelatgithub](https://discourse.julialang.org/u/drelatgithub)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 7:39pm UTC](https://discourse.julialang.org/t/mutateplaindataarray-jl-mutate-nested-immutables-in-arrays-safely-and-efficiently/81328 "2022-05-19T19:39:45Z")

</div>

MutatePlainDataArray.jl is a tiny package that specifically aims to make mutating vectors of nested immutable fields easy. The package exports only one function aref, that wraps a vector allowing subsequent mutation of …

---

## [Python-to-Julia (and more) translator - py2many](https://discourse.julialang.org/t/python-to-julia-and-more-translator-py2many/81327)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 8:02pm UTC](https://discourse.julialang.org/t/python-to-julia-and-more-translator-py2many/81327 "2022-05-19T20:02:32Z")

</div>

I thought it was intriguing: Preliminary support exists for Julia, Kotlin, Nim, Go and Dart. py2many can also emit Python 3 code that includes inferred type annotations, and revisions to the syntax intended to simpli…

---

## [Reinterpet fails on empty array](https://discourse.julialang.org/t/reinterpet-fails-on-empty-array/81245)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 37\
**Last updated:** [May 19, 2022, 6:14pm UTC](https://discourse.julialang.org/t/reinterpet-fails-on-empty-array/81245 "2022-05-19T18:14:51Z")

</div>

Reinterpreting an empty array fails. I don’t know why A fails, while it is clear that B will succeed: julia\> struct A end julia\> reinterpret(A, Int8\[\]) ERROR: DivideError: integer division error Stacktrace: \[1\] rem …

---

## [A safe inbounds use with great performance effect](https://discourse.julialang.org/t/a-safe-inbounds-use-with-great-performance-effect/81319)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 6:05pm UTC](https://discourse.julialang.org/t/a-safe-inbounds-use-with-great-performance-effect/81319 "2022-05-19T18:05:53Z")

</div>

As a followup from this: Matt has shown that enumerate(eachindex(a)) is quite fast: julia\> function f!(A) for (count, idx) in enumerate(eachindex(A)) A\[idx\] = count\*2 end e…

---

## [Question about A' and Transpose(A)](https://discourse.julialang.org/t/question-about-a-and-transpose-a/81317)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 9\
**Last updated:** [May 19, 2022, 5:57pm UTC](https://discourse.julialang.org/t/question-about-a-and-transpose-a/81317 "2022-05-19T17:57:41Z")

</div>

julia\> A = \[1 + 0.2im, 2 + 0.6im\] 2-element Vector{ComplexF64}: 1.0 + 0.2im 2.0 + 0.6im julia\> A' 1×2 adjoint(::Vector{ComplexF64}) with eltype ComplexF64: 1.0-0.2im 2.0-0.6im julia\> Transpose(A) 1×2 transpose(::Ve…

---

## [Escaping properly a bash command](https://discourse.julialang.org/t/escaping-properly-a-bash-command/81316)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 5:00pm UTC](https://discourse.julialang.org/t/escaping-properly-a-bash-command/81316 "2022-05-19T17:00:20Z")

</div>

I am trying to execute a command which has its own variable. Specifically, I am trying to submit jobs on a cluster using Njobs = 10 for r in res submit = \`bsub -R 'rusage\[mem=800\]' -J jobname\\\[1-$Njobs\\\] julia\_scri…

---

## [Julia User & Developer Survey 2022 - draft questionnaire available for comment](https://discourse.julialang.org/t/julia-user-developer-survey-2022-draft-questionnaire-available-for-comment/81310)

<div class="topic-metadata">

**Author:** [@ahclaster](https://discourse.julialang.org/u/ahclaster)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 4:28pm UTC](https://discourse.julialang.org/t/julia-user-developer-survey-2022-draft-questionnaire-available-for-comment/81310 "2022-05-19T16:28:48Z")

</div>

The fourth annual Julia User & Developer Survey is being developed now, and we want your input. Please do NOT complete the survey at this time. This link is being shared with you to collect feedback about the questionna…

---

## [Code that works fine distributed across processes on one node using slurm seems to fail when trying to generate workers across many](https://discourse.julialang.org/t/code-that-works-fine-distributed-across-processes-on-one-node-using-slurm-seems-to-fail-when-trying-to-generate-workers-across-many/39359)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 2\
**Last updated:** [May 19, 2022, 4:15pm UTC](https://discourse.julialang.org/t/code-that-works-fine-distributed-across-processes-on-one-node-using-slurm-seems-to-fail-when-trying-to-generate-workers-across-many/39359 "2022-05-19T16:15:51Z")

</div>

Hi, I have some code that works fine when I run it on a single node of our slurm cluster using sbatch, but when I try to run it on multiple nodes I get errors similar to the following: srun: error: cnode22: tasks 7,12,1…

---

## [Julia Gender Inclusive coffee meet-up with Rachel Kurchin](https://discourse.julialang.org/t/julia-gender-inclusive-coffee-meet-up-with-rachel-kurchin/81315)

<div class="topic-metadata">

**Author:** [@kimauth](https://discourse.julialang.org/u/kimauth)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 4:04pm UTC](https://discourse.julialang.org/t/julia-gender-inclusive-coffee-meet-up-with-rachel-kurchin/81315 "2022-05-19T16:04:33Z")

</div>

Hey everyone, Julia Gender Inclusive invites you to the next coffee meetup on sunday, 22nd of May at 11AM EDT / 3pm UTC / 5pm CEST / 8:30 pm IST! Sign-up here for a link to join: https://forms.gle/w1f74sS35JV1vbFy6 Thi…

---

## [Shared library code crashing, but only from REPL](https://discourse.julialang.org/t/shared-library-code-crashing-but-only-from-repl/81314)

<div class="topic-metadata">

**Author:** [@andrew\_s](https://discourse.julialang.org/u/andrew_s)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 4:03pm UTC](https://discourse.julialang.org/t/shared-library-code-crashing-but-only-from-repl/81314 "2022-05-19T16:03:19Z")

</div>

I am calling a Fortran shared library in my program. If I run my Julia program (which calls the Fortran library) everything runs as expected. However, if I run exactly the same code in the Julia REPL (connected to Visu…

---

## [\[ANN\] Inequality.jl](https://discourse.julialang.org/t/ann-inequality-jl/81059)

<div class="topic-metadata">

**Author:** [@JosepER](https://discourse.julialang.org/u/JosepER)\
**Replies:** 8\
**Last updated:** [May 19, 2022, 2:45pm UTC](https://discourse.julialang.org/t/ann-inequality-jl/81059 "2022-05-19T14:45:17Z")

</div>

Inequality.jl has functions for the analysis of inequality and poverty indicators. It currently supports the estimation of the following (both weighted and unweighted): Gini Coefficient Atkinson Coefficient Lorenz Curv…

---

## [Is there a way to stop optimization process when feasible solution is found?](https://discourse.julialang.org/t/is-there-a-way-to-stop-optimization-process-when-feasible-solution-is-found/81025)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 4\
**Last updated:** [May 19, 2022, 2:44pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-stop-optimization-process-when-feasible-solution-is-found/81025 "2022-05-19T14:44:23Z")

</div>

Hey there. I am solving a problem with lazy constraints using MOI callback interface. I want to know if there is a way to stop the branch-and-bound process when finding a new incumbent solution that is feasible? I don’t…

---

## [User cuts for BilevelJuMP model](https://discourse.julialang.org/t/user-cuts-for-bileveljump-model/81299)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [May 19, 2022, 2:30pm UTC](https://discourse.julialang.org/t/user-cuts-for-bileveljump-model/81299 "2022-05-19T14:30:15Z")

</div>

How do I add cuts during the solve process when using BilevelJuMP.jl. My upper-level objective is a sum of binary variables and thus I know that my solution (optimal objective value) is eventually going to be an integer …

---

## [Access both solutions of a SecondOrderODEProblem solution](https://discourse.julialang.org/t/access-both-solutions-of-a-secondorderodeproblem-solution/81291)

<div class="topic-metadata">

**Author:** [@GHRALIMA](https://discourse.julialang.org/u/GHRALIMA)\
**Replies:** 7\
**Last updated:** [May 19, 2022, 2:10pm UTC](https://discourse.julialang.org/t/access-both-solutions-of-a-secondorderodeproblem-solution/81291 "2022-05-19T14:10:43Z")

</div>

I’m trying to use DifferentialEquations.jl to solve simple mechanical problems with SecondOrderODEProblem, something like: k=0.01 v0 = 10.0 x0 = 10.0 tspan = (0.0, 100.0) ax1(v,u,p,t) = -k\*v - g prob = SecondOrderODEPr…

---

## [Defining a subclass](https://discourse.julialang.org/t/defining-a-subclass/80716)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 19\
**Last updated:** [May 19, 2022, 2:07pm UTC](https://discourse.julialang.org/t/defining-a-subclass/80716 "2022-05-19T14:07:18Z")

</div>

I realise this is a newbie question, but I think it’s sort of central to the whole Julia ethos. I really like the idea of moving away from object-orientation’s emphasis on single dispatch, and that lattices of types perf…

---

## [Parallel processing using FLoops](https://discourse.julialang.org/t/parallel-processing-using-floops/80893)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 27\
**Last updated:** [May 19, 2022, 1:27pm UTC](https://discourse.julialang.org/t/parallel-processing-using-floops/80893 "2022-05-19T13:27:18Z")

</div>

Hi, I am trying to enhance the performance of my Julia code by using all the cores on my computer. For this, I am using the FLoops package. My code is simple: I am generating 100 instances of a random density matrix of s…

---

## [Building specific library version with Yggdrasil](https://discourse.julialang.org/t/building-specific-library-version-with-yggdrasil/81262)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 6\
**Last updated:** [May 19, 2022, 1:10pm UTC](https://discourse.julialang.org/t/building-specific-library-version-with-yggdrasil/81262 "2022-05-19T13:10:09Z")

</div>

Dearests, I am in the process of shipping a new Pkg that depends on an external library. More precisely, we need to have a library called “HMMER” with its HMMMER\_JLL on Yggdrasil. Unfortunately, due to compatibility iss…

---

## [Following Tutorial for JuliaInXL Gives World Age Error - How to Fix?](https://discourse.julialang.org/t/following-tutorial-for-juliainxl-gives-world-age-error-how-to-fix/81153)

<div class="topic-metadata">

**Author:** [@ameresv](https://discourse.julialang.org/u/ameresv)\
**Replies:** 3\
**Last updated:** [May 19, 2022, 12:30pm UTC](https://discourse.julialang.org/t/following-tutorial-for-juliainxl-gives-world-age-error-how-to-fix/81153 "2022-05-19T12:30:37Z")

</div>

Hi, I have identified an issue with JuliaInXL by the time to follow the provided tutorial at minute 10:50. I am trying to create a function in the REPL as simple as: mm2(x) = x + 2 # as same as the video suggests How…

---

## [differentialEquation or diffEqOperator, whose problem?](https://discourse.julialang.org/t/differentialequation-or-diffeqoperator-whose-problem/81179)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 5\
**Last updated:** [May 19, 2022, 12:19pm UTC](https://discourse.julialang.org/t/differentialequation-or-diffeqoperator-whose-problem/81179 "2022-05-19T12:19:33Z")

</div>

basically, I would like to simulate a gas-solid reaction. u\[:,1\] is gas reactant, u\[:,2\] is gas product, and u\[:3\] is solid product. some times the result is strange. the code is below using OrdinaryDiffEq, DiffEqOpera…

---

## [Does Julia have a Stratified Sampling function?](https://discourse.julialang.org/t/does-julia-have-a-stratified-sampling-function/81293)

<div class="topic-metadata">

**Author:** [@DWSchulze](https://discourse.julialang.org/u/DWSchulze)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 10:41am UTC](https://discourse.julialang.org/t/does-julia-have-a-stratified-sampling-function/81293 "2022-05-19T10:41:18Z")

</div>

It looks like StratifiedRandomSub was added at some point, but I can’t find it: https://github.com/JuliaStats/MLBase.jl/issues/3

---

## [Is there a package which solve differential equation analytically?](https://discourse.julialang.org/t/is-there-a-package-which-solve-differential-equation-analytically/81306)

<div class="topic-metadata">

**Author:** [@acsofie](https://discourse.julialang.org/u/acsofie)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 10:37am UTC](https://discourse.julialang.org/t/is-there-a-package-which-solve-differential-equation-analytically/81306 "2022-05-19T10:37:42Z")

</div>

I want to find a package which can solve differential equation analytically like \\frac{\\mathbb{d}f}{\\mathbb{d}x}=f\\ \\Rightarrow \\ f(x)=Ce^x I think it is a trivial function but I didn’t find it. Symbolics.jl just supp…

---

## [Easier use of generated\_quantities](https://discourse.julialang.org/t/easier-use-of-generated-quantities/81305)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 10:17am UTC](https://discourse.julialang.org/t/easier-use-of-generated-quantities/81305 "2022-05-19T10:17:40Z")

</div>

Hi, I’ve had a problem where I had to deal with generated\_quantities and I’ve come up with a solution myself, but I pretty sure that it’s not the optimal way of doing it. No matter what, I think it would be a great help…

---

## [Exporting and importing a 3D matrix](https://discourse.julialang.org/t/exporting-and-importing-a-3d-matrix/81300)

<div class="topic-metadata">

**Author:** [@CactusHamster](https://discourse.julialang.org/u/CactusHamster)\
**Replies:** 4\
**Last updated:** [May 19, 2022, 9:53am UTC](https://discourse.julialang.org/t/exporting-and-importing-a-3d-matrix/81300 "2022-05-19T09:53:42Z")

</div>

We generate a matrix like this for i = 1:5 for j = 1:5 for k = 1:5 d\[i, j, k\] = rand(1) end end end Is there an easy way to save matrix d somewhere and later on just call it and use it? With …

---

## [Rust vs Julia](https://discourse.julialang.org/t/rust-vs-julia/11979)

<div class="topic-metadata">

**Author:** [@blindseer](https://discourse.julialang.org/u/blindseer)\
**Replies:** 11\
**Last updated:** [May 19, 2022, 8:10am UTC](https://discourse.julialang.org/t/rust-vs-julia/11979 "2022-05-19T08:10:14Z")

</div>

I’d like to compare the use of Julia to Rust for an application in mind that involves a lot of matrix operations and parallelization. I wanted to get informed opinions from the Julia community. Have people here used Rust…

---

## [The fate of DimensionalArrays / AxisArrays in Julia, and which to actually use](https://discourse.julialang.org/t/the-fate-of-dimensionalarrays-axisarrays-in-julia-and-which-to-actually-use/33253)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 7\
**Last updated:** [May 19, 2022, 8:09am UTC](https://discourse.julialang.org/t/the-fate-of-dimensionalarrays-axisarrays-in-julia-and-which-to-actually-use/33253 "2022-05-19T08:09:30Z")

</div>

I wasn’t sure whether I should open this at “Domains” or “Community”, given how many different areas it touches So, as far as I can tell, at the moment the story of using array data coupled with information about dimens…

---

## [DFTK school 2022](https://discourse.julialang.org/t/dftk-school-2022/73497)

<div class="topic-metadata">

**Author:** [@mfh](https://discourse.julialang.org/u/mfh)\
**Replies:** 6\
**Last updated:** [May 19, 2022, 5:17am UTC](https://discourse.julialang.org/t/dftk-school-2022/73497 "2022-05-19T05:17:17Z")

</div>

Hi everyone! From 29 to 31 Aug 2022 @antoine-levitt, Eric Cancès (from École des Ponts in Paris) and myself, we will organize an interdisciplinary summer school centred around electronic-structure simulations and method…

---

## [Modelling Microstructure Noise Using Hawkes Processes](https://discourse.julialang.org/t/modelling-microstructure-noise-using-hawkes-processes/81298)

<div class="topic-metadata">

**Author:** [@dm13450](https://discourse.julialang.org/u/dm13450)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 5:06am UTC](https://discourse.julialang.org/t/modelling-microstructure-noise-using-hawkes-processes/81298 "2022-05-19T05:06:22Z")

</div>

Using Julia I’ve shown how you can use Hawkes processes to model the high frequency phenomenon of microstructure noise. This is where the volatility of an asset blows up as you move to smaller timescales. My post is wri…

---

## [Wording in "Test summary" portion of HypothesisTests.jl output](https://discourse.julialang.org/t/wording-in-test-summary-portion-of-hypothesistests-jl-output/79186)

<div class="topic-metadata">

**Author:** [@nealS](https://discourse.julialang.org/u/nealS)\
**Replies:** 1\
**Last updated:** [May 19, 2022, 4:13am UTC](https://discourse.julialang.org/t/wording-in-test-summary-portion-of-hypothesistests-jl-output/79186 "2022-05-19T04:13:04Z")

</div>

I am a bit confused about the wording in the output of the hypothesis tests implemented in Hypothesistests.jl, and think that they might be improved. Take this instance of Fisher’s exact test: FisherExactTest(4,3,2,4) F…

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

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