Live data from Hacker News

Apple announces full Swift rewrite of the Foundation framework (2022)

infoq.com

91–100 of 402 posts

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#91
post #89

So apple seems to be dropping c like languages, Microsoft says new stuff should not be written in c like languages anymore, and google has steadily worked towards using rust and go in place of c and c++ where it makes sense to do so it seems. There seems to be a trend here.

>>Microsoft says new stuff should not be written in c like languages anymore Microsoft is dropping C#? Source for that?

C# is a lot closer to Java if anything, should clarify to be c and c++

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#92
post #89

So apple seems to be dropping c like languages, Microsoft says new stuff should not be written in c like languages anymore, and google has steadily worked towards using rust and go in place of c and c++ where it makes sense to do so it seems. There seems to be a trend here.

>>Microsoft says new stuff should not be written in c like languages anymore Microsoft is dropping C#? Source for that?

Calling C# a C-like language is like saying JavaScript is a descendant of Java.

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#93
post #89

So apple seems to be dropping c like languages, Microsoft says new stuff should not be written in c like languages anymore, and google has steadily worked towards using rust and go in place of c and c++ where it makes sense to do so it seems. There seems to be a trend here.

>>Microsoft says new stuff should not be written in c like languages anymore Microsoft is dropping C#? Source for that?

could be worded better but from context in the sentence I read that as c/c++

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#94
post #66

Apple has such an unpredictable stance on software development. For example after all these years and lots of requests for such a feature it's still not possible to get notified about new reviews for your apps, but it's possible to get notified when a user edits a review after you've replied to it.

Apple’s style reminds me a lot of something I once read (and later experienced) about Japan and tourism: > (roughly) Japan is a country for the Japanese. While they may welcome you and invite you to experience their country and culture, the country is very much setup to serve the Japanese populace. Apple feels similarly. They build what they need and enough to capture the revenue they want, but I don’t perceive them…

> but I don’t perceive them to really cater to external needs beyond what will monetize

So then why does all of Apple's operating systems and apps receive updates at all.

Your argument is completely illogical.

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#95
post #89

So apple seems to be dropping c like languages, Microsoft says new stuff should not be written in c like languages anymore, and google has steadily worked towards using rust and go in place of c and c++ where it makes sense to do so it seems. There seems to be a trend here.

>>Microsoft says new stuff should not be written in c like languages anymore Microsoft is dropping C#? Source for that?

I think the GP probably poorly phrased that. “Memory unsafe languages” would be a better term, apart from the basic syntax C# really isn’t very C-like.

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#96

Someone knowing existing pattern help me understand this. right now when i use these “foundation” apis in swift it is doing c call? so they rewriting now the c code in swift? (dont do ios or mac code so now sure) me dont understand what make it faster now. i once wrote some jni code to call c++ library from java. does mean there some similar code to do cross language call? they get rid of it and so things now faster?…

Most of Foundation on Darwin used to call into Objective-C code. This is going to be replaced with Swift code while keeping the API the same.

Conversely, will existing Obj-C (and hybrid Swift/Obj-C) apps be able to call the new Swift Foundation?

And will it be binary-compatible with existing apps, or will Apple just ship a separate compatibility version of Foundation for use by legacy apps?

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#97
post #89

So apple seems to be dropping c like languages, Microsoft says new stuff should not be written in c like languages anymore, and google has steadily worked towards using rust and go in place of c and c++ where it makes sense to do so it seems. There seems to be a trend here.

>>Microsoft says new stuff should not be written in c like languages anymore Microsoft is dropping C#? Source for that?

C# is not a C-like language. It's a managed runtime with garbage collection.

However Mark Russinovich, CTO of Azure did say that it's time to drop C and C++

https://twitter.com/markrussinovich/status/15719951172335042...

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#98
post #20

I am pretty certain that most of high level use cases for Rust could be replaced with Swift, with increased developer velocity, if Swift was actually cross platform. And that's coming from a Rust fan. It will be interesting to see how effective this rewrite is.

If the foundation is rewritten in Swift, it will become a very potent alternative to Rust for this use case. Swift+LSP has good enough IDE support and the developer experience and debugging capabilities should make possible.

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#99
post #89

So apple seems to be dropping c like languages, Microsoft says new stuff should not be written in c like languages anymore, and google has steadily worked towards using rust and go in place of c and c++ where it makes sense to do so it seems. There seems to be a trend here.

>>Microsoft says new stuff should not be written in c like languages anymore Microsoft is dropping C#? Source for that?

Based on the context I think by "c like" they meant languages with a culture of dealing with raw pointers. c# is c by name and curly braces, but primarily uses managed memory

Re: Apple announces full Swift rewrite of the Foundation framework (2022)

#100
post #75

Could someone please explain what exactly is the “Foundation”?

The Foundation framework is a cornerstone of most macOS and iOS apps, providing a large number of ubiquitous abstractions, including NSObject, NSString, NSArray and NSDictionary, and many more.
Post reply on HN