Assume mainstream adoption as used by around 7% of all github projects

Personally, I’d like to see Nim get that growth.

    • TheV2@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      What disrupted the fun for me:

      • the rules for articles before languages, countries and their people
      • everything sounds the same / easy to be misunderstood
      • not nearly as internationally approachable as it could be, though obviously that’s almost impossible
    • maegul (he/they)@lemmy.ml
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      5
      ·
      11 months ago

      Sorry to say, but once I realised how euro-centric, and to my ear/eye, latin-centric esparanto is I completely lost interest.

      I don’t know if anyone has tried, but something which similarly draws influences from the languages that the vast majority of the world speak would be wonderful.

      • burliman@lemm.ee
        link
        fedilink
        arrow-up
        9
        arrow-down
        1
        ·
        11 months ago

        You made me think of that xkcd about standards.

        Anyway, the eurocentrism argument, while perhaps true due to the Latin root, seems to be a little bit of a savior complex don’t you think? China itself pushed for Esperanto to be used as a business language internally late last century as I recall.

        • maegul (he/they)@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          3
          ·
          11 months ago

          savior complex

          I don’t see that at all.

          It’s about making a language that the maximum amount of cultures can see themselves in, can have at least some familiarity with, and feel like they’ve been acknowledged in the making of a global language … all of which is intended to get maximum buy in around the world to establish a truely international language rather than a Lingua Franca derived from hegemony.

          Maybe China was interested in Esperanto for a bit, but I’m betting like most stories like that it’s heavily exaggerated or outright bogus.

          • spiderplant@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            11 months ago

            Someone already said that either the created language takes from too few source languages and alienates speakers of languages with no common characteristics or takes from every language family and becomes a horrible mess that’s hard to speak for everyone.

            So if a world language is a bad idea no matter what languages you use as a source, why not have Esperanto or something similar for Europe/English speaking world and then a different language for Asia, and another one for Africa. You’ve reduced the number of translators needed and left most people with a language close to their mother tongue. You could also break the suggested regions in to smaller sections eg give Germanic Europe a common Germanic language. West/south Europe get Esperanto, east Europe sets a common slavic language. You still get languages that don’t neatly fit like Hungarian but its better for most language learners than the last example.

            Personally I’d not propose universal languages as a utopian idea and instead promote indigenous languages such as Catalonian, Breton, Irish and promote learning many languages in a post work society.

            • burliman@lemm.ee
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              11 months ago

              Yeah we can invent yet another language, and go through the motions of including everyone. But by god make sure you don’t forget anyone. Let’s throw in Chamicuro, Warlpiri, Liki, Tanema, Ongota, and Dumi, just to make sure. Don’t want to upset anyone….

              Or we could stop inventing new ways to accuse things of not being inclusive enough. It’s getting bonkers… Not saying Esperanto is the best language, and it has its flaws as others have so vehemently stated, but if inclusivity is the primary motive when designing a language, then I can almost certainly guarantee that new language will be much worse.

              I mean English is basically the world language. It’s used by pilots, scientists, global finance, and diplomatic efforts. I’m gonna assume that almost no one would classify English as inclusive in its vocabulary. Unless you’re German, Dutch, or French of course. Esperanto is at least more accessible and easy to learn and carries Latin roots… shared with lots of languages. And it was invented by a member of a repressed minority in the old Russian Empire. What’s not to love?

              • spiderplant@lemm.ee
                link
                fedilink
                arrow-up
                2
                ·
                11 months ago

                My problem is not with inclusivity but with promoting uptake. If you are familiar with the grammar or phonetic sounds or some of the vocab, you are more likely to find that language easier to learn.

                Both English and Esperanto share the same problems of universal languages that I mentioned. English does have the advantage of number of speakers but it is a mess of a language for people to have to learn.

                Again to reiterate my counter to universal languages, why not learn and potentially help revive your local indigenous languages. In a world where universal translation exits on our phones everybody being able to speak the same language matters less.

    • tun@lemm.ee
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      11 months ago

      I think OP means programming language. Not the languages used by human to communicate each other.

      • blindsight@beehaw.org
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        I’d love to read more about that! Normally, I’d just do my own searching, but since you have actual expertise in the area, is there someone in particular I should search for who explains this?

        I also want to clarify that I’m not skeptical; on the contrary, I can think of three reasons off the top of my head, as a layman who knows virtually nothing about Esperanto, just based on you identifying colonialism as an issue, but I was hoping to get an educated take on it.

  • tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    50
    arrow-down
    1
    ·
    edit-2
    11 months ago

    If we’re saying 7% is the bar for mainstream, then Rust is my vote.

    C# is not even mainstream by that standard.

    I’d also like to see Julia used more.

  • caret@lemmy.zip
    link
    fedilink
    arrow-up
    25
    arrow-down
    5
    ·
    11 months ago

    Rust! Memory leak free code would make our world a better place!

        • philm@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          11 months ago

          Not without a super fancy type system that has to be still found. I think the key issue is cyclic data-structures (e.g. doubly-linked list). The language somehow needs to have strong/weak pointers and automatically determining them is a very complex research question…

      • Rin@lemm.ee
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        11 months ago

        Help me understand your point of view. How does Rust not prevent memory leaks?

          • hairyballs@programming.dev
            link
            fedilink
            arrow-up
            7
            ·
            11 months ago

            And here you’re only talking about a subset of memory leaks, by inaccessible memory. You can also leak memory by pushing new elements in a channel while never reading them for example.

          • zygo_histo_morpheus@programming.dev
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            11 months ago

            You are absolutely correct that rusts safety features don’t extend to memory leaks, but it’s still better than most garbage collected languages unless you abuse Rc or something, and it does give you quite fine-grained controll over lifetimes, copying and allocations on the heap which in practice means that rust is fairly good about memory leakages compared to most languages.

            • IAm_A_Complete_Idiot@sh.itjust.works
              link
              fedilink
              arrow-up
              7
              ·
              edit-2
              11 months ago

              How would rust fare any better then a tracing GC? Realistically I’d expect them to use more memory, and also have worse determinism in memory management - but I fail to really see a case where rust would prevent memory leaks and GC languages wouldn’t.

              • zygo_histo_morpheus@programming.dev
                link
                fedilink
                arrow-up
                1
                ·
                11 months ago

                If you just Rc everything (which I’d count as “abusing Rc”) Rust is significantly worse than a language with a good GC. The good thing about Rust is that it forces you to aknowledge and consider the lifetimes of objects. By default things are allocated on the stack, but if you make something global or dynamically handled (e.g. through Rc) you have to do so explicitly. In Rust the compiler has greater compile time information about when things can be freed which means that you need less runtime overhead to check things and if you want to minimize the amount of potentially long-lived objects you can more easily see how long objects might live by reading the code as well as get help by the compiler to determine if a lifetime-based refactoring is sound or not.

    • philm@programming.dev
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      edit-2
      11 months ago

      At this point, I think it’s almost mainstream, and it’s still growing fast (and it’s getting better, rust-analyzer is really awesome these days, I was there at the beginning, no comparison to today…))

      I may be biased, but I think it’ll be the next big main language probably leaving other very popular ones behind it in the coming decade (Entry barrier and ease of use got much better over the last couple years, and the future sounds exciting with stuff like this)

    • TQuid@beehaw.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 months ago

      The most beautiful language. Why doesn’t every language have pipes?

      • morrowind@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        11 months ago

        I find Universal Function Call Syntax a much nicer solution than pipes, although I don’t think it’s quite as broad.

        For example, taking the example from elixir’s home page:

        "Elixir" |> String.graphemes() |> Enum.frequencies()
        

        would be

        "Elixir".graphemes.frequences
        

        in something like D

    • flakpanzer@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      11 months ago

      Elixir is such a beautifully designed language, my favorite language BY FAR.

      (I want an Elixir job too 🥹 )

  • zygo_histo_morpheus@programming.dev
    link
    fedilink
    arrow-up
    21
    arrow-down
    2
    ·
    11 months ago

    Haskell. I think that more people being familliar with Haskell concepts would be good for programing culture and it would increase the odds of me being able to write Haskell professionally, which is something I enjoy a lot when writing hobby code at least. Having more access to tooling and a bigger eco system would be nice as well.

    I’m not a 100% sure about my answer though. For one, I might grow to resent Haskell if I had to use it at work, and there’s also a risk that it would be harder to do cool innovative stuff with the language when more big companies depend on it.

  • redempt@lemmy.world
    link
    fedilink
    arrow-up
    21
    arrow-down
    2
    ·
    11 months ago

    Rust. I’ve been using it for a while, and I’ve been using more software written in it lately. Stuff you make with it is just better in most ways. In other languages, you have to go above and beyond to make your code fully correct, safe, user friendly, and every trait I value in software. Rust makes those things easy, and so people are more willing to do them, and so things that get made in it are better. Oftentimes it’s just a matter of pulling in a crate and adding a few lines of code.

    • AMDIsOurLord@lemmy.ml
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      11 months ago

      I just wish Rust’s syntax (and devs attitude) wasn’t so unpalatably shite

      I seriously can’t stand that shit but I really like it’s ideas

      • WatTyler@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        11 months ago

        I’m learning Rust at the moment and I too think I have some reservations with its syntax. Most of these reservations come from my strong preference for functional programming over OOP.

        I am unsure if I like method-syntax period, even if it isn’t inherently OO. Chaining just makes me feel uncomfortable in a way piping doesn’t.

        Also it seems idiomatic for values of enumerated types to be written Type::Enum, which seems ugly and unnecessary.

        What’d you make of this article?: https://matklad.github.io/2023/01/26/rusts-ugly-syntax.html

      • onlinepersona@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        I think what you’re calling ugly is just static typing. There’s no way to make it look beautiful unless you leave the types away, but then you either end up with some kind of dynamically typed looking language by declaring things twice: once with types and then without.

        At first glance, sure it would be easier to read, but if you have to look for the types then things get much harder. Either the types will be in comments, on different lines, or in a different file entirely.

        It’s doubtful you’ll find a statically typed language that does a better job. C/C++ look even worse than rust. Go and Zig don’t look good either, IMO.

        • AMDIsOurLord@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          I’m a long time C user Almost everything I write is in some strongly typed language lol

          I still find C much easier to read and understand than any large Rust codebase

        • vividspecter@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          At first glance, sure it would be easier to read, but if you have to look for the types then things get much harder. Either the types will be in comments, on different lines, or in a different file entirely.

          This is pretty much how OCaml works and you can omit the types altogether if you don’t specify an interface file, in most cases. But it’s not hard to deal with in practice since IDEs (and text editor + LSP plugin) can easily show the inferred type on inspection.

          Nevertheless, I don’t really find Rust to be ugly either.

  • alflennik@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    11 months ago

    I’m obsessed with an extremely little known language called Grain. It’s not quite ready for production but it has an insanely intuitive functional syntax that I want to use noww.

    • davawen@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      Interesting!
      I see OCaml with rust syntax, for the web, which checks out the project goal of bringing functional patterns to everyday programmers.

  • Ada@programming.dev
    link
    fedilink
    arrow-up
    13
    arrow-down
    3
    ·
    11 months ago

    I would like to see Ada grow. Its clean syntax, rich expressive capabilities, and early error detection by the compiler due to strict typing create a very pleasant experience during development. This year, the language got a new standard. Recently, a package manager and a community index were created. There’s an extension/LSP for vscode, etc. Along with great educational materials on learn.adacore.com, it’s easy to pick up and start using this language.

    PS I created a community on p.d two days ago: https://programming.dev/c/ada

    #adalang

  • BigDanishGuy@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    11 months ago

    Assembly, which flavor IDK but some RISC architecture.

    If everyone spoke assembly the world would be a very different experience. I’m not saying that it would be better or worse, but it’d definitely be different.

    • I Cast Fist@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      I think the problem is that processors can have slightly different instruction sets, possibly less likely with ARM and RISC (Reduced Instruction, after all), and how they interpret bits and jumps (big endian, low endian). Chibi Akumas has a lot of material for learning assembly of various CPUs, including older ones like 68k and 6502, something I’m doing on and off once in a while

  • RiikkaTheIcePrincess@kbin.social
    link
    fedilink
    arrow-up
    9
    ·
    11 months ago

    Some fun stack-based concatenative language (like Forth or Min) :3 I like playing with odd/new-to-me things that change how I have to approach things in some way. … Also I wanna find a Forth community I can stand 😅 That or maybe a similar low-level language, I suppose. I was thinking of using it for a project but… eegh. Bleh. Et cetera. Still might, but purely on my own terms I guess.

    Also, more Haskell please >:3 Or something else like it. We must spread the glory of FP nerdery @.@ …And maybe get some more useful (and maintained) packages to work with instead of just kinda having to wonder what even builds any more v.v

      • RiikkaTheIcePrincess@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        11 months ago

        Interesting commagazine! … I don’t seem to be able to get to it through kbin :( Am already digging around in there, though, so thanks for the tip :3

        • Andy@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          11 months ago

          Sorry I don’t know how to kbin yet. Maybe the link provided by the bot that replied to me is better?

          Are there any concatenative/stack/Factor kbin magazines you know of?

          • RiikkaTheIcePrincess@kbin.social
            link
            fedilink
            arrow-up
            2
            ·
            11 months ago

            I don’t even see the bot from here. Bleeeeeh maybe I just need to give up and jump ship to a Lemmy instance 😅 Is not your fault, of course.

            I don’t think I’d encountered any such commagazines (why’d they have to be named both?!) and that’s why I was excited to learn about the one you mentioned. I’ve already started peeking around in there and finding some interesting tidbits :3

  • danhab99@programming.dev
    link
    fedilink
    arrow-up
    12
    arrow-down
    3
    ·
    11 months ago

    Go. I love writing go, its so simple and predictable and the accessability of multithreading and being allowed to create as many “threads” as I want make me feel smart as fuck.

  • abhibeckert@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    11 months ago

    Swift.

    It’s a wonderful language, it’s general purpose, it’s cross platform, and it’s open source (Apache license). I wish it was a mainstream language outside the of the Apple universe.

    What I love the most is it’s so flexible. It’s a full featured OOP language, a full featured Procedural language, a full featured Functional language, a full featured declarative language, and you can relatively easily make it work with anything else you can think of.

    It also has the best concurrency system I’ve ever seen - and with high performance computing relying so much on parallel computing these days that’s a must and often what I miss the most in other languages.

    A lot of other languages do some things just as well as Swift, but Swift does everything really well.

    • killeronthecorner@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      11 months ago

      Completely agree. Unfortunately Apple will need to start treating Swift on non-Apple platforms as a first class citizen for it to achieve any sort of wider popular use.

      When Lattner left, it was a signal that they were unlikely to ever move in that direction. Since then, I’d say they’ve moved further away if anything. They certainly made a hell of mess introducing SwiftUI and Combine (though glad to say things have recovered significantly since then).