# Latest

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

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

**Page:** 280

---

## [(RL) Introducing the Julia community to PufferLib](https://discourse.julialang.org/t/rl-introducing-the-julia-community-to-pufferlib/122481)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 3:26am UTC](https://discourse.julialang.org/t/rl-introducing-the-julia-community-to-pufferlib/122481 "2024-11-11T03:26:29Z")

</div>

This is not Julia-specific, but I’d like to post this anyway since I think Julia could be really good for it. Julia is a fast and easy language, which could be quite suitable for a reinforcement learning environment. P…

---

## [Domains whitelist for package manager](https://discourse.julialang.org/t/domains-whitelist-for-package-manager/122478)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 1\
**Last updated:** [November 11, 2024, 2:49am UTC](https://discourse.julialang.org/t/domains-whitelist-for-package-manager/122478 "2024-11-11T02:49:09Z")

</div>

I have to run an app on the cloud with a firewall that has a domain whitelist. In other words: I have to know all the domains necessary for installing packages like Plots.jl or ModelingToolkit.jl. I’m not sure how the pa…

---

## [MPIPreferences no longer allows system?](https://discourse.julialang.org/t/mpipreferences-no-longer-allows-system/122475)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [November 10, 2024, 11:12pm UTC](https://discourse.julialang.org/t/mpipreferences-no-longer-allows-system/122475 "2024-11-10T23:12:54Z")

</div>

Sorry: Never mind, it is supposed to be just use\_system\_binary

---

## [Documenter - makedocs - LoadError - no pages found under src/](https://discourse.julialang.org/t/documenter-makedocs-loaderror-no-pages-found-under-src/122474)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 2\
**Last updated:** [November 10, 2024, 10:31pm UTC](https://discourse.julialang.org/t/documenter-makedocs-loaderror-no-pages-found-under-src/122474 "2024-11-10T22:31:30Z")

</div>

Apologies for being slow in picking up on this matter. I am, however, trying to run the function makedocs defined in Documenter.jl. I get the LoadError: Aborting HTML build: no pages under src/. Q1: What src/ folders …

---

## [Roadmap for small binaries](https://discourse.julialang.org/t/roadmap-for-small-binaries/99266)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 126\
**Last updated:** [November 10, 2024, 7:29pm UTC](https://discourse.julialang.org/t/roadmap-for-small-binaries/99266 "2024-11-10T19:29:48Z")

</div>

Hi All, I saw this question first popped up at JuliaCon 2021: Since then I have seen a lot of talk and discussion about it as well as some attempt (StaticCompiler.jl) to address the missing feature of prod…

---

## [Ipopt produces wrong results in Windows](https://discourse.julialang.org/t/ipopt-produces-wrong-results-in-windows/122414)

<div class="topic-metadata">

**Author:** [@jbytecode](https://discourse.julialang.org/u/jbytecode)\
**Replies:** 7\
**Last updated:** [November 10, 2024, 6:49pm UTC](https://discourse.julialang.org/t/ipopt-produces-wrong-results-in-windows/122414 "2024-11-10T18:49:37Z")

</div>

Suppose the function optimizes a model for a given set of integer vectors function bestworst(pref\_to\_best::Vector{Int}, pref\_to\_worst::Vector{Int}) n = length(pref\_to\_best) best\_index = argmin(pref\_to\_best) …

---

## [Question about MPICH (presumably from MPI\_jll)](https://discourse.julialang.org/t/question-about-mpich-presumably-from-mpi-jll/122458)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [November 10, 2024, 4:53pm UTC](https://discourse.julialang.org/t/question-about-mpich-presumably-from-mpi-jll/122458 "2024-11-10T16:53:07Z")

</div>

My running MPI program reports MPICH 4.2.3. ┌ Info: MPICH Version: 4.2.3 │ MPICH Release date: Wed Oct 2 09:35:21 AM CDT 2024 │ MPICH ABI: 16:3:4 │ MPICH Device: ch3:nemesis │ MPICH configure: --…

---

## [Efficiency of Multiple Dispatch](https://discourse.julialang.org/t/efficiency-of-multiple-dispatch/122466)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 3\
**Last updated:** [November 10, 2024, 3:40pm UTC](https://discourse.julialang.org/t/efficiency-of-multiple-dispatch/122466 "2024-11-10T15:40:18Z")

</div>

Hi, I have been curious about the working principle of Multiple Dispatch since I started to Julia. So, I would like to know that, is there some kind of conditional statements in lower level of Multiple Dispatch. For exa…

---

## [Maintainability: Best way to have two versions of the same function with minor differences](https://discourse.julialang.org/t/maintainability-best-way-to-have-two-versions-of-the-same-function-with-minor-differences/122453)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 5\
**Last updated:** [November 10, 2024, 3:36pm UTC](https://discourse.julialang.org/t/maintainability-best-way-to-have-two-versions-of-the-same-function-with-minor-differences/122453 "2024-11-10T15:36:44Z")

</div>

Say I have two usecases for a function. One logs the result of each iteration and is parallelized using Polyester.@batch, the other only needs to return the final result and uses Threads.@threads. Performance is top prio…

---

## [Creative Coding in Julia (packages for audio and graphics processing)](https://discourse.julialang.org/t/creative-coding-in-julia-packages-for-audio-and-graphics-processing/72005)

<div class="topic-metadata">

**Author:** [@woodwindblues](https://discourse.julialang.org/u/woodwindblues)\
**Replies:** 11\
**Last updated:** [November 10, 2024, 1:07pm UTC](https://discourse.julialang.org/t/creative-coding-in-julia-packages-for-audio-and-graphics-processing/72005 "2024-11-10T13:07:46Z")

</div>

Hello, I am coming from a musician backround and am lookng for a programming language to code interactive audio-visual installations. I have some experience in coding with Java (a year of computer engineering many years…

---

## [Table viewer, profile viewer, and terminal shell integration not working on vscode](https://discourse.julialang.org/t/table-viewer-profile-viewer-and-terminal-shell-integration-not-working-on-vscode/85124)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 2\
**Last updated:** [November 10, 2024, 11:08am UTC](https://discourse.julialang.org/t/table-viewer-profile-viewer-and-terminal-shell-integration-not-working-on-vscode/85124 "2024-11-10T11:08:12Z")

</div>

I’m following the Juliacon 2022 talk about new features in VSCode but several of them are not working for me. Trying to figure out what is configured incorrectly on my system. Running Windows 11, VSCode 1.69.2. Julia v…

---

## [Slicing array on julia 4000ms vs c++ 400ms](https://discourse.julialang.org/t/slicing-array-on-julia-4000ms-vs-c-400ms/122389)

<div class="topic-metadata">

**Author:** [@tradingtsm](https://discourse.julialang.org/u/tradingtsm)\
**Replies:** 24\
**Last updated:** [November 10, 2024, 2:17am UTC](https://discourse.julialang.org/t/slicing-array-on-julia-4000ms-vs-c-400ms/122389 "2024-11-10T02:17:04Z")

</div>

Hi everyone, I’ve trying to compare a function, on slicing an array on cpp vs julia, I get different results as I wrote on the title and I don’t understand why, would appreaciate your help. I’m using custom data for th…

---

## [HDF5 error: MPIExt cannot find libmpi\_usempif08.40.dylib](https://discourse.julialang.org/t/hdf5-error-mpiext-cannot-find-libmpi-usempif08-40-dylib/115900)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 8\
**Last updated:** [November 9, 2024, 8:27pm UTC](https://discourse.julialang.org/t/hdf5-error-mpiext-cannot-find-libmpi-usempif08-40-dylib/115900 "2024-11-09T20:27:26Z")

</div>

Missing /.julia/artifacts/69e85a392db842d919cf5759941f8f3e8a0e569e/lib/libhdf5\_fortran.so" libmpi\_usempif08.so.40: cannot open shared object file: No such file or directory ? Any idea what that is about?

---

## [Is there a way to statically ensure an if-block covers all enum cases?](https://discourse.julialang.org/t/is-there-a-way-to-statically-ensure-an-if-block-covers-all-enum-cases/122426)

<div class="topic-metadata">

**Author:** [@NHDaly](https://discourse.julialang.org/u/NHDaly)\
**Replies:** 8\
**Last updated:** [November 9, 2024, 8:00pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-statically-ensure-an-if-block-covers-all-enum-cases/122426 "2024-11-09T20:00:56Z")

</div>

Consider: @enum Level LOW MEDIUM HIGH function do\_stuff(level::Level, args...) if level == HIGH println("High level") elseif level == MEDIUM println("Medium level") elseif level == LOW …

---

## [Package Developement Targeted at Older Julia Versions](https://discourse.julialang.org/t/package-developement-targeted-at-older-julia-versions/122308)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 6\
**Last updated:** [November 9, 2024, 6:39pm UTC](https://discourse.julialang.org/t/package-developement-targeted-at-older-julia-versions/122308 "2024-11-09T18:39:37Z")

</div>

I’m developing a package (announcement in the coming months!) targeted to run on my university’s supercomputer, but due to funding & priority maintenance limitations, the “operating environment” is out of date; more spec…

---

## [Unstable quadratic spline from DataInterpolations.jl](https://discourse.julialang.org/t/unstable-quadratic-spline-from-datainterpolations-jl/122435)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 5\
**Last updated:** [November 9, 2024, 4:43pm UTC](https://discourse.julialang.org/t/unstable-quadratic-spline-from-datainterpolations-jl/122435 "2024-11-09T16:43:45Z")

</div>

I have a problem when using the quadratic spline from DataInterpolations.jl. I have some data (blue curve) I want to interpolate on a finer grid. I tried to use a quadratic (orange) and a cubic (green) spline. DataInte…

---

## [How to Determine GridPosition of an Axis in a Complex Figure Layout?](https://discourse.julialang.org/t/how-to-determine-gridposition-of-an-axis-in-a-complex-figure-layout/122448)

<div class="topic-metadata">

**Author:** [@LorenzoFioroni](https://discourse.julialang.org/u/LorenzoFioroni)\
**Replies:** 3\
**Last updated:** [November 9, 2024, 2:42pm UTC](https://discourse.julialang.org/t/how-to-determine-gridposition-of-an-axis-in-a-complex-figure-layout/122448 "2024-11-09T14:42:42Z")

</div>

Hello everyone, I am writing a function using Makie.jl for some custom plotting. The function takes a Figure and an Axis object as arguments. Although I can safely assume that the axis is somewhere within the figure, i…

---

## [Issue with PDEBase or PDEsystems!](https://discourse.julialang.org/t/issue-with-pdebase-or-pdesystems/122174)

<div class="topic-metadata">

**Author:** [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Replies:** 13\
**Last updated:** [November 9, 2024, 2:16pm UTC](https://discourse.julialang.org/t/issue-with-pdebase-or-pdesystems/122174 "2024-11-09T14:16:40Z")

</div>

Hello everyone ! I’m trying to solve a 3 coupled and non linear PDE equations as a first work later Iwill see how to use Catalyst to add sources and sinks processes. for now its just the transport of coupled PDE of gase…

---

## [An issue with dispatching imported types](https://discourse.julialang.org/t/an-issue-with-dispatching-imported-types/122004)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 41\
**Last updated:** [November 9, 2024, 1:25pm UTC](https://discourse.julialang.org/t/an-issue-with-dispatching-imported-types/122004 "2024-11-09T13:25:54Z")

</div>

I have a problem with which I am struggling without success. I have two functions, ps1 and ps2, which are essentially the same: function ps1(A::T) where {T \<: PeriodicSymbolicMatrix} return T end function ps2(A::T) w…

---

## [Machine learning in Julia decouples the Tensor and the autograd library, what was the practical benefit?](https://discourse.julialang.org/t/machine-learning-in-julia-decouples-the-tensor-and-the-autograd-library-what-was-the-practical-benefit/122447)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [November 9, 2024, 11:56am UTC](https://discourse.julialang.org/t/machine-learning-in-julia-decouples-the-tensor-and-the-autograd-library-what-was-the-practical-benefit/122447 "2024-11-09T11:56:57Z")

</div>

A typical machine learning framework is like this: First, you have a Tensor library that expresses computing and does matrix multiplication, among other things, and then you add automatic differentiation to the system an…

---

## [Draw from density in DynamicHMC ecosystem](https://discourse.julialang.org/t/draw-from-density-in-dynamichmc-ecosystem/122398)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 6\
**Last updated:** [November 9, 2024, 10:13am UTC](https://discourse.julialang.org/t/draw-from-density-in-dynamichmc-ecosystem/122398 "2024-11-09T10:13:25Z")

</div>

DynamicHMC.jl (from @Tamas\_Papp) and related packages take a log-density callable and sample parameter values with it. One feature I’ve seen in some other programs (Stan, Turing) is the ability to simulate data given a p…

---

## [This month in Julia world - 2024-10](https://discourse.julialang.org/t/this-month-in-julia-world-2024-10/122397)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 2\
**Last updated:** [November 9, 2024, 6:43am UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2024-10/122397 "2024-11-09T06:43:23Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. “Internals” Fora …

---

## [PlotlyJS error](https://discourse.julialang.org/t/plotlyjs-error/122104)

<div class="topic-metadata">

**Author:** [@elm9742](https://discourse.julialang.org/u/elm9742)\
**Replies:** 4\
**Last updated:** [November 9, 2024, 3:20am UTC](https://discourse.julialang.org/t/plotlyjs-error/122104 "2024-11-09T03:20:09Z")

</div>

I’m trying to do analysis using a package called scLENS. I followed the guide code as shown on the scLENS GitHub, and when I run Pkg.instantiate(), I get the following error related to the PlotlyJS package. ✗ PlotlyJ…

---

## [Array construction of composite types failed to provide a consistent bound for its corresponding element type](https://discourse.julialang.org/t/array-construction-of-composite-types-failed-to-provide-a-consistent-bound-for-its-corresponding-element-type/122356)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 7\
**Last updated:** [November 9, 2024, 1:37am UTC](https://discourse.julialang.org/t/array-construction-of-composite-types-failed-to-provide-a-consistent-bound-for-its-corresponding-element-type/122356 "2024-11-09T01:37:18Z")

</div>

MWV: julia\> struct myT{T1, T2\<:Tuple{Number, Any}} a::T1 b::T2 end julia\> m1 = myT(1.0, (1, :a)) myT{Float64, Tuple{Int64, Symbol}}(1.0, (1, :a)) julia\> m2 = myT(1.1, (1.1, :b)) myT{Float64, Tuple…

---

## [Inconsistent CondaPkg environments](https://discourse.julialang.org/t/inconsistent-condapkg-environments/118767)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 23\
**Last updated:** [November 8, 2024, 10:29pm UTC](https://discourse.julialang.org/t/inconsistent-condapkg-environments/118767 "2024-11-08T22:29:58Z")

</div>

I’m having some issues with CondaPkg.jl in order to get a conda environment configured and running for one of my packages. I basically have a list of dependencies, which if I add to an environment.yml file and and create…

---

## [Teaching "Introduction to compilers" with Julia, personal experience](https://discourse.julialang.org/t/teaching-introduction-to-compilers-with-julia-personal-experience/122432)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 0\
**Last updated:** [November 8, 2024, 9:57pm UTC](https://discourse.julialang.org/t/teaching-introduction-to-compilers-with-julia-personal-experience/122432 "2024-11-08T21:57:06Z")

</div>

This is continuation of thread Teaching mini-course “Introduction to compilers” with Julia, good or bad idea?. I already used Julia with @code\_lowered, @code\_warntype, @code\_llvm and @code\_native to show students various…

---

## [What is causing this undefined variable Error message](https://discourse.julialang.org/t/what-is-causing-this-undefined-variable-error-message/122429)

<div class="topic-metadata">

**Author:** [@Anika\_Tarannum](https://discourse.julialang.org/u/Anika_Tarannum)\
**Replies:** 2\
**Last updated:** [November 8, 2024, 7:40pm UTC](https://discourse.julialang.org/t/what-is-causing-this-undefined-variable-error-message/122429 "2024-11-08T19:40:01Z")

</div>

Define parameters operating\_cost = \[4000, 4200, 4800, 5800, 7200, 9000\] salvage\_value = \[10500, 7300, 5100, 3600, 2500, 1600\] replacement\_cost = 15000 maintenance\_cost = 3500 years = 5 Initialize DP table C\[t\]\[a\] wi…

---

## [Use of Interpolations with ModelingToolkit](https://discourse.julialang.org/t/use-of-interpolations-with-modelingtoolkit/121382)

<div class="topic-metadata">

**Author:** [@Ricardo\_Borges](https://discourse.julialang.org/u/Ricardo_Borges)\
**Replies:** 14\
**Last updated:** [November 8, 2024, 7:04pm UTC](https://discourse.julialang.org/t/use-of-interpolations-with-modelingtoolkit/121382 "2024-11-08T19:04:10Z")

</div>

Hi, I’m using ModelingToolkit to model a battery cell using the Equivalent Circuit Model (ECM) approach. For that, I will be using 2-D lookup tables for the values of Vocv, resistnaces and time constants/capacitances, w…

---

## [Dimension mismatch in Flux.jl RNN example](https://discourse.julialang.org/t/dimension-mismatch-in-flux-jl-rnn-example/122410)

<div class="topic-metadata">

**Author:** [@arinbasu1](https://discourse.julialang.org/u/arinbasu1)\
**Replies:** 2\
**Last updated:** [November 8, 2024, 6:40pm UTC](https://discourse.julialang.org/t/dimension-mismatch-in-flux-jl-rnn-example/122410 "2024-11-08T18:40:34Z")

</div>

I was trying to run an RNN model in Flux and came up with an error in the RNN model. This error also occurred in the RNN example from Flux’s documentation site: Here is the code: using Flux output\_size = 5 input\_size …

---

## [Iteration counter](https://discourse.julialang.org/t/iteration-counter/122394)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 3\
**Last updated:** [November 8, 2024, 5:56pm UTC](https://discourse.julialang.org/t/iteration-counter/122394 "2024-11-08T17:56:59Z")

</div>

Hi, I want to track the load steps in my code using gridap but i got operation cell field out of this code and I cant get the values. Is this way right to implement this? Also I added this print lines to check the proce…

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

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