News for hackers. Stuff that matters.
Re:Apple is looking for engineers to convert its code from C... by mch82 on Saturday March 21, 2020 @01:09AM (#22644630)
Any thoughts on why they’d be using Rust rather than Swift for this work?
Re:Apple is looking for engineers to convert its code from C... by hombre_fatal on Saturday March 21, 2020 @08:35AM (#22646114)
If you're writing performance sensitive code and/or correct code, Rust makes more sense. Rust makes more sense for almost any use-case over Swift unless you're building Apple clients.

Swift still hasn't really escaped its niche of being a language for end-users to build clients for the Apple ecosystem with trade-offs in mind for those end-users who are just building clients (rather than, say, implementing a safer openssl).

For example, even Rust's web framework story is more mature and benchmark competitive than Swift's. Go to https://www.techempower.com/benchmarks/ and filter for just Rust and Swift.

I say all this sadly as someone who builds iOS apps. I would find it very weird that someone was using Swift of all language for infrastructure projects.

Re:Apple is looking for engineers to convert its code from C... by mark_l_watson on Saturday March 21, 2020 @10:38AM (#22646766)
At the present time, I agree with you, Swift is very good for user facing software and because of the new built in support for auto differentiation it looks very promising for deep learning. I have some bias here: I am working on a book on Swift AI development. Common Lisp has been my go to language for AI since 1982, and I wanted to explore an alternative. Specific to Apple’s ecosystem, support via CoreML is very good, built in NLP libraries are also good.

I wouldn’t build network software in Swift.

Re:Apple is looking for engineers to convert its code from C... by simonh on Saturday March 21, 2020 @01:30AM (#22644739)
The vast majority of Apple’s data centre systems run on Linux.
Re:Apple is looking for engineers to convert its code from C... by Skinney on Saturday March 21, 2020 @04:16AM (#22645273)
Swift compiles and runs on Linux.
Re:Apple is looking for engineers to convert its code from C... by chiefsucker on Saturday March 21, 2020 @06:25AM (#22645634)
It’s only supported on Ubuntu, not Linux in general, and it still lacks. The corporate backing is missing, and IBM going away from the Server-side Swift deal doesn’t spread confidence. The whole ecosystem just isn’t there (yet?).

This rewrite isn’t only related to the current situation on Linux, but also to Swift’s current performance characteristics. Lack of full Linux support is just another hindrance, before you can consider Swift for this type of work at all.

Re:Apple is looking for engineers to convert its code from C... by bluedays on Saturday March 21, 2020 @09:33AM (#22646369)
If it runs on Ubuntu it runs on nearly any Linux distribution.
Re:Apple is looking for engineers to convert its code from C... by simonh on Saturday March 21, 2020 @07:28AM (#22645832)
Being useful and performant and effective, especially for a use case as critical and sensitive as security software, requires clearing a much higher bar than just 'compiles and runs'.