logoalt Hacker News

g42gregorytoday at 5:13 AM1 replyview on HN

What are the use cases? I am curious why Rust was not targeted.


Replies

nine_ktoday at 5:29 AM

I suppose you can write various algorithms in it, and have that code natively trsnspiled to different languages, for ease of native interoperability. It's unlikely to produce the absolutely most optimized code, but the lack of the interface translation barrier (aka FFI) may more than compensate for it.

Rust is not easy to target efficiently, due to the borrow checker, and they likely don't want to dyn Box everything.