News for hackers. Stuff that matters.

xleviator

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

Re:C++ Patterns: The Badge on Wednesday June 12, 2019 @10:45AM (#20165163)
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.
Re:C++ Patterns: The Badge on Wednesday June 12, 2019 @03:27AM (#20162492)
Sure within a single compilation unit. Otherwise, I like dearrifling's suggestion.
Re:C++ Patterns: The Badge on Tuesday June 11, 2019 @11:43PM (#20161608)
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++).