10 ms·
I'm pretty sure that a large part of the people working on legacy code bases would like to have a safer language. You don't move on to a better language if that
by adrianN 7y ago
I'm pretty sure that a large part of the people working on legacy code bases would like to have a safer language. You don't move on to a better language if that means rewriting your whole project.
- lmm 7y ago"Sensible C" would have to be a distinct language from C, at least as the latter is currently implemented, so it would still represent a change of languages for legacy codebases. It could probably interop with the C ABI, but we already have other languages that can do that; it's not at all clear that converting your codebase piecemeal to "sensible C" would be substantially easier than doing the same with, say, Rust.
- naniwaduni 7y agoIt would also have source-level interop with C _APIs_, for which the only other language we have is C++, and which for that purpose has the same issues as C.
- pjmlp 7y agoI pretty much doubt it, given that ISO C WG doesn't care one second about making C safer. It is Oracle with SPARC ADI, Google/ARM/Apple with ARM MTE, Microsoft with Checked C, AT&T with Cyclone that actually bother to change the status quo.
- saagarjha 7y agoIs anyone actually shipping with memory tagging yet?
- pjmlp 7y agoSolaris on SPARC, iOS and it is a requirement for Android 11 ARM based devices.
- saagarjha 7y agoMTE is part of ARMv8.5, a hardware specification. There is no iOS device that ships with this–and I would expect very few (if any?) Android devices do as well. Do you have a source of it being a requirement for ARM-powered Android 11 devices? Because I would expect this to exclude almost every currently shipping device…
- pjmlp 7y agoYes, Google itself. https://security.googleblog.com/2019/08/adopting-arm-memory-tagging-extension.html https://security.googleblog.com/2019/08/adopting-arm-memory-... https://source.android.com/devices/tech/debug/tagged-pointers https://source.android.com/devices/tech/debug/tagged-pointer... https://android-developers.googleblog.com/2020/02/Android-11-developer-preview.html https://android-developers.googleblog.com/2020/02/Android-11... > We’re also enabling heap pointer tagging for apps targeting Android 11 or higher, to help apps catch memory issues in production. As for iOS, while MTE is not exactly the same as arm64e, it fills a similar purpose on iPhone XS, XS max and XR.