Hacker News new | ask | show | jobs
by pjmlp 32 days ago
Kind of, you will note that it is based on COM, exactly to prevent ABI issues.

Which is what Windows has been doing since C++ replaced C for most of the systems programming stuff, around Vista timeframe.

1 comments

Not at all. IO Kit was raw, pure C++, with all the ABI consequences you must deal with (including fragile base class). Just go to see any header of any exported IOKit class to see what I am talking about.

There is no COM whatsoever, no IPC, no IDL, nothing, dunno where do you get that from.

I just find it funny to claim that C++ was even partially to blame for Be's demise, when Mac OS X since its first public release actually embraced C++ for a much more delicate component.

Perhaps they're thinking of the CFPlugIn architecture, which is basically COM IUnknown without everything Microsoft built on top of it.

https://developer.apple.com/library/archive/documentation/Co...

> There is no COM whatsoever, no IPC, no IDL, nothing, dunno where do you get that from.

I get that from knowing my way around OS X, naturally it isn't Windows COM, rather shares many of the same ideas,

https://developer.apple.com/library/archive/documentation/De...

https://developer.apple.com/library/archive/documentation/De...

> I just find it funny to claim that C++ was even partially to blame for Be's demise, when Mac OS X since its first public release actually embraced C++ for a much more delicate component.

I think that those that use such argument tend to be on anti-C++ crowd, they forget that NeXTSTEP even had Objective-C++ as well.

This is still completely different to COM in both goals and implementation. If this resembles COM to you, then almost anything resembles COM.

This is just the part how they deal with forward ABI problems, and is exactly the same that Be was doing too, as I mentioned in an above comment: private impl pointers and "preemptive" empty virtual functions (Be calls it "stuffing", OS X calls it "padding").