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. 🤓🐞

      • Matriks404@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        3 months ago

        Weird fascist tech bro

        What the hell are you talking about? I have been following Andreas for few years already and in no way he is fascist, in fact he is one of the most wholesome people around that I know of.

        • mke@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          3 months ago

          Your comment convinced me to finally take a look at his profile and see what the fuss is about.

          I didn’t see anything that’d make me scream fascism, either.

          But there’s definitely stuff that’s off. Things that, in isolation, would be one thing, but when you analyze them all together, it wouldn’t be weird to say there’s a pattern. A picture starts to form, and it’s one that I’ve sadly seen many times before.

          So I went back and grabbed a few tweets:

          I barely had to scroll to find these, they’re all recent. There’s much more.

          Individually, you could dismiss everything. It’s just humor. He’s neutral. Objective. Wholesome. But then, why does he keep hitting the same keys? You’d assume a wholesome centrist would have a little more variety in their stand-up routine.

          You know what he reminds me of, after reading so many of his tweets?

          People who dress up in a veneer of positivity, but you ask them what they think is negative, and they’ll say things like raising awareness of LGBT issues. Not in those words, of course, because that’s not positive. When they talk about it, they’ll put on this show about how they don’t take sides, and how they’re simply worried about the technical discussion, the actually important stuff, you know? They simply don’t like unhelpful noise, things like trying to foster an inclusive community.

          It’s easy to seem like a positive figure when you never properly acknowledge any criticism. Position yourself as a factual, neutral voice of objectivity, even when that’s literally impossible. Paint those who disagree as non-contributing, unproductive, negative noise-makers. Say you agree with people on topics they care about, but then turn around and tell them they’re all doing it wrong. Cover it all up in emoji and a “Let’s do it together!” attitude, but reject anyone who reaches out with the wrong greeting.

          And there you have it, Andreas reads like a man who’s either lying to himself or to others, and I don’t know which is worse.

          I went into this thinking, “I have to avoid baselessly criticizing people. There’s surely nuance to this man’s real beliefs, people on the internet are too quick to attack without evidence.” Which is why I’m honestly surprised to say that I came out with a mildly worse opinion of Andreas than when I started. What the hell.

          I sincerely hope he can reflect on his behavior and grow out of this strange mindset. Andreas seems to be a great software developer and Ladybird can be an enormous boon for the web, so it hurts to see him acting this way.


          Again, I genuinely don’t think he’s on Twitter because he’s a “weird fascist tech bro” who likes a fascist platform (what is even meant by weird?). I find it more probable that he’s comfortable there, realizes that it’s not going anywhere, that it remains the most popular platform, and therefore doesn’t think Mastodon is worth the effort.

          Why he’s so comfortable there and doesn’t like Mastodon is worth thinking about, though.

          • LeFantome@programming.dev
            link
            fedilink
            arrow-up
            0
            arrow-down
            1
            ·
            edit-2
            3 months ago

            This is literally the text from one of the links above that assert that Andreas is a fascist:

            “I’m doing my best to build something I believe in, and everyone is welcome to participate as long as we can set our differences aside. 🤓

            I cannot imagine how lopsided your world-view needs to be to interpret this kind of neutrality as “fascist”.

            The only conclusion that I can draw is that some people are so polarized ( black and white ) that they can only interpret people that are not “with” them as “against” them.

            And to clarify “with” above means “shares my extreme views and expectations”.

            If that is true, it is tragically sad.

            • mke@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              3 months ago

              Where did you read me state he’s a fascist, when I literally said the opposite?

              I genuinely don’t think he’s on Twitter because he’s a “weird fascist tech bro”

              And I explained, in depth, why we can’t simply reduce who someone is to their words. You need to look at their actions. Saying “look at his sweet message! How can anyone think ill of him?” is not the argument you think it is. From history books to modern media, we know countless people whose words are nice, when their actions are anything but.

              they can only interpret people that are not “with” them as “against” them.

              And to clarify “with” above means “shares my extreme views and expectations”.

              Can you tell me exactly which extreme views and expectations I expressed?

              I’ll be blunt, it doesn’t look like you bothered to read my entire comment before replying.

              P.S. Twitter uses their own set of emoji that are actually images instead of Unicode, and it seems you pasted the image in your comment. I suggest replacing it for 🤓 or removing it, because it’s likely oversized in some Lemmy UIs.

  • masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Really feels like a mistake. No major language exists without a major benefactor supporting it, and Swift’s only benefactor has zero interest in cross platform anything.

    Good luck 5 years from now when cross platform Swift has gone the way of cross platform Safari.

    • Tekhne@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      Actually, this isn’t true. Apple has a vested interest in cross platform Swift. They’ve been pushing hard for Swift on Linux because they want Swift to run on servers, and they’re right to. Look at how hard JavaScript dominates on the server-side because of one language everywhere.

  • mke@lemmy.world
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    3 months ago

    I know some folks think this is annoying, but once again, note that if you’re the kind of user who shuns Brave because the CEO does stupid shit every once in a while, you’ll probably not look fondly upon Ladybird’s project lead and main developer being scared of pronouns.

    See this issue on github.

    If you don’t care about that, it’s an interesting project. Can’t say I approve, though.

    Posting this to inform people and let each one decide what to do on their own. Don’t harass anyone, please.

      • mke@lemmy.world
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        edit-2
        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
          link
          fedilink
          arrow-up
          1
          ·
          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
            link
            fedilink
            arrow-up
            0
            arrow-down
            1
            ·
            edit-2
            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.

            • fine_sandy_bottom@lemmy.federate.cc
              link
              fedilink
              arrow-up
              1
              ·
              3 months ago

              I don’t think I’m really making any of those points in isolation, but I think probably the first.

              It’s possible to acknowledge that I don’t agree with the views of the devs while using their software, but it does create a kind of tension that I would avoid if a viable alternative existed.

              The views of devs are relevant to my decision whether or not to use whatever software, but they’re not solely determinant.

              Similarly, I prefer open source software and will always seek it out and when comparing alternatives I heavily weight open source as an advantage. That said, I do still use some microsoft software (notably microsoft teams) for a variety of reasons.