# Latest

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

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

**Page:** 287

---

## [Threadsafe DBInterface.jl-like connection pool interface for thread-unsafe connections](https://discourse.julialang.org/t/threadsafe-dbinterface-jl-like-connection-pool-interface-for-thread-unsafe-connections/121081)

<div class="topic-metadata">

**Author:** [@littlelib](https://discourse.julialang.org/u/littlelib)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 7:46am UTC](https://discourse.julialang.org/t/threadsafe-dbinterface-jl-like-connection-pool-interface-for-thread-unsafe-connections/121081 "2024-11-01T07:46:59Z")

</div>

In light of this post on database connection pools and concurrency, I’m trying making a threadsafe DBInterface.jl-like connection pool interface for thread-unsafe connections. It’s based on DBInterface.jl and Concurrent…

---

## [Performance gains from using ParametricOptInterface.jl vs variables](https://discourse.julialang.org/t/performance-gains-from-using-parametricoptinterface-jl-vs-variables/121762)

<div class="topic-metadata">

**Author:** [@nealhughes](https://discourse.julialang.org/u/nealhughes)\
**Replies:** 7\
**Last updated:** [November 1, 2024, 6:27am UTC](https://discourse.julialang.org/t/performance-gains-from-using-parametricoptinterface-jl-vs-variables/121762 "2024-11-01T06:27:48Z")

</div>

I have a model coded in JuMP which needs to be solved multiple times in a loop. It is an inter-temporal / rolling horizon problem where the model is solved for one time period at a time, then various “parameters” need to…

---

## [Well over 10,000 (non-JLL) Julia packages, with JLLs up to 11,846 Julia registered packages. Congratulation Julia community!](https://discourse.julialang.org/t/well-over-10-000-non-jll-julia-packages-with-jlls-up-to-11-846-julia-registered-packages-congratulation-julia-community/36702)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 40\
**Last updated:** [November 1, 2024, 4:11am UTC](https://discourse.julialang.org/t/well-over-10-000-non-jll-julia-packages-with-jlls-up-to-11-846-julia-registered-packages-congratulation-julia-community/36702 "2024-11-01T04:11:09Z")

</div>

There are finally again over 3000 registered Julia packages (there were more in the past, then those not compatible with Julia 1.0 thrown out of the registry). This is not yet reflected at Juliacomputing.com while it is…

---

## [How do I set bounds for a parametric subtype of a parametric abstract type?](https://discourse.julialang.org/t/how-do-i-set-bounds-for-a-parametric-subtype-of-a-parametric-abstract-type/122101)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 3:49am UTC](https://discourse.julialang.org/t/how-do-i-set-bounds-for-a-parametric-subtype-of-a-parametric-abstract-type/122101 "2024-11-01T03:49:45Z")

</div>

In theory, the use of Dummy{T} without explicitly declaring a “scope” for T, would mean that Dummy is an abstract type. But if I try to make an abstract type with that structure: julia\> abstract type Dummy{T} end It wo…

---

## [Failed to precompile Gurobi](https://discourse.julialang.org/t/failed-to-precompile-gurobi/122069)

<div class="topic-metadata">

**Author:** [@Y\_Naruse](https://discourse.julialang.org/u/Y_Naruse)\
**Replies:** 4\
**Last updated:** [November 1, 2024, 2:29am UTC](https://discourse.julialang.org/t/failed-to-precompile-gurobi/122069 "2024-11-01T02:29:53Z")

</div>

I want to use Gurobi on Julia. When I try to add Gurobi like this, it fails. julia\> import Pkg julia\> Pkg.add("Gurobi") Resolving package versions... No Changes to \`C:\\Users\\N185062\\.julia\\environments\\v1.11\\Proje…

---

## [Help with NUFFT (NFFT) vs FFT in Radial MRI applications](https://discourse.julialang.org/t/help-with-nufft-nfft-vs-fft-in-radial-mri-applications/122106)

<div class="topic-metadata">

**Author:** [@matividalg](https://discourse.julialang.org/u/matividalg)\
**Replies:** 0\
**Last updated:** [November 1, 2024, 12:52am UTC](https://discourse.julialang.org/t/help-with-nufft-nfft-vs-fft-in-radial-mri-applications/122106 "2024-11-01T00:52:02Z")

</div>

Hi there! I have a few problems when generating a “fHat” matrix of a NFFT (using package NFFT) vs when dealing with the inverse fft of my own (imperfect) adquisition. Let me illustrate. I’m simulating a regular Gradient…

---

## [Broadcasting question](https://discourse.julialang.org/t/broadcasting-question/122092)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 4\
**Last updated:** [October 31, 2024, 8:15pm UTC](https://discourse.julialang.org/t/broadcasting-question/122092 "2024-10-31T20:15:14Z")

</div>

I’m trying to calculate the following: where v and \\hat{n} vectors of length 3. But I need to do this to a bunch of vectors stored in a Vector{Vector{SVector{3,Float64}}} I ended up doing it like this: dots = \[\[ve…

---

## [Kwargs unexpected (?) error](https://discourse.julialang.org/t/kwargs-unexpected-error/122089)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 2\
**Last updated:** [October 31, 2024, 8:14pm UTC](https://discourse.julialang.org/t/kwargs-unexpected-error/122089 "2024-10-31T20:14:48Z")

</div>

I ran across the following while writing some code. function foo( x::Vector, y::Vector; cond=true) if cond return x .- y end end function bar(x, y; kwargs...) return foo(x, y, kwargs...) end # The…

---

## [Tooling for inference and simulation on temporal point processes?](https://discourse.julialang.org/t/tooling-for-inference-and-simulation-on-temporal-point-processes/121885)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 0\
**Last updated:** [October 28, 2024, 5:08pm UTC](https://discourse.julialang.org/t/tooling-for-inference-and-simulation-on-temporal-point-processes/121885 "2024-10-28T17:08:27Z")

</div>

Hi all, I’m looking for advice (statistical and computational) to do something like the following simulation/inference for nonhomogeneous point processes (temporal, not considering space): Specify a “prior” for the in…

---

## [\[ANN\] Quasar.jl - Pure Julia OpenQASM 3 Lexing and Parsing](https://discourse.julialang.org/t/ann-quasar-jl-pure-julia-openqasm-3-lexing-and-parsing/121513)

<div class="topic-metadata">

**Author:** [@kslimes](https://discourse.julialang.org/u/kslimes)\
**Replies:** 2\
**Last updated:** [October 31, 2024, 6:23pm UTC](https://discourse.julialang.org/t/ann-quasar-jl-pure-julia-openqasm-3-lexing-and-parsing/121513 "2024-10-31T18:23:44Z")

</div>

Quasar.jl - Pure Julia OpenQASM3 lexing and parsing Links: GitHub Quasar.jl is a pure Julia package for lexing and parsing OpenQASM, a popular intermediate representation for quantum programs. Quasar supports: Subrout…

---

## [Correct way of computing adjoints/gradients with dense solution of ODE](https://discourse.julialang.org/t/correct-way-of-computing-adjoints-gradients-with-dense-solution-of-ode/121964)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 5\
**Last updated:** [October 31, 2024, 6:17pm UTC](https://discourse.julialang.org/t/correct-way-of-computing-adjoints-gradients-with-dense-solution-of-ode/121964 "2024-10-31T18:17:18Z")

</div>

Hi all, I am trying to use the interpolated solution of my ODE for adjoint sensitivity analysis. Since I have a very small system of ODEs (n=3), I am interested in evaluating the performance of continuous adjoint method…

---

## [Running Julia on Android with Flutter & SyslabCC AOT (7.2MB only!)](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 4\
**Last updated:** [October 31, 2024, 6:10pm UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999 "2024-10-31T18:10:26Z")

</div>

The repo is here, and you can directly build it as a regular Flutter project. thautwarm/julia-android-example: Running Julia Code on Android with Flutter (UI) & Rust (Build System) & SyslabCC (Julia AOT Compiler) Unfor…

---

## [Can I use CuSpareMatrixCSC with Complex entries for ODE solving?](https://discourse.julialang.org/t/can-i-use-cusparematrixcsc-with-complex-entries-for-ode-solving/122080)

<div class="topic-metadata">

**Author:** [@joseph-t-lee](https://discourse.julialang.org/u/joseph-t-lee)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 6:02pm UTC](https://discourse.julialang.org/t/can-i-use-cusparematrixcsc-with-complex-entries-for-ode-solving/122080 "2024-10-31T18:02:47Z")

</div>

(Apologies if this is confusing - this is my first post, and first time I haven’t been able to find my answer already on the forum!) I have been trying to rewrite some old CPU code that used Sparse Matrices with Complex…

---

## [Slow JuMP model creation](https://discourse.julialang.org/t/slow-jump-model-creation/122005)

<div class="topic-metadata">

**Author:** [@jakubp](https://discourse.julialang.org/u/jakubp)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 5:52pm UTC](https://discourse.julialang.org/t/slow-jump-model-creation/122005 "2024-10-31T17:52:30Z")

</div>

I am trying to solve a very large (N=100M variables) and very sparse (density ~ 1/N) QUBO problem, using CPLEX interfaced via JuMP. To this end, I’m using the following function function solve\_with\_CPLEX(Q) L = size(…

---

## [Indexing vectors wtih BitVectors](https://discourse.julialang.org/t/indexing-vectors-wtih-bitvectors/122039)

<div class="topic-metadata">

**Author:** [@Yannik](https://discourse.julialang.org/u/Yannik)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 5:47pm UTC](https://discourse.julialang.org/t/indexing-vectors-wtih-bitvectors/122039 "2024-10-31T17:47:34Z")

</div>

What is the intended behaivious of using bitvectors to index array? I have an example similar to a = \[1,2,3\] indexing = a .\< 1 # BitVector: 0, 1, 1 a\[indexing\]\[2\] = 100 but then a is still \> a \[1,2,3\] The 100 did no…

---

## [CairoMakie - Controlling radial axes in polar plots](https://discourse.julialang.org/t/cairomakie-controlling-radial-axes-in-polar-plots/122008)

<div class="topic-metadata">

**Author:** [@togo59](https://discourse.julialang.org/u/togo59)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 5:37pm UTC](https://discourse.julialang.org/t/cairomakie-controlling-radial-axes-in-polar-plots/122008 "2024-10-31T17:37:42Z")

</div>

I can’t quite fathom the logic CM uses for the radial axes interval for polar plots. The default seems to be 45 degrees, but if (say) the thetalimits = (-pi/6 to +pi/6), the axes are at 10 degree intervals. In the docume…

---

## [2 Easy Julia Beginner Programs](https://discourse.julialang.org/t/2-easy-julia-beginner-programs/121476)

<div class="topic-metadata">

**Author:** [@benslinux](https://discourse.julialang.org/u/benslinux)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 5:31pm UTC](https://discourse.julialang.org/t/2-easy-julia-beginner-programs/121476 "2024-10-31T17:31:31Z")

</div>

I posted yesterday inquiring about sharing Julia projects here - my takeaway was that this forum isn’t really the place to post code - especially programs considered too elementary / basic. I get that - for any beginners…

---

## [Change mesh color in Plots.jl?](https://discourse.julialang.org/t/change-mesh-color-in-plots-jl/76625)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [October 31, 2024, 5:10pm UTC](https://discourse.julialang.org/t/change-mesh-color-in-plots-jl/76625 "2024-10-31T17:10:13Z")

</div>

I am trying to get a hold on Plots.jl capability to plot meshes. The mesh3d seems to be the good choice for that. With the following example, I manage to plot a uniformly colored mesh with the plotlyjs backed. using Pl…

---

## [Compiling C++ file for usage in Julia](https://discourse.julialang.org/t/compiling-c-file-for-usage-in-julia/121693)

<div class="topic-metadata">

**Author:** [@Questioner](https://discourse.julialang.org/u/Questioner)\
**Replies:** 11\
**Last updated:** [October 31, 2024, 3:57pm UTC](https://discourse.julialang.org/t/compiling-c-file-for-usage-in-julia/121693 "2024-10-31T15:57:34Z")

</div>

I have been trying to replicate the example given in a different post, to which I can’t link, but here’s the relative URL: /t/can-someone-provide-a-simple-example-of-using-cxxwrap/115908/6 I’m on Windows (because there …

---

## [\[Workgroup\] JuliaHealth Meeting -- October 31st, 2024](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-october-31st-2024/121799)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 3:22pm UTC](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-october-31st-2024/121799 "2024-10-31T15:22:43Z")

</div>

Hi everyone! :wave: I’m here with our next JuliaHealth meeting announcement – October 31st! We have an exciting line-up planned with a few guest speakers, so come ready for a great discussion! Here’s what we have on the…

---

## [Performance benefits of writing getters for struct fields](https://discourse.julialang.org/t/performance-benefits-of-writing-getters-for-struct-fields/122076)

<div class="topic-metadata">

**Author:** [@danrib07](https://discourse.julialang.org/u/danrib07)\
**Replies:** 2\
**Last updated:** [October 31, 2024, 3:03pm UTC](https://discourse.julialang.org/t/performance-benefits-of-writing-getters-for-struct-fields/122076 "2024-10-31T15:03:45Z")

</div>

Is there a performance benefit of writing “getter” functions for structs in Julia? For example, let’s say I define a struct and a “get” function for its field: struct Foo bar end function get\_bar(foo::Foo) retu…

---

## [Multiple-dispatch depending on output type?](https://discourse.julialang.org/t/multiple-dispatch-depending-on-output-type/7639)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 21\
**Last updated:** [October 31, 2024, 3:00pm UTC](https://discourse.julialang.org/t/multiple-dispatch-depending-on-output-type/7639 "2024-10-31T15:00:47Z")

</div>

I was just thinking about multiple-dispatch and something just occurred to me. Currently, there is multiple-dispatch based on input types but what if it can dispatch on output type as well? For example sqrt(-1) will fai…

---

## [Understanding Neural Networks (and Lux)](https://discourse.julialang.org/t/understanding-neural-networks-and-lux/122073)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 2:52pm UTC](https://discourse.julialang.org/t/understanding-neural-networks-and-lux/122073 "2024-10-31T14:52:38Z")

</div>

0. Overview I’m trying to understand neural networks and Lux in particular, and how it is related to interpolation and least squares regression. So this post is more on fundamental understanding than Lux-technicalities. …

---

## [Masters and PhD Interns at PNNL: Renewable Systems Modeling, Control, and Design Optimization](https://discourse.julialang.org/t/masters-and-phd-interns-at-pnnl-renewable-systems-modeling-control-and-design-optimization/122077)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [October 31, 2024, 2:30pm UTC](https://discourse.julialang.org/t/masters-and-phd-interns-at-pnnl-renewable-systems-modeling-control-and-design-optimization/122077 "2024-10-31T14:30:14Z")

</div>

I’m posting for a colleague. https://careers.pnnl.gov/jobs/9897?lang=en-us https://careers.pnnl.gov/jobs/9894?lang=en-us Overview The Electricity Infrastructure and Buildings Division of PNNL is accelerating the trans…

---

## [Package extension adding new function/variables to package namespace](https://discourse.julialang.org/t/package-extension-adding-new-function-variables-to-package-namespace/122034)

<div class="topic-metadata">

**Author:** [@SunnyUser](https://discourse.julialang.org/u/SunnyUser)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 2:13pm UTC](https://discourse.julialang.org/t/package-extension-adding-new-function-variables-to-package-namespace/122034 "2024-10-31T14:13:57Z")

</div>

Hi all :slight\_smile: Short summary what I want: Assume I have package A with main module/namespace A and a test extension for A that means the extension gets only loaded if Test is loaded. Different package B imports…

---

## [Recommand \`curl | bash\` as default installation is not ideal?](https://discourse.julialang.org/t/recommand-curl-bash-as-default-installation-is-not-ideal/121820)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 20\
**Last updated:** [October 31, 2024, 11:46am UTC](https://discourse.julialang.org/t/recommand-curl-bash-as-default-installation-is-not-ideal/121820 "2024-10-31T11:46:26Z")

</div>

Right now if you visit Installing Julia you see something like this: I think it’s reasonable for people to frown upon this, for one, it’s not a reproducible way to install Julia, it depends on what you get at the mom…

---

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

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 10:39am UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2024-09/120974 "2024-10-31T10:39:21Z")

</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 …

---

## [In what cases does Cthulhu.jl give a more precise inferred return type than Julia's built-in return type inference?](https://discourse.julialang.org/t/in-what-cases-does-cthulhu-jl-give-a-more-precise-inferred-return-type-than-julias-built-in-return-type-inference/122064)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [October 31, 2024, 10:19am UTC](https://discourse.julialang.org/t/in-what-cases-does-cthulhu-jl-give-a-more-precise-inferred-return-type-than-julias-built-in-return-type-inference/122064 "2024-10-31T10:19:15Z")

</div>

I was testing the inferrability of some of my code with Base.infer\_return\_type, and found a case with suboptimal abstract inference. When I tried using Cthulhu.jl to debug this, though, descend shows a more precise, opti…

---

## [A function return type of \`::AbstractArray{AbstractString}\` causes a performance penalty?](https://discourse.julialang.org/t/a-function-return-type-of-abstractarray-abstractstring-causes-a-performance-penalty/122003)

<div class="topic-metadata">

**Author:** [@Vincent\_Picaud](https://discourse.julialang.org/u/Vincent_Picaud)\
**Replies:** 15\
**Last updated:** [October 31, 2024, 9:58am UTC](https://discourse.julialang.org/t/a-function-return-type-of-abstractarray-abstractstring-causes-a-performance-penalty/122003 "2024-10-31T09:58:00Z")

</div>

For clarity reason, I sometimes annotated return type. However, I stopped when I realized this : Given: foo()::AbstractVector{AbstractString} = \[“hello”\] foo2() = \[“hello”\] fii(v) = println(eltype(v)) fii2(v) = @i…

---

## [Load sysimage so fail](https://discourse.julialang.org/t/load-sysimage-so-fail/121972)

<div class="topic-metadata">

**Author:** [@ck\_dominer](https://discourse.julialang.org/u/ck_dominer)\
**Replies:** 9\
**Last updated:** [October 31, 2024, 6:26am UTC](https://discourse.julialang.org/t/load-sysimage-so-fail/121972 "2024-10-31T06:26:46Z")

</div>

I generate a sysimage by PackgeCompiler. this is my command: using PackageCompiler; create\_sysimage(\["CoreToolbox"\]; sysimage\_path="CTBSysimage.so", include\_transitive\_dependencies=false) When I use this package, it r…

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

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