# Latest

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

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

**Page:** 320

---

## [Bounds Error for loop](https://discourse.julialang.org/t/bounds-error-for-loop/119503)

<div class="topic-metadata">

**Author:** [@Anika\_Tarannum](https://discourse.julialang.org/u/Anika_Tarannum)\
**Replies:** 2\
**Last updated:** [September 17, 2024, 3:13pm UTC](https://discourse.julialang.org/t/bounds-error-for-loop/119503 "2024-09-17T15:13:01Z")

</div>

I was trying to run the code but in this block I am getting bounds error for j in 1:5 @constraint(model, sum(costs\[i\]\[j\] \* x\[i\] for i in 1:14) \<= budgets\[j\]) end

---

## [Shape and Material - Refined type inference](https://discourse.julialang.org/t/shape-and-material-refined-type-inference/119064)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 9\
**Last updated:** [September 17, 2024, 2:45pm UTC](https://discourse.julialang.org/t/shape-and-material-refined-type-inference/119064 "2024-09-17T14:45:09Z")

</div>

That seems a pretty logical way, to improve type inference, type stability and code clearity in the compiler. Ross Tate presents a new class of type algorithm, that seems to solve some of the issues that the Julia compi…

---

## [How to trigger loading an extension module programatically?](https://discourse.julialang.org/t/how-to-trigger-loading-an-extension-module-programatically/119485)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 2:23pm UTC](https://discourse.julialang.org/t/how-to-trigger-loading-an-extension-module-programatically/119485 "2024-09-17T14:23:33Z")

</div>

In the package Geant4 I have a couple of extension modules (G4Vis and G4Hist). To trigger the loading of G4Vis I need to explicitly load a list of weakdeps packages (Makie, Colors, StaticArrays, Rotations, LinearAlgebra,…

---

## [Rendering LaTeX animations in Pluto with Javis](https://discourse.julialang.org/t/rendering-latex-animations-in-pluto-with-javis/119392)

<div class="topic-metadata">

**Author:** [@John\_Bolt](https://discourse.julialang.org/u/John_Bolt)\
**Replies:** 2\
**Last updated:** [September 17, 2024, 12:48pm UTC](https://discourse.julialang.org/t/rendering-latex-animations-in-pluto-with-javis/119392 "2024-09-17T12:48:33Z")

</div>

The Javis documentation states that it is necessary to npm install -g mathjax-node-cli in order to render LaTeX animations. I am wondering if anyone has any recommendation for how best to do this so that I can render LaT…

---

## [Array of tuples to DataFrame](https://discourse.julialang.org/t/array-of-tuples-to-dataframe/119494)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [September 17, 2024, 12:30pm UTC](https://discourse.julialang.org/t/array-of-tuples-to-dataframe/119494 "2024-09-17T12:30:11Z")

</div>

How can I convert an array of tuples (NOT named tuples) into a DataFrame? Code to create an array of named tuples: parking\_sections = \[\] for i in 1:10 push!(parking\_sections, (i, rand(1)\[1\])) end

---

## [How can I solve this 4-equation NonlinearSystem? It gives \`retcode: Unstable\`](https://discourse.julialang.org/t/how-can-i-solve-this-4-equation-nonlinearsystem-it-gives-retcode-unstable/119384)

<div class="topic-metadata">

**Author:** [@JohsEnevoldsen](https://discourse.julialang.org/u/JohsEnevoldsen)\
**Replies:** 8\
**Last updated:** [September 17, 2024, 12:29pm UTC](https://discourse.julialang.org/t/how-can-i-solve-this-4-equation-nonlinearsystem-it-gives-retcode-unstable/119384 "2024-09-17T12:29:52Z")

</div>

I am trying to solve a system of equations with NonlinearSolve.jl and ModelingToolkit.jl. Specifically a simplified version of Stewart’s model for Acid-Base disturbances in blood (Independence of Variables in Stewart's …

---

## [I found a potential bottleneck in the future AI](https://discourse.julialang.org/t/i-found-a-potential-bottleneck-in-the-future-ai/119493)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [September 17, 2024, 12:24pm UTC](https://discourse.julialang.org/t/i-found-a-potential-bottleneck-in-the-future-ai/119493 "2024-09-17T12:24:32Z")

</div>

Julia is a good language to complement AI for several reasons. For one, it is actually a language that AI seems to perform well at. However, there are several other reasons. First, there are many reasons why giving acce…

---

## [Julia 1.11 beta high latency](https://discourse.julialang.org/t/julia-1-11-beta-high-latency/112819)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 22\
**Last updated:** [April 12, 2024, 3:18pm UTC](https://discourse.julialang.org/t/julia-1-11-beta-high-latency/112819 "2024-04-12T15:18:29Z")

</div>

I had a quick test of the beta today, and found it to be 20% to 70% slower than Julia 1.10. Is this to be expected?

---

## [How to add a package from github to test it](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 11\
**Last updated:** [September 17, 2024, 9:57am UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461 "2024-09-17T09:57:02Z")

</div>

Hello I wanna use and clone the following github project GitHub - svilupp/Julia-LLM-Leaderboard: Provides a platform for the Julia community to compare AI models' abilities in generating syntactically correct Julia code,…

---

## [Any package to make quizzes for students?](https://discourse.julialang.org/t/any-package-to-make-quizzes-for-students/75075)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 9\
**Last updated:** [September 17, 2024, 7:44am UTC](https://discourse.julialang.org/t/any-package-to-make-quizzes-for-students/75075 "2024-09-17T07:44:00Z")

</div>

Which are the options to make simple multiple-choices quizzes in Julia? In particular the focus is not on evaluating the students but just in providing interaction, so it doesn’t matter if the answer can be easily retri…

---

## [Using JIT32 to solve ODE systems through diffeqpy](https://discourse.julialang.org/t/using-jit32-to-solve-ode-systems-through-diffeqpy/119475)

<div class="topic-metadata">

**Author:** [@Hector\_Yaker](https://discourse.julialang.org/u/Hector_Yaker)\
**Replies:** 1\
**Last updated:** [September 17, 2024, 5:56am UTC](https://discourse.julialang.org/t/using-jit32-to-solve-ode-systems-through-diffeqpy/119475 "2024-09-17T05:56:09Z")

</div>

Hey, I’ve been having a lot of trouble when converting a prob into JIT32 when using as a base a Python ODE System which integrates externally defined functions. I have noticed that it’s related to the fact that Julia con…

---

## [Strings and static compilation](https://discourse.julialang.org/t/strings-and-static-compilation/119474)

<div class="topic-metadata">

**Author:** [@Anthony.Anikos](https://discourse.julialang.org/u/Anthony.Anikos)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 9:15pm UTC](https://discourse.julialang.org/t/strings-and-static-compilation/119474 "2024-09-16T21:15:58Z")

</div>

Hi! Does anyone know how to translate a string variable of type julia\_string‘=’hello’ into a C-like string equivalent to c ‘Hello’ which StaticCompilator accepts and does not swear at incorrect characters… Thanks in…

---

## [How to create a Cstring from a String?](https://discourse.julialang.org/t/how-to-create-a-cstring-from-a-string/98566)

<div class="topic-metadata">

**Author:** [@heyx3](https://discourse.julialang.org/u/heyx3)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 6:57pm UTC](https://discourse.julialang.org/t/how-to-create-a-cstring-from-a-string/98566 "2023-05-09T18:57:59Z")

</div>

I’m trying to implement callback functions for a C library, to get and set the clipboard text. My functions look like this: clipboard\_get(::Ptr{Cvoid})::Cstring = string(clipboard()) const CLIPBOARD\_FN\_GET = @cfunction(…

---

## [Meshes.jl - CartesianGrid - FaceElement connectivity](https://discourse.julialang.org/t/meshes-jl-cartesiangrid-faceelement-connectivity/119473)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 8\
**Last updated:** [September 16, 2024, 9:14pm UTC](https://discourse.julialang.org/t/meshes-jl-cartesiangrid-faceelement-connectivity/119473 "2024-09-16T21:14:06Z")

</div>

How can I build the face-element connectivity of a 2D CartesianGrid in Meshes.jl ? Thx!

---

## [A serious data start-up structured around a Julia data manipulation framework for larger-than-RAM data](https://discourse.julialang.org/t/a-serious-data-start-up-structured-around-a-julia-data-manipulation-framework-for-larger-than-ram-data/119430)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 24\
**Last updated:** [September 16, 2024, 8:54pm UTC](https://discourse.julialang.org/t/a-serious-data-start-up-structured-around-a-julia-data-manipulation-framework-for-larger-than-ram-data/119430 "2024-09-16T20:54:18Z")

</div>

Still feeling a bit lost in life due to mid-life crisis. So another idea. Polars in the Python is very interesting as it has grown very fast and is able to handle large datasets BUT it’s written in Rust. That means peo…

---

## [Access acceptance rate parameter for AdvancedMH in Turing](https://discourse.julialang.org/t/access-acceptance-rate-parameter-for-advancedmh-in-turing/119149)

<div class="topic-metadata">

**Author:** [@Zoe\_R](https://discourse.julialang.org/u/Zoe_R)\
**Replies:** 5\
**Last updated:** [September 16, 2024, 8:47pm UTC](https://discourse.julialang.org/t/access-acceptance-rate-parameter-for-advancedmh-in-turing/119149 "2024-09-16T20:47:24Z")

</div>

I have a Bayesian model set up using Turing.jl and I am currently using AdvancedMH random walk proposals in the sampler. I would like to check on the acceptance rate (number of accepted proposals/number of proposals) so …

---

## [Time integration in OrdinaryDiffEq.jl in Julia is slower than calling it from Python](https://discourse.julialang.org/t/time-integration-in-ordinarydiffeq-jl-in-julia-is-slower-than-calling-it-from-python/119123)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 12\
**Last updated:** [September 16, 2024, 7:17pm UTC](https://discourse.julialang.org/t/time-integration-in-ordinarydiffeq-jl-in-julia-is-slower-than-calling-it-from-python/119123 "2024-09-16T19:17:43Z")

</div>

Hi, I work on the software that allows to call numerical solvers across different languages, which is implemented using libffi (Function Foreign Interface library). I was working recently on the performance study, to s…

---

## [New colorscheme for Plots.jl 2.0](https://discourse.julialang.org/t/new-colorscheme-for-plots-jl-2-0/117841)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 9\
**Last updated:** [September 16, 2024, 7:08pm UTC](https://discourse.julialang.org/t/new-colorscheme-for-plots-jl-2-0/117841 "2024-09-16T19:08:00Z")

</div>

For the upcoming Plots.jl 2.0 we are thinking about changing the default colorschemes. We identified 3 potential candidates for a new color palette and 4 potential gradients. You can see the combinations in action in thi…

---

## [\[Regression in rc3\] Can you decline threads you've been assigned, e.g. GC threads? Or should it be possible?](https://discourse.julialang.org/t/regression-in-rc3-can-you-decline-threads-youve-been-assigned-e-g-gc-threads-or-should-it-be-possible/119445)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 5:51pm UTC](https://discourse.julialang.org/t/regression-in-rc3-can-you-decline-threads-youve-been-assigned-e-g-gc-threads-or-should-it-be-possible/119445 "2024-09-16T17:51:01Z")

</div>

Can anyone first confirm my 2.2% slowdown, on 1.11 rc3: $ time julia +1.11 -O3 -t1 --gcthreads=4 pidigits.jl 10000 \>/dev/null real 0m1,205s user 0m2,165s sys 0m0,072s $ time julia -O3 -t1 --gcthreads=4 pidigits.jl 100…

---

## [JuliaPackages.com Updated: Over 10k Packages + Some New Features](https://discourse.julialang.org/t/juliapackages-com-updated-over-10k-packages-some-new-features/119436)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 6\
**Last updated:** [September 16, 2024, 4:57pm UTC](https://discourse.julialang.org/t/juliapackages-com-updated-over-10k-packages-some-new-features/119436 "2024-09-16T16:57:02Z")

</div>

Hey everyone, Wanted to give a quick update on JuliaPackages.com—we’ve crossed a big milestone with over 10,000 packages now in the database (10,968 to be exact!). Here’s what’s new: 2024 Packages: The package list is…

---

## [Wrap2pi: what should it do?](https://discourse.julialang.org/t/wrap2pi-what-should-it-do/119441)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 26\
**Last updated:** [September 16, 2024, 3:18pm UTC](https://discourse.julialang.org/t/wrap2pi-what-should-it-do/119441 "2024-09-16T15:18:58Z")

</div>

I wrote the following function: """ wrap2pi(angle) Limit the angle to the range -π .. π . """ function wrap2pi(angle) if angle == pi return pi end num2pi = floor(angle / 2π + 0.5) angle - 2π…

---

## [Problem while using package](https://discourse.julialang.org/t/problem-while-using-package/119462)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [September 16, 2024, 1:53pm UTC](https://discourse.julialang.org/t/problem-while-using-package/119462 "2024-09-16T13:53:23Z")

</div>

I m getting this message when trying to use package. It started randomly everything was fine before. Can someone tell whats going on and how it can be solve? 48 dependencies successfully precompiled in 493 seconds. 3…

---

## [CUDA and NVTX fail to precompile on cluster](https://discourse.julialang.org/t/cuda-and-nvtx-fail-to-precompile-on-cluster/119434)

<div class="topic-metadata">

**Author:** [@bulbul](https://discourse.julialang.org/u/bulbul)\
**Replies:** 7\
**Last updated:** [September 16, 2024, 1:43pm UTC](https://discourse.julialang.org/t/cuda-and-nvtx-fail-to-precompile-on-cluster/119434 "2024-09-16T13:43:27Z")

</div>

I am trying to use CUDA on my university cluster. If I try ‘’’ using CUDA ‘’’ I get the following error(s) (I have removed the Stacktraces): ‘’’ ERROR: LoadError: InitError: could not load library “/path-to-home/.jul…

---

## [Nested for loops vs Iterators.product performance](https://discourse.julialang.org/t/nested-for-loops-vs-iterators-product-performance/119417)

<div class="topic-metadata">

**Author:** [@Nichola](https://discourse.julialang.org/u/Nichola)\
**Replies:** 16\
**Last updated:** [September 16, 2024, 1:40pm UTC](https://discourse.julialang.org/t/nested-for-loops-vs-iterators-product-performance/119417 "2024-09-16T13:40:42Z")

</div>

Assume I have some vectors a,b,c… and I want to compute \\sum\_{ijk..} a\_i b\_j c\_k ... For 3 lists, I can do it using nested for loops : function sumprod1(a, b, c) s = 0 for i in 1:length(a) for j in 1:l…

---

## [\[ANN\] INMET.jl](https://discourse.julialang.org/t/ann-inmet-jl/65990)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 4\
**Last updated:** [September 16, 2024, 11:36am UTC](https://discourse.julialang.org/t/ann-inmet-jl/65990 "2024-09-16T11:36:57Z")

</div>

INMET.jl is an API to access data from all meteorological stations administered by the Instituto Nacional de Meteorologia in Brazil. It returns convenient DataFrame tables with physical units and missing values adequatel…

---

## [Embedding Julia : Error on init : Unable to find compatible target in cached code image. Target 0 (goldmont): Rejecting this target due to use of runtime-disabled features](https://discourse.julialang.org/t/embedding-julia-error-on-init-unable-to-find-compatible-target-in-cached-code-image-target-0-goldmont-rejecting-this-target-due-to-use-of-runtime-disabled-features/119457)

<div class="topic-metadata">

**Author:** [@Luc\_W](https://discourse.julialang.org/u/Luc_W)\
**Replies:** 4\
**Last updated:** [September 16, 2024, 10:37am UTC](https://discourse.julialang.org/t/embedding-julia-error-on-init-unable-to-find-compatible-target-in-cached-code-image-target-0-goldmont-rejecting-this-target-due-to-use-of-runtime-disabled-features/119457 "2024-09-16T10:37:23Z")

</div>

On Windows 11 with Visual Studio 2022 I can embed Julia (version is 1.10.2) and that works fine. When I test the code inside a sandbox or on a different new computer, the initialisation fails and the error I get is : Un…

---

## [How to obtain x instead of f(x) from maximum/minimum(f, itr)](https://discourse.julialang.org/t/how-to-obtain-x-instead-of-f-x-from-maximum-minimum-f-itr/119456)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 11\
**Last updated:** [September 16, 2024, 9:10am UTC](https://discourse.julialang.org/t/how-to-obtain-x-instead-of-f-x-from-maximum-minimum-f-itr/119456 "2024-09-16T09:10:10Z")

</div>

maximum(f, itr) returns f(x). Is there a function that instead returns x, something like sort(itr; by=f)\[end\]? I also need the init keyword, which findmax does not have (a similar issue is open for argmax: \`argmin\`/\`arg…

---

## [Uninstall previous Julia versions before using JuliaUp](https://discourse.julialang.org/t/uninstall-previous-julia-versions-before-using-juliaup/119438)

<div class="topic-metadata">

**Author:** [@Conor-McLeod](https://discourse.julialang.org/u/Conor-McLeod)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 7:02am UTC](https://discourse.julialang.org/t/uninstall-previous-julia-versions-before-using-juliaup/119438 "2024-09-16T07:02:29Z")

</div>

On the README for JuliaUp, it says: On all platforms it is recommended that you first uninstall any previous Julia versions and undo any modifications you might have made to put julia on the PATH before you install Ju…

---

## [Brusselator example from DiffEqGPU won't run or performed badly after simple fix](https://discourse.julialang.org/t/brusselator-example-from-diffeqgpu-wont-run-or-performed-badly-after-simple-fix/119410)

<div class="topic-metadata">

**Author:** [@gluon-free](https://discourse.julialang.org/u/gluon-free)\
**Replies:** 7\
**Last updated:** [September 16, 2024, 6:03am UTC](https://discourse.julialang.org/t/brusselator-example-from-diffeqgpu-wont-run-or-performed-badly-after-simple-fix/119410 "2024-09-16T06:03:37Z")

</div>

Doing my first steps in Julia, I often find that good examples from “official” sources don’t work because things change so quickly. This stiff PDE example returning error "Scalar indexing is disallowed " I googled t…

---

## [Using Symbolic simplification in DataFramesMeta macros](https://discourse.julialang.org/t/using-symbolic-simplification-in-dataframesmeta-macros/119446)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 8\
**Last updated:** [September 15, 2024, 11:28pm UTC](https://discourse.julialang.org/t/using-symbolic-simplification-in-dataframesmeta-macros/119446 "2024-09-15T23:28:30Z")

</div>

In DataFramesMeta it is possible to evaluate algebraic combinations and calculations involving the column names of a DataFrame. Is it possible (in DataFramesMeta or another package that can be placed inside as part of i…

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

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