# Latest

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

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

**Page:** 1266

---

## [Temporary pre-allocated array within function is slower than non-preallocated?](https://discourse.julialang.org/t/temporary-pre-allocated-array-within-function-is-slower-than-non-preallocated/68232)

<div class="topic-metadata">

**Author:** [@cosmia](https://discourse.julialang.org/u/cosmia)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 10:59pm UTC](https://discourse.julialang.org/t/temporary-pre-allocated-array-within-function-is-slower-than-non-preallocated/68232 "2021-09-15T22:59:06Z")

</div>

I have the following code, which performs a intermediary operation, and stores the final result in the output vector out using the max function. There are two ways to do this, one is to pre-allocate a temporary vector to…

---

## [Import numerical data from text file, sort and retain only Floats](https://discourse.julialang.org/t/import-numerical-data-from-text-file-sort-and-retain-only-floats/68216)

<div class="topic-metadata">

**Author:** [@dalarev](https://discourse.julialang.org/u/dalarev)\
**Replies:** 7\
**Last updated:** [September 15, 2021, 10:09pm UTC](https://discourse.julialang.org/t/import-numerical-data-from-text-file-sort-and-retain-only-floats/68216 "2021-09-15T22:09:15Z")

</div>

MWE: readdlm interprets data imported form a .dat text file as: julia\> A 2×4 Matrix{Any}: 1 2 "" 3 4 5 6 "" I would like to ignore the "" SubString{String} and raster by row to obtain the following final …

---

## [RK4 stages interpolation](https://discourse.julialang.org/t/rk4-stages-interpolation/68205)

<div class="topic-metadata">

**Author:** [@AhmedAlreweny](https://discourse.julialang.org/u/AhmedAlreweny)\
**Replies:** 4\
**Last updated:** [September 15, 2021, 10:02pm UTC](https://discourse.julialang.org/t/rk4-stages-interpolation/68205 "2021-09-15T22:02:16Z")

</div>

Hello, I have an ODE which I solve using the RK4 time integration with a resolution of dt. Now, I want to do interpolation of my generated trajectory (solution) at intermediate points so that the time step becomes dt/2.…

---

## [Can the SDE in DifferentialEquations.jl add two or more different/independent noise terms?](https://discourse.julialang.org/t/can-the-sde-in-differentialequations-jl-add-two-or-more-different-independent-noise-terms/68227)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 9:57pm UTC](https://discourse.julialang.org/t/can-the-sde-in-differentialequations-jl-add-two-or-more-different-independent-noise-terms/68227 "2021-09-15T21:57:25Z")

</div>

I have looked at the noise terms in SDE in DifferentialEquations.jl https://diffeq.sciml.ai/stable/features/noise\_process/ I am not expert in SDE, and perhaps what I said is wrong and even stupid. I see all those equa…

---

## [Integral saturation limits w/ DifferentialEquations.jl](https://discourse.julialang.org/t/integral-saturation-limits-w-differentialequations-jl/22143)

<div class="topic-metadata">

**Author:** [@DrPapa](https://discourse.julialang.org/u/DrPapa)\
**Replies:** 23\
**Last updated:** [September 15, 2021, 9:28pm UTC](https://discourse.julialang.org/t/integral-saturation-limits-w-differentialequations-jl/22143 "2021-09-15T21:28:02Z")

</div>

I need to simulate an ODE w/ saturation limits on the integrators to prevent integral wind-up, e.g. see link. My initial thought is to implement this via ContinuousCallback where the offending state’s dynamics are set to…

---

## [Speeding up DDE that interpolates past value at 3 indices](https://discourse.julialang.org/t/speeding-up-dde-that-interpolates-past-value-at-3-indices/67970)

<div class="topic-metadata">

**Author:** [@Amarantine](https://discourse.julialang.org/u/Amarantine)\
**Replies:** 7\
**Last updated:** [September 15, 2021, 9:25pm UTC](https://discourse.julialang.org/t/speeding-up-dde-that-interpolates-past-value-at-3-indices/67970 "2021-09-15T21:25:34Z")

</div>

On the example for DDE, there is a section talking about speeding up interpolation at a specific index. However, I’m wondering if I can do similar things with more than one, like 3, indices. I have a large model with 150…

---

## [Sales Engineering and customer facing roles at Julia Computing](https://discourse.julialang.org/t/sales-engineering-and-customer-facing-roles-at-julia-computing/63147)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 8:59pm UTC](https://discourse.julialang.org/t/sales-engineering-and-customer-facing-roles-at-julia-computing/63147 "2021-09-15T20:59:42Z")

</div>

Hello all — we at Julia Computing are looking for a sales engineer to help support our team and customers as we continue to grow and build out JuliaHub and JuliaHub Enterprise. Come work with us! Julia is an open sourc…

---

## [\`Semiconductor EDA Intern\` at Julia Computing](https://discourse.julialang.org/t/semiconductor-eda-intern-at-julia-computing/68115)

<div class="topic-metadata">

**Author:** [@Keno](https://discourse.julialang.org/u/Keno)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 8:38pm UTC](https://discourse.julialang.org/t/semiconductor-eda-intern-at-julia-computing/68115 "2021-09-15T20:38:31Z")

</div>

Hi all, We have just opened up internship applications for the Semiconductor EDA/JuliaSPICE team at Julia Computing For background on JuliaSPICE, see our talk from JuliaCon this year: https://www.youtube.com/watch?v=q8…

---

## [Adding packages + pre-compilation vs. (docker pull) pre-built sysimage](https://discourse.julialang.org/t/adding-packages-pre-compilation-vs-docker-pull-pre-built-sysimage/55445)

<div class="topic-metadata">

**Author:** [@StatisticalMouse](https://discourse.julialang.org/u/StatisticalMouse)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 8:15pm UTC](https://discourse.julialang.org/t/adding-packages-pre-compilation-vs-docker-pull-pre-built-sysimage/55445 "2021-09-15T20:15:00Z")

</div>

I made an observation, which might be useful. I have a base julia docker image with jupyterlab installed. I then added another layer that does RUN julia -e "using Pkg; Pkg.add(\["Plots","StatsPlots","DataFrames"\]); Pkg.p…

---

## [@views bug or expected behaviour?](https://discourse.julialang.org/t/views-bug-or-expected-behaviour/68186)

<div class="topic-metadata">

**Author:** [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 8:00pm UTC](https://discourse.julialang.org/t/views-bug-or-expected-behaviour/68186 "2021-09-15T20:00:23Z")

</div>

Consider the code n = 5 z = randn(ComplexF64, n) x = zeros(n) y = zeros(n) i = 2 j = 4 @views x\[i:j\] , y\[i:j\] = reim(z\[i:j\]) In julia 1.6.1 this throws the error ERROR: syntax: "i:j" is not a valid function argument n…

---

## [Semver and exporting variables](https://discourse.julialang.org/t/semver-and-exporting-variables/68225)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 6:59pm UTC](https://discourse.julialang.org/t/semver-and-exporting-variables/68225 "2021-09-15T18:59:40Z")

</div>

Semver is great, Julia is great, but it very mildly bothers me that any code which does using can’t strictly adhere to semver. For example: using A, B f(x) Initially A exports f and B doesn’t. A later version of B doe…

---

## [Interfacing with a C++ library: strange behaviour](https://discourse.julialang.org/t/interfacing-with-a-c-library-strange-behaviour/67999)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 4\
**Last updated:** [September 15, 2021, 6:48pm UTC](https://discourse.julialang.org/t/interfacing-with-a-c-library-strange-behaviour/67999 "2021-09-15T18:48:21Z")

</div>

This is a long shot, but I have absolutely no idea what is happening here… So I try to write a wrapper for a few functions in the (C++, header-only) libigl geometry library. For this I write an intermediary C library wh…

---

## [\[ANN\] MOSLab.jl From Semiconductor to TransistorLevel Modeling in Julia](https://discourse.julialang.org/t/ann-moslab-jl-from-semiconductor-to-transistorlevel-modeling-in-julia/68224)

<div class="topic-metadata">

**Author:** [@Raposo](https://discourse.julialang.org/u/Raposo)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 6:21pm UTC](https://discourse.julialang.org/t/ann-moslab-jl-from-semiconductor-to-transistorlevel-modeling-in-julia/68224 "2021-09-15T18:21:00Z")

</div>

I am excited to share the initial release of MOSLab.jl From Semiconductor to TransistorLevel Modeling in Julia, including: Material properties analysis of electronical characteristics using Fermi-Dirac distribution…

---

## [Data structure for visualizing and scaling](https://discourse.julialang.org/t/data-structure-for-visualizing-and-scaling/68222)

<div class="topic-metadata">

**Author:** [@jhgorse](https://discourse.julialang.org/u/jhgorse)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 6:10pm UTC](https://discourse.julialang.org/t/data-structure-for-visualizing-and-scaling/68222 "2021-09-15T18:10:03Z")

</div>

Hello, New julia user here coming from MATLAB background and enjoying things so far. I have been playing with ImPlot.jl + CImGui and am inspired to create a log viewer and realtime visualizer for a system I’ve inherite…

---

## ["Quantitative Economics with Julia" lecture notes updated to Julia 1.6, VS Code, and GitHub Actions](https://discourse.julialang.org/t/quantitative-economics-with-julia-lecture-notes-updated-to-julia-1-6-vs-code-and-github-actions/67956)

<div class="topic-metadata">

**Author:** [@jlperla](https://discourse.julialang.org/u/jlperla)\
**Replies:** 5\
**Last updated:** [September 15, 2021, 5:51pm UTC](https://discourse.julialang.org/t/quantitative-economics-with-julia-lecture-notes-updated-to-julia-1-6-vs-code-and-github-actions/67956 "2021-09-15T17:51:58Z")

</div>

The Quantitative Economics with Julia lectures have been given a significant update. Beyond infrastructure updates, the lecture notes now more strongly emphasize software engineering concepts, such source code control a…

---

## [How to compute density of conditional probability from data](https://discourse.julialang.org/t/how-to-compute-density-of-conditional-probability-from-data/68208)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 6\
**Last updated:** [September 15, 2021, 5:22pm UTC](https://discourse.julialang.org/t/how-to-compute-density-of-conditional-probability-from-data/68208 "2021-09-15T17:22:41Z")

</div>

I have samples X::Vector{Float64} and S = rand(0:1,1000). I call X\[i\] succesful, if S\[i\] == 1 is satisfied. I would like to estimate the probablility that a sample is succesful, hence p\_x = \\mathbb P ( S = 1 \\mid X …

---

## [Binder and choice of jupyterlab or jupyter](https://discourse.julialang.org/t/binder-and-choice-of-jupyterlab-or-jupyter/68219)

<div class="topic-metadata">

**Author:** [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 5:19pm UTC](https://discourse.julialang.org/t/binder-and-choice-of-jupyterlab-or-jupyter/68219 "2021-09-15T17:19:08Z")

</div>

Apologies for the narrow question. We use binder (and gesis) to host a set of notebooks for a calculus class. It seems the default interface has changed since August to jupyterlab and now plotly() graphics are not displ…

---

## [HTTP.jl + Ajax](https://discourse.julialang.org/t/http-jl-ajax/68206)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 4\
**Last updated:** [September 15, 2021, 5:00pm UTC](https://discourse.julialang.org/t/http-jl-ajax/68206 "2021-09-15T17:00:17Z")

</div>

Where can I find a simple example of a HTTP.jl backend server and a HTML+Javascript FE? I want to learn to communicate between Javascript and Julia for a simple app. Example: I would like to create a html input which ta…

---

## [Graph function using AlgebraOfGraphics](https://discourse.julialang.org/t/graph-function-using-algebraofgraphics/67888)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 3:07pm UTC](https://discourse.julialang.org/t/graph-function-using-algebraofgraphics/67888 "2021-09-15T15:07:04Z")

</div>

I would like to overlay a density function over a histogram and have a strong preference for using the AlgebraOfGraphics to graph this exact function. Currently, to accomplish this I have to translate the function into …

---

## [Variable View doesn't work in Jupyter Notebooks in Vscodium 1.6](https://discourse.julialang.org/t/variable-view-doesnt-work-in-jupyter-notebooks-in-vscodium-1-6/68172)

<div class="topic-metadata">

**Author:** [@vinicius\_de\_lima](https://discourse.julialang.org/u/vinicius_de_lima)\
**Replies:** 5\
**Last updated:** [September 15, 2021, 2:31pm UTC](https://discourse.julialang.org/t/variable-view-doesnt-work-in-jupyter-notebooks-in-vscodium-1-6/68172 "2021-09-15T14:31:08Z")

</div>

I’m using Julia Jupyter Notebook in Vscodium version 1.6 and the Variable View doesn’t seem to work, am I missing on something?

---

## [Broadcast comparison of array of enum objects gives an error](https://discourse.julialang.org/t/broadcast-comparison-of-array-of-enum-objects-gives-an-error/68146)

<div class="topic-metadata">

**Author:** [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Replies:** 11\
**Last updated:** [September 15, 2021, 1:56pm UTC](https://discourse.julialang.org/t/broadcast-comparison-of-array-of-enum-objects-gives-an-error/68146 "2021-09-15T13:56:24Z")

</div>

I have an array of @Enum objects. I want to count the array elements having a certain value. @enum E x = 0 y = 1 Es = \[E(0) for i in 1:100\] sum(Es .== E(0)) Above code and just Es .== E(0) gives the following error: E…

---

## [Graph layout algorithm allowing manual adjustments?](https://discourse.julialang.org/t/graph-layout-algorithm-allowing-manual-adjustments/68164)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [September 15, 2021, 1:40pm UTC](https://discourse.julialang.org/t/graph-layout-algorithm-allowing-manual-adjustments/68164 "2021-09-15T13:40:05Z")

</div>

Julia packages like GraphPlot and NetworkLayout can automatically choose the positions of graph vertices to make the graph look nice. However, sometimes I want to manually adjust the positions of the vertices to make the…

---

## [Running the contributed command: 'language-julia.executeCellAndMove' failed](https://discourse.julialang.org/t/running-the-contributed-command-language-julia-executecellandmove-failed/68213)

<div class="topic-metadata">

**Author:** [@Willem](https://discourse.julialang.org/u/Willem)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 1:19pm UTC](https://discourse.julialang.org/t/running-the-contributed-command-language-julia-executecellandmove-failed/68213 "2021-09-15T13:19:30Z")

</div>

On my RHEL7 Visual Studio Code, I can not run my Hello World program from the built-in REPL. There is something wrong with the installation but I can not figure out what it is. The error I see is Running the contributed…

---

## [Society of HPC Professionals Lunch and Learn](https://discourse.julialang.org/t/society-of-hpc-professionals-lunch-and-learn/68210)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 12:58pm UTC](https://discourse.julialang.org/t/society-of-hpc-professionals-lunch-and-learn/68210 "2021-09-15T12:58:44Z")

</div>

Using High Performance Computing to allow clinical compatible performance for biomechanical Finite Element simulations We have developed a model to describe inward brain-shift with viscoelastic biomechanical modeling va…

---

## [Stochastic model building: assistance with the DiffEq ecosystem](https://discourse.julialang.org/t/stochastic-model-building-assistance-with-the-diffeq-ecosystem/46611)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 0\
**Last updated:** [September 14, 2020, 9:37pm UTC](https://discourse.julialang.org/t/stochastic-model-building-assistance-with-the-diffeq-ecosystem/46611 "2020-09-14T21:37:29Z")

</div>

So, it’s time. I need to put some noise in my nice, clean, simple ODEs. Luckily DifferentialEquations.jl has me covered—the documentation is extensive… But perhaps too extensive: I don’t know where to start. I think, ul…

---

## [DifferentialEquations.jl SDE, multiple solvers sharing the same noise](https://discourse.julialang.org/t/differentialequations-jl-sde-multiple-solvers-sharing-the-same-noise/18790)

<div class="topic-metadata">

**Author:** [@nowozin](https://discourse.julialang.org/u/nowozin)\
**Replies:** 0\
**Last updated:** [December 18, 2018, 9:54am UTC](https://discourse.julialang.org/t/differentialequations-jl-sde-multiple-solvers-sharing-the-same-noise/18790 "2018-12-18T09:54:27Z")

</div>

Thanks to the authors of DifferentialEquations.jl, it is quite a nice package. I would like to evaluate the numerical accuracy of multiple solvers for an SDE. For this, I intend to numerically solve for the same path, …

---

## [On loop scoping, inside functions](https://discourse.julialang.org/t/on-loop-scoping-inside-functions/68201)

<div class="topic-metadata">

**Author:** [@levasco](https://discourse.julialang.org/u/levasco)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 11:54am UTC](https://discourse.julialang.org/t/on-loop-scoping-inside-functions/68201 "2021-09-15T11:54:06Z")

</div>

I know, this topic again. After a year I thought I understood this well enough, I was wrong. I expect this to work but it doesn’t. I don’t want to declare b as a global here, just access it inside the function. function…

---

## [Matrix multiplication but sum of min() instead of sum of product](https://discourse.julialang.org/t/matrix-multiplication-but-sum-of-min-instead-of-sum-of-product/68174)

<div class="topic-metadata">

**Author:** [@sardinecan](https://discourse.julialang.org/u/sardinecan)\
**Replies:** 7\
**Last updated:** [September 15, 2021, 11:36am UTC](https://discourse.julialang.org/t/matrix-multiplication-but-sum-of-min-instead-of-sum-of-product/68174 "2021-09-15T11:36:21Z")

</div>

Hi everyone, I’m new to Julia and I’m using it to do some network analysis on historical data. As I have valued bimodal data for my graphs, I need to “normalize" those values. Basically, I need to do some “matrix multi…

---

## [PkgDev and VSCode julia: tag release](https://discourse.julialang.org/t/pkgdev-and-vscode-julia-tag-release/68147)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 0\
**Last updated:** [September 14, 2021, 1:02pm UTC](https://discourse.julialang.org/t/pkgdev-and-vscode-julia-tag-release/68147 "2021-09-14T13:02:43Z")

</div>

What is the proper way of dealing with a rejected pull request on the General registry when using PkgDev.tag through the vscode extension interface? Am I supposed to push the requested modifications to my project on the…

---

## [Allocation with StaticArrays](https://discourse.julialang.org/t/allocation-with-staticarrays/68176)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 19\
**Last updated:** [September 15, 2021, 10:29am UTC](https://discourse.julialang.org/t/allocation-with-staticarrays/68176 "2021-09-15T10:29:16Z")

</div>

Hi, I thought I got better at this, but there’s a function that’s creating allocations and I can’t figure out why. I’ve spent a few hours troubleshooting this with no success. Here’s the function: using StaticArrays fu…

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

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