The Abstract Wikipedia team is working toward a rewrite of our backend services in a different programming language, likely Rust. Node/JS has served us well, but we have run up against some [WebAssembly System Interface] limits that would be best dealt with by switching to a different ecosystem.

  • setVeryLoud(true);
    link
    fedilink
    12
    edit-2
    19 days ago

    Node.js is really not a bad backend language, since it’s JIT, it’s actually faster than Python and Java in most cases.

    Rust will definitely have the advantage of being a compiled language though.

    Source: I write both Java and TS backend code, have done benchmarks.

    • AatubeOP
      link
      fedilink
      819 days ago

      Somehow, it feels horrifying to use something that high-level for the backend, especially when MediaWiki has so much PHP and the WMF has so many PHP programmers. Maybe my adolescent arse is getting old…

        • @elrik
          link
          English
          8
          edit-2
          19 days ago

          Calculating the digits of pi seems like a poor benchmark for comparing various languages in the context of backend web application performance. Even the GitHub readme points out the benchmark is entirely focused on floating point performance.

          • setVeryLoud(true);
            link
            fedilink
            3
            edit-2
            19 days ago

            Absolutely, it’s just one aspect of it, benchmarks are always narrow in scope. Some languages may be good at some things and worse at others.

    • @4z01235
      link
      619 days ago

      since it’s JIT, it’s actually faster than Python and Java in most cases.

      Java is JIT’d too, and Python can be depending on which runtime you deploy.

      • setVeryLoud(true);
        link
        fedilink
        219 days ago

        True, I didn’t structure my sentence correctly.

        It gets to compete with Java and Python because it’s also JIT is what I meant to say.