Swift is great! The guy who made Rust worked on Swift for 3-ish years, so there’s a fair amount of overlap in interest between the two. Those were the two main contenders, and I guess OOP was the deciding factor.
Comment on Servo vs Ladybird.
asudox@lemmy.asudox.dev 5 weeks ago
I don’t think Ladybird can compete with the other browsers with that speed. I still wonder why they chose Swift of all the other compiled languages to this day. Was OOP really that crucial?
sugar_in_your_tea@sh.itjust.works 5 weeks ago
woelkchen@lemmy.world 5 weeks ago
I still wonder why they chose Swift
taladar@sh.itjust.works 5 weeks ago
The GitHub project seems to be mostly C++ and the Qt comment in the article would support that.
jbaber@lemmy.sdf.org 5 weeks ago
HN crowd told me they’re porting to swift. When I asked “why not Rust”, they said the C++ code was very OOP, so it was easier to port to swift.
taladar@sh.itjust.works 5 weeks ago
Which probably means it uses deep inheritance hierarchies since that is the one thing that does not exist in Rust (and for a good reason).
barsoap@lemm.ee 4 weeks ago
You can do deep hierarchies in Rust, the thing Rust doesn’t have is implementation inheritance. Or more precisely said implementation inheritance that relies on anything but the interface (traits can have default methods but they’re part of the trait definition, not any implementation).
AnotherHelldiver@jlai.lu 5 weeks ago
I’m not a dev but does Swift will restrict it to Apple platforms since it is Apple language?
asudox@lemmy.asudox.dev 5 weeks ago
nope
Agosagror@lemmy.dbzer0.com 5 weeks ago
Primeagen interviewed the creator, who basically said they chose swift because it was fun. Other languages they tried were less fun.
isaaclyman@lemmy.world 4 weeks ago
As a professional dev (okay, okay, forgot where I was, aren’t we all) I approve of this reasoning