Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI - Rust implementation with WASM build #2645

Open
sd2k opened this issue Dec 23, 2024 · 0 comments
Open

FYI - Rust implementation with WASM build #2645

sd2k opened this issue Dec 23, 2024 · 0 comments

Comments

@sd2k
Copy link
Contributor

sd2k commented Dec 23, 2024

Hey folks, thanks for creating and maintaining Prophet for all these years, I've used it more times than I care to imagine 🙂

This isn't really an issue at all, but I thought you might be interested to know I've translated the Python implementation to Rust as part of the augurs time series toolkit. The main reason wasn't really performance (since Prophet already leans heavily on Stan/numpy), but for browser builds: the Rust library can be compiled to WASM and used in the browser, which is fun. In this build, cmdstan is replaced by a WASM component which wraps up Stan's optimizer. This approach also works server-side by running the MLE optimization inside Wasmtime, which is nicer (and results in fewer platform-specific issues) than cmdstan.

There's a demo which includes the Prophet lib, and an npm package which re-exports some basic functionality, in case anyone wants to play around.

Maybe this is helpful to someone in future. Merry Christmas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant