Earlier quoted context omitted.
From what I've seen the ref counting can cause a big performance hit. Maybe this has improved in the last couple years?
Reference counting is slow because it has an additional increment/decrement operator on each lifetime of a scope. Add a little bit of salt to insult you need it to be atomic if you want it to run on SMP. This means for each time you have create/release the lifetime of an object you will make a lot of memory barriers, and create a lot of cache contention. But in practice the overhead is actually nought, and most of th…
Apple is rewriting Foundation in Swift
131–140 of 263 posts
Re: Apple is rewriting Foundation in Swift
#132[flagged]
Re: Apple is rewriting Foundation in Swift
#133Not a popular opinion. Current Apple and Swift felt somewhat like Apple and Dylan in the 90s. May be time could tell. A lot of people hate Objective-C, and was cheering for Swift in 2014. Now nearly a decade later, it seems time and resources could have been spent somewhere else.
Re: Apple is rewriting Foundation in Swift
#134not an apple fan,from obj-c to swift,why not just c++, NIH plus I-want-to-control-everything?
Re: Apple is rewriting Foundation in Swift
#135I just... completely don't understand the appeal of Swift beyond it being Apple's in-house language. I was excited for Foundation to become open-source. Using a language you'll really only find in 1 environment is a negative. I'm going to go feel ashamed for not getting excited about a language now. I should be celebrating "more languages", but Swift is just Apple. No one outside Apple chooses Shift unless they want…
That's like...Apple's whole deal. Proprietary everything top-to-bottom.
Re: Apple is rewriting Foundation in Swift
#136Earlier quoted context omitted.
From what I've seen the ref counting can cause a big performance hit. Maybe this has improved in the last couple years?
Apple has always been preferential to reference counting (see Objective C) and it seems like they may have spent a fair bit of effort optimizing Apple Silicon for it.
According to information released when the M1 came out: retaining and releasing an NSObject takes ~30 nanoseconds on current gen Intel, and ~6.5 nanoseconds on an M1
Re: Apple is rewriting Foundation in Swift
#137Earlier quoted context omitted.
The who
Yet another chrome wrapper, but with VC funding.
Brave (VC funded) is also a Chromium wrapper and Edge (Microsoft owned) is also one as well and both of the somehow managed to beat Firefox in usage. So what is you point?
Chrome and its derivatives is the reason why browsers like Firefox is failing to keep up and continues to lose users.
Using anything other than Chrome for a modern web browser is a losing battle. (Brave already tried that with Firefox and quickly switched to Chrome)
Re: Apple is rewriting Foundation in Swift
#138I just... completely don't understand the appeal of Swift beyond it being Apple's in-house language. I was excited for Foundation to become open-source. Using a language you'll really only find in 1 environment is a negative. I'm going to go feel ashamed for not getting excited about a language now. I should be celebrating "more languages", but Swift is just Apple. No one outside Apple chooses Shift unless they want…
The fact that Apple provides all these incredible platform specific frameworks and libraries for graphics, audio, games, GPU kernel programming, and more, it’s just the icing.
Re: Apple is rewriting Foundation in Swift
#139The project to rewrite Foundation in Swift is many years old, and had been stalled. New in 2023 is instead NOT to match all of Foundation, but to make some core libraries that make Swift usable on many platforms. E.g., they broke out the very large internationalization/i18n tables required for unicode support into a separate module. It's very unlikely Apple would move off their own Foundation, which is well-understoo…
This is not the same thing as swift-corelibs-foundation, which is the old project that stalled out. The officially announced plan here is for it to fully replace the old implementation of Foundation.
:(
Re: Apple is rewriting Foundation in Swift
#140Earlier quoted context omitted.
> From what I've seen the ref counting can cause a big performance hit. Apple has been writing OS components in Swift for a while now. It certainly doesn't seem to be producing the performance issues we saw when Google attempted to write components for Fuchsia in Go or Microsoft's effort to create new features for Longhorn in .NET.
Was probably due to FFI for Go I'd assume. Do you have a reference somewhere I can read up?