Leveraging a blazing-fast runtime: a (new) Go backend for PureScript

News #31:

purust is starting to come close to the ideal goal of x0.1 (10x faster), for the gopurs binary. I’ll pause the compiling perf improvements for now.

I’m currently working on improving FFI usability. My goal is to let developers use native types and ordinary function signatures on the Go side, while the backend handles conversions, currying on the PureScript side, and the necessary runtime wrappers. I had already started this step quite a while ago; I just hadn’t finished it.


@harryprayiv For purust, that’s the same: the goal is to keep the handwritten FFI idiomatic, with the backend handling as much of the adaptation as possible. I’m exploring how generated FFI adapters could enforce some ownership constraints at runtime, such as preventing a resource from being consumed twice, while keeping the handwritten Rust FFI idiomatic. Recovering comparable compile-time guarantees would require more work, though (but I’ll investigate).

Edit: The discussion has been extended here: Leveraging modern low-level: a Rust backend for PureScript - #29 by 0x000000000000000000