# Latest

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

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

**Page:** 416

---

## [Scalar indexing GPU problem in Flux.jl model](https://discourse.julialang.org/t/scalar-indexing-gpu-problem-in-flux-jl-model/113974)

<div class="topic-metadata">

**Author:** [@mward19](https://discourse.julialang.org/u/mward19)\
**Replies:** 4\
**Last updated:** [May 8, 2024, 3:35pm UTC](https://discourse.julialang.org/t/scalar-indexing-gpu-problem-in-flux-jl-model/113974 "2024-05-08T15:35:22Z")

</div>

I am trying to use the GPU to accelerate training on a CNN. It’s my first time doing this. I keep getting an exception saying that “Scalar indexing is disallowed”, and I can’t understand why after reading what I could fi…

---

## [CVODE\_BDF outperforms Julia solvers for stiff system biology model?](https://discourse.julialang.org/t/cvode-bdf-outperforms-julia-solvers-for-stiff-system-biology-model/113936)

<div class="topic-metadata">

**Author:** [@sebapersson](https://discourse.julialang.org/u/sebapersson)\
**Replies:** 5\
**Last updated:** [May 8, 2024, 3:34pm UTC](https://discourse.julialang.org/t/cvode-bdf-outperforms-julia-solvers-for-stiff-system-biology-model/113936 "2024-05-08T15:34:19Z")

</div>

For medium sized stiff system biology ODE models I have recently done two benchmarks that suggest that CVODE\_BDF outperform the Julia solvers (in particular the multi-step bdf solvers). Below is an with 25 ODEs and 39 p…

---

## [Is it time to make a pure Julia FFT?](https://discourse.julialang.org/t/is-it-time-to-make-a-pure-julia-fft/99256)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 14\
**Last updated:** [May 8, 2024, 3:21pm UTC](https://discourse.julialang.org/t/is-it-time-to-make-a-pure-julia-fft/99256 "2024-05-08T15:21:13Z")

</div>

While FFTW is great, it is a GPL-licensed C library. R, Mathematica, Python’s Scipy, etc have their own FFT library. Should we finally have our own FFT library? A pure Julia FFT may provide several advantages such as bei…

---

## [Increase in allocations with Julia v1.11-beta](https://discourse.julialang.org/t/increase-in-allocations-with-julia-v1-11-beta/112838)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 46\
**Last updated:** [May 8, 2024, 2:54pm UTC](https://discourse.julialang.org/t/increase-in-allocations-with-julia-v1-11-beta/112838 "2024-05-08T14:54:58Z")

</div>

Is the number of allocations considered an issue? In my small tests here with my packages I’m not seeing performance regressions, but I systematically see the number of allocations increasing, even when compilation is no…

---

## [Writing Arrow files by column](https://discourse.julialang.org/t/writing-arrow-files-by-column/113955)

<div class="topic-metadata">

**Author:** [@djholiver](https://discourse.julialang.org/u/djholiver)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 2:54pm UTC](https://discourse.julialang.org/t/writing-arrow-files-by-column/113955 "2024-05-08T14:54:04Z")

</div>

Hi, It appears (and I have observed) that Arrow.jl requires the entire data to be held in memory before flushing to disk. This is prohibitively big for my use case (500GB+) and the use of Chained Vectors for batch writi…

---

## [Issue with misaligned x-axis in multiple histograms in CairoMakie](https://discourse.julialang.org/t/issue-with-misaligned-x-axis-in-multiple-histograms-in-cairomakie/114002)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 2:53pm UTC](https://discourse.julialang.org/t/issue-with-misaligned-x-axis-in-multiple-histograms-in-cairomakie/114002 "2024-05-08T14:53:04Z")

</div>

I’m trying to create histograms to represent time, with a specific dataframe and I’ve noticed that in some cases the X-axis isn’t properly adjusted with the interval separation and its respective axis. fig2 = Figure() a…

---

## [\[ANN\] SASLMR.jl - ANOVA Type I/II/III (sasLM wrapper)](https://discourse.julialang.org/t/ann-saslmr-jl-anova-type-i-ii-iii-saslm-wrapper/113922)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 2:03pm UTC](https://discourse.julialang.org/t/ann-saslmr-jl-anova-type-i-ii-iii-saslm-wrapper/113922 "2024-05-08T14:03:15Z")

</div>

Do you really need ANOVA type III yet? :slight\_smile: No, you can’t do it with pure Julia, but you can do it with SASLMR.jl and R Project. SASLMR.jl wrap some sasLM functions (aov1, aov2, aov3). Install: import Pkg; Pk…

---

## [Bounds Error when following tutorial of ReinforcementLearning.jl](https://discourse.julialang.org/t/bounds-error-when-following-tutorial-of-reinforcementlearning-jl/113999)

<div class="topic-metadata">

**Author:** [@ras112](https://discourse.julialang.org/u/ras112)\
**Replies:** 0\
**Last updated:** [May 8, 2024, 1:45pm UTC](https://discourse.julialang.org/t/bounds-error-when-following-tutorial-of-reinforcementlearning-jl/113999 "2024-05-08T13:45:17Z")

</div>

Hello community, I have been trying to implement a basic Q-learning algorithm following the tutorial of the ReinforcementLearning.jl. The main issue comes when, instead of giving the agent a RandomPolicy() as policy, I …

---

## [MATLAB.jl crashing in Julia 1.10 for MATLAB later than 2021a (according to issue)](https://discourse.julialang.org/t/matlab-jl-crashing-in-julia-1-10-for-matlab-later-than-2021a-according-to-issue/113998)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 0\
**Last updated:** [May 8, 2024, 1:02pm UTC](https://discourse.julialang.org/t/matlab-jl-crashing-in-julia-1-10-for-matlab-later-than-2021a-according-to-issue/113998 "2024-05-08T13:02:14Z")

</div>

Any thoughts on why the issue described below is happening or what can be done to fix it for the current versions? I’m getting the julia crash out when trying mat"version" MATLAB.jl fails to run in Julia 1.10 for versi…

---

## [Problem about solution of Gurobi in Julia](https://discourse.julialang.org/t/problem-about-solution-of-gurobi-in-julia/113993)

<div class="topic-metadata">

**Author:** [@Z\_M](https://discourse.julialang.org/u/Z_M)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 1:02pm UTC](https://discourse.julialang.org/t/problem-about-solution-of-gurobi-in-julia/113993 "2024-05-08T13:02:05Z")

</div>

Hi guys! I use Gurobi in Julia. However, the solution summary is as follows： If the solve status is OPTIMAL, why it has no solution?

---

## [GLMakie plotting in VSCode?](https://discourse.julialang.org/t/glmakie-plotting-in-vscode/100057)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 11\
**Last updated:** [May 8, 2024, 12:22pm UTC](https://discourse.julialang.org/t/glmakie-plotting-in-vscode/100057 "2024-05-08T12:22:33Z")

</div>

Hello, I just updated my project’s dependencies and suddenly GLMakie displays my interactive plots in VSCode’s plot pane. Both Makie and GLMakie are at the latest versions. Was there any change as to how VSCode or GLMak…

---

## [Is it possible to do basic Julia algebraic operations via juliacall?](https://discourse.julialang.org/t/is-it-possible-to-do-basic-julia-algebraic-operations-via-juliacall/113973)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 4\
**Last updated:** [May 8, 2024, 11:30am UTC](https://discourse.julialang.org/t/is-it-possible-to-do-basic-julia-algebraic-operations-via-juliacall/113973 "2024-05-08T11:30:26Z")

</div>

In Julia I’ve extend the basic operations (+,-,\*,/,…) to operate on GMT types. That allow for example to do: julia\> G = peaks() A GMTgrid object with 1 layers of type Float32 Gridline node registration used x\_min: -3.0 …

---

## [AbstractArray and Vector of AbstractArray as an input](https://discourse.julialang.org/t/abstractarray-and-vector-of-abstractarray-as-an-input/113972)

<div class="topic-metadata">

**Author:** [@Kadii](https://discourse.julialang.org/u/Kadii)\
**Replies:** 5\
**Last updated:** [May 8, 2024, 11:26am UTC](https://discourse.julialang.org/t/abstractarray-and-vector-of-abstractarray-as-an-input/113972 "2024-05-08T11:26:47Z")

</div>

Hi, I’m testing how the AbstractArray works as an input type declaration. When I defined two functions as follows, test1 worked just fine but test2. Is test2 type declaration invalid? Or, the way to call the function i…

---

## [How to run a HTTP.jl server in parallel, while doing computations in the foreground?](https://discourse.julialang.org/t/how-to-run-a-http-jl-server-in-parallel-while-doing-computations-in-the-foreground/101889)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 21\
**Last updated:** [May 8, 2024, 11:08am UTC](https://discourse.julialang.org/t/how-to-run-a-http-jl-server-in-parallel-while-doing-computations-in-the-foreground/101889 "2024-05-08T11:08:32Z")

</div>

Hello! I’ve been trying to create a simple Prometheus client for Julia. For this, I need to run a small web server inside my application, which does all sorts of computations. The problem is that the web server provided…

---

## [Abs in JuMP - how (why?) does it work](https://discourse.julialang.org/t/abs-in-jump-how-why-does-it-work/113909)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 7\
**Last updated:** [May 8, 2024, 9:25am UTC](https://discourse.julialang.org/t/abs-in-jump-how-why-does-it-work/113909 "2024-05-08T09:25:54Z")

</div>

I cannot get my head around what JuMP/Ipopt is doing if I have an absolute value in the constraints. This runs and I cannot find out why: using JuMP, Ipopt tf=10 model = Model(Ipopt.Optimizer) @variable(model, 0\<=v) …

---

## [\[ANN\] TypeCompletion.jl: exploit redundancy to complete UnionAll types](https://discourse.julialang.org/t/ann-typecompletion-jl-exploit-redundancy-to-complete-unionall-types/113987)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [May 8, 2024, 8:41am UTC](https://discourse.julialang.org/t/ann-typecompletion-jl-exploit-redundancy-to-complete-unionall-types/113987 "2024-05-08T08:41:07Z")

</div>

Repo: Neven Sajko / TypeCompletion.jl · GitLab General registry PR: New package: TypeCompletion v1.0.0 by JuliaRegistrator · Pull Request #106387 · JuliaRegistries/General · GitHub As documented (in the doc strings), o…

---

## [Why Julia fails to infere types in this example? What is the cost of this? What are requirements for type inference?](https://discourse.julialang.org/t/why-julia-fails-to-infere-types-in-this-example-what-is-the-cost-of-this-what-are-requirements-for-type-inference/113800)

<div class="topic-metadata">

**Author:** [@shamazmazum](https://discourse.julialang.org/u/shamazmazum)\
**Replies:** 12\
**Last updated:** [May 8, 2024, 8:10am UTC](https://discourse.julialang.org/t/why-julia-fails-to-infere-types-in-this-example-what-is-the-cost-of-this-what-are-requirements-for-type-inference/113800 "2024-05-08T08:10:44Z")

</div>

Hi! I’ve opened a bug report (#54344) on github today which was immediately closed and I was sent here. I’ve read that for a good performance @code\_warntype macro should produce an output without lines colored in red. Fo…

---

## [Extract linear algebraic equations](https://discourse.julialang.org/t/extract-linear-algebraic-equations/113985)

<div class="topic-metadata">

**Author:** [@Jan\_Svanda](https://discourse.julialang.org/u/Jan_Svanda)\
**Replies:** 0\
**Last updated:** [May 8, 2024, 8:01am UTC](https://discourse.julialang.org/t/extract-linear-algebraic-equations/113985 "2024-05-08T08:01:24Z")

</div>

I’m trying to use ModelingToolkit.jl to generate a system of linear algebraic equations. It’s quite simple: my system is a resistor network with a constant voltage source. I use ModelingToolkit to create a topology, and …

---

## [OpenMP in a shared library opened in Julia](https://discourse.julialang.org/t/openmp-in-a-shared-library-opened-in-julia/113880)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [May 8, 2024, 8:00am UTC](https://discourse.julialang.org/t/openmp-in-a-shared-library-opened-in-julia/113880 "2024-05-08T08:00:36Z")

</div>

A C++ (mostly C, really) library is dynamically loaded into Julia. That library uses OpenMP for parallelism. I do not seem to be getting any speedups, which makes me wonder: Is there some interaction of Julia and the C+…

---

## [Unable to use local CUDA runtime toolkit](https://discourse.julialang.org/t/unable-to-use-local-cuda-runtime-toolkit/113980)

<div class="topic-metadata">

**Author:** [@mtyogi](https://discourse.julialang.org/u/mtyogi)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 7:59am UTC](https://discourse.julialang.org/t/unable-to-use-local-cuda-runtime-toolkit/113980 "2024-05-08T07:59:44Z")

</div>

Hi All, I am trying use local CUDA runtime (12.4) toolkit, but I get the following error. └ @ CUDA\_Runtime\_Discovery C:\\Users\\mohitt\\.julia\\packages\\CUDA\_Runtime\_Discovery\\ZGnCZ\\src\\CUDA\_Runtime\_Discovery.jl:139 ┌ Deb…

---

## [Reproducibility: What's the risk of a dependency becoming unavailable?](https://discourse.julialang.org/t/reproducibility-whats-the-risk-of-a-dependency-becoming-unavailable/113940)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 9\
**Last updated:** [May 8, 2024, 6:40am UTC](https://discourse.julialang.org/t/reproducibility-whats-the-risk-of-a-dependency-becoming-unavailable/113940 "2024-05-08T06:40:26Z")

</div>

Hi all I’m talking a lot about reproducibility of computational results in my role as Data Editor of an Economics journal. I’m aware that julia is better positioned than most (all) languages on that front, and I’m tryin…

---

## [Reinforcementlearning.jjl](https://discourse.julialang.org/t/reinforcementlearning-jjl/113948)

<div class="topic-metadata">

**Author:** [@ttidrick](https://discourse.julialang.org/u/ttidrick)\
**Replies:** 3\
**Last updated:** [May 8, 2024, 6:31am UTC](https://discourse.julialang.org/t/reinforcementlearning-jjl/113948 "2024-05-08T06:31:52Z")

</div>

Hi All, I’m curious if anyone has opinions, comments, heads-ups, etc. concerning the package ‘ReinforcementLearning.jl’. Thanks, Ty Tidrick

---

## [\[ANN\] Parquet2.jl](https://discourse.julialang.org/t/ann-parquet2-jl/69274)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 20\
**Last updated:** [May 8, 2024, 5:30am UTC](https://discourse.julialang.org/t/ann-parquet2-jl/69274 "2024-05-08T05:30:37Z")

</div>

Parquet2.jl A little something I’ve been working on for the past few weeks. This package is not yet registered because I would like to try to get the community’s help with a bit more testing before registering it. Parq…

---

## [Specify the range of color range of marker\_z](https://discourse.julialang.org/t/specify-the-range-of-color-range-of-marker-z/113977)

<div class="topic-metadata">

**Author:** [@yuehao](https://discourse.julialang.org/u/yuehao)\
**Replies:** 0\
**Last updated:** [May 8, 2024, 2:13am UTC](https://discourse.julialang.org/t/specify-the-range-of-color-range-of-marker-z/113977 "2024-05-08T02:13:32Z")

</div>

I am using Plots.jl to plot 3-D in 2-D colormap using: scatter(x, y, marker\_z=z, color=:jet) The color is automatically map to range \[zmin, zmax\] of the vector z. However, to compare several cases (of z), I hope to fi…

---

## [Linpack Performance (as an learning exercise)](https://discourse.julialang.org/t/linpack-performance-as-an-learning-exercise/113966)

<div class="topic-metadata">

**Author:** [@coreyjadams](https://discourse.julialang.org/u/coreyjadams)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 12:32am UTC](https://discourse.julialang.org/t/linpack-performance-as-an-learning-exercise/113966 "2024-05-08T00:32:49Z")

</div>

Hi everyone, I am exploring Julia as a high performance language since everyone says Julia has great performance … if you do it right. I don’t think I’m doing it right, and I’d love to be educated. Eventually, I want …

---

## [LMI optimization problem](https://discourse.julialang.org/t/lmi-optimization-problem/112218)

<div class="topic-metadata">

**Author:** [@Sharara](https://discourse.julialang.org/u/Sharara)\
**Replies:** 9\
**Last updated:** [May 7, 2024, 9:55pm UTC](https://discourse.julialang.org/t/lmi-optimization-problem/112218 "2024-05-07T21:55:26Z")

</div>

Hi there I am regenerating an optimization algorithm from a paper and I am using exactly the example provided by the ref. this is the algorithm: It starts a long operation (continuously trying to obtain results - n…

---

## [\[English name suggestion\] "FeatureImportanceCalculator", "\[.\]Estimator", "\[.\]Indicator" or what?](https://discourse.julialang.org/t/english-name-suggestion-featureimportancecalculator-estimator-indicator-or-what/113949)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 9:31pm UTC](https://discourse.julialang.org/t/english-name-suggestion-featureimportancecalculator-estimator-indicator-or-what/113949 "2024-05-07T21:31:52Z")

</div>

For a model that returns the ranking of the variables based on some “variable importance metric” to be used as: m = ModelName(a\_ML\_model,options) fit!(m,x,y) var\_importance\_ranking = predict(m) mda\_losses = info(m)\["mda…

---

## [Method overwriting in StyledStrings.jl v1.0 (\`julia1-compat\`)](https://discourse.julialang.org/t/method-overwriting-in-styledstrings-jl-v1-0-julia1-compat/113935)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 5\
**Last updated:** [May 7, 2024, 8:08pm UTC](https://discourse.julialang.org/t/method-overwriting-in-styledstrings-jl-v1-0-julia1-compat/113935 "2024-05-07T20:08:13Z")

</div>

StyledStrings.jl, an external stdlib of julia v1.11 or later, was recently registered as a package.:tada: However, StyledStrings v1.0 currently does method overwriting. WARNING: Method definition \*(Union{AbstractChar, …

---

## [Doctests with approx](https://discourse.julialang.org/t/doctests-with-approx/113962)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 7:16pm UTC](https://discourse.julialang.org/t/doctests-with-approx/113962 "2024-05-07T19:16:51Z")

</div>

Is there any way to use approximate equality tests in the doctests? I have various numerical functions whose output changes by eps() or so with some regularity — apparently depending on all sorts of obscure choices made…

---

## [Int f() { return ...; }: What do I pass to ccall?](https://discourse.julialang.org/t/int-f-return-what-do-i-pass-to-ccall/113957)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 5:57pm UTC](https://discourse.julialang.org/t/int-f-return-what-do-i-pass-to-ccall/113957 "2024-05-07T17:57:14Z")

</div>

What do I pass when there are no arguments?

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

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