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

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

    • ISometimesAdmin
      link
      fedilink
      42 years ago

      I actually bought the second edition of Mastering Nim paperback the other day! Should be arriving tomorrow, hopefully.

      I had fun dogfooding my interview problem in it, I feel like it’s basically step forward as far as modern syntaxes go.

  • @[email protected]
    link
    fedilink
    22 years ago

    R

    I know is not considered a “proper” programming language by some, but I’ve been working with it for years for scientific data analysis and I love it

    • qaz
      link
      fedilink
      3
      edit-2
      2 years ago
      ⇌[⍥⊃+⊙∘10 1 0]
      

      Please no

  • WatTyler
    link
    fedilink
    14
    edit-2
    2 years ago
    {-# LANGUAGE OverloadedStrings #-}
    
    import qualified Data.Text as T (Text)
    
    correctAnswer :: T.Text
    correctAnswer = "Haskell"
  • copygirl
    link
    fedilink
    English
    332 years ago

    Zig hasn’t been mentioned yet, so I’m just going to drop that here.

    I personally have enjoyed the meta-programming, the ease of integrating with C libraries, and like that it’s pretty straight-forward to compile.

    • thingsiplay
      link
      fedilink
      82 years ago

      Came here for Zig too. I never programmed anything in it other than hello world stuff. I think the world is waiting for the 1.0 release with complete tooling and package manager and a solid foundation that won’t change too soon. I watched talks from Andrew and what this guy and his team is doing is amazing. It’s a small team.

    • Oliver Lowe
      link
      fedilink
      62 years ago

      Zig is what I thought Rust would be like when I first heard of Rust. I’d love to try Zig for some hobby things but can’t get it running on OpenBSD (yet!).

    • I Cast FistOP
      link
      fedilink
      English
      62 years ago

      An alternative to regex sounds interesting, too bad their site lacks proper examples and, more importantly, side by side examples of equivalent regex, that’s the best way to sell such an idea.

  • Ada
    link
    fedilink
    182 years 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

    • CommunityLinkFixerBotB
      link
      fedilink
      English
      72 years ago

      Hi there! Looks like you linked to a Lemmy community using a URL instead of its name, which doesn’t work well for people on different instances. Try fixing it like this: [email protected]

      • Ada
        link
        fedilink
        32 years ago

        I’m new to Lemmy. Appreciate the heads-up, thank you! 👍

    • @[email protected]
      link
      fedilink
      152 years ago

      Rust doesn’t guarantee the lack of memory leaks anymore then java/C++ does, so sadly not sure if it would help here. :)

      • @[email protected]
        link
        fedilink
        22 years ago

        We can go further, I think it’s impossible to prevent memory leaks in a general purpose language

        • @[email protected]
          link
          fedilink
          22 years 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…

          • @[email protected]
            link
            fedilink
            22 years 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.

              • @[email protected]
                link
                fedilink
                12 years ago

                I think you know what I mean when I contrast Rust with GC’d languages, we can call it opt-in garbage collection if we’re being pedantic.

            • @[email protected]
              link
              fedilink
              9
              edit-2
              2 years 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.

              • @[email protected]
                link
                fedilink
                12 years 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.

          • @[email protected]
            link
            fedilink
            92 years 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.

    • @[email protected]
      link
      fedilink
      9
      edit-2
      2 years 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)

  • @[email protected]
    link
    fedilink
    192 years 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
      link
      fedilink
      22 years ago

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

    • @[email protected]
      link
      fedilink
      12 years ago

      One of the most exciting things about Grain is that it compiles to WebAssembly.

      That’s a cool feature.

      What is the particularity that you talked about?
      In my point of view it looks like JS/TS with arrow functions. 😁