top | item 43601704

(no title)

null_investor | 10 months 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.

discuss

order

braxxox|10 months ago

> 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.