The lowest effort approach to implementing ODE semantics for models is to use an ODE solver native to Rust, compile it to wasm, and run it locally in the browser. The scientific computing ecosystem in Rust is quite weak compared to, say, Julia, but there are a few crates for solving ODEs:
ode-solvers: has the standard Runge-Kutta plus a few other solvers
diffsol: brand new, with a focus on stiff equations
The lowest effort approach to implementing ODE semantics for models is to use an ODE solver native to Rust, compile it to wasm, and run it locally in the browser. The scientific computing ecosystem in Rust is quite weak compared to, say, Julia, but there are a few crates for solving ODEs:
ode-solvers
: has the standard Runge-Kutta plus a few other solversdiffsol
: brand new, with a focus on stiff equations