HNHacker News
TopNewBestAskShowJobs

xleviator

20 karma · joined March 14, 2018

submissionscomments
xleviator··on Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
Hello,

I'm actually one of the main binder userspace maintainers in my day job there (opinions are my own), and I haven't heard about this. Do you have a reference? What has happened is that there is a userspace shim over libbinder called libbinder_rs which provides Rust support for binder, but AFAIK, the kernel driver and main userspace lib is remaining in C++. Still, would be cool.

Your Friend, Steven Moreland

xleviator··on C++ Patterns: The Badge
Oops, I did miss that, but this seems to be compiler or calling convention specific. x86_64 gcc 9.1, linked, shows no difference. However arm64 gcc 8.2 and x86-64 clang show a difference.
xleviator··on C++ Patterns: The Badge
Sure within a single compilation unit. Otherwise, I like dearrifling's suggestion.
xleviator··on C++ Patterns: The Badge
In larger codebases with many developers, attention to the API is required in order to be able to maintain code without breaking clients.

The main downside of Badge<T> is that it comes with a performance penalty and ABI change for something that should be statically deducible (empty struct is one byte in C++).