News for hackers. Stuff that matters.
Re:Pwning the Ladybird Browser by seanhunter on Thursday May 01, 2025 @07:39AM (#43856354)
This is an FAQ

“ Ladybird started as a component of the SerenityOS hobby project, which only allows C++. The choice of language was not so much a technical decision, but more one of personal convenience. Andreas was most comfortable with C++ when creating SerenityOS, and now we have almost half a million lines of modern C++ to maintain.

However, now that Ladybird has forked and become its own independent project, all constraints previously imposed by SerenityOS are no longer in effect.

We have evaluated a number of alternatives, and will begin incremental adoption of Swift as a successor language, once Swift version 6 is released.”

https://ladybird.org/#faq

Re:Pwning the Ladybird Browser by airstrike on Thursday May 01, 2025 @10:36AM (#43858258)
Swift struggles so much when compiling even moderately sized codebases, I worry this choice will prove untenable in the long term.
Re:Pwning the Ladybird Browser by no_wizard on Thursday May 01, 2025 @11:08AM (#43858698)
Swift or XCode?

I've experienced very fast Swift compilations, but when compiling an app - which will invoke additional tooling with XCode - is the slowest part.

In my experience anyway. I am genuinely curious!

Re:Pwning the Ladybird Browser by tough on Thursday May 01, 2025 @02:13PM (#43861333)
I agree with this, i've been avoiding xcode as much as possible for my little swift projects, but now I do wonder if that still stands for large codebases, I guess you could try and find some big codebases on swift on gh and see how much it takes to compile
Re:Pwning the Ladybird Browser by airstrike on Thursday May 01, 2025 @07:07PM (#43864370)
I've only used it within XCode so can't say which is to blame, but I did frequently get the message "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" which seems to be a problem with the language/compiler/type system, not XCode per se