LLVM? WebKit?
WebKit started as KDE’s KHTML/KJS and LLVM started as a research project at Univeristy of Illinois.
Apple took the code and extended it, they had little choice for the source code license.
They could have just not taken the code, though…
yeah, they're doing the world a favour by taking the code and conform to its licence, as opposed to... developing a new browser engine which is... easier?
Neither originated with Apple, though I agree Apple did a lot to push them and make them what they are
OK, Clang then.
It’s started in the Univerity of Illinois, and still under their source code license.
No, that's where LLVM started. Clang was started from scratch at Apple to replace the GCC-LLVM frontend.
Only because of GPL3, otherwise everyone would still be using GCC nowadays.
WebKit got forked into Blink, which is no longer under Apple leadership. Brave, Chromium, and the other major KHTML-derived browsers adopted this.
I can think of dozens of examples from Microsoft and Google, which are more "outside ecosystem" inclusive as a means of gaining mindshare. TypeScript, Golang, Visual Studio Code, protobuf, gRPC, ...
Other companies think of the things living outside their moat more flexibly, or their moats are less rigid. That's not to say that Apple's approach is wrong (look at their market cap!), but it has different consequences in terms of the open source code mindshare they cultivate.
There's nothing wrong with this. Swift can be the best language for the Apple platform and find lots of success in that.