165
submitted 3 months ago* (last edited 3 months ago) by onlinepersona@programming.dev to c/programming@programming.dev

Andreas Kling aka @awesomekling wrote:

We've been evaluating a number of C++ successor languages for @ladybirdbrowser , and the one best suited to our needs appears to be @SwiftLang ๐Ÿชถ

Over the last few months, I've asked a bunch of folks to pick some little part of our project and try rewriting it in the different languages we were evaluating. The feedback was very clear: everyone preferred Swift!

Why do we like Swift?

First off, Swift has both memory & data race safety (as of v6). It's also a modern language with solid ergonomics.

Something that matters to us a lot is OO. Web specs & browser internals tend to be highly object-oriented, and life is easier when you can model specs closely in your code. Swift has first-class OO support, in many ways even nicer than C++.

The Swift team is also investing heavily in C++ interop, which means there's a real path to incremental adoption, not just gigantic rewrites.

Strong ties to Apple?

Swift has historically been strongly tied to Apple and their platforms, but in the last year, there's been a push for "swiftlang" to become more independent. (It's now in a separate GitHub org, no longer in "apple", for example).

Support for non-Apple platforms is also improving, as is the support for other, LSP-based development environments.

What happens next?

We aren't able to start using it just yet, as the current release of Swift ships with a version of Clang that's too old to grok our existing C++ codebase. But when Swift 6 comes out of beta this fall, we will begin using it!

No language is perfect, and there are a lot of things here that we don't know yet. I'm not aware of anyone doing browser engine stuff in Swift before, so we'll probably end up with feedback for the Swift team as well.

I'm super excited about this! We must steer Ladybird towards memory safety, and the first step is selecting a successor language that we can begin adopting very soon. ๐Ÿค“๐Ÿž

you are viewing a single comment's thread
view the rest of the comments
[-] mke@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

My idiology diverges significantly from the lemmy devs, but here we are.

Would you be willing to elaborate on why that's relevant here? As in, what do you mean by this?

Because Lemmy and Ladybird are wildly different projects, tackling completely different issues, and consequently users interact with them and their developers in very different ways. To put it a little bluntly, I think that observation sounds insightful, but it's just silly when you dig deeper. I'd rather not waste time writing entire paragraphs based on an assumption of what you meant, though.

And I don't know about you, but I'm keeping my eye on Sublinks. I appreciate Lemmy as a piece of software, but it doesn't have my undying loyalty merely because I created an account on it, nor are it and its developers immune to my criticism just because I use it.

Edit: I'm worried that I might've been rude in my first 2 paragraphs. Sorry if it came across that way. To clear things up: I'm genuinely asking what's the idea behind your comment, because I could see it being several things and I don't want to have to answer all of them, or risk answering the wrong one.

[-] fine_sandy_bottom@lemmy.federate.cc 11 points 3 months ago

I'm strongly opposed to the lemmy devs political and social views, yet I'm happily using the platform they developed.

I'm not quite sure how I can be clearer?

[-] mke@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

I got that, but what point were you trying to make, exactly?

For example, the following are possible non-exclusive interpretations to my perspective:

  • It's possible to use Ladybird without agreeing with Andreas' views.
  • It's possible to use any software without agreeing with developers' views.
  • It's possible to use Ladybird without supporting Andreas' views.
  • It's possible to use any software without supporting developers' views.
  • It's unnecessary to bring up Andreas' views when discussing Ladybird.
  • It's unnecessary to bring up developers' views when discussing any software.

These may be similar and/or related, but are not the same, and so I would answer them differently.

[-] bombadil@programming.dev 4 points 3 months ago

Not everyone thinks it is unnecessary or impossible to not bring up/separate Andreas' views from the project.

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)
this post was submitted on 12 Aug 2024
165 points (92.7% liked)

Programming

17314 readers
152 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS