News for hackers. Stuff that matters.
Re:Apple M1 Pro and Max Surprises by cageface on Tuesday October 26, 2021 @04:19AM (#28997738)
A language like C++ without a stable ABI makes a terrible OS framework language since you'd have to recompile apps every time the framework classes change.
Re:Apple M1 Pro and Max Surprises by vetinari on Tuesday October 26, 2021 @06:47AM (#28998685)
That's one of the problems that original BeOS had -- they were locked into gcc 2.95 abi. In the late days of BeOS, gcc 3 was released and it was not possible to use it.
Re:Apple M1 Pro and Max Surprises by nielsbot on Tuesday October 26, 2021 @02:39PM (#29004450)
I also think C++ is uniquely bad for this. There are maybe other languages that would fare better, perhaps even C.

For example, CoreFoundation has a C API... that would be a bit of a test of a C-only framework world.

You can see however that's missing the convenience of Obj-C.

I hope Swift will be successful. It is nice to use (most of the time).

Re:Apple M1 Pro and Max Surprises by cageface on Wednesday October 27, 2021 @01:12AM (#29009785)
Sure. Win32 and Unix are good examples of OS's with a C interface.
Re:Apple M1 Pro and Max Surprises by chunkyguy on Tuesday October 26, 2021 @04:28AM (#28997817)
The same problem we have now with Swift. Even after ABI stability code compiled and linked across different versions don't often work.