# Latest

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

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

**Page:** 915

---

## [Help with real-time performance needed](https://discourse.julialang.org/t/help-with-real-time-performance-needed/87635)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 20\
**Last updated:** [September 25, 2022, 7:14pm UTC](https://discourse.julialang.org/t/help-with-real-time-performance-needed/87635 "2022-09-25T19:14:50Z")

</div>

I have an application which reads sensor data packets from a UDP multicast socket over a dedicated ethernet link, processes them and updates a display using the excellent Makie. This was working fine on our original syst…

---

## [PlotlyJS: subplots and individual layouts](https://discourse.julialang.org/t/plotlyjs-subplots-and-individual-layouts/87740)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 3\
**Last updated:** [September 25, 2022, 6:51pm UTC](https://discourse.julialang.org/t/plotlyjs-subplots-and-individual-layouts/87740 "2022-09-25T18:51:26Z")

</div>

Hi, I am stuck with an apparently simple problem. I am using PlotlyJS v0.18.8, Julia 1.8.1. I have some time series. If I plot each one separately, I have no problem: all layout attributes are fully displayed. For examp…

---

## [Explain Performance of a Ylm Code](https://discourse.julialang.org/t/explain-performance-of-a-ylm-code/87764)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 6\
**Last updated:** [September 25, 2022, 5:55pm UTC](https://discourse.julialang.org/t/explain-performance-of-a-ylm-code/87764 "2022-09-25T17:55:42Z")

</div>

The code below evaluates the standard complex spherical harmonics for a batch of inputs given in terms of cos, sin and the associated legendre functions (which are already precomputed - in the “real” scenario they would …

---

## [How to sparsify an input graph using laplacian](https://discourse.julialang.org/t/how-to-sparsify-an-input-graph-using-laplacian/87785)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 0\
**Last updated:** [September 25, 2022, 5:51pm UTC](https://discourse.julialang.org/t/how-to-sparsify-an-input-graph-using-laplacian/87785 "2022-09-25T17:51:55Z")

</div>

I want to sparsify my graph using laplacian, can anyone help?

---

## [How to use VSCode and REPL to write and test a package?](https://discourse.julialang.org/t/how-to-use-vscode-and-repl-to-write-and-test-a-package/78818)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 62\
**Last updated:** [September 25, 2022, 5:09pm UTC](https://discourse.julialang.org/t/how-to-use-vscode-and-repl-to-write-and-test-a-package/78818 "2022-09-25T17:09:26Z")

</div>

I have gone through a multitude of tutorials now but still can’t seem to wrap my head around the basics of how to write and test a package as I go. I don’t understand the proper way to add my package and its dependencies…

---

## [System: caught exception of type](https://discourse.julialang.org/t/system-caught-exception-of-type/87538)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 9\
**Last updated:** [September 25, 2022, 4:13pm UTC](https://discourse.julialang.org/t/system-caught-exception-of-type/87538 "2022-09-25T16:13:16Z")

</div>

Hi: Today I tried to install julia on a server but I faced the following error. I haven’t tried to run any codes or install any packages. This error just shows up after I installed julia on the server. Is there a way to…

---

## [Workaround for subarray/selectdim on gpu or how does Flux.Conv do it?](https://discourse.julialang.org/t/workaround-for-subarray-selectdim-on-gpu-or-how-does-flux-conv-do-it/87758)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 4\
**Last updated:** [September 25, 2022, 3:12am UTC](https://discourse.julialang.org/t/workaround-for-subarray-selectdim-on-gpu-or-how-does-flux-conv-do-it/87758 "2022-09-25T03:12:30Z")

</div>

I’m trying to do something similar to what Flux.Conv does. I’ve tried to use the Conv layer but it seems to be opinionated about how the array is structured and what it outputs and so doesn’t quite match with what I want…

---

## [Major performance boost when precaching random inputs to \`\`\`exp\`\`\`?](https://discourse.julialang.org/t/major-performance-boost-when-precaching-random-inputs-to-exp/85740)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 8\
**Last updated:** [September 25, 2022, 1:28pm UTC](https://discourse.julialang.org/t/major-performance-boost-when-precaching-random-inputs-to-exp/85740 "2022-09-25T13:28:41Z")

</div>

I’m writing a Monte Carlo simulation which requires exponentials of uniformly distributed random numbers. Calling exp takes a sizeable portion of my my inner loop runtime, and so I thought to cache pre-calculated value. …

---

## [Change font style of figure title in Makie](https://discourse.julialang.org/t/change-font-style-of-figure-title-in-makie/87779)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 1:20pm UTC](https://discourse.julialang.org/t/change-font-style-of-figure-title-in-makie/87779 "2022-09-25T13:20:05Z")

</div>

Hello people, After calling the CairoMakie package, I use the theming function set\_theme!(Theme(font = "Times New Roman")) to make sure all the text elements in the figure use the user-defined font - ‘Times New Roman’ i…

---

## [Environment variables on Julia 1.9](https://discourse.julialang.org/t/environment-variables-on-julia-1-9/87778)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 4\
**Last updated:** [September 25, 2022, 1:06pm UTC](https://discourse.julialang.org/t/environment-variables-on-julia-1-9/87778 "2022-09-25T13:06:55Z")

</div>

Julia 1.9.0-DEV has a new feature: --heap-size-hint=\<size\>. But how can I trigger it in Jupyter on Windows system? Like using mulitthreads, I could set the environment variable JULIA\_NUMS\_THREADS to 10. Is there a same w…

---

## [Making my own custom numeric type](https://discourse.julialang.org/t/making-my-own-custom-numeric-type/87752)

<div class="topic-metadata">

**Author:** [@ivoytov](https://discourse.julialang.org/u/ivoytov)\
**Replies:** 6\
**Last updated:** [September 25, 2022, 12:24pm UTC](https://discourse.julialang.org/t/making-my-own-custom-numeric-type/87752 "2022-09-25T12:24:38Z")

</div>

I would like to make my custom Type behave like a numeric type. Ideally I would specify a custom convert() function that would do some smart computations to summarize the type’s fields as a single value. What is the clea…

---

## [Edit vector interactively using PlutoUI](https://discourse.julialang.org/t/edit-vector-interactively-using-plutoui/87754)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 10:30am UTC](https://discourse.julialang.org/t/edit-vector-interactively-using-plutoui/87754 "2022-09-25T10:30:17Z")

</div>

Hi, This is a simplified example of what I need to do: x = rand(10) bar(x) @bind idx Slider(1:length(x)) @bind del Button("-") I want to trigger deleteat!(x, idx) only when button is pressed and then to refresh the pl…

---

## [Why fdistccdf function is ccdf?](https://discourse.julialang.org/t/why-fdistccdf-function-is-ccdf/87771)

<div class="topic-metadata">

**Author:** [@xuanquansheng](https://discourse.julialang.org/u/xuanquansheng)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 10:30am UTC](https://discourse.julialang.org/t/why-fdistccdf-function-is-ccdf/87771 "2022-09-25T10:30:10Z")

</div>

I see a code as follows: p = fdistccdf(dof\_, dof\_tstat\_, F) # source code of pkg FixedEffectModels it can be seen this function is in pkg StatsFuns So I click it in the VS code, it jumps to so why a function na…

---

## [Where can I download Julia 1.9-DEV?](https://discourse.julialang.org/t/where-can-i-download-julia-1-9-dev/87772)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 9:35am UTC](https://discourse.julialang.org/t/where-can-i-download-julia-1-9-dev/87772 "2022-09-25T09:35:23Z")

</div>

I have seen many guys are testing performance with using Julia 1.9-DEV, but I can not find the download link. Can anyone tell me where to download Julia 1.9?

---

## [Franklin \`serve()\` issue on WSL](https://discourse.julialang.org/t/franklin-serve-issue-on-wsl/87767)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 7:53am UTC](https://discourse.julialang.org/t/franklin-serve-issue-on-wsl/87767 "2022-09-25T07:53:05Z")

</div>

Hello, I am using Ubuntu on Windows Subsystem for Linux 1 (WSL1). I’m also using the Windows Terminal if that matters. I’ve followed the initial steps to create a sandbox website here. Everything is fine until I do serv…

---

## [Clarification on dependencies and examples in documentation](https://discourse.julialang.org/t/clarification-on-dependencies-and-examples-in-documentation/87732)

<div class="topic-metadata">

**Author:** [@adamhsparks](https://discourse.julialang.org/u/adamhsparks)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 2:04am UTC](https://discourse.julialang.org/t/clarification-on-dependencies-and-examples-in-documentation/87732 "2022-09-25T02:04:34Z")

</div>

I’m trying to understand how examples in the documentation work. I’m very familiar with R and there we can include other libraries that are not specifically needed for package functionality in the “Suggests” field of th…

---

## [Unhandled Task Error](https://discourse.julialang.org/t/unhandled-task-error/87749)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 2\
**Last updated:** [September 24, 2022, 11:13pm UTC](https://discourse.julialang.org/t/unhandled-task-error/87749 "2022-09-24T23:13:34Z")

</div>

Hi, I am trying to use pmap to speed up my code. When I try to run a sample code with a for loop of just 10 cycles, I faced an unhandled task error. What does it mean? Personally I think the 10 cycles have finished …

---

## [(Directed acyclic) graphs with non-integer data type](https://discourse.julialang.org/t/directed-acyclic-graphs-with-non-integer-data-type/87744)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 3\
**Last updated:** [September 24, 2022, 9:58pm UTC](https://discourse.julialang.org/t/directed-acyclic-graphs-with-non-integer-data-type/87744 "2022-09-24T21:58:09Z")

</div>

Is there a Julia package that I can use for defining a directed acyclic graph with non-integer vertices? I looked around at Graphs.jl, but it seems that I’m restricted to integer indices there. The main indices I do want…

---

## [Blog post on population simulation](https://discourse.julialang.org/t/blog-post-on-population-simulation/87761)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 1\
**Last updated:** [September 24, 2022, 8:53pm UTC](https://discourse.julialang.org/t/blog-post-on-population-simulation/87761 "2022-09-24T20:53:18Z")

</div>

I describe how much fun I had building a forward-time population simulator in Julia here.

---

## [Parameter tunability?](https://discourse.julialang.org/t/parameter-tunability/87756)

<div class="topic-metadata">

**Author:** [@lamorton](https://discourse.julialang.org/u/lamorton)\
**Replies:** 1\
**Last updated:** [September 24, 2022, 7:20pm UTC](https://discourse.julialang.org/t/parameter-tunability/87756 "2022-09-24T19:20:37Z")

</div>

I noticed in the docs on ModelingToolkit master branch that there’s a mention of having a metadata tag that controls whether a parameter is considered adjustable by an optimizer. Is this supported already, or still in t…

---

## [What functions are lowered to native instructions?](https://discourse.julialang.org/t/what-functions-are-lowered-to-native-instructions/87741)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 8\
**Last updated:** [September 24, 2022, 5:54pm UTC](https://discourse.julialang.org/t/what-functions-are-lowered-to-native-instructions/87741 "2022-09-24T17:54:18Z")

</div>

Many times, when seeing others’ code or Base, I run into comments like “This function is used instead of X because it has native instructions for many architectures”. Is there any way to know which functions behave like…

---

## [Help with appending row in read in DataFrame (weird behavior)](https://discourse.julialang.org/t/help-with-appending-row-in-read-in-dataframe-weird-behavior/87734)

<div class="topic-metadata">

**Author:** [@mb96](https://discourse.julialang.org/u/mb96)\
**Replies:** 6\
**Last updated:** [September 24, 2022, 5:29pm UTC](https://discourse.julialang.org/t/help-with-appending-row-in-read-in-dataframe-weird-behavior/87734 "2022-09-24T17:29:22Z")

</div>

If I directly define a dataframe as GMM\_data = DataFrame(ror = \[\], rev\_C = \[\], rev\_NG = \[\], uu\_1\_C = \[\], uu\_2\_C = \[\], uu\_3\_C = \[\], uu\_4\_C = \[\], uu\_1\_NG = \[\], uu\_2\_NG = \[\], uu\_3\_NG = \[\], uu\_4\_NG = \[\], ramp\_C = \[\]…

---

## [Duplicated keyword arguments and splats](https://discourse.julialang.org/t/duplicated-keyword-arguments-and-splats/87745)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 0\
**Last updated:** [September 24, 2022, 3:12pm UTC](https://discourse.julialang.org/t/duplicated-keyword-arguments-and-splats/87745 "2022-09-24T15:12:41Z")

</div>

Is this expected? Keyword arguments get de-duplicated with splatting, but not when written explicitely. julia\> function foo(; a) 1 end foo (generic function with 1 method) julia\> foo(; (a=1,)...) 1 j…

---

## [Javis get\_position doesn't work](https://discourse.julialang.org/t/javis-get-position-doesnt-work/87723)

<div class="topic-metadata">

**Author:** [@Feed\_Back](https://discourse.julialang.org/u/Feed_Back)\
**Replies:** 7\
**Last updated:** [September 24, 2022, 2:42pm UTC](https://discourse.julialang.org/t/javis-get-position-doesnt-work/87723 "2022-09-24T14:42:35Z")

</div>

if i type: triangle = Object( JPoly(ngon(vertices\_square\[1\], 10, 3, -π / 2, vertices = true); action = :fill, color = "black"))) and use this object inside some functions, ill get this error:( using pos(triangle) ) E…

---

## [Get variables number in Symbolics](https://discourse.julialang.org/t/get-variables-number-in-symbolics/87739)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [September 24, 2022, 1:57pm UTC](https://discourse.julialang.org/t/get-variables-number-in-symbolics/87739 "2022-09-24T13:57:30Z")

</div>

Symbolics/ModelingToolkit How do I know the number of independent variables and their names in an equation or expression? @variables x u(x) get\_variables(u+x+cos(x)) # \[x, y(x)\] but I want only x get\_variables(0 ~ x^2 …

---

## [How to convert a molecule(s) to bitvector to matrix](https://discourse.julialang.org/t/how-to-convert-a-molecule-s-to-bitvector-to-matrix/87738)

<div class="topic-metadata">

**Author:** [@nick\_m](https://discourse.julialang.org/u/nick_m)\
**Replies:** 7\
**Last updated:** [September 24, 2022, 1:53pm UTC](https://discourse.julialang.org/t/how-to-convert-a-molecule-s-to-bitvector-to-matrix/87738 "2022-09-24T13:53:25Z")

</div>

I am new to Julia and trying to convert a list of molecules to a matrix. I am using rdkit, so far I’ve got mol = RDKitMinimalLib.get\_mol("CC(=O)Oc1ccccc1C(=O)O") fp\_details = Dict{String, Any}("nBits" =\> 512, "radius" =\>…

---

## [Vulkan.jl crashes with ERROR\_INCOMPATIBLE\_DRIVER](https://discourse.julialang.org/t/vulkan-jl-crashes-with-error-incompatible-driver/87742)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 0\
**Last updated:** [September 24, 2022, 12:42pm UTC](https://discourse.julialang.org/t/vulkan-jl-crashes-with-error-incompatible-driver/87742 "2022-09-24T12:42:41Z")

</div>

I’m on Arch Linux with Julia installed from official source through AUR (not through pacman), and I have RX 6700 XT with definitely working drivers (I played several hundred hours of Steam games through DXVK) When I tri…

---

## [Reducing allocations in a stencil function](https://discourse.julialang.org/t/reducing-allocations-in-a-stencil-function/87733)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 6\
**Last updated:** [September 24, 2022, 12:20pm UTC](https://discourse.julialang.org/t/reducing-allocations-in-a-stencil-function/87733 "2022-09-24T12:20:38Z")

</div>

I’m writing a function that takes a matrix X and returns a matrix Y of the same dimensions such that Y\[i, j\] is the sum of the values in the eight cells surrounding X\[i, j\]. This function is the “number of neighbors” fun…

---

## [ANN - Towards a (Bio)Julia powered Genome Graphs framework](https://discourse.julialang.org/t/ann-towards-a-bio-julia-powered-genome-graphs-framework/27695)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 25\
**Last updated:** [September 24, 2022, 7:01am UTC](https://discourse.julialang.org/t/ann-towards-a-bio-julia-powered-genome-graphs-framework/27695 "2022-09-24T07:01:26Z")

</div>

Hello everyone, the GSoC period for the year is nearly over, and for anyone who was unaware, BioJulia had a student this year: Arda Akdemir has been helping the project under my supervision, working on a de-Bruijn graph …

---

## [Multithreaded LAPACK function in a Threads.@threads loop](https://discourse.julialang.org/t/multithreaded-lapack-function-in-a-threads-threads-loop/45205)

<div class="topic-metadata">

**Author:** [@migarstka](https://discourse.julialang.org/u/migarstka)\
**Replies:** 2\
**Last updated:** [September 24, 2022, 6:42am UTC](https://discourse.julialang.org/t/multithreaded-lapack-function-in-a-threads-threads-loop/45205 "2022-09-24T06:42:31Z")

</div>

Hi everyone, Problem I am trying to understand how to optimally set the number of BLAS threads when I am using a multithreaded LAPACK function in a Threads.@threads loop. More specifically I want to compute the eigende…

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

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