# Latest

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

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

**Page:** 948

---

## [ByRow vs broadcasting performance](https://discourse.julialang.org/t/byrow-vs-broadcasting-performance/86069)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 0\
**Last updated:** [August 20, 2022, 4:42pm UTC](https://discourse.julialang.org/t/byrow-vs-broadcasting-performance/86069 "2022-08-20T16:42:46Z")

</div>

I was under the impression that ByRow would have better performance than broadcasting. However, trying an example today I found that it seems to be the other way. It may be due to some specific characteristic of my examp…

---

## [Keyword vs Optional Function Arguments?](https://discourse.julialang.org/t/keyword-vs-optional-function-arguments/86065)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 2\
**Last updated:** [August 20, 2022, 2:57pm UTC](https://discourse.julialang.org/t/keyword-vs-optional-function-arguments/86065 "2022-08-20T14:57:04Z")

</div>

What is the difference between a keyword and an optional argument? Arguments with default values on the left of the semi-colon are optional, but the same arguments on the right are keys. Do they behave differently? When …

---

## [Modeling system with piecewise constant control input](https://discourse.julialang.org/t/modeling-system-with-piecewise-constant-control-input/86057)

<div class="topic-metadata">

**Author:** [@stepanoslejsek](https://discourse.julialang.org/u/stepanoslejsek)\
**Replies:** 7\
**Last updated:** [August 20, 2022, 1:01pm UTC](https://discourse.julialang.org/t/modeling-system-with-piecewise-constant-control-input/86057 "2022-08-20T13:01:48Z")

</div>

Hello, I would like to simulate a model with use of DifferentialEquations.jl. I know I can provide an input to the system via anonymous function, but I am not able to approximate such function. Is there any possible wa…

---

## ["Successor languages": C++ - \> Google's Carbon-lang, MATLAB -\> Julia?](https://discourse.julialang.org/t/successor-languages-c-googles-carbon-lang-matlab-julia/85940)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 6\
**Last updated:** [August 20, 2022, 11:56am UTC](https://discourse.julialang.org/t/successor-languages-c-googles-carbon-lang-matlab-julia/85940 "2022-08-20T11:56:50Z")

</div>

My take on it C++ needs to be replaced, just with what, Julia, other existing language? Or this new one: See full list here: https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/goals.md#language-goals…

---

## [Building on OrdinaryDiffEq.jl vs DiffEqBase.jl](https://discourse.julialang.org/t/building-on-ordinarydiffeq-jl-vs-diffeqbase-jl/85620)

<div class="topic-metadata">

**Author:** [@nathanaelbosch](https://discourse.julialang.org/u/nathanaelbosch)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 11:36am UTC](https://discourse.julialang.org/t/building-on-ordinarydiffeq-jl-vs-diffeqbase-jl/85620 "2022-08-20T11:36:59Z")

</div>

Hi everyone, I am curious about the best approach for implementing custom ODE solvers in the DifferentialEquations.jl ecosystem. As far as I know, there are mostly two options: Contributing to OrdinaryDiffEq.jl: Wh…

---

## [Efficient calculation of block matrices with only the Linear Map given](https://discourse.julialang.org/t/efficient-calculation-of-block-matrices-with-only-the-linear-map-given/85814)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 4\
**Last updated:** [August 20, 2022, 11:31am UTC](https://discourse.julialang.org/t/efficient-calculation-of-block-matrices-with-only-the-linear-map-given/85814 "2022-08-20T11:31:31Z")

</div>

Hi! I have the situation that I construct block matrices where I want to avoid to explicitly have them. For example, with Fourier transforms we can either use slow matrices or fast FFTs: using FFTW using LinearAlgebra…

---

## [\[ANN\] Makie v.0.13](https://discourse.julialang.org/t/ann-makie-v-0-13/61522)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 53\
**Last updated:** [August 20, 2022, 10:54am UTC](https://discourse.julialang.org/t/ann-makie-v-0-13/61522 "2022-08-20T10:54:52Z")

</div>

Hi everybody, We’ve got another Makie update for you! This one includes one big change and a couple smaller ones. Although we’ve tagged breaking releases across the board, the effort on your side to update your code sho…

---

## [Using JuliaInterpreter breakpoints for custom code execution](https://discourse.julialang.org/t/using-juliainterpreter-breakpoints-for-custom-code-execution/85890)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 1\
**Last updated:** [August 20, 2022, 10:24am UTC](https://discourse.julialang.org/t/using-juliainterpreter-breakpoints-for-custom-code-execution/85890 "2022-08-20T10:24:45Z")

</div>

Let’s say that I’d like to run foo(), which calls bar, but replace the bar calls with calls to yummy(). This is the standard use case for packages like Cassette and IRTools (are there others now?), but even after all the…

---

## [Recursive inner functions a thousand times slower?](https://discourse.julialang.org/t/recursive-inner-functions-a-thousand-times-slower/85604)

<div class="topic-metadata">

**Author:** [@ikirill](https://discourse.julialang.org/u/ikirill)\
**Replies:** 8\
**Last updated:** [August 20, 2022, 7:57am UTC](https://discourse.julialang.org/t/recursive-inner-functions-a-thousand-times-slower/85604 "2022-08-20T07:57:58Z")

</div>

In the following code function f(y) loop(x::Int)::Int = x \> 0 ? 1 + loop(x-1) : 0 loop(y) end g(x::Int)::Int = x \> 0 ? 1 + g(x-1) : 0 I get the following timings: julia\> @btime f(100) 12.770 μs (2 allocatio…

---

## [Extra allocation with \`T::DataType\`?](https://discourse.julialang.org/t/extra-allocation-with-t-datatype/85930)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 17\
**Last updated:** [August 19, 2022, 7:04am UTC](https://discourse.julialang.org/t/extra-allocation-with-t-datatype/85930 "2022-08-19T07:04:54Z")

</div>

function A(T::DataType, m::Integer, n::Integer, s::Integer, θ::Number) θ = T(θ) half = θ / 2 cos\_half = cos(half) sin\_half = sin(half) kmin = max(0, m - n) kmax = min(s + m, s - n) sig = (-1)^…

---

## [How to upgrade Julia to a new release?](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 26\
**Last updated:** [August 20, 2022, 4:18am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381 "2022-08-20T04:18:37Z")

</div>

How to upgrade Julia 1.0.1 to a new release Julia 1.0.2? No need to de-install the old version and download and install the new one!!! There is some command that makes it all from the same program: update Julia to new…

---

## [Ominous type instability](https://discourse.julialang.org/t/ominous-type-instability/85169)

<div class="topic-metadata">

**Author:** [@arik](https://discourse.julialang.org/u/arik)\
**Replies:** 10\
**Last updated:** [August 20, 2022, 3:46am UTC](https://discourse.julialang.org/t/ominous-type-instability/85169 "2022-08-20T03:46:06Z")

</div>

Hi there! I am working on some Code that is supposed to be a demonstration of how you can create fast and efficient code with just a few easy, readable lines in Julia. Sadly one of the functions turns out to be not type…

---

## [Optimization crashes Julia 1.8](https://discourse.julialang.org/t/optimization-crashes-julia-1-8/86050)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 1\
**Last updated:** [August 20, 2022, 2:48am UTC](https://discourse.julialang.org/t/optimization-crashes-julia-1-8/86050 "2022-08-20T02:48:42Z")

</div>

The issue description is here: Does anybody see something like it? Any idea? Thanks!

---

## [\[ANN\] PlutoTeachingTools.jl: A collection of functions to use with Pluto for tutorials, presentations, lab assignments,](https://discourse.julialang.org/t/ann-plutoteachingtools-jl-a-collection-of-functions-to-use-with-pluto-for-tutorials-presentations-lab-assignments/86049)

<div class="topic-metadata">

**Author:** [@eford](https://discourse.julialang.org/u/eford)\
**Replies:** 0\
**Last updated:** [August 20, 2022, 2:09am UTC](https://discourse.julialang.org/t/ann-plutoteachingtools-jl-a-collection-of-functions-to-use-with-pluto-for-tutorials-presentations-lab-assignments/86049 "2022-08-20T02:09:28Z")

</div>

I’m happy to announce PlutoTeachingTools.jl, a collection of small functions to make it quick and easy to enhance tutorials, lab/homework assignments, and presentations. The best way to see what it could do for you is t…

---

## [What is the best way to loop a function over a list continuously in Julia?](https://discourse.julialang.org/t/what-is-the-best-way-to-loop-a-function-over-a-list-continuously-in-julia/86037)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 6\
**Last updated:** [August 20, 2022, 1:29am UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-loop-a-function-over-a-list-continuously-in-julia/86037 "2022-08-20T01:29:27Z")

</div>

Hi this is a beginner programming question but I am trying to run a function on a list of variables repeatedly until I request that it stop. i.e. list = \[A,B,C\] function(A) function(B) function(C) function(A) functio…

---

## [JumpProblem hopping\_constants callback?](https://discourse.julialang.org/t/jumpproblem-hopping-constants-callback/86045)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 2\
**Last updated:** [August 20, 2022, 12:33am UTC](https://discourse.julialang.org/t/jumpproblem-hopping-constants-callback/86045 "2022-08-20T00:33:48Z")

</div>

There’s a new feature in JumpProcesses.jl (formerly DiffEqJump.jl) where you can model spatial jump processes like in this example post. One of the inputs is a hopping\_constants matrix which controls how long a species w…

---

## [Read lines from file without new allocations](https://discourse.julialang.org/t/read-lines-from-file-without-new-allocations/86018)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 11:15pm UTC](https://discourse.julialang.org/t/read-lines-from-file-without-new-allocations/86018 "2022-08-19T23:15:56Z")

</div>

I have to read a 7TB file and noticed that each line, when read with eachline(..), comes with a new allocation. Since I know that a line can never exceed length X (but can be smaller) I thought I could pre-alloc a Vector…

---

## [Revise complains that there's an error watching manifest while updating packages](https://discourse.julialang.org/t/revise-complains-that-theres-an-error-watching-manifest-while-updating-packages/75706)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 9:01pm UTC](https://discourse.julialang.org/t/revise-complains-that-theres-an-error-watching-manifest-while-updating-packages/75706 "2022-08-19T21:01:50Z")

</div>

While trying to update packages, I encountered this error today: (..) pkg\> add https://github.com/JuliaLinearAlgebra/MKL.jl#vs/lp64 Updating git-repo \`https://github.com/JuliaLinearAlgebra/MKL.jl\` Updating regis…

---

## [ByRow subset vs filter performance](https://discourse.julialang.org/t/byrow-subset-vs-filter-performance/86022)

<div class="topic-metadata">

**Author:** [@hdavid16](https://discourse.julialang.org/u/hdavid16)\
**Replies:** 6\
**Last updated:** [August 19, 2022, 8:39pm UTC](https://discourse.julialang.org/t/byrow-subset-vs-filter-performance/86022 "2022-08-19T20:39:15Z")

</div>

I just compared subset (using a :col =\> ByRow(==(0)) operation) vs filter (using a :col =\> ==(0) operation) on a DataFrame. In both cases, I set view=true and I see significantly less allocations when using filter vs whe…

---

## [Julia 1.8.0: 10.0^-Inf = NaN](https://discourse.julialang.org/t/julia-1-8-0-10-0-inf-nan/86004)

<div class="topic-metadata">

**Author:** [@ethomag](https://discourse.julialang.org/u/ethomag)\
**Replies:** 6\
**Last updated:** [August 19, 2022, 8:36pm UTC](https://discourse.julialang.org/t/julia-1-8-0-10-0-inf-nan/86004 "2022-08-19T20:36:59Z")

</div>

Just switched to Julia 1.8 and was surprised by this: julia\> 10.0^-Inf NaN However: julia\> exp10(-Inf) 0.0 I am pretty sure that 10.0^-Inf returned 0.0 in 1.6 and 1.7

---

## [Julia 1.8.0 manual](https://discourse.julialang.org/t/julia-1-8-0-manual/85950)

<div class="topic-metadata">

**Author:** [@cesarmarinhorj](https://discourse.julialang.org/u/cesarmarinhorj)\
**Replies:** 4\
**Last updated:** [August 19, 2022, 8:26pm UTC](https://discourse.julialang.org/t/julia-1-8-0-manual/85950 "2022-08-19T20:26:31Z")

</div>

Where is Julia 1.8.0 manual? julia1.8.0.pdf link is broken thanks!

---

## [Playing/recording signals with PortAudio.jl](https://discourse.julialang.org/t/playing-recording-signals-with-portaudio-jl/85878)

<div class="topic-metadata">

**Author:** [@Thomas\_Lei](https://discourse.julialang.org/u/Thomas_Lei)\
**Replies:** 3\
**Last updated:** [August 19, 2022, 6:46pm UTC](https://discourse.julialang.org/t/playing-recording-signals-with-portaudio-jl/85878 "2022-08-19T18:46:59Z")

</div>

Hi all, I’m trying to use PortAudio.jl to stream and record audio signals. What I try to achieve is playing a signal through a loudspeaker and record this same signal through a mic. Basically, I want to record what I’m…

---

## [Julia 1.8, 1.9 (rapid release?)](https://discourse.julialang.org/t/julia-1-8-1-9-rapid-release/85949)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 16\
**Last updated:** [August 19, 2022, 6:46pm UTC](https://discourse.julialang.org/t/julia-1-8-1-9-rapid-release/85949 "2022-08-19T18:46:17Z")

</div>

First, Julia 1.8.0 is a great release! 1.8.1 expected, but given @ViralBShah’s quote: Given that 1.7 is not too far away (timed releases going forward) when will 1.9.0-DEV be ready? It was already in dev “6 months ag…

---

## [AWS Center for Quantum Computing is looking for an SDE to build simulation tools!](https://discourse.julialang.org/t/aws-center-for-quantum-computing-is-looking-for-an-sde-to-build-simulation-tools/86036)

<div class="topic-metadata">

**Author:** [@amilsted](https://discourse.julialang.org/u/amilsted)\
**Replies:** 0\
**Last updated:** [August 19, 2022, 6:36pm UTC](https://discourse.julialang.org/t/aws-center-for-quantum-computing-is-looking-for-an-sde-to-build-simulation-tools/86036 "2022-08-19T18:36:26Z")

</div>

Having fun with Julia? Curious about quantum computing? Come build simulation tools with us! Software Engineer, Center for Quantum Computing - Job ID: 2202805 | Amazon.jobs

---

## [Custom docs do not show up in VSCode browser](https://discourse.julialang.org/t/custom-docs-do-not-show-up-in-vscode-browser/79449)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 9\
**Last updated:** [August 19, 2022, 5:39pm UTC](https://discourse.julialang.org/t/custom-docs-do-not-show-up-in-vscode-browser/79449 "2022-08-19T17:39:33Z")

</div>

I noticed that documentation for custom functions does not show up in my VSCode documentation broswser. The following does not work if executed in the REPL “”" Here’s some inline maths: \\\\sqrt\[n\]{1 + x + x^2 + \\\\ldots}.…

---

## [How to start the execution of a loop at a given time of day](https://discourse.julialang.org/t/how-to-start-the-execution-of-a-loop-at-a-given-time-of-day/85561)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 5:38pm UTC](https://discourse.julialang.org/t/how-to-start-the-execution-of-a-loop-at-a-given-time-of-day/85561 "2022-08-19T17:38:55Z")

</div>

I am trying to get Julia to execute a loop everyday at a given time, e.g. 18:00:00. I would just use the sleep function but the amount of time required to complete the function varies by day so this would cause the star…

---

## [Juliaup and Julia 1.8.0](https://discourse.julialang.org/t/juliaup-and-julia-1-8-0/85973)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [August 19, 2022, 5:15pm UTC](https://discourse.julialang.org/t/juliaup-and-julia-1-8-0/85973 "2022-08-19T17:15:35Z")

</div>

Having been away from my computers for a while, I ran juliaup up a couple of days ago, and it upgraded my system to Julia v. 1.7.3. IJulia ran fine, using kernel 1.7.3. Today, I did juliaup up again, and it installed Ju…

---

## [Change line attributes in GraphMakie](https://discourse.julialang.org/t/change-line-attributes-in-graphmakie/85923)

<div class="topic-metadata">

**Author:** [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)\
**Replies:** 6\
**Last updated:** [August 19, 2022, 4:38pm UTC](https://discourse.julialang.org/t/change-line-attributes-in-graphmakie/85923 "2022-08-19T16:38:20Z")

</div>

Hi, Is there a way to change the transparency of the linesegments in a graphplot? At the moment I have a graphplot that looks like this: where the seems to be a white border around edges with a small width. I think…

---

## [How to seed the \`random\_layout\` in the GraphPlot package?](https://discourse.julialang.org/t/how-to-seed-the-random-layout-in-the-graphplot-package/86015)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 3:46pm UTC](https://discourse.julialang.org/t/how-to-seed-the-random-layout-in-the-graphplot-package/86015 "2022-08-19T15:46:49Z")

</div>

Can I seed the random\_layout when using the GraphPlot package to visualize a graph? For example: using GraphPlot using Graphs using Compose g = SimpleGraph() add\_vertices!(g,25) for i in 1:10 for j in 11:25 …

---

## [Suddenly REPL in vscode becomes weird](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 11\
**Last updated:** [August 19, 2022, 3:48pm UTC](https://discourse.julialang.org/t/suddenly-repl-in-vscode-becomes-weird/85459 "2022-08-19T15:48:15Z")

</div>

Usually i use shift + enter to excute my julia code line by line, but suddenly it dosen’t work. For example, if i excute e = 1+1 then i had got following: julia\> e = 1+1 2 Now, i get following: I don’t know why, and…

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

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