• TheTechnician27@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    5 months ago

    If this is a dig at Lemmy, Lemmy uses Rust. You’d know that’s a popular language if you’ve kept up with programming news anytime in the last 5 years.

    • OpenStars@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      5 months ago
      1. 59% (edit: 58% apparently) vs. 15% but who’s counting, right?

      chart

      - source, for 2025

      1. it’s less about the language than the choice to be welcome to contributors - especially older people who have more free time to devote to unpaid volunteer development, rather than younger people who know Rust but are already working 2-3 jobs

      2. more to the point it’s meant in fun :-P

      • calliope@retrolemmy.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        5 months ago

        If it’s Python, that’s 58%. SQL is 59% and I would be pretty surprised if piefed is pure SQL

        it’s less about the language than the choice to be welcome to contributors - especially older people who have more free time to devote to unpaid volunteer development, rather than younger people who know Rust but are already working 2-3 jobs

        This reasoning is really bizarre, btw. Never once heard of someone choosing software because it appealed to older developers.

        I’m an older developer. Rust seems so much more interesting to me than yet another python service. Oh boy is it Django??

        • mesa@piefed.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          5 months ago

          Piefed is flask + python. Its very easy to read in my opinion. Very boring code. I knew nothing about it but threw a PR in there just for fun.

          Django is my goto for personal projects too. And at work we use fastapi. They all kinda blend together now in 2025/26.

          Personally I stopped caring about languages a decade into my career. As long as its boring and standard-ish, I’m happy. If it takes me a ton of time getting every dependency under the sun, the project is unstable/constantly breaking, and/or requires me a degree to even look at it, then im not going to contribute.

          Lemmy is harder to read as a project than piefed. But both are good. Its not a “vs” we should just let both communities do their thing and be happy someone on their weekends wants to support our sorry asses.

    • AudaciousArmadillo@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      Notice how the OP specifically said well-known and widely used. Yes Rust is currently cool, but way way more people can actually work productively with Python.

      • Korne127@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        Wait… PieFed uses Python? Holy shit… as someone who regularly uses both, Rust is such a better fit for something like this on this scale. That’s actually one of the best arguments I’ve heard against PieFed

      • Shatur@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        I think for a large project Rust should be easier to manage in the long run.

      • TheTechnician27@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        5 months ago

        Notice how the OP specifically said well-known and widely used.

        I did notice. If Rust isn’t “widely used”, then I’ll need to let Apple, Microsoft, Google, Amazon, Mozilla, Huawei, Meta, the Linux kernel devs, and a fuckload of open-source projects know that they actually don’t exist.

        It’s plently widely used, and unlike a scripting language (edit: Python), it’s performant – as server software should be. Rust is not a hard language to use or learn either, and it’s great for large projects.

        • Jerkface (any/all)@lemmy.ca
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 months ago

          I’ve learned dozens of languages over 40 years. Rust is one of the hardest I have tried to use for serious projects. It introduces completely new concepts that need to be deeply understood to be productive. It’s also one of the most convenient, well-tooled, and expressive languages I’ve used. But c’mon, as languages go, Rust is deep into BDSM territory.

          • TheTechnician27@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            5 months ago

            As someone who routinely works on a complicated C++ codebase, had to use C, Python, and Java all the time through school, has had to use absolute trash like JavaScript and PHP, and has dabbled in languages similar-ish to Rust like Go and Swift, Rust to me is simple to work with.

            The compiler is extremely helpful when I do something wrong, it has sensible conventions like immutability by default, Cargo is a streamlined build system, I’ve found the documentation easy to read, I actually prefer curly brace-delimited scopes to tabbed ones and explicit type declarations for readability, and in the obvious comparison to C/C++, Rust lacks extremely common memory footguns.

            Obviously compared to Python – with its mountain of syntax sugar and a library for everything – Rust is going to be more difficult. But for languages in general? Rust is not at all one of the harder ones I’ve learned or used.

            (Btw I hate Java; it’s the worst language I’ve ever used.)

            • Jerkface (any/all)@lemmy.ca
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              5 months ago

              How many times have you spent an entire day not moving forward on a project because you couldn’t figure out what the borrow checker was trying to tell you? Maybe you’re just a 10X developer. I feel quite qualified to inform you that for we mere mortals, Rust can very fairly be described as a relatively hard language.

              Rust has completely unique paradigms not expressed in any other language! Things that no one coming to Rust has prior experience with. If you cannot admit that makes it harder than some random language that just fucks with syntax, …dude

        • r4venw@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 months ago

          While I agree with the general sentiment, scripting languages are perfectly fine to use for server software. Would you call hackernews slow? Its been running on lisp (originally Arc, now common lisp) for its entire existence. Another fun example of popular interpreter is, y’know, the JVM.

          • pet the cat, walk the dog@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            5 months ago

            Common Lisp could be compiled, so not the best example.

            Lua is a way better example, since Lua scripts often finish in the time it takes Python to get going at all. And that’s with interpreted Lua, without JIT. I once straight up had to recheck if I left the dummy static output in there instead of calling my script, because the result was appearing instantly.

            There’s also Fennel, a Lisp compiled to Lua on the fly. Since Lua is so snappy, the compilation overhead is unnoticeable.

            • Rimu@piefed.social
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              5 months ago

              Performance is an attractive metric because it’s something you can put a number on. It’s measurable, so comparisons are easy.

              But there are so many other metrics that are more important.

              Still, https://leafo.net/lapis/ looks like something I’d like to try sometime. I don’t know anything about the Lua web framework ecosystem, that’s just the first search result I found. Do you have any recommendations?

              • pet the cat, walk the dog@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                edit-2
                5 months ago

                I’m more familiar with Lua for desktop scripting — I’m using it whenever I can, if it’s something that’s more than like three lines in Bash and the Lua libraries aren’t too bad. I’m even using it on the phone when dragging around blocks in Automate becomes too much (its minuscule footprint comes handy there). There’s also the excellent automation app Hammerspoon for Mac, which uses Lua for its scripting.

                I’ve been vaguely looking now and then into using it for web in the manner of node.js, with asynchrony being handled on the Lua side — but was offput by the fact that many popular Luarocks libraries presumed synchronous workings, and async requires installing different libs if they even exist. Node has it better since the libs were developed to be async from the start. Iirc Luvit is what I was looking at, there are both libs and some kinda frameworks for it.

                OpenResty and frameworks for it like Lapis could be the better way to go. Nginx is pretty much mandatory anyway, and afaiu synchronous libs can be used then, leaving it to Nginx to chuck requests into multiple Lua threads. A drawback is that LuaJIT, used in Resty, still supports only Lua 5.1 features, which is pretty damn old.

                I haven’t looked into Lua for web in a few years, but since apparently nothing like Hammerspoon with its built-in http server exists for Linux, I’ll need to pick it up again, just to do some custom remote control from the phone.

    • Mika@piefed.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      Rust is a good low level language. I’m not sure if it fits this species task the best.

    • FluidBeef@quokk.au
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      It’s not popular if you rate it by actual usage, which is probably more meaningful than it seeming kind of cool.

      • corsicanguppy@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        if you rate it by actual usage, which is probably more meaningful

        I can see those goalposts move right before my eyes!

        I have no dog in this fight - flame away - but I’m offended by the sparkle-junkies calling [arbitrary non-rust language] old on a daily basis and somehow deciding some arbitrary measure of popular+shiny is a replacement for ‘good’ in some bizarre idiocratic glorification of naïveté .

        • The D Quuuuuill@slrpnk.net
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 months ago

          the comment you’re replying to is saying python, the old less shiny language, is more well known and more widely used by a larger number of developers than rust, the original stinger of the meme. that’s not the goalposts moving. that’s the goalposts being planted firmly at the 100 yard line like how they are in Canadian football