# Latest

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

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

**Page:** 293

---

## [DBSCAN clustering with Haversine metric](https://discourse.julialang.org/t/dbscan-clustering-with-haversine-metric/121685)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 4\
**Last updated:** [October 24, 2024, 12:53pm UTC](https://discourse.julialang.org/t/dbscan-clustering-with-haversine-metric/121685 "2024-10-24T12:53:46Z")

</div>

Hi there, I have an array of points (latitude, longitude) in radians and I am trying to use the package Clustering.jl to cluster my points. In the documentation it seems like a metric can be given, the default being: Eu…

---

## [Haskell forum post argues that Commercial Haskell should go after Julia ( and Python) instead of Rust](https://discourse.julialang.org/t/haskell-forum-post-argues-that-commercial-haskell-should-go-after-julia-and-python-instead-of-rust/121526)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [October 24, 2024, 12:25pm UTC](https://discourse.julialang.org/t/haskell-forum-post-argues-that-commercial-haskell-should-go-after-julia-and-python-instead-of-rust/121526 "2024-10-24T12:25:12Z")

</div>

I find the post a pretty amusing read.

---

## [How to put gif or mp4 file in Literate documentation page?](https://discourse.julialang.org/t/how-to-put-gif-or-mp4-file-in-literate-documentation-page/121468)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 9:31am UTC](https://discourse.julialang.org/t/how-to-put-gif-or-mp4-file-in-literate-documentation-page/121468 "2024-10-24T09:31:12Z")

</div>

I want to attach gif or mp4 file on documentation page. My code is: # \`\`\`@raw html # \<video autoplay loop muted playsinline controls src="../../../assets/topoplot\_animation\_UM.gif" /\> # \`\`\` This is the page deployed: B…

---

## [Photo Polymerisation Using Catalyst with constant Photon Species](https://discourse.julialang.org/t/photo-polymerisation-using-catalyst-with-constant-photon-species/121686)

<div class="topic-metadata">

**Author:** [@Map3GOSM](https://discourse.julialang.org/u/Map3GOSM)\
**Replies:** 0\
**Last updated:** [October 24, 2024, 9:00am UTC](https://discourse.julialang.org/t/photo-polymerisation-using-catalyst-with-constant-photon-species/121686 "2024-10-24T09:00:41Z")

</div>

Hi everyone, I am trying to set up a reaction network using Catalyst where one species remains at a constant value. I’m modelling a photo reaction and want to track the concentration of photons. In a simplified form, i…

---

## [Recommended workflow and packages for computing a slope along a tramway track](https://discourse.julialang.org/t/recommended-workflow-and-packages-for-computing-a-slope-along-a-tramway-track/119975)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 39\
**Last updated:** [October 24, 2024, 9:00am UTC](https://discourse.julialang.org/t/recommended-workflow-and-packages-for-computing-a-slope-along-a-tramway-track/119975 "2024-10-24T09:00:37Z")

</div>

I would like to ask for a recommendation on a workflow for computing a slope along a tramway track using Julia’s geo ecosystem (organizations JuliaEarth, JuliaGeo, …). The tramway tracks are obtained from OpenStreetMaps…

---

## [Type inference difference in \`mapreduce(f, op, t)\` vs \`reduce(op, map(f, t))\`](https://discourse.julialang.org/t/type-inference-difference-in-mapreduce-f-op-t-vs-reduce-op-map-f-t/93265)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 8:42am UTC](https://discourse.julialang.org/t/type-inference-difference-in-mapreduce-f-op-t-vs-reduce-op-map-f-t/93265 "2024-10-24T08:42:21Z")

</div>

For tuples, it seems mapreduce has poorer type inference than map + reduce. julia\> using FillArrays, Infinities, InfiniteArrays, Test julia\> ax = Ones{Int}(InfiniteCardinal{0}()); julia\> y = (ax,ax); julia\> @inferred…

---

## [Component-based model for N reactors connected to a tank](https://discourse.julialang.org/t/component-based-model-for-n-reactors-connected-to-a-tank/119536)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 9\
**Last updated:** [October 24, 2024, 8:29am UTC](https://discourse.julialang.org/t/component-based-model-for-n-reactors-connected-to-a-tank/119536 "2024-10-24T08:29:25Z")

</div>

Say I’ve got 10 chemical reactors, which all flow into a single tank. The reactors all have different production rates for some species S. I’m interested in the concentration of S in the reactors and in the tank. I guess…

---

## [Optimization problem that fails to converge](https://discourse.julialang.org/t/optimization-problem-that-fails-to-converge/121666)

<div class="topic-metadata">

**Author:** [@Iforire](https://discourse.julialang.org/u/Iforire)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 7:55am UTC](https://discourse.julialang.org/t/optimization-problem-that-fails-to-converge/121666 "2024-10-24T07:55:55Z")

</div>

Hi all, I am very new to Julia and maths is quite old for me now, so I am struggling with my code. The thing is that I would like to find the best linear combination of six parameters that fits the seventh parameter. …

---

## [What is the Proper Way To Do Interactive Inline Plots? (Workaround Found)](https://discourse.julialang.org/t/what-is-the-proper-way-to-do-interactive-inline-plots-workaround-found/121679)

<div class="topic-metadata">

**Author:** [@tillfalko](https://discourse.julialang.org/u/tillfalko)\
**Replies:** 0\
**Last updated:** [October 24, 2024, 7:00am UTC](https://discourse.julialang.org/t/what-is-the-proper-way-to-do-interactive-inline-plots-workaround-found/121679 "2024-10-24T07:00:25Z")

</div>

What I’m looking for I’m looking for a non-janky way to create interactive inline plots in a VSCode Notebook using either Plots.jl or any Makie version. Workaround I have found a way to do it in Plots.jl, but it’s clear…

---

## [Hit a few dead ends setting up a slider server. Easy(ish) solution possible?](https://discourse.julialang.org/t/hit-a-few-dead-ends-setting-up-a-slider-server-easy-ish-solution-possible/118907)

<div class="topic-metadata">

**Author:** [@sguis](https://discourse.julialang.org/u/sguis)\
**Replies:** 14\
**Last updated:** [October 24, 2024, 6:45am UTC](https://discourse.julialang.org/t/hit-a-few-dead-ends-setting-up-a-slider-server-easy-ish-solution-possible/118907 "2024-10-24T06:45:09Z")

</div>

Hello everybody. Huge thanks and admiration for all the wonderful things coming out of the Julia and Pluto worlds. Astonishing :slight\_smile: I’m teaching calculus this semester and have been making Pluto notebooks to h…

---

## [Who should own a package extension? Does it matter?](https://discourse.julialang.org/t/who-should-own-a-package-extension-does-it-matter/121668)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 5\
**Last updated:** [October 24, 2024, 5:57am UTC](https://discourse.julialang.org/t/who-should-own-a-package-extension-does-it-matter/121668 "2024-10-24T05:57:00Z")

</div>

I want to ensure that my package, CliffordNumbers.jl, interoperates with Unitful.jl, and that parametric types dependent on both packages (like Quantity{\<:AbstractCliffordNumber}) have operations defined on them consiste…

---

## [How to override defaults with u0 in solve](https://discourse.julialang.org/t/how-to-override-defaults-with-u0-in-solve/121629)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 2\
**Last updated:** [October 24, 2024, 5:02am UTC](https://discourse.julialang.org/t/how-to-override-defaults-with-u0-in-solve/121629 "2024-10-24T05:02:41Z")

</div>

I have an ODEProblem with a system with default values, and with a starting state prob.u0. I want to be able to solve this problem from an arbitrary starting state u0 to the next timestep using solve(prob, QNDF(); save\_s…

---

## [Markdown in VSCode](https://discourse.julialang.org/t/markdown-in-vscode/121664)

<div class="topic-metadata">

**Author:** [@uri](https://discourse.julialang.org/u/uri)\
**Replies:** 2\
**Last updated:** [October 24, 2024, 3:17am UTC](https://discourse.julialang.org/t/markdown-in-vscode/121664 "2024-10-24T03:17:48Z")

</div>

is it possible to insert comments in a julia formatted as md. I’ve heard that something as my following example is possible, and when you hover the mouse over the md text it appears formated. """ # Simple Markdown Tit…

---

## [Performance comparison of a custom gcd() function in Julia, C, and Rust](https://discourse.julialang.org/t/performance-comparison-of-a-custom-gcd-function-in-julia-c-and-rust/121665)

<div class="topic-metadata">

**Author:** [@jbytecode](https://discourse.julialang.org/u/jbytecode)\
**Replies:** 7\
**Last updated:** [October 23, 2024, 10:58pm UTC](https://discourse.julialang.org/t/performance-comparison-of-a-custom-gcd-function-in-julia-c-and-rust/121665 "2024-10-23T22:58:53Z")

</div>

Here is the naive implementation of the gcd (Greatest Common Divisor) in Julia: function mygcd(a::Int64, b::Int64)::Int64 if a == b return a elseif a \> b return mygcd(a-b, b) else return m…

---

## [Sampling from a KDE object](https://discourse.julialang.org/t/sampling-from-a-kde-object/121604)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 4\
**Last updated:** [October 23, 2024, 8:54pm UTC](https://discourse.julialang.org/t/sampling-from-a-kde-object/121604 "2024-10-23T20:54:06Z")

</div>

Hi there, I estimated the density for a variable of interest using the kde() function from KernelDensity.jl package. Is there not a built-in/efficient function that samples from this estimated density? Thanks a lot!

---

## [Tuple{Vararg{T, N}} where N \>= 1](https://discourse.julialang.org/t/tuple-vararg-t-n-where-n-1/121644)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 9\
**Last updated:** [October 23, 2024, 7:35pm UTC](https://discourse.julialang.org/t/tuple-vararg-t-n-where-n-1/121644 "2024-10-23T19:35:39Z")

</div>

It can be extremely convenient to dispatch on the types of arguments in a tuple, creating an alias for tuples of a type. However, a zero-length tuple will match a Vararg Tuple of any type, which can create issues with d…

---

## [Cassette performance overhead](https://discourse.julialang.org/t/cassette-performance-overhead/121659)

<div class="topic-metadata">

**Author:** [@jgarvin](https://discourse.julialang.org/u/jgarvin)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 5:44pm UTC](https://discourse.julialang.org/t/cassette-performance-overhead/121659 "2024-10-23T17:44:04Z")

</div>

I’ve been getting frustrated by some of the limitations around metaprogramming in Python and recently heard about Cassette. One thing that’s confusing to me without having a strong understanding of Julia yet is why Casse…

---

## [Did i coded my pde correctly?](https://discourse.julialang.org/t/did-i-coded-my-pde-correctly/121661)

<div class="topic-metadata">

**Author:** [@Shashi2\_Kumar](https://discourse.julialang.org/u/Shashi2_Kumar)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 5:08pm UTC](https://discourse.julialang.org/t/did-i-coded-my-pde-correctly/121661 "2024-10-23T17:08:55Z")

</div>

After many weeks of search for a pde solver for my elliptic pde i came across Julia. Found that it has a FNC package (FundamentalsNumericalComputation) that solves pde. I tried to encode my pde with boundary conditions a…

---

## [Creating Parameters.jl struct samples using variable keywords](https://discourse.julialang.org/t/creating-parameters-jl-struct-samples-using-variable-keywords/121639)

<div class="topic-metadata">

**Author:** [@JPool](https://discourse.julialang.org/u/JPool)\
**Replies:** 4\
**Last updated:** [October 23, 2024, 5:06pm UTC](https://discourse.julialang.org/t/creating-parameters-jl-struct-samples-using-variable-keywords/121639 "2024-10-23T17:06:13Z")

</div>

Hi, I’m trying to make a function that takes in a default struct which holds parameters for my model. I want to be able to make a sample list where some properties are kept constant, and some are sampled using a sampling…

---

## [Empty period problem - an exceptional case](https://discourse.julialang.org/t/empty-period-problem-an-exceptional-case/121655)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 4:58pm UTC](https://discourse.julialang.org/t/empty-period-problem-an-exceptional-case/121655 "2024-10-23T16:58:10Z")

</div>

I have discovered a problem with the implementation of the Dates CompoundPeriod type. Here’s a simple REPL demo. julia\> using Dates julia\> ms0 = Millisecond(0) 0 milliseconds julia\> canonicalize(ms0) empty period As…

---

## [Documenter.jl only updating dev section in my package](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 3\
**Last updated:** [October 23, 2024, 4:15pm UTC](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650 "2024-10-23T16:15:27Z")

</div>

Hi everyone, I have been developping a package for some time now, and I struggle to setup up the documentation correctly with Documenter.jl. Everything seems to be configured correctly, but only the dev part of the docu…

---

## [Fast ways to check if an element is in a vector of vector of elements](https://discourse.julialang.org/t/fast-ways-to-check-if-an-element-is-in-a-vector-of-vector-of-elements/121598)

<div class="topic-metadata">

**Author:** [@rakshith95](https://discourse.julialang.org/u/rakshith95)\
**Replies:** 20\
**Last updated:** [October 23, 2024, 3:42pm UTC](https://discourse.julialang.org/t/fast-ways-to-check-if-an-element-is-in-a-vector-of-vector-of-elements/121598 "2024-10-23T15:42:36Z")

</div>

Hello , What would be the most efficient way to look for a number in a vector of vector of numbers? i.e. Data: t = \[ \[1,2,3\] , \[4,5,6\] , \[1,10,12\], \[1,4,5\] \] Input: 1 Output: 1,3,4 I could do something like findall…

---

## [Status of Julia database libraries](https://discourse.julialang.org/t/status-of-julia-database-libraries/11877)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 143\
**Last updated:** [October 23, 2024, 3:12pm UTC](https://discourse.julialang.org/t/status-of-julia-database-libraries/11877 "2024-10-23T15:12:27Z")

</div>

TLDR; My experience with the DB access libraries has been overwhelmingly negative - I’m concerned that the Julia ecosystem is missing a huge foundational piece for success. Things don’t look any better as we’re moving to…

---

## [Scalar indexing is disallowed - ODE solve using GPU](https://discourse.julialang.org/t/scalar-indexing-is-disallowed-ode-solve-using-gpu/121645)

<div class="topic-metadata">

**Author:** [@agme2014](https://discourse.julialang.org/u/agme2014)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 3:11pm UTC](https://discourse.julialang.org/t/scalar-indexing-is-disallowed-ode-solve-using-gpu/121645 "2024-10-23T15:11:27Z")

</div>

Hi, I want to use NVIDIA GPU in my laptop to speed up Neural ODE computation. I started with testing out GPU on ODEs but I am getting the below error during the “solve” step : ERROR: Scalar indexing is disallowed. Invo…

---

## [How to Update Non-Time-Dependent States in Mixed ODE Problems?](https://discourse.julialang.org/t/how-to-update-non-time-dependent-states-in-mixed-ode-problems/121594)

<div class="topic-metadata">

**Author:** [@chooron](https://discourse.julialang.org/u/chooron)\
**Replies:** 11\
**Last updated:** [October 23, 2024, 3:07pm UTC](https://discourse.julialang.org/t/how-to-update-non-time-dependent-states-in-mixed-ode-problems/121594 "2024-10-23T15:07:58Z")

</div>

Hello, I’d like to ask for your help. In an ODE problem, after I complete the calculations for a given time step ( t ), I need to update a certain state. This state is not time-dependent but is recalculated based on anot…

---

## [Get base10 mantissa and exponent of real (eg Float64)](https://discourse.julialang.org/t/get-base10-mantissa-and-exponent-of-real-eg-float64/121529)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 11\
**Last updated:** [October 22, 2024, 8:54am UTC](https://discourse.julialang.org/t/get-base10-mantissa-and-exponent-of-real-eg-float64/121529 "2024-10-22T08:54:36Z")

</div>

What would be the recommended way of getting the base 10 mantissa and exponent of a floating point number? Is there a package that does this? Or should I just reparse from printed representation, as in using Printf fu…

---

## [Turning a stochastic simulator into a set of deterministic simulators by fixing the seed](https://discourse.julialang.org/t/turning-a-stochastic-simulator-into-a-set-of-deterministic-simulators-by-fixing-the-seed/121642)

<div class="topic-metadata">

**Author:** [@weltenbummler](https://discourse.julialang.org/u/weltenbummler)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 1:43pm UTC](https://discourse.julialang.org/t/turning-a-stochastic-simulator-into-a-set-of-deterministic-simulators-by-fixing-the-seed/121642 "2024-10-23T13:43:31Z")

</div>

Hello all, I am given a stochastic simulator and would like to turn it into n deterministic simulators where each operates with a fixed seed. The simulators depend on some parameters that the user can specify. My quest…

---

## [How to format or print a difference in two DateTime objects](https://discourse.julialang.org/t/how-to-format-or-print-a-difference-in-two-datetime-objects/121638)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 7\
**Last updated:** [October 23, 2024, 2:09pm UTC](https://discourse.julialang.org/t/how-to-format-or-print-a-difference-in-two-datetime-objects/121638 "2024-10-23T14:09:48Z")

</div>

I want to print the following object, which is a difference between two DateTimes datetime\_diff = datetime2 - datetime1 The type of datetime\_diff appears to be Milliseconds. That means it can be printed, but produces t…

---

## [Elegant handling of possibly-state-dependent parameters in physical simulation](https://discourse.julialang.org/t/elegant-handling-of-possibly-state-dependent-parameters-in-physical-simulation/121640)

<div class="topic-metadata">

**Author:** [@Ickaser](https://discourse.julialang.org/u/Ickaser)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 1:34pm UTC](https://discourse.julialang.org/t/elegant-handling-of-possibly-state-dependent-parameters-in-physical-simulation/121640 "2024-10-23T13:34:44Z")

</div>

For a couple years now, I have been using OrdinaryDiffEq for developing a handful of models for describing the process of pharmaceutical lyophilization. The more time I spend, the more I learn about more aspects of Julia…

---

## [Float64 error in plotting](https://discourse.julialang.org/t/float64-error-in-plotting/121603)

<div class="topic-metadata">

**Author:** [@agme2014](https://discourse.julialang.org/u/agme2014)\
**Replies:** 3\
**Last updated:** [October 23, 2024, 1:34pm UTC](https://discourse.julialang.org/t/float64-error-in-plotting/121603 "2024-10-23T13:34:10Z")

</div>

Hi, I am new to SciML and Julia. I am trying to use neural ODE to model the system. Everything else in my code except the plotting works. The problem occurs when I try to plot the prediction vs the original using scatte…

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

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