News for hackers. Stuff that matters.
Re:Apple’s use of Swift and SwiftUI in iOS 14 by coldtea on Sunday September 27, 2020 @09:07PM (#24611812)
I very much doubt Metal or Core Audio are implemented in ObjC. C++ or C are much more likely candidates, and is what Apple is generally using for low level code like that...
Re:Apple’s use of Swift and SwiftUI in iOS 14 by saagarjha on Sunday September 27, 2020 @09:41PM (#24612077)
And Core Animation is all C++ under the hood.
Re:Apple’s use of Swift and SwiftUI in iOS 14 by pjmlp on Monday September 28, 2020 @01:14AM (#24613196)
NeXT drivers were in Objective-C.
Re:Apple’s use of Swift and SwiftUI in iOS 14 by coldtea on Monday September 28, 2020 @02:06AM (#24613436)
Yes, 30 years ago.

Those went away along with DriverKit (and the performance issues for drivers due to Obj-C), when Apple created OS X.

Though DriverKit has been now re-used as a name, it's C++.

Re:Apple’s use of Swift and SwiftUI in iOS 14 by pjmlp on Monday September 28, 2020 @02:21AM (#24613521)
And you will find plenty of Apple folks at WWDC that resent that decision and would gladly have it back in Objective-C.

As for performance issues, that is the same talk about C devs regarding using C++ on kernel space, go figure.

> Metal is written in Objective-C, is based on Foundation, and makes use of Grand Central Dispatch to synchronize between the CPU and GPU.

https://www.objc.io/issues/18-games/metal/

> Shading Language: C++14, Runtime/API: Objective-C

https://en.wikipedia.org/wiki/Metal_(API)

Re:Apple’s use of Swift and SwiftUI in iOS 14 by coldtea on Monday September 28, 2020 @03:03AM (#24613755)
>And you will find plenty of Apple folks at WWDC that resent that decision and would gladly have it back in Objective-C.

I'm sure you can find 10 of such folks. I doubt you can find 50.

Re:Apple’s use of Swift and SwiftUI in iOS 14 by pjmlp on Monday September 28, 2020 @03:09AM (#24613790)
Those 10 are most likely former NeXTSTEP developers that actually know what they are talking about.
Re:Apple’s use of Swift and SwiftUI in iOS 14 by coldtea on Monday September 28, 2020 @03:27AM (#24613927)
...for the time...
Re:Apple’s use of Swift and SwiftUI in iOS 14 by pjmlp on Monday September 28, 2020 @03:30AM (#24613951)
Ask C engineers about DriverKit, Treble drivers, UDMF, mbed, GenodeOS and they will answer exactly the same way about C++.