# Latest

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

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

**Page:** 417

---

## ["unreachable" reached (with infinite loops) vs Julia](https://discourse.julialang.org/t/unreachable-reached-with-infinite-loops-vs-julia/113906)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 7\
**Last updated:** [May 7, 2024, 3:37pm UTC](https://discourse.julialang.org/t/unreachable-reached-with-infinite-loops-vs-julia/113906 "2024-05-07T15:37:11Z")

</div>

This “unreachable” concept is rather low-level, in LLVM, and I’ve not thought much of it, until seeming you can define it in C++ as a function? Should Julia do the same. And see here C++ vs C difference related to it and…

---

## [Error with ModelingToolkit documentation example](https://discourse.julialang.org/t/error-with-modelingtoolkit-documentation-example/113946)

<div class="topic-metadata">

**Author:** [@amytmoody](https://discourse.julialang.org/u/amytmoody)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 2:39pm UTC](https://discourse.julialang.org/t/error-with-modelingtoolkit-documentation-example/113946 "2024-05-07T14:39:05Z")

</div>

I’m getting the following error from the first example in the Getting Started with ModelingToolkit example. WARNING: could not import ModelingToolkit.t\_nounits into Main UndefVarError: \`D\` not defined I found a workar…

---

## [If EnzymeRules.inactive() is defined, does the Enzyme.jl operation still take place?](https://discourse.julialang.org/t/if-enzymerules-inactive-is-defined-does-the-enzyme-jl-operation-still-take-place/113369)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 6\
**Last updated:** [May 7, 2024, 2:17pm UTC](https://discourse.julialang.org/t/if-enzymerules-inactive-is-defined-does-the-enzyme-jl-operation-still-take-place/113369 "2024-05-07T14:17:18Z")

</div>

When performing automatic differentiation using Enzyme.jl, Errors and warnings occur in functions that define EnzymeRules.inactive(). I thought that the application of Enzyme.jl was ignored when EnzymeRules.inactive() w…

---

## [Using abmplot() for plotting a 3d model with agents sphere in shape](https://discourse.julialang.org/t/using-abmplot-for-plotting-a-3d-model-with-agents-sphere-in-shape/113941)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 6\
**Last updated:** [May 7, 2024, 2:03pm UTC](https://discourse.julialang.org/t/using-abmplot-for-plotting-a-3d-model-with-agents-sphere-in-shape/113941 "2024-05-07T14:03:06Z")

</div>

Hello everyone, I’m trying to plot my 3D ABM model using abmplot() which seems better for 2d plots rather then 3d as it doesn’t support 3d markers yet but how can I use abmplot() to plot a 3d model if i want to? Speci…

---

## [Is there a macroscopic analysis on Julia packages?](https://discourse.julialang.org/t/is-there-a-macroscopic-analysis-on-julia-packages/113944)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 1:59pm UTC](https://discourse.julialang.org/t/is-there-a-macroscopic-analysis-on-julia-packages/113944 "2024-05-07T13:59:24Z")

</div>

For example, this could include the distribution of domains among existing Julia packages, the trend in the growth of Julia package numbers, and possibly additional things such as the distribution of developer amounts fo…

---

## [Quant Developer Position in Zürich](https://discourse.julialang.org/t/quant-developer-position-in-zurich/110506)

<div class="topic-metadata">

**Author:** [@Schnabeltier](https://discourse.julialang.org/u/Schnabeltier)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 10:19am UTC](https://discourse.julialang.org/t/quant-developer-position-in-zurich/110506 "2024-02-21T10:19:38Z")

</div>

EDIT: no longer active Contribute to the development, testing and documentation of our Julia code base! We are a Fintech located in Zürich. Quant Developer (60%-100%)

---

## [Invalid enum code when using Pkg](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933)

<div class="topic-metadata">

**Author:** [@Devansh1106](https://discourse.julialang.org/u/Devansh1106)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 10:26am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933 "2024-05-07T10:26:30Z")

</div>

I am installing MPIPreferences using Pkg. But there is some argument error that has been shown in the picture below.

---

## [Gradient of loss function from ODE solution](https://discourse.julialang.org/t/gradient-of-loss-function-from-ode-solution/113910)

<div class="topic-metadata">

**Author:** [@Enrico\_Camporeale](https://discourse.julialang.org/u/Enrico_Camporeale)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 8:53am UTC](https://discourse.julialang.org/t/gradient-of-loss-function-from-ode-solution/113910 "2024-05-07T08:53:56Z")

</div>

I am interested in the autodiff feature of Julia. Specifically I have an ODE problem that solves for the motion of solar system planets and I have defined a loss function. I want to calculate the gradient of the loss fun…

---

## [Creating Single-Entry Matrix?](https://discourse.julialang.org/t/creating-single-entry-matrix/113932)

<div class="topic-metadata">

**Author:** [@ArcticOwl](https://discourse.julialang.org/u/ArcticOwl)\
**Replies:** 4\
**Last updated:** [May 7, 2024, 6:48am UTC](https://discourse.julialang.org/t/creating-single-entry-matrix/113932 "2024-05-07T06:48:35Z")

</div>

Hello everyone! I am new to Julia and I want to create single-entry matrices i.e., 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0…

---

## [Extracting numbers from Symbols](https://discourse.julialang.org/t/extracting-numbers-from-symbols/113930)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 4:03am UTC](https://discourse.julialang.org/t/extracting-numbers-from-symbols/113930 "2024-05-07T04:03:20Z")

</div>

Given a vector of Symbols like \[:v01, :v20, :v33\], is there a way to extract the numbers directly without first converting them to strings? My current solution with string conversion is: v = \[:v01, :v20, :v33\] nums = @.…

---

## [Practice material or exercises from the course Julia Programming For Nervous Beginners](https://discourse.julialang.org/t/practice-material-or-exercises-from-the-course-julia-programming-for-nervous-beginners/92155)

<div class="topic-metadata">

**Author:** [@german\_saenz](https://discourse.julialang.org/u/german_saenz)\
**Replies:** 5\
**Last updated:** [May 6, 2024, 9:09pm UTC](https://discourse.julialang.org/t/practice-material-or-exercises-from-the-course-julia-programming-for-nervous-beginners/92155 "2024-05-06T21:09:22Z")

</div>

Hello, I have recently started the Julia Programming For Nervous Beginners course, however in the lessons the instructor Henri Laurie invites us to do the exercises. I have already checked in the repository and also in …

---

## [Avoiding allocations when normalizing a vector](https://discourse.julialang.org/t/avoiding-allocations-when-normalizing-a-vector/113913)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 11\
**Last updated:** [May 6, 2024, 7:08pm UTC](https://discourse.julialang.org/t/avoiding-allocations-when-normalizing-a-vector/113913 "2024-05-06T19:08:52Z")

</div>

Hello. Given that calling function function integrand(r,rp) diff = MArray(r-rp) return normalize!(diff) end as in r = Point3D(0.,0,0); rp = Point3D(5.,0,0) @btime integrand(r,rp) results in one (single) al…

---

## [10 minute physics tutorial part 16 (Cloth simulation) translated to Julia](https://discourse.julialang.org/t/10-minute-physics-tutorial-part-16-cloth-simulation-translated-to-julia/113921)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 6:56pm UTC](https://discourse.julialang.org/t/10-minute-physics-tutorial-part-16-cloth-simulation-translated-to-julia/113921 "2024-05-06T18:56:37Z")

</div>

Over the weekend, I translated one of the 10 minute physics tutorials by Matthias Müller for cloth simulation. It’s a fun exercise, and many things worked out easier than expected. (I was actually trying to test if Julia…

---

## [Best data structure for fast unions of large sets of integers](https://discourse.julialang.org/t/best-data-structure-for-fast-unions-of-large-sets-of-integers/113785)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 56\
**Last updated:** [May 6, 2024, 6:23pm UTC](https://discourse.julialang.org/t/best-data-structure-for-fast-unions-of-large-sets-of-integers/113785 "2024-05-06T18:23:10Z")

</div>

Nerdsnipe alert In the SparseConnectivityTracer.jl project, @hill and I need to efficiencly compute unions of non-disjoint sets of integers, which can be very large (thousands, even millions). The default Set{Int} is …

---

## [Pkg.add syntax](https://discourse.julialang.org/t/pkg-add-syntax/113919)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 5:44pm UTC](https://discourse.julialang.org/t/pkg-add-syntax/113919 "2024-05-06T17:44:02Z")

</div>

I try to get rid of the warning I get when executing in a script: julia -e "using Pkg; pkg\\"add KiteSimulators#main\\" " Not working: julia -e "using Pkg; pkg.add(\\"KiteSimulators\\", rev=\\"main\\") Any idea?

---

## [Code style consultation: Should we strive to avoid code duplication?](https://discourse.julialang.org/t/code-style-consultation-should-we-strive-to-avoid-code-duplication/113858)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 21\
**Last updated:** [May 6, 2024, 5:18pm UTC](https://discourse.julialang.org/t/code-style-consultation-should-we-strive-to-avoid-code-duplication/113858 "2024-05-06T17:18:38Z")

</div>

Should we strive to avoid code duplication when defining a function with multiple methods if they have similar code? Specifically, for the following function with two methods, should we combine them into a single method…

---

## [MWE for Abstraction object for Statistical Models needed?](https://discourse.julialang.org/t/mwe-for-abstraction-object-for-statistical-models-needed/113477)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 17\
**Last updated:** [May 6, 2024, 4:31pm UTC](https://discourse.julialang.org/t/mwe-for-abstraction-object-for-statistical-models-needed/113477 "2024-05-06T16:31:53Z")

</div>

Hello! I have Julia code that implements a suite of statistical models and computes diagnostics such as log-likelihood, test statistics and of course reports regression coefficients. I would like to plug into the abstr…

---

## [How to: High-performance differentiable programming with broad AD-library support?](https://discourse.julialang.org/t/how-to-high-performance-differentiable-programming-with-broad-ad-library-support/113884)

<div class="topic-metadata">

**Author:** [@ThummeTo](https://discourse.julialang.org/u/ThummeTo)\
**Replies:** 13\
**Last updated:** [May 6, 2024, 3:35pm UTC](https://discourse.julialang.org/t/how-to-high-performance-differentiable-programming-with-broad-ad-library-support/113884 "2024-05-06T15:35:28Z")

</div>

Hi at all, I am currently struggling with three (competing?) goals on code design. I want code, that: (1) is fast, (b) is differentiable and (c) differentiable by current (and future) AD-libraries (like at least Forward…

---

## [Inconsistent results trying to mesure feature importance](https://discourse.julialang.org/t/inconsistent-results-trying-to-mesure-feature-importance/113885)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [May 6, 2024, 3:23pm UTC](https://discourse.julialang.org/t/inconsistent-results-trying-to-mesure-feature-importance/113885 "2024-05-06T15:23:21Z")

</div>

Hello, I am trying to build a method to generically measure feature importance in ML models but I am having very inconsistent results, that depends on the individual run, and I am very p…off and I don’t understand why. I…

---

## [Challenges with Arrow and Parquet in a (reasonably substantial) Julia Project](https://discourse.julialang.org/t/challenges-with-arrow-and-parquet-in-a-reasonably-substantial-julia-project/113209)

<div class="topic-metadata">

**Author:** [@chris-b1](https://discourse.julialang.org/u/chris-b1)\
**Replies:** 57\
**Last updated:** [May 6, 2024, 2:53pm UTC](https://discourse.julialang.org/t/challenges-with-arrow-and-parquet-in-a-reasonably-substantial-julia-project/113209 "2024-05-06T14:53:38Z")

</div>

I was curious if you could expand on this a bit. In my experience Arrow.jl is well supported and performant. I haven’t used it much but there is also Parquet2.jl which is actively developed.

---

## [ConcurrencyViolationError in UnitfulExt](https://discourse.julialang.org/t/concurrencyviolationerror-in-unitfulext/112069)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [May 6, 2024, 2:29pm UTC](https://discourse.julialang.org/t/concurrencyviolationerror-in-unitfulext/112069 "2024-05-06T14:29:44Z")

</div>

I get the following pre-compilation error: ⠇ \[00m:15s\] PackageCompiler: compiling incremental system image┌ Error: Error during loading of extension UnitfulExt of Plots, use \`Base.retry\_load\_extensions()\` to retry. │ …

---

## [LASSO or step-wise regression for Julia](https://discourse.julialang.org/t/lasso-or-step-wise-regression-for-julia/62061)

<div class="topic-metadata">

**Author:** [@Babou](https://discourse.julialang.org/u/Babou)\
**Replies:** 7\
**Last updated:** [May 6, 2024, 2:29pm UTC](https://discourse.julialang.org/t/lasso-or-step-wise-regression-for-julia/62061 "2024-05-06T14:29:26Z")

</div>

I want to write a julia script to run a linear mixed model with a lasso regression as my code in R is quite slow. Is there a package that works with the mixed models package that implements lasso or stepwise regression? …

---

## [Adding at specific CuArray position](https://discourse.julialang.org/t/adding-at-specific-cuarray-position/113855)

<div class="topic-metadata">

**Author:** [@Andrea\_Deflorio](https://discourse.julialang.org/u/Andrea_Deflorio)\
**Replies:** 6\
**Last updated:** [May 6, 2024, 1:58pm UTC](https://discourse.julialang.org/t/adding-at-specific-cuarray-position/113855 "2024-05-06T13:58:25Z")

</div>

How to fix this function? Also how to fix the line #@atomic counts\[indices\[idx\]\] += 1, it doesn’t compile at all. function count\_indices(indices::CuArray{Int64,1}, maxSize::Int64) # Initialize a CuArray of zeros wi…

---

## [Is there a Package for EVM calculation and constellation diagram visualization in digital communications?](https://discourse.julialang.org/t/is-there-a-package-for-evm-calculation-and-constellation-diagram-visualization-in-digital-communications/113905)

<div class="topic-metadata">

**Author:** [@Trailing3208](https://discourse.julialang.org/u/Trailing3208)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 1:57pm UTC](https://discourse.julialang.org/t/is-there-a-package-for-evm-calculation-and-constellation-diagram-visualization-in-digital-communications/113905 "2024-05-06T13:57:26Z")

</div>

Hello there, I’m currently trying to implement some digital communications simulation and there are a bunch of helpful packages such as DSP.jl as well as DigitalComm.jl, but as far as I know there is no implementation o…

---

## [Get smooth CDF from OnlineStats's Quantile](https://discourse.julialang.org/t/get-smooth-cdf-from-onlinestatss-quantile/113886)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 6\
**Last updated:** [May 6, 2024, 1:41pm UTC](https://discourse.julialang.org/t/get-smooth-cdf-from-onlinestatss-quantile/113886 "2024-05-06T13:41:44Z")

</div>

Hello, I am tracking statistics of some simulations using the Quantile object from the amazing OnlineStats.jl I am also interested in being able to plot the CDF of the variable being observed with the Quantile but tryi…

---

## [How to check for a safe cast?](https://discourse.julialang.org/t/how-to-check-for-a-safe-cast/113853)

<div class="topic-metadata">

**Author:** [@berquist](https://discourse.julialang.org/u/berquist)\
**Replies:** 3\
**Last updated:** [May 6, 2024, 1:39pm UTC](https://discourse.julialang.org/t/how-to-check-for-a-safe-cast/113853 "2024-05-06T13:39:42Z")

</div>

NumPy has numpy.can\_cast — NumPy v1.26 Manual. I’d like to know if it exists in a library before I write something simplified based upon sizeof, which I think is what NumPy is mostly doing anyway.

---

## [Julia for data analysis book](https://discourse.julialang.org/t/julia-for-data-analysis-book/78090)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 22\
**Last updated:** [May 6, 2024, 1:39pm UTC](https://discourse.julialang.org/t/julia-for-data-analysis-book/78090 "2024-05-06T13:39:05Z")

</div>

I am finishing writing a book on data analysis using the Julia language with Manning Publishing. It is mostly targeted at data scientists knowing R or Python wanting to learn Julia, but I am convinced that even if you kn…

---

## [Bit instructions from C++. Do we have them?](https://discourse.julialang.org/t/bit-instructions-from-c-do-we-have-them/113900)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 12:56pm UTC](https://discourse.julialang.org/t/bit-instructions-from-c-do-we-have-them/113900 "2024-05-06T12:56:03Z")

</div>

From a Twitter post: Do we have all these? Seems like we do have some of them. Could be good practice to adopt the missing ones. The source is: C23 stdbit.h quick reference

---

## [Book: Alice’s Adventures in a differentiable wonderland](https://discourse.julialang.org/t/book-alice-s-adventures-in-a-differentiable-wonderland/113896)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 11:02am UTC](https://discourse.julialang.org/t/book-alice-s-adventures-in-a-differentiable-wonderland/113896 "2024-05-06T11:02:38Z")

</div>

There is not the slightest hope I will be able to find the time to read this book. However it may be very useful to folks here!

---

## [Why trigonometric functions throw an error for Inf?](https://discourse.julialang.org/t/why-trigonometric-functions-throw-an-error-for-inf/113899)

<div class="topic-metadata">

**Author:** [@tomaklutfu](https://discourse.julialang.org/u/tomaklutfu)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 12:18pm UTC](https://discourse.julialang.org/t/why-trigonometric-functions-throw-an-error-for-inf/113899 "2024-05-06T12:18:37Z")

</div>

I belive many other floating point functions just return NaN for fast results or IEEE floating point compliance for incompatible input values but sin, cos like trigonometric functions throw for Inf but also not throw for…

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

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