# Latest

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

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

**Page:** 294

---

## [Understanding package directories and entry point files](https://discourse.julialang.org/t/understanding-package-directories-and-entry-point-files/121625)

<div class="topic-metadata">

**Author:** [@StohleF](https://discourse.julialang.org/u/StohleF)\
**Replies:** 6\
**Last updated:** [October 23, 2024, 1:06pm UTC](https://discourse.julialang.org/t/understanding-package-directories-and-entry-point-files/121625 "2024-10-23T13:06:18Z")

</div>

Dear Community, I am currently restructuring some existing code, which is set up to be a package. When moving around some files into a (for me) logic new structure, I got entangled with problems related to Package direc…

---

## [Julia on RISC-V / Mango Pi board](https://discourse.julialang.org/t/julia-on-risc-v-mango-pi-board/91584)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 3\
**Last updated:** [October 23, 2024, 1:04pm UTC](https://discourse.julialang.org/t/julia-on-risc-v-mango-pi-board/91584 "2024-10-23T13:04:12Z")

</div>

Hey all. I just found out about the Mango Pi Mango Pi official website | Tiny and Elegant SBC | mqpro which is a RISC-V dev board similar to the RasPi zero. I’d love to run Julia on one of these, but obviously it’s RISC…

---

## [Error returned from CUDA function in CUDA-aware MPI multi-GPU test](https://discourse.julialang.org/t/error-returned-from-cuda-function-in-cuda-aware-mpi-multi-gpu-test/121331)

<div class="topic-metadata">

**Author:** [@luciano-drozda](https://discourse.julialang.org/u/luciano-drozda)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 12:59pm UTC](https://discourse.julialang.org/t/error-returned-from-cuda-function-in-cuda-aware-mpi-multi-gpu-test/121331 "2024-10-23T12:59:45Z")

</div>

Hi! I’m coming from this issue here, which seems to not relate to CUDA.jl specifically. Do you think it comes from my openmpi, cuda drivers installations ? Otherwise, could it come from MPI.jl ?

---

## [Reshaped views might alias](https://discourse.julialang.org/t/reshaped-views-might-alias/121495)

<div class="topic-metadata">

**Author:** [@lxvm](https://discourse.julialang.org/u/lxvm)\
**Replies:** 5\
**Last updated:** [October 23, 2024, 12:54pm UTC](https://discourse.julialang.org/t/reshaped-views-might-alias/121495 "2024-10-23T12:54:41Z")

</div>

Hi, I have implemented a linear operator as a method of LinearAlgebra.mul!(x, A, b) to use with IterativeSolvers.jl, but when profiling my code I noticed a huge performance difference due to unaliasing arrays when testi…

---

## [Docstrings: Imperative or indicative mood?](https://discourse.julialang.org/t/docstrings-imperative-or-indicative-mood/121524)

<div class="topic-metadata">

**Author:** [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Replies:** 19\
**Last updated:** [October 23, 2024, 11:57am UTC](https://discourse.julialang.org/t/docstrings-imperative-or-indicative-mood/121524 "2024-10-23T11:57:22Z")

</div>

Whether this is the best place for this topic is a little muddy, #dev:internals is a “best guess” from me, mostly from it not fitting cleanly into General Usage. I’m currently putting together docstring linter, that goes…

---

## [Formating Dates.CompoundPeriod](https://discourse.julialang.org/t/formating-dates-compoundperiod/59167)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 6\
**Last updated:** [October 23, 2024, 11:54am UTC](https://discourse.julialang.org/t/formating-dates-compoundperiod/59167 "2024-10-23T11:54:54Z")

</div>

I have variable of type Dates.CompoundPeriod I need to change it to String in format HH:MM:SS (value will never exceed 1 hour) julia\> x = Dates.CompoundPeriod(Dates.Hour(12), Dates.Minute(13)) 12 hours, 13 minutes jul…

---

## [What is the difference between \`Dates.Period\` and \`Dates.TimePeriod\`?](https://discourse.julialang.org/t/what-is-the-difference-between-dates-period-and-dates-timeperiod/121631)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 11:38am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-dates-period-and-dates-timeperiod/121631 "2024-10-23T11:38:58Z")

</div>

I’m looking at this documentation page and I can’t figure out what the difference between these two types is Dates · The Julia Language It certainly seems like there are two distinct types: Dates.Period Dates.TimePe…

---

## [Julia crashes on installation of the RCall module](https://discourse.julialang.org/t/julia-crashes-on-installation-of-the-rcall-module/121560)

<div class="topic-metadata">

**Author:** [@Feng\_Chen](https://discourse.julialang.org/u/Feng_Chen)\
**Replies:** 11\
**Last updated:** [October 23, 2024, 8:08am UTC](https://discourse.julialang.org/t/julia-crashes-on-installation-of-the-rcall-module/121560 "2024-10-23T08:08:09Z")

</div>

I am using Julia 1.11.1 and whenever I try to install RCall, Julia would crash with the following error/log (this also happens with some recent version of Julia). Any suggestions on how to fix it are greatly appreciated.…

---

## [\[Tutorial\] Julia coding workflow with VSCode](https://discourse.julialang.org/t/tutorial-julia-coding-workflow-with-vscode/73538)

<div class="topic-metadata">

**Author:** [@aurelio-amerio](https://discourse.julialang.org/u/aurelio-amerio)\
**Replies:** 3\
**Last updated:** [October 23, 2024, 7:25am UTC](https://discourse.julialang.org/t/tutorial-julia-coding-workflow-with-vscode/73538 "2024-10-23T07:25:00Z")

</div>

Hello everyone, I have written a small tutorial on how to (better) code with Julia and VSCode. The aim is to give people who are not familiar with VSCode and the Julia extension an overview of some features that will he…

---

## [Speed up loop for logpdf](https://discourse.julialang.org/t/speed-up-loop-for-logpdf/121620)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 13\
**Last updated:** [October 23, 2024, 7:00am UTC](https://discourse.julialang.org/t/speed-up-loop-for-logpdf/121620 "2024-10-23T07:00:20Z")

</div>

I have the following code which tries to evaluate the logpdf of multiple categorical variables. It is ok, but apparently it is one of the bottlenecks in my code. Really, all the code is doing is for each datapoint xs\[i\],…

---

## [Changing the size of VectorContinuousCallback](https://discourse.julialang.org/t/changing-the-size-of-vectorcontinuouscallback/119534)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 6\
**Last updated:** [October 23, 2024, 5:40am UTC](https://discourse.julialang.org/t/changing-the-size-of-vectorcontinuouscallback/119534 "2024-10-23T05:40:56Z")

</div>

I’m modelling cell population dynamics. Cells die and divide so the size of system is always changing. I love DifferentialEquations.jl because it is the only library I know of that has an API for this. Most of my state v…

---

## [An idea to use algebra in to variable definition](https://discourse.julialang.org/t/an-idea-to-use-algebra-in-to-variable-definition/121616)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [October 23, 2024, 12:55am UTC](https://discourse.julialang.org/t/an-idea-to-use-algebra-in-to-variable-definition/121616 "2024-10-23T00:55:34Z")

</div>

If I know that c^2=a^2+b^2 and I know the values of a and c but want to find b then I have to manually rearrange the equation and do b = sqrt(c^2 - a^2) For complicated cases, it may be hard to decipher what was the in…

---

## [Types and arguments](https://discourse.julialang.org/t/types-and-arguments/121612)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 10:59pm UTC](https://discourse.julialang.org/t/types-and-arguments/121612 "2024-10-22T22:59:40Z")

</div>

I have a doubt. Sorry if is very obvious. First: is the type specification used as a cast? For example, if f receives a real number as argument, is a=2 f(a::Real) doing a type conversion? And a second doubt is: can’t …

---

## [Events seemingly ignored in system model](https://discourse.julialang.org/t/events-seemingly-ignored-in-system-model/121605)

<div class="topic-metadata">

**Author:** [@jmaedler](https://discourse.julialang.org/u/jmaedler)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 10:47pm UTC](https://discourse.julialang.org/t/events-seemingly-ignored-in-system-model/121605 "2024-10-22T22:47:34Z")

</div>

Hi guys, I am running into an issue simulating a system model. Fundamentally it is two valves in sequence between two pressure sources. This is a test for the valve models which should allow these scenarios for a virtua…

---

## [Timeseries model training using Lux.jl](https://discourse.julialang.org/t/timeseries-model-training-using-lux-jl/121618)

<div class="topic-metadata">

**Author:** [@Rosejoycrocker](https://discourse.julialang.org/u/Rosejoycrocker)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 10:36pm UTC](https://discourse.julialang.org/t/timeseries-model-training-using-lux-jl/121618 "2024-10-22T22:36:06Z")

</div>

Hi, I’m using the Lux.jl simple LSTM classifier example ( Training a Simple LSTM | Lux.jl Docs ) to try and train a simple LSTM to predict timeseries data. I’m having issues however, as the LSTM model example is design…

---

## [For TidierData.jl, wouldn't it make sense to introduce \`@sort\` etc along side \`@arrange\` given some verbs in dplyr were chosen due to "limitations" of R which aren't issues in Julia](https://discourse.julialang.org/t/for-tidierdata-jl-wouldnt-it-make-sense-to-introduce-sort-etc-along-side-arrange-given-some-verbs-in-dplyr-were-chosen-due-to-limitations-of-r-which-arent-issues-in-julia/121615)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 10:17pm UTC](https://discourse.julialang.org/t/for-tidierdata-jl-wouldnt-it-make-sense-to-introduce-sort-etc-along-side-arrange-given-some-verbs-in-dplyr-were-chosen-due-to-limitations-of-r-which-arent-issues-in-julia/121615 "2024-10-22T22:17:59Z")

</div>

I was looking into the TidierData.jl api and I see familiar macro-verbs like @arrange which is basically @sort for all intents and purposes. So the question is why did dplyr choose arrange as the key word for sorting? I…

---

## [Get the list of members for LDAP group](https://discourse.julialang.org/t/get-the-list-of-members-for-ldap-group/109798)

<div class="topic-metadata">

**Author:** [@aww-r](https://discourse.julialang.org/u/aww-r)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 7:36pm UTC](https://discourse.julialang.org/t/get-the-list-of-members-for-ldap-group/109798 "2024-10-22T19:36:08Z")

</div>

I have a question in regards to LDAP, or specifically LDAP.Client package. I’d like to list all the members of specific LDAP group but I cannot make it working with the package. If I enter into bash below code I’m gettin…

---

## [Updated instructions for Makie + Pluto](https://discourse.julialang.org/t/updated-instructions-for-makie-pluto/62531)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [October 22, 2024, 7:24pm UTC](https://discourse.julialang.org/t/updated-instructions-for-makie-pluto/62531 "2024-10-22T19:24:23Z")

</div>

What are the most up to date instructions to visualize WGLMakie scenes inside a Pluto notebook?

---

## [Why VonMisesFisher doesn't work for k = 0?](https://discourse.julialang.org/t/why-vonmisesfisher-doesnt-work-for-k-0/121595)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 7:02pm UTC](https://discourse.julialang.org/t/why-vonmisesfisher-doesnt-work-for-k-0/121595 "2024-10-22T19:02:47Z")

</div>

Hello everyone, I was planning to use VonMisesFisher distribution for some modelling purpose like random walk. But when I tried to sample vectors for k=0 which should be giving values following uniform distribution, fun…

---

## [\[ANN\] XAMAuxData.jl - read and write auxiliary fields in the SAM, BAM, GFA and PAF formats](https://discourse.julialang.org/t/ann-xamauxdata-jl-read-and-write-auxiliary-fields-in-the-sam-bam-gfa-and-paf-formats/121583)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 2\
**Last updated:** [October 22, 2024, 5:09pm UTC](https://discourse.julialang.org/t/ann-xamauxdata-jl-read-and-write-auxiliary-fields-in-the-sam-bam-gfa-and-paf-formats/121583 "2024-10-22T17:09:10Z")

</div>

I’m happy to announce the latest BioJulia package XAMAuxData.jl. This package contains functionality for reading and writing auxiliary data fields in the SAM, BAM, GFA and PAF formats. This package is low-level, with a…

---

## [User-defined binary functions used infix](https://discourse.julialang.org/t/user-defined-binary-functions-used-infix/121601)

<div class="topic-metadata">

**Author:** [@pao](https://discourse.julialang.org/u/pao)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 4:58pm UTC](https://discourse.julialang.org/t/user-defined-binary-functions-used-infix/121601 "2024-10-22T16:58:34Z")

</div>

Hi guys, is there any method for using a binary user-defined function infix between actual argument values? I see a lot of discussion about infix operators, representable with a single character, but nothing about re…

---

## [How to get current Julia process memory usage?](https://discourse.julialang.org/t/how-to-get-current-julia-process-memory-usage/41734)

<div class="topic-metadata">

**Author:** [@yiyuezhuo](https://discourse.julialang.org/u/yiyuezhuo)\
**Replies:** 10\
**Last updated:** [October 22, 2024, 4:25pm UTC](https://discourse.julialang.org/t/how-to-get-current-julia-process-memory-usage/41734 "2024-10-22T16:25:08Z")

</div>

I was debugging a ccall memory leak problem and found the memory usage value in top useful: Is there a direct method to access this value from Julia? I used Sys.free\_memory as a proxy but it suffers from noise introd…

---

## [What is the best way to re-use a temporary vector](https://discourse.julialang.org/t/what-is-the-best-way-to-re-use-a-temporary-vector/121519)

<div class="topic-metadata">

**Author:** [@HMegh](https://discourse.julialang.org/u/HMegh)\
**Replies:** 16\
**Last updated:** [October 22, 2024, 4:24pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-re-use-a-temporary-vector/121519 "2024-10-22T16:24:11Z")

</div>

Hi, I have the following situation: I have a function f(x::Float64) which creates a temporary array A::Vector{Float64}, then finally it returns a Float64. I typically call this function millions of times, so I am wonder…

---

## [Citation of Julia Packages](https://discourse.julialang.org/t/citation-of-julia-packages/121600)

<div class="topic-metadata">

**Author:** [@runjaj](https://discourse.julialang.org/u/runjaj)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 4:11pm UTC](https://discourse.julialang.org/t/citation-of-julia-packages/121600 "2024-10-22T16:11:54Z")

</div>

I want to start adding the bibliographic references of the packages I use in my teaching. Some packages include in their websites the references the authors want us to cite. However, it’s time consuming to look for this …

---

## [Defining folder structures templates](https://discourse.julialang.org/t/defining-folder-structures-templates/121597)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 3:15pm UTC](https://discourse.julialang.org/t/defining-folder-structures-templates/121597 "2024-10-22T15:15:08Z")

</div>

Hello, I am looking toward automating some project initialization with julia. There are different kind of projects and each project has a slightly different folder structure. I know I can just use a previously existing…

---

## [Luxor and Unicode](https://discourse.julialang.org/t/luxor-and-unicode/121587)

<div class="topic-metadata">

**Author:** [@JM\_Beckers](https://discourse.julialang.org/u/JM_Beckers)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 3:09pm UTC](https://discourse.julialang.org/t/luxor-and-unicode/121587 "2024-10-22T15:09:47Z")

</div>

Is there a way to represent the unicode ⇐ (\\u21D0) etc in a Luxor plot? I guess I need to specifiy an adequate typeface, but is is annoying that the repl and jupyter show what I want for the Array A, but not Luxor, not e…

---

## [JuliaFormatter, JuliaHub docs, and the public keyword](https://discourse.julialang.org/t/juliaformatter-juliahub-docs-and-the-public-keyword/121531)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 5\
**Last updated:** [October 22, 2024, 3:09pm UTC](https://discourse.julialang.org/t/juliaformatter-juliahub-docs-and-the-public-keyword/121531 "2024-10-22T15:09:24Z")

</div>

I have found that tagging some of my functions as public causes two problems. First, JuliaFormatter fails. Second, the documentation I built with Documenter doesn’t migrate to docs.juliahub.com.

---

## [Download and read MNIST images](https://discourse.julialang.org/t/download-and-read-mnist-images/40549)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 3:01pm UTC](https://discourse.julialang.org/t/download-and-read-mnist-images/40549 "2024-10-22T15:01:08Z")

</div>

I am trying to access MNIST images from MNIST handwritten digit database, Yann LeCun, Corinna Cortes and Chris Burges. This works, but it looks a bit cumbersome. Is there a better way? Perhaps chaining everything witho…

---

## [CUDA nested structs not isbits \[solved\]](https://discourse.julialang.org/t/cuda-nested-structs-not-isbits-solved/121592)

<div class="topic-metadata">

**Author:** [@moukle](https://discourse.julialang.org/u/moukle)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 2:07pm UTC](https://discourse.julialang.org/t/cuda-nested-structs-not-isbits-solved/121592 "2024-10-22T14:07:11Z")

</div>

Hi, can I somehow use nested structs inside CUDA kernels? Here is an example inspired by the custom structs section from the get started. using CUDA using Adapt struct Interpolate{A} xs::A ys::A end struct N…

---

## [Performance hacking \`(&)(a::BitArray, b::BitArray)\`](https://discourse.julialang.org/t/performance-hacking-a-bitarray-b-bitarray/121548)

<div class="topic-metadata">

**Author:** [@AJahraus](https://discourse.julialang.org/u/AJahraus)\
**Replies:** 14\
**Last updated:** [October 22, 2024, 2:44pm UTC](https://discourse.julialang.org/t/performance-hacking-a-bitarray-b-bitarray/121548 "2024-10-22T14:44:09Z")

</div>

I’m trying my hand at performance hacking the bitwise AND function, and although what I have is fairly good, it seems to me like it’s allocating much memory even though it seems as though it’s always just 2 allocations r…

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

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