Leveraging modern low-level: a Rust backend for PureScript

News #9:

The heavy lifting for Aff support in purust is done, and it works wonderfully. I’m really happy with the result. Tests 100% green (e.g. purust-aff) :green_circle:

Under the hood, purust-aff is natively built on top of tokio (using its multi-thread capabilities). That’s rather similar to what’s been done with goroutines for gopurs.

This gives us full native support for the entire async API: Fork, ParApply, Sequential, Fiber cancellation, Bracket for safe resource management, etc. (lots of things).

There are still tiny details to fix, but this will be pushed soon. The surrounding ecosystem (like purust-js-promise and purust-js-promise-aff) still needs to be ported. And as usual, a cleanup will need to be done at the end.

I’ll test that soon, via a benchmark which is mainly dedicated to concurrent/parallel metrics.

Also: I’m currently trying to get tests green on a real-world project (website here). I’ll see how it handles the FFI and the Aff spec test suites.