# External delay differential equation solver

**URL:** <https://discourse.mc-stan.org/t/external-delay-differential-equation-solver/17212>\
**Category:** Modeling\
**Tags:** ode\
**Created:** [August 4, 2020, 3:33am UTC](https://discourse.mc-stan.org/t/external-delay-differential-equation-solver/17212 "2020-08-04T03:33:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/chrisrackauckas/32/748_2.png) [@ChrisRackauckas](https://discourse.mc-stan.org/u/ChrisRackauckas)\
**Post date:** [August 5, 2020, 10:56am UTC](https://discourse.mc-stan.org/t/external-delay-differential-equation-solver/17212/2 "2020-08-05T10:56:20Z")

</div>

Julia’s Turing.jl [can use any of the DifferentialEquations.jl solvers](https://turing.ml/dev/tutorials/10-bayesiandiffeq/) which includes [DDEs](https://diffeq.sciml.ai/stable/tutorials/dde_example/). I would like to add this to Stan as well by having Stan call the Julia DiffEq libraries, but currently Stan is missing an FFI ([https://discourse.mc-stan.org/t/foreign-function-interface-in-stans-future/](https://discourse.mc-stan.org/t/foreign-function-interface-in-stans-future/)) which would be required to do this (but I’m continuing to watch this space and see how it evolves!)

---

_[View the full topic](https://discourse.mc-stan.org/t/external-delay-differential-equation-solver/17212)._
