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

It certainly would be nice! Having a common layer for signaling (whether Rust or C++), which could be used across client SDKs is something we're evaluating. You'd still need a (albeit thinner) platform-specific SDK for the final interface and to abstract away any quirks.


I'd recommend Rust for your shared client core, even though for short-term practicality you probably have to keep using Google's C++ WebRTC library, because translating your existing high-level client code to safe Rust would be easier than translating it to reasonably safe C++.

If you're interested in pursuing this, the best starting point I've found for using the WebRTC C++ library from Rust is this: https://github.com/arcas-io/libwebrtc So far it looks like it only works on Linux and Mac.


Thanks for the pointer to that project, we'll take a look. =)

On your recommendation of Rust over C++, is the thought to deal with the double-bridging (platform-sdk => rust => libwebrtc) until webrtc.rs gets to a point where libwebrtc can be swapped out?


Yeah, I'd do double-bridging for now. The Rust/C++ bridging is pretty low-overhead IIUC, but getting it all to build and link together is probably a pain.


Arcas is fantastic! They are doing some really great work with WebRTC.


If you did not know, there is also https://github.com/signalapp/ringrtc by the Signal App team, which is written in Rust




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

Search: