Hacker News new | ask | show | jobs
by null_investor 434 days ago
Forking and this package can be useful if you know that the unsafe code is really unsafe and have no hope of making it better.

But I wouldn't use this often. I'd be willing to bet that you'd lose all performance benefits of using Rust versus something like Python or Ruby that uses forking extensively for parallelism.

1 comments

> have no hope of doing better

Yeah, this is really the main use case. Its a relatively simple solution when you can't do any better.

I think that's particularly helpful when you're invoking code you don't control, like calling into a some arbitrary C library.