3 ms·
Symbian wasn't dead in 2007. It was the world's leading smartphone OS and shipped in tens of millions of devices yearly. Symbian's inability to upgrade the pla
by pavlov 9y ago
Symbian wasn't dead in 2007. It was the world's leading smartphone OS and shipped in tens of millions of devices yearly.
Symbian's inability to upgrade the platform to modern compilers definitely was one factor in its failure to gain developer mindshare, and the C++ ABI was the reason for that. They had painted themselves into a corner with a '90s C++ embedded dialect and had no easy way forward.
I'm curious -- which modern OS exposes a C++ API and is "doing pretty ok"? I can't think of any.
- pjmlp 9y agoNo, but no serious OS company migrates to a 4.0 compiler just when it gets released, rather a few years later when it has been proven in the field, by then it was too late. Migrating to a new C++ ABI wasn't in any way related to Symbians downfall, internal politics were. As for OSes ARM mbed, Windows all new APIs since Vista are based on COM specially anything UWP related, GenodeOS, Arduino bare-metal libs, IncludeOS.
- phs2501 9y agoCOM is its own ABI and does not use the C++ ABI: "Unlike C++, COM provides a stable application binary interface (ABI) that does not change between compiler releases.[3] This makes COM interfaces attractive for object-oriented C++ libraries that are to be used by clients compiled using different compiler versions." The others seem to be mostly embedded kernels or unikernels which will be tightly linked into your code anyway, so there's no issue of ABI incompatibility with those.
- pjmlp 9y agoThere is no such thing as Language X ABI, rather OS ABI or compiler ABIs. COM is built on top of C++ VTBL implementation on Windows, UWP extends COM by supporting generics as well. As for the other OSes, it is irrelevant where they are used, the fact is that they are exposing C++ APIs not C ones. As matter of fact, had GNU/Linux not taken over the OS world and FOSS projects, and C would be pretty much history by now. Mac OS, BeOS, Symbian, OS/2, Windows were all adopting C++ APIs when GNU/Linux started to gain adoption, with its manifesto to focus on C for GNU software.
- pavlov 9y agoThere is no such thing as Language X ABI, rather OS ABI or compiler ABIs. There is no major C++ compiler on a major OS that provides a stable ABI, so that's what people mean when they say there's no stable C++ ABI. COM is independent of the Microsoft C++ compiler. It's defined on top of the platform's C ABI. (There's a COM implementation on Mac, for example.) On Windows, COM uses the stdcall calling convention. There's no trace of C++ there.
- comex 9y agoWell, the macOS kernel exposes a stable C++ API (IOKit) to third-party kernel extensions.