Seems like an interesting effort. A developer is building an alternative Java-based backend to Lemmy’s Rust-based one, with the goal of building in a handful of different features. The dev is looking at using this compatibility to migrate their instance over to the new platform, while allowing the community to use their apps of choice.

    • loutr@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      8 months ago

      Because modern Java is an OK language with a great ecosystem to quickly build web backends. And there are lots of java devs which means more potential contributors.

      • Fudoshin ️🏳️‍🌈@feddit.uk
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 months ago

        Hello world in Java = 500 lines of code.

        Hello world in Rust = 3 lines of code.

        Java is over-engineered corporate bullshit used by banks and Android development. Nobody programs Java for the fun of it.

        • BURN@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          Hello World is < 10 lines in Java. Just say you don’t know the language and go away.

          Java runs the majority of corporate software out there, and it is very good at what it’s built for.

          I’ll take Java over Python/Rust any day of the week

      • 0x1C3B00DA@kbin.social
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        Exactly. It’s also using Spring Boot, Hibernate, and Lombok. It looks just like projects at work. It might be the first fediverse project I contribute regularly to.

        • Fudoshin ️🏳️‍🌈@feddit.uk
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          Spring Boot, Hibernate, and Lombok

          Ah, yes. How about he kitchen sink and another 5000 dependencies to make Java bareable to code in? Actually lets skip Java cos it’s an over-engineered cluster-fuck that considers verbosity a virtue.

        • BURN@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          +1 same

          I tried to contribute to Lemmy, spent a few hours really confused by rust and gave up. I can meaningfully contribute to a Java/Spring project, not a rust one.

        • Rooki@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          If you say the function should only recieve one argument and returns always boolean. It is predictable to only allow the wanted args and forces you to return a boolean.

          For example in a less predictable programming language e.g. Python: I can do all above but python does not stop anyone to put more or less arguments to a function, or a developer not adding typehints or not complying to them and return a string instead of a boolean.

          But i had it wrong rust is similar to java on that part.

          But still it is a lot more popular and easier to start with. So there will be a lot more contributor to sublinks than lemmy ever had.

          • mea_rah@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            8 months ago

            Well in that sense Rust is even more predictable than Java. In Java you can always get back exception that bubbled up the stack. Rust function would in that case return Result that you need to handle somehow before getting the value.

            • Rooki@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              8 months ago

              That i dont understand? How can it be a result that i need to handle? If its not correct than java will throw an error. ( As expected, shit in shit out )

    • kaffiene@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      It’s probably got the best library/tooling ecosystem of any language out there. Certainly dwarfs Rust in that regard. Easier to find devs. Reasonably efficient thou not as much as Rust and typically less memory efficient. It’s a perfectly good suggestion for a project like Lemmy. I’d reach for Java or Go before Rust for a project like this but you know, that’s just me.