Why are there so many programming languages? And why are there still being so many made? I would think you would try to perfect what you have instead of making new ones all the time. I understand you need new languages sometimes like quantumcomputing or some newer tech like that. But for pc you would think there would be some kind of universal language. I’m learning java btw. I like programming languages. But was just wondering.

  • complacent_jerboa@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    1 year ago

    It should be low-level like assembly and high-level like BASIC, functional, object-oriented, and have weird stuff like traits, concepts, and alien features from Haskell. It must also have both the pointers/references of C++, and the borrow checker of Rust.

    Hang on a minute. Isn’t that literally just Rust CrabLang?

      • complacent_jerboa@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I’ll take your word for it about the missing Haskell features, but with regards to inheritance, they deliberate chose to avoid it. They use an alternative model to achieve the same goals inheritance is meant for, but without the issues that come along with it. Their approach is basically a more advanced version of how Go uses interfaces to define shared behaviour.

          • complacent_jerboa@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            It is pretty neat. They’ve made a lot of really interesting design decisions that make for a pretty unique language.

            One of its main selling points is how it guarantees memory safety without using a garbage collector. That, plus the fact that it does a shit-ton of compile-time optimizations, actually makes it pretty fast. Like, 80%-90% as fast as C (which is much faster than all the other high-level languages like Java, Go, etc, partly because they do in fact use garbage collectors).

            If you want to check it out, I recommend this playlist as a solid intro.

        • kono_throwaway_da@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Oh yeah, I get all of those, because I am a Rust programmer myself who hates OOP. :D

          I raised the topic up only because of how people were talking about “the ultimate language with everything”.