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 1 week 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 1 week ago
woelkchen@lemmy.world 1 week ago
I still wonder why they chose Swift
taladar@sh.itjust.works 1 week ago
The GitHub project seems to be mostly C++ and the Qt comment in the article would support that.
jbaber@lemmy.sdf.org 1 week 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 1 week 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 1 week 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 1 week ago
I’m not a dev but does Swift will restrict it to Apple platforms since it is Apple language?
asudox@lemmy.asudox.dev 1 week ago
nope
Agosagror@lemmy.dbzer0.com 1 week 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 1 week ago
As a professional dev (okay, okay, forgot where I was, aren’t we all) I approve of this reasoning