this post was submitted on 13 Aug 2024
133 points (89.3% liked)

Open Source

31648 readers
215 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

I would have preferred Rust, a language created by Mozilla instead of one with ties to Apple, but I'm not a dev so I can't really judge. What are your thoughts?

top 32 comments
sorted by: hot top controversial new old
[–] InternetCitizen2 78 points 4 months ago (1 children)

Rust was made by Mozilla? TIL

[–] [email protected] 48 points 4 months ago (2 children)

Yep. It was developed to improve parallelization and security of Firefox. Many core parts of Firefox have been replaced with Rust implementations.

[–] [email protected] 17 points 4 months ago

I see now. Rust is the color of fox, and foxes eat crabs. It all makes sense now.

[–] [email protected] 6 points 4 months ago* (last edited 4 months ago)

I thought it was weird such an old piece of software had so much Rust in it. I noticed all the Rust-related things while ~~Firefox~~ Librewolf compiles but never looked into it further.

[–] [email protected] 65 points 4 months ago

That's weird.

[–] 9point6 64 points 4 months ago* (last edited 4 months ago)

Independent of corporate interests

.

Picks one of the few languages created due to corporate interests

This will die on the vine

[–] [email protected] 30 points 4 months ago (1 children)
[–] dohpaz42 34 points 4 months ago

Ladybird Browser Team Selects Swift as Preferred Language Andreas Kling announces Swift as Ladybird's future language for better safety and ergonomics. Full transition awaits Swift 6.

ByBobby BorisovAugust 11, 2024 Ladybird Browser Team Selects Swift as Preferred Language Ladybird is a new name in the Linux ecosystem you might not be familiar with. So, let’s briefly explain what it’s all about.

It’s a web browser initiative, funded by $1 million, spearheaded by GitHub co-founder and former CEO Chris Wanstrath and tech visionary Andreas Kling. It seeks to challenge the status quo with a new browser written from scratch, completely independent of corporate interests. Our article on the subject has more on this. Now, back to the topic.

Over the past few months, Ladybird’s developers have been experimenting by rewriting different parts of the browser project in various languages. The outcome was clear: Swift emerged as the preferred choice among the team. According to Kling, the feedback favored Swift for its modern features and robust safety protocols.

Another significant advantage of Swift is its ongoing improvements in interoperability with C++. This development means Ladybird can adopt Swift gradually, without extensive rewrites, easing the transition and reducing potential integration issues.

Now, I’m sure you associate Swift with app development for Apple devices, where it’s been the go-to technology. But recently, that’s started to change.

What I mean is despite its strong associations with Apple, Swift has been making strides towards independence. It has been reorganized under a separate GitHub organization, distancing itself from Apple-specific projects.

This shift, coupled with better support for non-Apple platforms and diverse development environments, positions Swift as a more versatile and broadly applicable programming language.

Looking ahead, Ladybird plans to implement Swift once version 6 exits beta this fall. The upcoming release promises compatibility with the latest versions of Clang, essential for integrating Swift with Ladybird’s existing C++ code.

It’s worth noting that no browser engine has yet been developed using Swift, making this project particularly challenging. As things are still in the early planning stages, we shouldn’t expect to see any initial versions of the Ladybird browser this year.

A more realistic timeline suggests an early preview release could happen in 2025, though the developers have not yet committed to specific dates.

For more information, refer to Kling’s post on X.

Bobby Borisov Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

[–] [email protected] 24 points 4 months ago (2 children)

For anyone who knows more about this, how does it compare to Servo? https://servo.org/

[–] [email protected] 13 points 4 months ago* (last edited 4 months ago)

Servo barely works right now. Ladybird somewhat works. Neither are ready for daily use.

[–] [email protected] 5 points 4 months ago* (last edited 4 months ago)

servo is a lot further along because they're not bothering with javascript and are just using spidermonkey. see WPT: https://staging.wpt.fyi/results/?product=servo&product=ladybird

[–] MigratingtoLemmy 12 points 4 months ago
[–] [email protected] 12 points 4 months ago

That page freezes my firefox and uses a lot cpu power

[–] [email protected] 5 points 4 months ago* (last edited 4 months ago) (1 children)

Rust would have been good in the long term but it'd take a long time to get to release.

Swift mates sense for rapid deployment.

Go would have been my choice concurrency would maybe help with lots of tabs

[–] [email protected] 2 points 4 months ago

Tabs are typically spun into separate processes for sandboxing reasons anyway

[–] [email protected] 2 points 4 months ago

Oh, programming language. My brain was stuck trying to figure out if Swift is related to Swiss.

[–] [email protected] 2 points 4 months ago (1 children)

I not entirely sure but from what I can remember Andreas Kling is seen using Mac-os in a Ladybird update video so it could be possible that it is his main operating system. Take this with a grain of salt.

[–] warmaster 1 points 4 months ago

Another Chromium incoming?

[–] Asudox 2 points 4 months ago

I do wonder: why not rust? It would have been amazing. A fast language on par with C++ that also is memory safe. But Swift? You gotta be kidding me...

[–] amzd -3 points 4 months ago

Swift is a fantastic language and with c++ interop out of the box it’s the obvious choice.