# Latest

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

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

**Page:** 1328

---

## [JuliaCon 2021 T-shirts and Stickers on Sale Now!](https://discourse.julialang.org/t/juliacon-2021-t-shirts-and-stickers-on-sale-now/62060)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 52\
**Last updated:** [July 19, 2021, 2:16am UTC](https://discourse.julialang.org/t/juliacon-2021-t-shirts-and-stickers-on-sale-now/62060 "2021-07-19T02:16:40Z")

</div>

Hey all, this year’s Limited Edition JuliaCon 2021 T-shirts are now on sale! We kept the classic look: JuliaCon 2021 Shirts | Bonfire but also added a new design this year: JuliaCon 2021 REPL Shirt | Bonfire. Additionall…

---

## [Attempting to customise broadcasting for BioSequences](https://discourse.julialang.org/t/attempting-to-customise-broadcasting-for-biosequences/64892)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 0\
**Last updated:** [July 19, 2021, 1:16am UTC](https://discourse.julialang.org/t/attempting-to-customise-broadcasting-for-biosequences/64892 "2021-07-19T01:16:12Z")

</div>

Hello! I’m currently trying to customise and improve how Broadcasting is done with BioSequences.jl - types. Specifically LongSequence at this moment, for a v3 release. And I could do with some help and advice doing it pr…

---

## [Squeeze out the last 10% of performance for a sorting function?](https://discourse.julialang.org/t/squeeze-out-the-last-10-of-performance-for-a-sorting-function/64539)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 26\
**Last updated:** [July 18, 2021, 11:55pm UTC](https://discourse.julialang.org/t/squeeze-out-the-last-10-of-performance-for-a-sorting-function/64539 "2021-07-18T23:55:42Z")

</div>

I wrote a straightforward implementation of the insertion sort algorithm in Julia below. Then I wrote the exact translation in C to compare with Julia. I noticed a performance gap of about 10% in favor of C implementatio…

---

## [Modify function with macros](https://discourse.julialang.org/t/modify-function-with-macros/64885)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 2\
**Last updated:** [July 18, 2021, 10:57pm UTC](https://discourse.julialang.org/t/modify-function-with-macros/64885 "2021-07-18T22:57:10Z")

</div>

Hi I would like to do modify a function inner scope with a macro. My goal is to add blocks of specific code within a simulation loop. These blocks have to: instantiate variables interact with internal variables updat…

---

## [Ensuring that the package version matches (Revise-ed) code](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818)

<div class="topic-metadata">

**Author:** [@orome](https://discourse.julialang.org/u/orome)\
**Replies:** 3\
**Last updated:** [July 18, 2021, 10:13pm UTC](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818 "2021-07-18T22:13:22Z")

</div>

When I dev local path/to/my\_pkg and using Revise, changes to the source of my\_pkg are reflected as expected in my session (REPL or Jupyter) but when I run status I see the old version of my\_pkg listed there — i.e. the ol…

---

## [How does Profile work on non-yielding functions?](https://discourse.julialang.org/t/how-does-profile-work-on-non-yielding-functions/64883)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [July 18, 2021, 9:42pm UTC](https://discourse.julialang.org/t/how-does-profile-work-on-non-yielding-functions/64883 "2021-07-18T21:42:41Z")

</div>

The Profile module is a statistical profiler, so it checks frequently what the program is doing. I can imagine that works fine if the code has yield points in it (e.g. allocations or I/O or yield()), but how does control…

---

## [RPC API in Julia?](https://discourse.julialang.org/t/rpc-api-in-julia/52352)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 8:33pm UTC](https://discourse.julialang.org/t/rpc-api-in-julia/52352 "2021-07-18T20:33:40Z")

</div>

How can I write a simple RPC server in Julia? As far as I can see, I need the following parts: I/O transport (pipes / sockets / websockets / ZMQ / etc.) Serialization protocol (JSON / BSON / MsgPack / Protobuf), and R…

---

## [AbstractPlotting.jl moved to Makie.jl](https://discourse.julialang.org/t/abstractplotting-jl-moved-to-makie-jl/64837)

<div class="topic-metadata">

**Author:** [@rsavageatx](https://discourse.julialang.org/u/rsavageatx)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 8:14pm UTC](https://discourse.julialang.org/t/abstractplotting-jl-moved-to-makie-jl/64837 "2021-07-18T20:14:50Z")

</div>

My code was running fine last night on my Windows 10 system. Today I get the following message when I type “using GLMakie” in the REPL: Warning: Everything from AbstractPlotting.jl got moved to Makie.jl. │ Have a look …

---

## [\[ANN\] Behavior.jl - Behavior Driven Development](https://discourse.julialang.org/t/ann-behavior-jl-behavior-driven-development/64742)

<div class="topic-metadata">

**Author:** [@erikedin](https://discourse.julialang.org/u/erikedin)\
**Replies:** 2\
**Last updated:** [July 18, 2021, 7:34pm UTC](https://discourse.julialang.org/t/ann-behavior-jl-behavior-driven-development/64742 "2021-07-18T19:34:07Z")

</div>

Hello! This is an announcement of Behavior.jl, a tool for Behavior Driven Development (BDD) in Julia. It is similar to tools like Pythons Behave, or the canonical BDD tool Cucumber. This package was previously known a…

---

## [Why loading a Package is slow (Julia 1.6)](https://discourse.julialang.org/t/why-loading-a-package-is-slow-julia-1-6/64868)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 1\
**Last updated:** [July 18, 2021, 7:00pm UTC](https://discourse.julialang.org/t/why-loading-a-package-is-slow-julia-1-6/64868 "2021-07-18T19:00:53Z")

</div>

I know that there has been a lot of conversation in the past about this, but most of the questions end with a response like “in Julia 1.6 the loading time will be much better”. Since we are in Julia 1.6 I would like to …

---

## [What is a similar function of \`Grid\` in Mathematica for plotting?](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860)

<div class="topic-metadata">

**Author:** [@powerzf](https://discourse.julialang.org/u/powerzf)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 2:49pm UTC](https://discourse.julialang.org/t/what-is-a-similar-function-of-grid-in-mathematica-for-plotting/64860 "2021-07-18T14:49:14Z")

</div>

What is the Julia function corresponding to the Grid function in Mathematica

---

## [Run-time Dynamic type-casting (RTTI)](https://discourse.julialang.org/t/run-time-dynamic-type-casting-rtti/64852)

<div class="topic-metadata">

**Author:** [@JerryM](https://discourse.julialang.org/u/JerryM)\
**Replies:** 7\
**Last updated:** [July 18, 2021, 5:11pm UTC](https://discourse.julialang.org/t/run-time-dynamic-type-casting-rtti/64852 "2021-07-18T17:11:30Z")

</div>

Hello, in ANSI C/C++, C#, Rust etc. there is MISSING this type of dynamic casting: struct MyStruct { int item; }; MyStruct ms; char dynTypeName\[\] = "MyStruct"; void \*ptr; ptr = &ms; dynamic\_cast\<dynTypeName\>(ptr)-\>item…

---

## [Help understand the role of semicolon in turning a UnitRange to a Vector](https://discourse.julialang.org/t/help-understand-the-role-of-semicolon-in-turning-a-unitrange-to-a-vector/64856)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 6\
**Last updated:** [July 18, 2021, 1:41pm UTC](https://discourse.julialang.org/t/help-understand-the-role-of-semicolon-in-turning-a-unitrange-to-a-vector/64856 "2021-07-18T13:41:53Z")

</div>

I understand the difference between the UnitRange and Array/Vector types. I sort of get the syntax for stacking two ranges and converting them into a vector using ; and \[\] as in julia\> a = \[1:3;4:5\] 5-element Vector{Int…

---

## [VSCode language server won't start](https://discourse.julialang.org/t/vscode-language-server-wont-start/64325)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 5\
**Last updated:** [July 18, 2021, 12:47pm UTC](https://discourse.julialang.org/t/vscode-language-server-wont-start/64325 "2021-07-18T12:47:20Z")

</div>

Hi all :slight\_smile: The VSCode language server won’t start for me. I’m using Windows 10, julia-1.7.0-beta3, VSCode-1.58 and VSCode extention juliainsider-1.3.13. I get the following error ┌ Error: Some Julia code in …

---

## [Where is \`OrdinaryDiffEq.ode\_interpolation\`'s output type defined?](https://discourse.julialang.org/t/where-is-ordinarydiffeq-ode-interpolation-s-output-type-defined/64844)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [July 18, 2021, 9:56am UTC](https://discourse.julialang.org/t/where-is-ordinarydiffeq-ode-interpolation-s-output-type-defined/64844 "2021-07-18T09:56:14Z")

</div>

I’ve defined my own subtype of DenseArray called CartesianState. The source code is available here. The following functionality works… state = CartesianState(randn(6)) similar(state) SymbolicUtils.Code.create\_array(::Ty…

---

## [Use the non-missing elements of DataFrame A to update DataFrame B](https://discourse.julialang.org/t/use-the-non-missing-elements-of-dataframe-a-to-update-dataframe-b/64658)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 9\
**Last updated:** [July 18, 2021, 8:53am UTC](https://discourse.julialang.org/t/use-the-non-missing-elements-of-dataframe-a-to-update-dataframe-b/64658 "2021-07-18T08:53:57Z")

</div>

Hi, I am trying to find an elegant solution to update a DataFrame (B), using the non-missing elements in another DataFrame (A) with the same columns. For instance, with using Dates, DataFrames; # Dates date\_1 = Date("…

---

## [Confusing broadcast behavoir](https://discourse.julialang.org/t/confusing-broadcast-behavoir/64826)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 8:31am UTC](https://discourse.julialang.org/t/confusing-broadcast-behavoir/64826 "2021-07-18T08:31:49Z")

</div>

Hello! I was experimenting with broadcasting as a way to copy arrays and noticed this: # First method: Broadcasting after = a = \[1,2,3\] b = @. a b === a # true # Second method: Broadcasting at the beginning a = \[1,2,3…

---

## [Indexing 2D CuArray](https://discourse.julialang.org/t/indexing-2d-cuarray/64825)

<div class="topic-metadata">

**Author:** [@vavrines](https://discourse.julialang.org/u/vavrines)\
**Replies:** 3\
**Last updated:** [July 18, 2021, 8:27am UTC](https://discourse.julialang.org/t/indexing-2d-cuarray/64825 "2021-07-18T08:27:38Z")

</div>

I’m learning to use CUDA.jl based on the tutorial, and trying to write a kernel for 2D array. using CUDA function divide0!(y, a, b) for j = 1:size(y, 2) for i = 1:size(y, 1) @inbounds y\[i, j\] = …

---

## [How to center a text with Luxor](https://discourse.julialang.org/t/how-to-center-a-text-with-luxor/55125)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 8:22am UTC](https://discourse.julialang.org/t/how-to-center-a-text-with-luxor/55125 "2021-07-18T08:22:14Z")

</div>

I am trying to create simple images with a text made of a few digits on the center. The problem is that I need to manually offset the position, is there a way to make it “centered” in a visual sense, i.e. where the spa…

---

## [Calling julia code from matlab](https://discourse.julialang.org/t/calling-julia-code-from-matlab/58598)

<div class="topic-metadata">

**Author:** [@Noodle](https://discourse.julialang.org/u/Noodle)\
**Replies:** 3\
**Last updated:** [July 18, 2021, 6:42am UTC](https://discourse.julialang.org/t/calling-julia-code-from-matlab/58598 "2021-07-18T06:42:36Z")

</div>

Hello everyone I am trying to call Julia codes from MATLAB, as I need to send my Julia code to a MATLAB user. It seems for Julia \>1.0 the solution is GitHub - byuflowlab/Mex.jl: Embedding Julia in the MATLAB process. I…

---

## [Using Loop](https://discourse.julialang.org/t/using-loop/64736)

<div class="topic-metadata">

**Author:** [@sajad\_ghassemi](https://discourse.julialang.org/u/sajad_ghassemi)\
**Replies:** 16\
**Last updated:** [July 18, 2021, 6:31am UTC](https://discourse.julialang.org/t/using-loop/64736 "2021-07-18T06:31:07Z")

</div>

Hi dear friends, I wrote a code to model a full bridge rectifier in electrical engineering in MATLAB and it works and the plot of voltage is true. now I am going to write that in Julia. I don’t know why the for loop does…

---

## [StaticArrays compilation performance bug](https://discourse.julialang.org/t/staticarrays-compilation-performance-bug/64811)

<div class="topic-metadata">

**Author:** [@nabla](https://discourse.julialang.org/u/nabla)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 4:26am UTC](https://discourse.julialang.org/t/staticarrays-compilation-performance-bug/64811 "2021-07-18T04:26:01Z")

</div>

I also posted this as a StaticArrays issue: with Julia 1.7 and StaticArrays v0.12.5: julia\> N = 14; m = SMatrix{N,N}(rand(N,N)); julia\> x-\>x\*m # works fine #1 (generic function with 1 method) julia\> @time \[x-\>x\*g for …

---

## [How to make GLFW window non blocking](https://discourse.julialang.org/t/how-to-make-glfw-window-non-blocking/64804)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [July 18, 2021, 4:15am UTC](https://discourse.julialang.org/t/how-to-make-glfw-window-non-blocking/64804 "2021-07-18T04:15:57Z")

</div>

Hello I am creating some openGL GUI and I have probably simple to solve problem - I want to have the rendering loop non blocking i.e so for example I will be able to run the openGL app and make it possible to 1) respond…

---

## [Need help with loading plots in dash](https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841)

<div class="topic-metadata">

**Author:** [@Goku](https://discourse.julialang.org/u/Goku)\
**Replies:** 0\
**Last updated:** [July 18, 2021, 1:00am UTC](https://discourse.julialang.org/t/need-help-with-loading-plots-in-dash/64841 "2021-07-18T01:00:25Z")

</div>

I am trying to host this plot in dash, but I am getting the following error: Error loading layout Full Code: using CSV, DataFrames, Dates, Plots using Dash, DashHtmlComponents, DashCoreComponents plotly() df = CSV…

---

## [Sites for Julia Freelancers?](https://discourse.julialang.org/t/sites-for-julia-freelancers/53954)

<div class="topic-metadata">

**Author:** [@Joe\_Schnetzler](https://discourse.julialang.org/u/Joe_Schnetzler)\
**Replies:** 2\
**Last updated:** [July 18, 2021, 12:19am UTC](https://discourse.julialang.org/t/sites-for-julia-freelancers/53954 "2021-07-18T00:19:26Z")

</div>

Hello all! I am a co-founder of autolance.co whos entire machine learning Backend is built in Julia with our web framework being within Julia as well. I was wondering what freelance sites/platforms everyone uses to find …

---

## [DP5() algorithm failing to solve simple SIR problem?](https://discourse.julialang.org/t/dp5-algorithm-failing-to-solve-simple-sir-problem/64835)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 1\
**Last updated:** [July 17, 2021, 11:34pm UTC](https://discourse.julialang.org/t/dp5-algorithm-failing-to-solve-simple-sir-problem/64835 "2021-07-17T23:34:05Z")

</div>

While testing out different ODE solvers, I found that DP5() completely fails when given a simple SIR model (while other solvers handle it perfectly fine): function SIR!(du,u,pars,t) β, γ = pars S, I, R = u …

---

## [Cannot install CUDA.jl on Linux](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-linux/64625)

<div class="topic-metadata">

**Author:** [@ChunXi\_Zhang](https://discourse.julialang.org/u/ChunXi_Zhang)\
**Replies:** 3\
**Last updated:** [July 17, 2021, 9:58pm UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-linux/64625 "2021-07-17T21:58:27Z")

</div>

I’ve been using CUDA.jl on windows so far, today I switched to Manjaro, and installed the julia 1.6.1, and tried to install CUDA.jl. But there is an error for not founding the lib: julia\> using CUDA \[ Info: Precompilin…

---

## [Range constraint](https://discourse.julialang.org/t/range-constraint/64819)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 10\
**Last updated:** [July 17, 2021, 9:35pm UTC](https://discourse.julialang.org/t/range-constraint/64819 "2021-07-17T21:35:16Z")

</div>

I have a constraint that can be either a range or an equality depending upon whether a user passes a range (i.e. two arguments) or a single value as a constraint. I convert the range constraint to an equality using the s…

---

## [How to reduce large memory allocation by lu! with sparse matrices](https://discourse.julialang.org/t/how-to-reduce-large-memory-allocation-by-lu-with-sparse-matrices/64791)

<div class="topic-metadata">

**Author:** [@YukiyaSaito](https://discourse.julialang.org/u/YukiyaSaito)\
**Replies:** 8\
**Last updated:** [July 17, 2021, 9:12pm UTC](https://discourse.julialang.org/t/how-to-reduce-large-memory-allocation-by-lu-with-sparse-matrices/64791 "2021-07-17T21:12:54Z")

</div>

In my code, I have to solve a large sparse linear system (14000 x 14000) many times to integrate a stiff system of ODE. Since the memory allocation by the backslash operator \\ is quite large, I thought of manually perfo…

---

## [Tips for moving from Julia to Numpy/Python?](https://discourse.julialang.org/t/tips-for-moving-from-julia-to-numpy-python/64702)

<div class="topic-metadata">

**Author:** [@Orbots](https://discourse.julialang.org/u/Orbots)\
**Replies:** 33\
**Last updated:** [July 17, 2021, 3:56pm UTC](https://discourse.julialang.org/t/tips-for-moving-from-julia-to-numpy-python/64702 "2021-07-17T15:56:03Z")

</div>

I think I have to switch from using Julia to Python/Numpy. I know. I’m going the wrong way! Still, it’s become increasing apparent it’s the right thing to do. I know Julia much better than Python/Numpy, but Julia isn…

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

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