Today I learned about Sublinks (here), an open-source project that aims to be a drop-in replacement for the backend of Lemmy, a federated link aggregator and microblogging platform. Sublinks is designed to be initially API-compatible with Lemmy, allowing existing Lemmy clients, such as Lemmy-UI, to integrate seamlessly.

The project is written in Java, which may introduce some overhead but is chosen for its maintainability and familiarity among a wider pool of developers. The Sublinks team prioritizes a more inclusive and less toxic development environment, and the project has already attracted more developers than Lemmy.

While Sublinks is starting with 1:1 compatibility, future plans include implementing additional features that the Lemmy developers have not pursued. This could lead to a divergence in functionality between the two platforms as Sublinks evolves beyond its initial compatibility phase.


README

GitHub stars GitHub tag (latest SemVer) gradle workflow GitHub issues License

Sublinks

A decentralized, censorship-resistant, and privacy-preserving social network.

About

Sublinks, crafted using Java Spring Boot, stands as a state-of-the-art link aggregation and microblogging platform, reminiscent yet advanced compared to Lemmy & Kbin. It features a Lemmy compatible API, allowing for seamless integration and migration for existing Lemmy users. Unique to Sublinks are its enhanced moderation tools, tailored to provide a safe and manageable online community space. Embracing the fediverse, it supports the ActivityPub protocol, enabling interoperability with a wide range of social platforms. Sublinks is not just a platform; it’s a community-centric ecosystem, prioritizing user experience, content authenticity, and networked social interaction.

Features

  • Open source, MIT License.
  • Self hostable, easy to deploy.
  • Clean, mobile-friendly interface.
    • Only a minimum of a username and password is required to sign up!
    • User avatar support.
    • Live-updating Comment threads.
    • Full vote scores (+/-) like old Reddit.
    • Themes, including light, dark, and solarized.
    • Emojis with autocomplete support. Start typing :
    • User tagging using @, Community tagging using !.
    • Integrated image uploading in both posts and comments.
    • A post can consist of a title and any combination of self text, a URL, or nothing else.
    • Notifications, on comment replies and when you’re tagged.
      • Notifications can be sent via email.
      • Private messaging support.
    • i18n / internationalization support.
    • RSS / Atom feeds for All, Subscribed, Inbox, User, and Community.
  • Cross-posting support.
    • A similar post search when creating new posts. Great for question / answer communities.
  • Moderation abilities.
    • Public Moderation Logs.
    • Can sticky posts to the top of communities.
    • Both site admins, and community moderators, who can appoint other moderators.
    • Can lock, remove, and restore posts and comments.
    • Can ban and unban users from communities and the site.
    • Can transfer site and communities to others.
  • Can fully erase your data, replacing all posts and comments.
  • NSFW post / community support.
  • High performance.

Contact

Contributing

Support / Donate

Sublinks is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project.

  • Mwalimu@baraza.africa
    link
    fedilink
    English
    arrow-up
    94
    arrow-down
    4
    ·
    8 months ago

    Something feels off with this post. It comes off as “we are better than Lemmy” as if there is any competition and awards to be won. To say Lemmy’s development is “toxic” and this project is “more inclusive and less toxic” without backing it up with evidence is unfair.

      • nutomic@lemmy.ml
        link
        fedilink
        English
        arrow-up
        27
        arrow-down
        2
        ·
        8 months ago

        I see that comment but somehow cant fetch it from lemmy.ml. Would you mind asking what exactly they mean by “toxic development community”? Its honestly the first time I heard something like this about Lemmy.

        • SorteKanin@feddit.dk
          link
          fedilink
          English
          arrow-up
          22
          ·
          8 months ago

          what exactly they mean by “toxic development community”?

          I’m not sure exactly what they mean by it either, but I do think Lemmy could do more to be welcoming to more outside contributors. It would probably also be a better use of your time - to scale Lemmy development, it would be better to spend time recruiting and training contributors rather than just spend all your own time coding. You (the main two devs) know the code better than anyone else. It would be great use of your time to spread that knowledge to more contributors.

          Sublinks for instance also uses the GitHub projects as a kind of publicly viewable backlog of issues and a roadmap. I think especially a roadmap is something a lot of users would like for Lemmy as well. It would be good use of your time to produce a roadmap of some kind. Doesn’t have to be on GitHub obviously, but just any kind of roadmap.

          • nutomic@lemmy.ml
            link
            fedilink
            English
            arrow-up
            19
            arrow-down
            1
            ·
            8 months ago

            Sure being more welcoming to outside contributors sounds good. Do you have any concrete suggestions how to recruit and train them? We do have some community contributors, but they seem very limited by the amount of time they have for Lemmy after their fulltime job.

            Once the new round of NLnet funding is finalized we will publish those milestones. However Im not sure if a backlog like the one you linked is really helpful, it would take a significant amount of time to manage for little benefit. After all every open issue on the Lemmy Github is up for grabs for anyone to implement it.

            • ChasingEnigma@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              26
              ·
              edit-2
              8 months ago

              Here are some suggestions for how to encourage more outside contributions:

              • Create an ARCHITECTURE.md document explaining the overall architecture and different components of Lemmy. This would help new contributors quickly familiarize themselves with the codebase.
              • Publish a public roadmap with milestones and release plans. This gets people excited about the project’s direction and motivates them to contribute.
              • Nightly builds enable contributors to test upcoming changes, offer feedback, stay actively involved in the project’s progress, iterate quickly on improvements, and foster a culture of continuous improvement.
              • Implement a bounty system for critical or challenging issues to incentivize contributions. Some people who don’t want to contribute with a monthly subscription may prefer this kind of contribution.
              • Create project swag (stickers, t-shirts, etc.) and distribute it to active contributors as a token of appreciation.
              • Institute a “Lemmy contributor mentorship or apprenticeship” program where experienced developers formally take up 1-2 promising new contributors under their wing. This would be modeled after the Sith/Jedi master-apprentice relationship where knowledge and skills are passed down. Later when the apprentice has managed to develop a few issues by themselves they can take some apprentices.
                The concept of more experienced contributors working with newcomers to develop features in a FOSS (Free and Open Source Software) project is commonly referred to as “mentorship” or “pair programming.” In pair programming, two programmers work together at one workstation, with one writing code while the other reviews each line of code as it is typed in. The roles can switch frequently, and this method is known to enhance knowledge sharing, code quality, and team bonding. Beyond pair programming, establish a structured mentorship program where experienced contributors can mentor newcomers on a one-on-one basis.
              • Live or recorded screencasts solving issues, similar to mentorships but instead of one-on-one it allows more people to feel engaged in the development process, and provide feedback in the case of live streams.
              • Host discussions about issues on Lemmy itself, as suggested in the blog post below. The voting and threads with nested comments make it easier to have productive conversations compared to GitHub. The community is here so you’ll get more contributions right away in the form of ideas and feedback.
                Update from Lemmy after the Reddit blackout
                spoiler

                At the moment we are urgently working to solve major issues, such as optimizing slow database queries, ripping out the inefficient websocket API, and fixing a major security vulnerability (big thanks to deadcade). In addition we suddenly have to manage dozens of pull requests. To give us time to work on these priorities, it would be very beneficial if users could refrain from interacting with issue trackers when possible. Before opening an issue, make sure that it hasn’t been reported before. And when writing comments, make sure that they actually contribute to solving the issue at hand. Generally it is better to move discussions to Lemmy if possible. We are very thankful to everyone who contributes by writing code, hosting instances, moderating communities, and answering questions.

                At the same time, we are seeing lots of requests to implement major new features, such as migration between instances, or combining similar communities. As described above, we are completely overloaded with work, and definitely won’t have time to implement these in the near future. If there is a feature you want to see implemented, you will likely need to work on it yourself, or find someone who can.

              Of course you have more experience working on a big project so take this with a grain of salt.

              • nutomic@lemmy.ml
                link
                fedilink
                English
                arrow-up
                15
                ·
                8 months ago

                Thanks for the suggestions!

                Create an ARCHITECTURE.md document explaining the overall architecture and different components of Lemmy. This would help new contributors quickly familiarize themselves with the codebase.

                The documentation has some info about the architecture as well as how to start contributing. Is there anything particular missing, or do people not find these docs?

                Publish a public roadmap with milestones and release plans. This gets people excited about the project’s direction and motivates them to contribute.

                As mentioned in the other comment, we will have a public roadmap once the NLnet milestones are finalized. Other than that the issues are up for grabs for anyone, so Im not sure what sense it would make to give them priorities.

                Nightly builds enable contributors to test upcoming changes, offer feedback, stay actively involved in the project’s progress, iterate quickly on improvements, and foster a culture of continuous improvement.

                These are available as :dev Docker images, and deployed to test servers at enterprise.lemmy.ml etc. Maybe this should be documented somewhere to let people know?

                Implement a bounty system for critical or challenging issues to incentivize contributions. Some people who don’t want to contribute with a monthly subscription may prefer this kind of contribution.

                Bounty systems dont work well in my experience. Usually the reward is too low to pay an actual dev salary, and then its still a hassle to get the money into your bank account. Plus there is no gurantee to get paid for your work, its always possible that someone else submits a solution just before you finish yours.

                Create project swag (stickers, t-shirts, etc.) and distribute it to active contributors as a token of appreciation.

                Good idea, though we dont really have the funds to pay for that. It was also suggested to sell swag to earn money for Lemmy, but havent gotten around to that yet. Do you by chance any good company to produce and sell this?

                Institute a “Lemmy contributor mentorship or apprenticeship” program where experienced developers formally take up 1-2 promising new contributors under their wing.

                Well if anyone opens a pull request we give feedback as part of the review process. And if anyone has questions we also answer them in the issue tracker or on Matrix. But in practice there seems to be little demand in this regard.

                Live or recorded screencasts solving issues, similar to mentorships but instead of one-on-one it allows more people to feel engaged in the development process, and provide feedback in the case of live streams.

                That seems to get more into entertainment, not what we want to do.

                Host discussions about issues on Lemmy itself, as suggested in the blog post below. The voting and threads with nested comments make it easier to have productive conversations compared to GitHub. The community is here so you’ll get more contributions right away in the form of ideas and feedback.

                We do have biweekly dev updates which are somewhat related. But discussing individual issues here would likely duplicate discussions from Github issues.

                • SorteKanin@feddit.dk
                  link
                  fedilink
                  English
                  arrow-up
                  13
                  ·
                  8 months ago

                  The documentation has some info about the architecture as well as how to start contributing. Is there anything particular missing, or do people not find these docs?

                  That is a very short description. It doesn’t really go into details of critical modules, how things are built and setup, what important libraries are used etc. I would expect such docs to be longer and more detailed to make it easier to get an introduction to the code. I would expect each repository to have its own detailed ARCHITECTURE.md - the Lemmy backend is much too large to describe in just a few sentences.

                  And yea producing and maintaining that kind of documentation isn’t “glorious” work and probably not particularly fun either - but I do think it’s a good way to spend your time, and the people donating do want you to spend your time on the highest impact possible obviously.

                  Well if anyone opens a pull request we give feedback as part of the review process. And if anyone has questions we also answer them in the issue tracker or on Matrix. But in practice there seems to be little demand in this regard.

                  I don’t think just waiting for contributors to pop up is going to work. You’re right, there is little demand - or more likely, people don’t know where to start or what to do. My suggestion would be to actively advertise a mentorship that people can sign up for and then choose someone from the lot of applicants. Actually dedicate hours to train and mentor the new contributor to be familiar with the code base. Being passive in this case won’t attract anyone - you need to be proactive. (that is my 2 cents at least)

            • SorteKanin@feddit.dk
              link
              fedilink
              English
              arrow-up
              14
              ·
              8 months ago

              Once the new round of NLnet funding is finalized we will publish those milestones.

              That sounds great :)

              Im not sure if a backlog like the one you linked is really helpful

              I think the GitHub issue tracker that you’re already using is plenty as a backlog. The more important part was the road map.

              Do you have any concrete suggestions how to recruit and train them?

              It’s a good question. I would recommend taking a look at the Bevy game engine project. They’ve had a success story with lots of contributors and they also use Rust. Obviously they have it easy because game development is something a lot of people are passionate about while online forums aren’t as hot… But still, I think they’ve done some really good stuff and it seems like a really well-managed open source project.

              One of the bevy project managers did a talk at RustConf 2022 that I’d recommend watching: https://youtu.be/u3PJaiSpbmc?si=AtdmdalfFidWOJYq

              • nutomic@lemmy.ml
                link
                fedilink
                English
                arrow-up
                7
                ·
                8 months ago

                Yes Bevy has a big advantage because its a library, so everyone who uses it is a developer and is able to fix minor issues. In case of Lemmy only a small fraction of users are developers, and even less know Rust. I watched the video, but its not easy to take concrete suggestions and apply them to Lemmy. Maybe the community reviews for PRs would be a good idea to get people familiar with the codebase. It also mentions using a project board so we should consider that. Though Im not sure how to select issues for each milestone because again, everything is up for grabs.

                • AtmaJnana@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  8 months ago

                  even less know Rust.

                  Hmm. If only there were a way the developers who already know another popular language could contribute to help the community. I suppose someone could make a Lemmy -compatible server in another, more popular language. Nah, that’s crazy talk.

        • SorteKanin@feddit.dk
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 months ago

          Would you mind asking what exactly they mean by “toxic development community”? Its honestly the first time I heard something like this about Lemmy.

          Okay so I wasn’t sure before but I think this issue might be a good example: https://github.com/LemmyNet/lemmy/issues/4433

          Yours and dessalines comments all come across as defensive or dismissive. The comments make it sound like you are more interested in dismissing the bug than actually acknowledging it.

          This is definitely not a way to approach a bug report. You need to be much more understanding of bug reports (especially ones as serious as this one) and display a willingness to fix things, and follow through with it.

          I don’t think Lemmy will work out in the long term if this kind of attitude continues.

      • loki@lemmy.ml
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        8 months ago

        It seems like they’re trying to appeal to admin/users who despise where the developers of Lemmy come from and make them move away from Lemmy to their codebase.

        Their “United States of Amewrica” on their github seems all too intentional.

        But options are always good because the fediverse is all about options. If Lemmy gets too controversial, instance admins can hopefully move over to sublinks without losing functionality.

    • crossmr@kbin.social
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      8 months ago

      There is a reason the original sub on reddit had the rules it did, it was to avoid posts like this.

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        18
        arrow-down
        2
        ·
        edit-2
        8 months ago

        Rust is rapidly gaining popularity and it’s popular with the type of people who would use Lemmy. There aren’t contributors because there aren’t many users.

        Though like you said, time will tell

        • Rooki@lemmy.worldM
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          16
          ·
          8 months ago

          For me i dont see any gains in popularity. Java IS popular right now, not in 10 years. Java is mature enough.

          • Nate Cox@programming.dev
            link
            fedilink
            English
            arrow-up
            14
            arrow-down
            3
            ·
            8 months ago

            It’s cool to like Java, I’m not hating on it, but it’s just silly to pretend that Rust isn’t popular today.

            Rust is used in fewer corporate environments, no doubt there, the Java inertia is strong… but a glance at any moderately recent dev survey should indicate pretty clearly that Rust is on a lot of devs minds and is well received.

            • Blaze@reddthat.com
              link
              fedilink
              English
              arrow-up
              7
              arrow-down
              6
              ·
              8 months ago

              Then how do you explain there is no major contributor to Lemmy besides the two main devs?

              • Nate Cox@programming.dev
                link
                fedilink
                English
                arrow-up
                11
                arrow-down
                1
                ·
                8 months ago

                Well, for one thing federated message boards are incredibly niche to start with, and the pool of people willing to work on one for free in their spare time is bound to be tiny aside from language concerns. I know we all want the fediverse to be the hot thing that everyone uses, but that ain’t reality.

                I’m not exactly seeing a massive contributor pool for sublinks here either.

              • SorteKanin@feddit.dk
                link
                fedilink
                English
                arrow-up
                7
                arrow-down
                1
                ·
                edit-2
                8 months ago

                At the scale of having a handful of contributors, it’s more likely random variance than due to the language you’ve chosen. The sample size is simply too small.

                I can speak for myself - I know Rust very well but I simply don’t have the time to contribute to Lemmy’s code (I’m also spending some time already being an admin for Feddit.dk and I feel that is all I can muster).

                Getting contributors to open source projects is never easy, regardless of programming language.

                But I mean… there is no problem with competition right. Maybe it’ll turn out that sublinks will have more development with more contributors. But it has yet to be shown, there are also only 1 or 2 developers working on sublinks at the moment, if you check the github contributor stats.

              • AlexWIWA@lemmy.ml
                link
                fedilink
                English
                arrow-up
                4
                arrow-down
                1
                ·
                8 months ago

                Because people only contribute to projects they care about, can get clout from, or use and want to fix something that’s bugging them. Lemmy is just too niche right now.

                If in five years there’s still just the two devs then you may gloat and tell me I was wrong and I will accept the shame

            • Rooki@lemmy.worldM
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              3
              ·
              8 months ago

              Popular? Objective C is still popular and more demanded than Rust.

              • Nate Cox@programming.dev
                link
                fedilink
                English
                arrow-up
                10
                ·
                8 months ago

                Yep. The job market isn’t as strong for rust, which is what that chart is showing you. Corporate acceptance != popularity.

                Rust is #6 on the Stack Overflow developer survey in popularity. https://survey.stackoverflow.co/2023

                Again, I don’t know why the community is insisting on making this a dick measuring contest for languages. People love rust. People love Java. I know people who still love Perl. I know one guy who really seems to look fondly on his Fortran days. they’re all fine.

                Just be happy that someone is excited enough to write some code to make the fediverse a little more diverse and maybe cool.

                • Blaze@reddthat.com
                  link
                  fedilink
                  English
                  arrow-up
                  6
                  ·
                  8 months ago

                  Just be happy that someone is excited enough to write some code to make the fediverse a little more diverse and maybe cool.

                  Sounds like the most positive approach.

                  The thread from a month ago was really negative towards Java, it was surprisingly aggressive

                • Rooki@lemmy.worldM
                  link
                  fedilink
                  English
                  arrow-up
                  4
                  arrow-down
                  2
                  ·
                  8 months ago

                  Correct. But those accusations that java was a bad choice i just cant have it. This isnt “I love Rust” or “I love XYZ Programming language” it was “F*ck you for using java”.

      • Rooki@lemmy.worldM
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        10
        ·
        8 months ago

        In terms of maintainability its an upgrade. Can you read the code from the current lemmy as a non rust coder? no. Now look into any file in sublinks can you read that? Probably yes.

        Maintainability is gained too with the more possible contributors that have more knowledge about java and can improve more and more the code

        • SorteKanin@feddit.dk
          link
          fedilink
          English
          arrow-up
          16
          arrow-down
          4
          ·
          8 months ago

          Now look into any file in sublinks can you read that?

          No I can’t - I’m not a Java dev and I find Java to be insanely verbose honestly. I find Rust much more parseable.

          But seriously, debating readability of languages is such a subjective thing. What is not subjective is Rust’s reliability and static analysis.

          • Dark Arc@social.packetloss.gg
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            3
            ·
            8 months ago

            You don’t need any of that for a web server… There should be minimal state to synchronize between threads (the assignment of a request to a thread) all handled by your web framework. Asynchronous IO can be much more significant which you can do in both Rust and Java equally safely. I haven’t kept up but Java was working on a threading model that allows old school threads to act like fibers or real threads effectively allowing dumb parallelism to scale like crazy for blocking IO with minimal code changes as well.

            Java should be just as good if not better (by the nature of being a VM that doesn’t have unsafe blocks) when it comes to the memory safety side of things. Java also optimizes quite well for long running applications like web servers.

            It’s really not a bad language and it continues to get better.

            • SorteKanin@feddit.dk
              link
              fedilink
              English
              arrow-up
              4
              arrow-down
              2
              ·
              8 months ago

              You don’t need any of that for a web server

              I disagree - any software is better with more reliability. Static analysis becomes more and more important as the code base grows.

              Java should be just as good if not better (by the nature of being a VM that doesn’t have unsafe blocks) when it comes to the memory safety side of things. Java also optimizes quite well for long running applications like web servers.

              (Safe) Rust and Java are both memory safe. I don’t think any is better than the other in this aspect. Many projects use #[forbid(unsafe)] to make sure they only use safe Rust. Unsafe Rust is not necessary in 99.9% of cases, certainly never for a web server like Lemmy.

              It’s really not a bad language and it continues to get better.

              It’s subjective obviously. I don’t like it personally, some people do. To be fair I think there are worse languages out there - Python for instance. At least Java has static typing, which is nice. We’ll just have to wait and see what happens with the different fediverse forum implementations.

              • Dark Arc@social.packetloss.gg
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                1
                ·
                edit-2
                8 months ago

                any software is better with more reliability. Static analysis becomes more and more important as the code base grows.

                You’re saying static analysis and reliability like they’re things Rust objectively has that Java doesn’t.

                The only things Rust has at a fundamental level are a borrow checker and value types.

                Value types can be nice for performance in certain situations (which aren’t nearly as important for a web server as fibers/coroutines). The borrow checker is nice for threading (which isn’t an issue in a restful web server design as previously stated). That’s about it.

                (Safe) Rust and Java are both memory safe. I don’t think any is better than the other in this aspect.

                It’s not possible to write (memory) unsafe Java code. All Java code is memory safe. Most rust code is memory safe.

                Of course that’s not entirely true because of the possibility for bugs in the Rust compiler or the JVM.

                Java and Rust both can call out to C libraries as well which of course… You get what you get.

                Python for instance. At least Java has static typing

                Python can have static typing these days as well. It’s just optional and controlled by the project.

    • daddyjones@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      6
      ·
      8 months ago

      I disagree - Java seems like the ideal choice for this. I might be in the minority in that view, though. Java seems to get a lot of hate.

      • SorteKanin@feddit.dk
        link
        fedilink
        English
        arrow-up
        13
        arrow-down
        3
        ·
        8 months ago

        Java seems to get a lot of hate

        Well, lots of people don’t like it. Actually according to StackOverflow’s 2022 survey, more people who have used Java don’t want to keep using it than those who do want to keep using it (54% vs 46% roughly). So yea, you are in the minority in that way.

        Meanwhile Rust is well-liked by most people who use it (roughly 87%).

        • Dark Arc@social.packetloss.gg
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          2
          ·
          8 months ago

          Lots of people are taught a decades old version of Java as their only experience with the language in college.

          • SorteKanin@feddit.dk
            link
            fedilink
            English
            arrow-up
            5
            ·
            8 months ago

            That could be part of the explanation, but I don’t think it upweighs the ~40% difference between Java love and Rust love. That is quite a large gap.

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

              People who seek out rust are likely people who want to use rust. Java is still a huge player in enterprise dev, where a significant portion of active developers are. So not everyone using Java wants to use Java, but nearly everyone using rust wants to use rust.

              • SorteKanin@feddit.dk
                link
                fedilink
                English
                arrow-up
                2
                ·
                8 months ago

                I do think the developer experience with Rust is better in general though, so even if Rust was used elsewhere, it would still be liked more than Java, I would guess.

                But we won’t know who’s right for another 10 years maybe :P

            • Dark Arc@social.packetloss.gg
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              edit-2
              8 months ago

              I’d give it a few more years before announcing the death of all other languages in favor of Rust.

              Everything is tradeoffs and Rust is still quite new compared to Java, C++, or Python (all languages that continue to evolve). Stack overflow didn’t exist to run popularity contests when they were getting off the ground.

              The new big thing always becomes a bit … too big and gets applied to areas it really doesn’t help with.

          • AlexWIWA@lemmy.ml
            link
            fedilink
            English
            arrow-up
            5
            ·
            8 months ago

            My hottest take is that PHP isn’t that bad, it’s just that the PHP most people have worked with was written by a teenager in a week and somehow grew into a whole company that they now have to maintain.

            I loved cakephp.

          • masterspace@lemmy.ca
            link
            fedilink
            English
            arrow-up
            7
            arrow-down
            2
            ·
            8 months ago

            I was taught Java in High School, then had one course on it in uni, then in my professional life ended up learning C#, Python, and Typescript and building servers with them before now coming back to Java 17 / Spring Boot thinking “oh this will be pretty similar to C# from what I remember”, and instead I’ve found myself cursing out Java / Spring Boot many many times.

            Java’s insistence on everything being object oriented is a huge hindrance to it as a language. It forces it to be ridiculously verbose in so many cases. Not every concept in code is a Noun, there are lots of times where it makes more conceptual sense to think of them as Verbs, but as a language Java still doesn’t fully support that.

            Give me a nice easy to follow functional Express.js chain any day, over jumping around a million magically connected ______ProviderBuilderProvider classes.

            • Dark Arc@social.packetloss.gg
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              8 months ago

              You can write functions… A static function is not particularly different from a free function written in a namespace. You can even use a static import to allow yourself to call it without qualification.

              ______ProviderBuilderProvider

              No idea what this is in reference to. I have a feeling your issue is more with the frameworks you’ve worked with than Java itself.

              • masterspace@lemmy.ca
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                2
                ·
                edit-2
                8 months ago

                You can write functions… A static function is not particularly different from a free function written in a namespace. You can even use a static import to allow yourself to call it without qualification.

                I’m referring to functional programming concepts like anonymous functions and functions as parameters. Java finally added support for this with Lambda expression in Java 8, but because it took them so long, most libraries and frameworks that wanted to support backwards compatibility didn’t use them and still forced everything into classes and objects, meaning that most Java code bases you find are purely object oriented.

                ______ProviderBuilderProvider

                idea what this is in reference to. I have a feeling your issue is more with the frameworks you’ve worked with than Java itself.

                It’s in reference to the fact that unlike basically every other modern programming language, Java doesn’t let you do stuff like have default parameters for functions, instead forcing you to overload them:

                In Javascript / C# you just have:

                function DoSomething(int  howManyTimes = 10){
                    //something
                }
                

                In Java you have:

                function DoSomething() {
                    int howManyTimes = 10;
                    //something
                }
                function DoSomething(int howManyTimes) {
                    //something
                }
                

                Which then leads you to recommendations of using the Builder Pattern, and now you’ve got the function / class you care about rewritten three times, plus a whole a builder class and a bunch of building specific functions, all of which are basically just a whole bunch of unnecessary verbose bullshit to approximate default parameters that are expressed more clearly with 2 additional characters in other languages.

                • Dark Arc@social.packetloss.gg
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  edit-2
                  8 months ago

                  Sounds like you’re working with some bad libraries and writing some bad code IMO.

                  Java 8 was released over a decade ago. Lambdas in Java are in great shape. Java’s streaming API makes heavy use of them.

                  Builders should not be used all that much, certainly not in place of default arguments.

                  The correct way to write that is simply:

                  void doSomething() {
                      int howManyTimes = 10;
                      doSomething(howManyTimes);
                  }
                  void doSomething(int howManyTimes) {
                      //something
                  }
                  

                  Is it more lines that a default argument? Sure. It’s not that bad though. It also resolves some ABI complexity issues that come into play with default arguments. If you use default arguments in C++ anything calling that code needs to be rebuilt if the default argument is updated. In Java because it’s part of the definition of the function not the call site the default is updated by replacing the library. I don’t know how C# handles this, perhaps they create the overload implicitly. It’s not a problem for JavaScript or Python because they’re interpreted.

                  Bonus points, you can use an interface to provide a default overload like that even if you’re dealing with something that’s abstract.

                  I’m also mildly concerned by how you’re using JavaScript like function declarations in your examples with C# like naming scheme to demonstrate why Java is bad.

                  As your own link the builder pattern is an alternative to the factory pattern. Neither of which Java or any other language requires you to use. Note there is not a single “Builder” in the entire sublinks Java codebase.

                  Late edit: Also going to add in https://rust-unofficial.github.io/patterns/patterns/creational/builder.html

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        8 months ago

        I’d love to hear your reasoning. I don’t meet many java devs, so my opinion has definitely been formed in an echo chamber.

    • delirious_owl@discuss.online
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      2
      ·
      8 months ago

      I used to think that until I realized Maven requires PGP signatures on all packages. So the supply chain is wayy more secure than rust or python or basically every other language.

      Lemmy is a disaster from a security perspective

  • nutomic@lemmy.ml
    link
    fedilink
    English
    arrow-up
    36
    arrow-down
    13
    ·
    8 months ago

    I actually talked with Jason (one of the Sublinks maintainers) a while ago, asking about the features he was missing from Lemmy. Turns out it was just one or two minor API changes that could be easily implemented, but he never even bothered to open an issue about it. I think they just have fun reimplementing Lemmy, but it would take at least multiple years to catch up with the current features of Lemmy. And by then Lemmy will of course have many more features and improvements. So I wouldnt expect that this ever becomes useful for production.

      • AtmaJnana@lemmy.world
        link
        fedilink
        English
        arrow-up
        15
        ·
        8 months ago

        FYI, in case you did not notice: nutomic, the user you’re replying to, is one of the two creators of Lemmy. Make of that what you will.

        • yuriy@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          6
          ·
          8 months ago

          Fun amount of shade-throwing from a dev, that gives me a lot of confidence in the platform.

          • nutomic@lemmy.ml
            link
            fedilink
            English
            arrow-up
            6
            arrow-down
            5
            ·
            8 months ago

            No schade-throwing, but I know how much effort it took to get Lemmy ready for production. Namely multiple years of fulltime work. Sublinks seems to have only volunteer contributors, so it will likely take even more time.

    • Mwalimu@baraza.africa
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      3
      ·
      8 months ago

      And if they develop a good tool, that is also fine. The more the merrier. But I think their resources may have served more people if they were not duplicating effort and rather contributed into existing work. To each their own.

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

        I’m going to guess most Sublinks contributors aren’t going to be main branch Lemmy contributors due to the language difference. It’s what’s kept me from working on main branch Lemmy as I’m pretty much useless with Rust

      • masterspace@lemmy.ca
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        1
        ·
        edit-2
        8 months ago

        I mean, isn’t the whole point that they didn’t want to have to learn Rust just to contribute to Lemmy?

        Given how few day to day Rust devs there are compared to Java / C# / Typescript, it was only a matter of time before someone wrote a more popular version of the server in a different language.

        • nutomic@lemmy.ml
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          3
          ·
          8 months ago

          I was a Java developer before starting to contribute to Lemmy. Didnt know anything about Rust, just wrote code and resolved compiler errors until things worked. Rust is definitely not as hard to learn as some people think.

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

          Yep, I’m useless when it comes to rust. I can write Java/Spring in my sleep. A big barrier to entry to Lemmy contributions is not being familiar with rust

        • Mwalimu@baraza.africa
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          3
          ·
          8 months ago

          Still fair point. The grind is in placing the new reimplementation of federated link aggregator in opposition to Lemmy as if they are competing, and sadly to trash Lemmy and its developers.

          • masterspace@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            8 months ago

            That’s a fair point about communication and positioning, I just don’t think resources are necessarily wasted if they’re duplicating effort into a more accessible format.

        • expr@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          8 months ago

          That is rapidly changing. More and more huge tech companies are spinning up sizable Rust teams. Rust is basically at the place Go was a few years ago. It’s on the verge of becoming mainstream and has a huge community behind it.

          I personally view sublinks as pretty pointless and short-sighted. It is frankly not that hard to pick up a new language and contribute to a project for an experienced developer, so I see little reason to try to rewrite it if nothing new is really being offered. If you look at the GitHub of each, sublinks does not have more contributors or anything like that, so the value proposition seems dubious at best.

  • Lvxferre@mander.xyz
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    2
    ·
    edit-2
    8 months ago

    I hope that this project survives and thrives. Even if only the first milestone (feature parity) and a tiny bit of the second one (moderation) are reached, it’s already a big improvement for the “Fediverse forums”.

    And as mox said ITT it makes it less reliant on any particular dev team. I also wish that MBin was a bit more popular.

    I won’t comment on maintainability because I’m neither a programmer nor an assumer.

  • imaqtpie@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    15
    ·
    8 months ago

    Since people in this thread seem to be more knowledgeable about programming languages than me, I’m curious how you all feel about PieFed.

    It’s a similar project, describes itself as

    a Lemmy/kbin clone written in Python with Flask

    Promising? Potential concerns?

    • SorteKanin@feddit.dk
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      3
      ·
      8 months ago

      Python started as a scripting language and I wish people would’ve let it be like that. Using Python for large systems is a nightmare. Especially if you want to juggle random contributions from indviduals that you have to vet carefully because god knows what some small change might break - Python for sure won’t tell you.

      • spaduf@slrpnk.net
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 months ago

        I think this is an incredibly outdated take. Python is just about the best general-purpose interpreted language out there right now.

        • SorteKanin@feddit.dk
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 months ago

          Python is just about the best general-purpose interpreted language out there right now.

          I agree with you actually - I think Python is better than Ruby and much better than JavaScript.

          But dynamically typed interpreted languages is just not what you want when building large systems. As the code base grows, static analysis becomes exponentially more important and Python provides roughly 0 static analysis. A thousand lines of Python is easy to manage. Ten thousand lines of Python is… questionable, but perhaps barely managable, if you’re careful. 100 thousand or even more? It’s impossible to keep track of.

          Just as a basic example, if you have a million lines of Python and you make some change somewhere in your code, Python won’t help you in any way to find out where you need to update things to handle that change.

          Meanwhile, if you do the same in with a million lines of Rust, the Rust compiler will point to every single place where you need to update your code to make it work again.

          I don’t know if you’ve worked with large Python code bases, but I have and it’s not fun.

    • db0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      8 months ago

      I love the idea of piefed. Don’t listen to the python haters below. Most of them don’t know what they’re talking about. Almost all machine learning is done on python for a reason. I’ve designed and run a python service serving thousands per day, from scratch, without issues. Python is perfectly capable of making a service like lemmy and a great choice due to how easy it is to use for development.

      I wish I had more free time and I would contribute to it

      • imaqtpie@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        Okay, thanks for the alternate perspective. I’m rooting for PieFed for sure, made an account over there the first time I saw it linked and personally felt that everything worked surprisingly well.

    • ericjmorey@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 months ago

      The biggest thing that PieFed has done is get up and running on public data with new accounts open to the public. This trial by fire will make it fail fast or become much improved. It seems that the main developer is quite experienced and has thought about architecture and improvements that have already been implemented. I think it’s promising for all of these reasons.

      My biggest potential concern is that moderation tools have not been implimented yet (unless the were very recently).

      As far as Python being difficult in larger systems, this can be mitigated by experience and good practice. But I tend to agree that Python is typically not the ideal choice for a large project.

    • magic_lobster_party@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      The good thing about Python is that it’s widely used. Easier to find people who can contribute in Python than Rust, which Lemmy is using.

      Downside is that Python isn’t ideal for large scale systems. Other languages like Java is better at protecting the programmer against common pitfalls that come when building larger applications. Python is more ideal for smaller scripts.

      • db0@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        Not at all. if you want protection and strict typing, you can have it just as well with python.

    • stevecrox@kbin.run
      link
      fedilink
      arrow-up
      4
      arrow-down
      4
      ·
      8 months ago

      I wouldn’t get massively excited.

      Python is a scripting language, its shines when you want to write a stand alone file which takes an input and performs a task. Scripting languages are great to learn as a first language and so python is wonderful for non developers.

      The issue you hit is the build management solutions for Python are kind of broken and these help support and encourage good development practice so a lot of Python projects end up a collection of scripts rather than a mature project. You can have good projects but…

      In raw benchmarks Java has 90% of the performance of C/C++, but in reality Java is more performant because developers get bogged down in memory management on C/C++ and they get more time to optomise in Java as a result. I’m not sure where Rust will come out to be honest.

      Python benchmarks at 50% the performance of Java, in reality I’ve found code ends up slightly worse because Python is procedural, library support and streaming is poorly supported.

      Take library support, Spring really rose to prominese because of ‘hibernate’ which was a way to abstract talking to different databases through objects, you could switch from PostgreSQL to Oracle through config. Spring data has dumbed this down so I define a plain old Java object and Spring will generate everything I need.

      Python expects you to hand craft SQL statements and every database extends SQL slightly differently, so i need to write SQL for every operation and manage/own it. So the win in being able to quickly read/write to a database (since you don’t have to learn anything about Spring) is quickly ruined because of the all the boilerplate and error handling you now have to write.

      • db0@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 months ago

        Python expects you to hand craft SQL statements

        That is completely untrue and you thinking that completely undermines your authority on speaking for python. One word: sqlalchemy

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

        Great response 👍

        It’s nice to have other projects going on, but it seems like Lemmy is far ahead of everyone else at this point. Which is great because Lemmy is bae

      • dwalin@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        And dont forget about graalvm if you really want small binaries and lots of performance

  • mox@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    2
    ·
    8 months ago

    Despite disliking Java, I’m glad to see another implementation of the platform we’re all using, as it makes this part of the fediverse less dependent on any particular development team.

    Why in the world did you enclose the readme in a code fence, though? It would be so much better to let the markdown do its job. My eyes are burning.

    • ChasingEnigma@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 months ago

      Why in the world did you enclose the readme in a code fence, though? It would be so much better to let the markdown do its job. My eyes are burning.

      I wanted to use a quote to differentiate it a bit from the post but Lemmy-ui only quotes the first line.

      • mox@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        8 months ago

        I see. Code fences are really for computer code, though, not general quoting. They defeat word wrap, markdown, and proportional fonts.

        Unformatted text quotes are best done by inserting > at the start of each paragraph.

        For something that’s already formatted with markdown, like this, I would probably just put a horizontal rule under whatever I wrote, and paste the markdown beneath that. It’s done with --- on its own line, if I remember correctly.

    • nutomic@lemmy.ml
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      4
      ·
      8 months ago

      I agree that its good for redundancy to have another development team for Lemmy. However they will be busy for the next few years redoing all the work we have already done for Lemmy. It would be much more efficient if they simply forked the existing Rust code and implemented their desired features on top. That would also make it easy to merge their changes back into Lemmy.

  • Blaze@reddthat.com
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    8 months ago

    It was intensively discussed a month ago, have a look at this thread if you are interested: https://lemmy.world/post/11061890 (you can copy paste the link in your search to find it on your instance)

    Most of the pro/cons of the initiative have been discussed there

    Personally I find it very promising, curious to see what it will look like once they reach feature parity with Lemmy

  • Fal@yiffit.net
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    12
    ·
    8 months ago

    Imagine choosing to write something in java versus rust. Amazing

    • stevecrox@kbin.run
      link
      fedilink
      arrow-up
      20
      arrow-down
      2
      ·
      8 months ago

      Every programming languages has communities built around them.

      Its becoming clear Rust solves a lot of C/C++ type problems and the embedded communities are definitely shifting over.

      Apache is the primary community for Java, a quick look at their project list shows it’s entirely web servers, data engineering and clustered projects for distributed computing.

      Personally if you asked me to solve this problem I would use Spring Boot with various Spring libraries for talking to the caddy, user control, etc… Looking at the project, its exactly what they have done

      • asdfasdfasdf@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        2
        ·
        edit-2
        8 months ago

        Rust is a general purpose language which is excellent for API servers and many other things. I’d say it’s definitely a direct competitor to Java. The only difference is in the ecosystem of libraries.

        Rust’s type system is really just about enforcing correctness, which is very important in a general sense. Memory safety is just a subset of correctness.

        You can see this is in practice since there are a TON of devs like myself coming to Rust from JavaScript.

        • magic_lobster_party@kbin.social
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          8 months ago

          As you said, the difference is in the ecosystem of libraries. This is where Java has the edge. It has a more mature ecosystem when it comes to web server backends. This includes the number of frameworks, programmers and information sources.

          Unless Rust clearly solves common problems people currently have with Java backends, Java will remain the dominant alternative. I believe this is unlikely, because Rust is mainly designed to overcome common memory problems people have with low level C systems without the overhead of garbage collectors.

          • asdfasdfasdf@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            8 months ago

            Rust is mainly designed to overcome common memory problems people have with low level C systems without the overhead of garbage collectors

            So you didn’t read my comment then.

            A concrete example of what my comment means is opening files. When you open a file handle, you can read from it, write to it, but then you should close it. After you close it you shouldn’t be ready to or write from it again. If you do, bad things can happen.

            Rust is the only language where you cannot. It’s a compile time error. This has nothing to do with low level systems programming. Using file handles is very high level.

            Same goes for thread safety. Web servers often can benefit from multithreading. Java does not enforce thread safety at compile time. If you send some data across threads and you don’t already understand what is thread safe and what isn’t, you’ll end up with data races, which is a form of memory safety violation. This is not possible in Rust, but it is in Java.

            Rust also isn’t subject to “the billion dollar mistake” since it doesn’t have the concept of null references. It also doesn’t support exceptions, which are the exact same issue as null references. These are also general programming problems and not specific to low level systems.

            Regarding frameworks, I’ve used Spring before and, although Rust doesn’t do some things Java frameworks do, IMO that’s a very good thing, and the web frameworks I’ve used in Rust have been a far better experience than what I saw from Spring.

          • expr@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            8 months ago

            Rust does a lot more than that. It has a far more powerful, flexible, and higher-level type system than Java all while being much more performant.

            Every single time I’ve heard people cite Java’s ecosystem, I’ve yet to see them using anything that Rust doesn’t have a better alternative to. Java’s ecosystem is massive, but most of the time, you don’t actually need it. Unless you are doing a lot of third party integrations that have Java sdks or something, there’s not a lot it buys you. If you’re just making typical web applications with a database, Rust has you completely covered and will do a better job of it to boot.

    • Otter@lemmy.ca
      link
      fedilink
      English
      arrow-up
      9
      ·
      8 months ago

      I asked about that earlier today, and this is the explanation

      It’s in Java, so there’s that overhead. But mostly, it’s less about “efficiency at all costs” and more about maintainability, being easier to contribute to / review, and having a less toxic development community. It’s got more developers working on it than Lemmy, and it’s in a language more people are familiar with (Java). It’s roadmap is also not constrained by the viewpoints of a small group of fairly, uh, controversial figures.

      After the 1:1 compatibility phase is over, they’re both free to and planning to implement more features that the Lemmy devs either won’t or can’t be arsed to do.

      The comment: https://lemmy.ca/comment/7677015

      • SorteKanin@feddit.dk
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        1
        ·
        edit-2
        8 months ago

        I can understand the argument about more developers knowing Java (right now) and the controversy of the current main lemmy devs.

        However for maintainability, I really don’t see it. Java has the billion dollar mistake with null references, forces you into an object oriented programming style and uses exception-based error handling, which is far inferior to errors as sum types like in Rust.

        Often when Rust compiles, it works. This is a big strength when maintaining a large system. You can’t say the same about Java.

        Lastly, Java doesn’t seem… Future-proof if you can call it that. It’s certainly an older language and it’s not likely to keep getting bigger. Rust is still growing a lot and is being adopted extremely heavily by the largest technology companies. It’s not unreasonable to think that there will at some point be more Rust devs than Java devs. Though that day could still be a long way off, to be fair.

        • Carighan Maconar@lemmy.world
          link
          fedilink
          English
          arrow-up
          13
          arrow-down
          6
          ·
          8 months ago

          However for maintainability, I really don’t see it. Java has the billion dollar mistake with null references, forces you into an object oriented programming style and uses exception-based error handling, which is far inferior to errors as sum types like in Rust.

          None of these are a problem to experienced Java developers however, of which there is a huge ocean. Compared to a relatively tiny handful of Rust developers that also can get very highly paid industry jobs that keep them busy, so there’s even less of them available for hobby projects.

          I can totally see it. Makes perfect sense in fact, you want people to help with development, you cast the widest net possible.

          • Fal@yiffit.net
            link
            fedilink
            English
            arrow-up
            7
            arrow-down
            2
            ·
            8 months ago

            None of these are a problem to experienced Java developers however

            You’re kidding, right?

            • Rooki@lemmy.worldM
              link
              fedilink
              English
              arrow-up
              6
              arrow-down
              6
              ·
              8 months ago

              That is true, if you develop your java application correct, then you have no issues of any kind.

                • magic_lobster_party@kbin.social
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  3
                  ·
                  edit-2
                  8 months ago

                  It’s more that you can avoid many mistakes by programming defensively and having good discipline. For example, you can avoid many memory allocation if you follow RAII and use smart pointers.

                  Null references can be avoided by avoiding using null (and prefer using optional where it makes sense).

              • SorteKanin@feddit.dk
                link
                fedilink
                English
                arrow-up
                5
                arrow-down
                3
                ·
                edit-2
                8 months ago

                if you develop your java application correct, then you have no issues of any kind.

                No issues of any kind? That’s absurd. The idea that you can “just” write “correct” code in any language and then you won’t have “any issues of any kind” is not any developer’s experience ever. Humans are just not reliable enough for that.

                • Rooki@lemmy.worldM
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  arrow-down
                  3
                  ·
                  8 months ago

                  Yeah because of that i said IF you develop your java application correct…

                  If that is correct, than you have no issues of any kind. That statement is correct. But like you said, no one is perfect, but rust would be a more difficult language than java and less documented. For a stable, predictable and reliable software your programming language needs maturity, stability and a community to support it. Most of it rust doesnt have.

          • SorteKanin@feddit.dk
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            1
            ·
            8 months ago

            Well time will tell. As far as I can see on https://github.com/sublinks/sublinks-api/graphs/contributors it really doesn’t look like more than two active developers right now… So not any better than Lemmy.

            Also, when it comes to hosting stuff as volunteers, server costs are actually quite important, as its basically 100% of the expenses. So Rust’s efficiency is actually a more significant advantage than you may think.

            • Mac@programming.dev
              link
              fedilink
              English
              arrow-up
              2
              ·
              8 months ago

              Theres more than just the api repo and pull requests are squashed in some of them making it show as less

            • Rooki@lemmy.worldM
              link
              fedilink
              English
              arrow-up
              4
              arrow-down
              2
              ·
              8 months ago

              Java is already mature enough and i dont think the current smaller-medium instances experience that lemmy is on 100% cpu allways, so we can expect that it is a bit less optimal, but not before 5% cpu and after it 100% cpu, lemmy is a mess in performance, 0.18 instances gets ddosed by dead 0.19 instances, that retry always failed federation. So lemmy itself is the danger here.

              • SorteKanin@feddit.dk
                link
                fedilink
                English
                arrow-up
                3
                arrow-down
                1
                ·
                8 months ago

                When it comes to servers, memory is often the pricy point. And Java is a lot more memory-hungry than Rust.

                • Rooki@lemmy.worldM
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  3
                  ·
                  8 months ago

                  Good, then find some guys to develop lemmy faster, reliably and bigger. With lemmys pace of features, it will be taken over by faster developing platforms, where they can have more and more features ready and deployed where the lemmy devs still wait until they get enough donation to implement any crucial feature.

                  Sublinks decision was based on: How fast and reliably can they build a lemmy backend replacement, java is the only possible option there. There are many devs, Language is mature, reliable and not a hipster language like rust.

                  Of course if they did that in rust they would be same level, but then would be the question why not contributing to lemmy directly.

                  If performance and memore is so dramatically NASA rocket computer limited, than why not use assembly. Its the fastest, memory efficient and speaks directly to the computer.

      • Fal@yiffit.net
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        4
        ·
        8 months ago

        Rust is way easier to read than java in many cases. Terrible argument.

        • Bjornir@programming.dev
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          2
          ·
          8 months ago

          There are probably a hundred time more Java developers than rust developers. I think that is the whole point of choosing Java.

        • Rooki@lemmy.worldM
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          6
          ·
          8 months ago

          Rust is terrible to read. Java is easy if you name your functions and variables correct.

          • SorteKanin@feddit.dk
            link
            fedilink
            English
            arrow-up
            7
            ·
            8 months ago

            This is a very subjective take. I think Rust is much easier to read than Java. It’s really just a matter of what you’re used to (and that can easily change by just learning the other language).

            • Rooki@lemmy.worldM
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              8 months ago

              Yes like you said, everybody understands their favorite language better than others.

        • Ptsf@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          Common is the enemy of correct. As for other languages, feel free to use anything memory safe! At least, that’s what I’ll be doing when exposing my overpowered calculator to 7+ billion humans.

      • Rooki@lemmy.worldM
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        3
        ·
        8 months ago

        Its more easier than to write it in a language not made for a RestAPI.

        • SorteKanin@feddit.dk
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          2
          ·
          edit-2
          8 months ago

          There are plenty of very nice Rust web frameworks, like axum and actix-web (which lemmy uses). They are very ergonomic. Rust is perfectly fine for REST APIs. It’s not like Java was made expressly for the purpose of REST APIs either.

    • SorteKanin@feddit.dk
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 months ago

      Not sure if genuinely asking but there are no instances currently as it’s still being developed. I believe they will make it so Lemmy apps are compatible? But unsure for how long this will be true.

      • Mac@programming.dev
        link
        fedilink
        English
        arrow-up
        9
        ·
        8 months ago

        All lemmy apps are sublinks apps, it has api compatibility

        The demo site also isn’t an instance for accounts, its a demo