News for hackers. Stuff that matters.
Re:Undefined behavior in C is a reading error by rectang on Thursday May 20, 2021 @08:49PM (#27229300)
The result is a perpetually unstable situation fostering inevitable errors when the programmer is surprised by the compiler. There's no remedy except to move away from C to more tightly specified languages.
Re:Undefined behavior in C is a reading error by pjmlp on Friday May 21, 2021 @03:52AM (#27231523)
The problem is ecosystems like UNIX based platforms, that will never move to something else.

The only solution is to throw them away, e.g. Android style.

Re:Undefined behavior in C is a reading error by throwaway2048 on Friday May 21, 2021 @04:24AM (#27231670)
Android threw away a unix based platform? News to me.
Re:Undefined behavior in C is a reading error by pjmlp on Friday May 21, 2021 @04:41AM (#27231772)
It did, ask termux guys.

The Linux kernel is an implementation detail.

There is nothing UNIX related exposed to userspace.

Java and Kotlin applications, while NDK APIs are clearly defined,

https://developer.android.com/ndk/guides/stable_apis

Or Treble Project for that matter,

https://source.android.com/devices/architecture/hidl

Try to use private APIs (which is what the Linux underpinnings are) and the application might be blessed with being killed by the OS.