• Kusimulkku@lemm.ee
    link
    fedilink
    arrow-up
    24
    ·
    6 hours ago

    Not only C++ but also Swift, which just feels strange

    Why build a new browser in C++ when safer and more modern languages are available?

    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.

    • killeronthecorner@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      4 hours ago

      Swift is a pretty fully fledged systems language at this point … however, it’s far from tried and tested for use cases like this and cross platform support is still garbage, so still a pretty questionable choice.