Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One example is the core Temporal.io client, which is implemented in Rust, and wrapped by (most of) the other SDKs including .NET.

I imagine this pattern will become more common for fat clients where it is desirable have a single implementation with idiomatic language bindings.



Correct, granted it's more complicated than "clients". At least Node.js (Neon), Python (PyO3), and Ruby (rb-sys/magnus) have nice supported bridge wrappers. The .NET-to-Rust interfacing in the Temporal .NET SDK required pure C FFI and P/Invoke and being careful about GC and lifetimes during interop. Can see the bridge at https://github.com/temporalio/sdk-dotnet/tree/main/src/Tempo....

I can say with regards to panics, .NET is very nice to wrap Rust panics into `SEHException` classes (though of course we strive to be completely panic free).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: