News for hackers. Stuff that matters.
Re:Servo vs. Ladybird by abnercoimbre on Wednesday March 26, 2025 @03:07PM (#43485735)
I read here recently that Ladybird is prepared to switch to Swift rather than C++. I can't seem to find the relevant sources; can anyone confirm?
Re:Servo vs. Ladybird by hypeatei on Wednesday March 26, 2025 @03:15PM (#43485845)
Yes, here[0]. Although, it's not anywhere close to being used for everyday things. There are blockers listed in their GitHub issues and various issues posted to the Swift forums.

[0]: https://xcancel.com/awesomekling/status/1822236888188498031

Re:Servo vs. Ladybird by abnercoimbre on Wednesday March 26, 2025 @03:26PM (#43486024)
Thank you! I'd imagine performance-sensitive components in the engine need to remain in C++ (or a similar systems language) right? However, I'm not privy to Swift's runtime benchmarks.
Re:Servo vs. Ladybird by karulont on Wednesday March 26, 2025 @04:05PM (#43486601)
Swift has been adding support for things like non-copyable types that should help with writing performance sensitive parts.
Re:Servo vs. Ladybird by hypeatei on Wednesday March 26, 2025 @03:37PM (#43486179)
> imagine performance-sensitive components in the engine need to remain in C++

I'd imagine so, yes. I think the vision is to use Swift in "risky" areas like parsing data for example. Probably much more too, but the big hitters would be safety critical areas I think.