Just wondering what you’re looking forward tonsering arrive in Linux/<your fav distro>? Is there a specific feature specifically? If not, whats something you’d like to see?

  • rockSlayer@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 hours ago

    I want a modern programming language for the terminal that was designed for scripting, but I also want it to superset other shell languages like bash, fish, dash, etc. for compatibility with existing scripts and the shell language that already exists on the distro.

    This is my next programming project btw. The “superset” is actually going to be escape hatches to those languages

    • thenextguy@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      7 hours ago

      You would certainly always keep bash around for the backwards compatibility. No need to weigh down your new thing with that.

      But then you can just use lua, python or whatever for your bigger scripts.

      So, what do you think is lacking between these two?

      • rockSlayer@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 hours ago

        I’ve been writing a lot of bash code for work that involves invoking other applications that produce output which is then changed by the script. There’s also 40 years of legacy behind bash that produces odd behavior at times and causes useful modern features to be impossible. For example, did you know that {{1..22},X} and {{1..22}, X} produce completely different results? And people complain about significant whitespace in Python.

        Modern languages require extra work to interface with the OS and there are good reasons for that, but I want something that is as accessible as bash, with the simplicity and modernity of python, while both maintaining backwards compatibility and superseding the existing shell languages

        • bearforcepilot@lemmy.zip
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          I have been thinking about this myself for a while. I’ve been debating specifying type.

          My dream scripting language is something with rust style enums, no classes and easy interfacing with bash.

          Sort of like Python with brackets, the OOP stuff stripped out and some core system programming features.

          • rockSlayer@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            5 hours ago

            That’s similar to what I’m thinking of too! A typed Python that borrows a lot of stuff from Rust. Through my bash scripting, I’ve learned to embrace the idea of files-as-classes, with a “main” file that knits the other files into a cohesive application