Amber lang, compiles to mac and linux compatible bash so you dont have to manually write bash. Your thoughts, schizo?

Amber lang, compiles to mac and linux compatible bash so you dont have to manually write bash.

Your thoughts, schizo?

It's All Fucked Shirt $22.14

Shopping Cart Returner Shirt $21.68

It's All Fucked Shirt $22.14

  1. 3 weeks ago
    Anonymous

    i gave em on a hacker news post. But I'll put them here again. I think it's incredibly stupid. It compiles test to a test with an evalutation, bc and sed, all inside another test. Why? Who knows, probably some moronly obscure type thing that nobody cares about. If you want a correct program you should not use bash, if you want a simple script you can and should use a shell language like bash, sh or rc. If you want an actual program you should use go or some other managed, typesafe language.

    Since the scripts it makes are so bad I have less than little faith that these scripts will actually be correct, just some haha language lawer definition of type safety. WHO GIVES A FRICK, is my program actually correct? Probably not.

    • 3 weeks ago
      Anonymous

      damn so HN commenters are the same fricks who post here? That would explain a lot of things.

      • 3 weeks ago
        Bruce3434

        Forgot my name

    • 3 weeks ago
      Anonymous

      >[gayged]

  2. 3 weeks ago
    Anonymous

    >documentation part of the site is broken

    >written in Rust, a toy language lacking in specification

    >git even warns you about it being broken horseshit

    >6 incompetent contributors

    Irrelevant stupid trash. Anyone who wants to use bash should learn bash. Good fricking luck debugging whatever spaghetti code this spews out

    • 3 weeks ago
      Anonymous

      >>git even warns you about it being broken horseshit
      How would git know if something is broken?

  3. 3 weeks ago
    Anonymous

    >curl into shell
    Ahahahahahha
    AHAHAHAHHAHAHAHHAHAH

    • 3 weeks ago
      Anonymous

      just trust me bro

    • 3 weeks ago
      Anonymous

      curl http://trust.me|sudo bash -

      • 3 weeks ago
        Anonymous

        >githubusercontent = random domain
        You blow in from stupid town?

        • 3 weeks ago
          Anonymous

          >githubusercontent = no malware, guaranteed

          • 3 weeks ago
            Anonymous

            >there's no malware on github!
            yea right buddy

            If you don't trust the developers than don't download it. The problem with curling a random domain is that the domain may be lost and picked up by a malicious third party.

          • 3 weeks ago
            Anonymous

            that's why you should curl ip addresses and not domain names

          • 3 weeks ago
            Anonymous

            the absolute state

        • 3 weeks ago
          Anonymous

          >there's no malware on github!
          yea right buddy

        • 3 weeks ago
          Anonymous

          [...]
          If you don't trust the developers than don't download it. The problem with curling a random domain is that the domain may be lost and picked up by a malicious third party.

          you are completely moronic. Everyone can upload a script on github that also curls another domain internally. You fricking fricktwit think this is save too right: https://github.com/Ba541754/phasmophobiaBLACKv?tab=readme-ov-file
          Yeah dude, totally download the rar and run the contents. There are hundreds of these.

          • 3 weeks ago
            Anonymous

            ok? Again, if you don't trust the developers don't download it. How is this difficult for you to grasp?

          • 3 weeks ago
            Anonymous

            You aren't wrong with that. I just thought you were the first post I referenced too and implying there is no malware on github is stupid.

      • 3 weeks ago
        Anonymous

        >manually downloading a binary and installing it
        🙂
        >automating it
        🙁

        • 3 weeks ago
          Anonymous

          >and installing it
          that's the problem
          I don't want to install shit just to try it

    • 3 weeks ago
      Anonymous

      curl can be useful for some string munging behavior around url parsing and encoding.

      • 3 weeks ago
        Anonymous

        >munging
        define that

    • 3 weeks ago
      Anonymous

      are you afraid?

    • 3 weeks ago
      Anonymous

      common practice in the kubernetes community

  4. 3 weeks ago
    Anonymous

    Bash is literally the opposite of machine code, it's easier to write than any modern programming language. It's only difficult to write nontrivial programs because of a some gatchas and no types. But you don't want to do that anyways cause there is literally no reason to. Use a real language. Or even a meme one like js if you want to right js. I'm sure there is a library that lets you run unix commands or shell snippits or whatever.

    • 3 weeks ago
      Anonymous

      wat? bash is fricking horrible, I program in C regularly and I learned a bunch of other languages like scheme, tcl, etc. But I can't learn bash despite being exposed to it before any of those other languages I picked up. Bash's syntax feels like a totally random jumble of mess without any logical pattern to it at all

      • 3 weeks ago
        Anonymous

        >I can't learn bash despite being exposed to it before any of those other languages I picked up. Bash's syntax feels like a totally random jumble of mess without any logical pattern to it at all
        low iq

      • 3 weeks ago
        Anonymous

        Well I don't know bash either, I am just talking about sh in general (though I prefer rc, you might like to try es for a scheme inspired shell). Didn't really see any "bashisms" in the few examples of transpiler output I looked at aside from arrays

        • 3 weeks ago
          Anonymous

          But looking again I do see [[

      • 3 weeks ago
        Anonymous

        the biggest problem with bash is outside of spawning processes poorly and tying them together in the dumbest way possible, it's basically entirely garbage.
        bash gives you tools to do a lot of things correctly at least, but it's still cancer and without GNU utilities, I can't fathom doing *ANYTHING* useful in bash.

      • 3 weeks ago
        Anonymous

        rc and es are shells with a simplified syntax. You have to remember that these aren't programming languages. These are meant to be an interactive os utility for user scripts who will then ask a programmer to rewrite it in c.

        • 3 weeks ago
          Anonymous

          >for user scripts who will then ask a programmer to rewrite it in c.
          the shell is for glue code to actually use those C programs. Its not competing with C, python, or any actual programming language

          • 3 weeks ago
            Anonymous

            it should be tbh.
            handwriting bindings to .NET shit in powershell for winshit made me realize unix shells are lacking massively. If you have a platform $CC or can't just bake tcc in that gens valid C stubs with sysv abi calling, your shell is probably a fricking joke.

          • 3 weeks ago
            Anonymous

            >handwriting bindings to .NET shit in powershell for winshit made me realize unix shells are lacking massively
            Excellent. Its imperative that we keep wintards out of our ecosystem

          • 3 weeks ago
            Anonymous

            I am not a wintoddler, powershell sucks for different reasons, but you're a fricking idiot if you can't recognize a system shell that doesn't let you "natively interact" with the actual system isn't really useful. .NET Framework is baked into the Winshit userland. In Linux and other posix systems, userland libc is close enough and on Linux you can go further and outright syscall with impunity.
            there have been many cases using a shell script where I had to make throwaway shitcode just to make the shell scripting experience possible where it could have been easier to write a basic C stub and just directly make the libc/linux syscall myself in the shell and make use of the results IN THE SHELL.

          • 3 weeks ago
            Anonymous

            Excellent. Anything we can do to keep wintards from writing their "code" on our platform is a win

          • 3 weeks ago
            Anonymous

            ok homosexual. I can tell you're a fricking worthless baby duck loser.

          • 3 weeks ago
            Anonymous

            I am literally describing how shell was intended to be, and was used. Obviously they wouldn't have to rewrite the script if it wasn't taking up an appreciable amount of computer time.

            Python is a not an actual programming language either.
            You don't know anything.

          • 3 weeks ago
            Anonymous

            Midwits absolutely HATE python, I love it

          • 3 weeks ago
            Anonymous

            to be fair, it's an incredibly mid language. I use it because it's useful if you have it, but otherwise very underwhelming. I'd say go is really a better choice nowadays because it's easier to build and guarantee your go code will run wherever you were using Python and it's just as midwit tier.

          • 3 weeks ago
            Anonymous

            python is a good common language
            if you're on a team with 5 random people, odds are python is the lingua franca
            it shouldn't be this way, but it is

          • 3 weeks ago
            Anonymous

            Its so weird. You design a language without boilerplate and people just naturally want to use it to get actual shit done. And simultaneously the complicated-is-better midwit crowd gets something to seethe about. Win-win

          • 3 weeks ago
            Anonymous

            python isn't simple though, literally read

            I want to add, my last job made the mistake of using python and I warned them that python on your "desktop" will not be the same as python on a EoL'd ARM SoC. they didn't listen and were surprised to hear how fricking slow it was and how hard it was to "build their software" to run on it and yes, they're too moronic to realize most python shitware is in fact C bindings.

            ok, sure. I'm just saying, for midwits, go is likely better and there are tons of go libraries that cover most the python stdlib.

            you should see python users struggle to correctly use the shitty python async event loop. it's hilarious.

            it's objectively more complex than most other languages due to crippling bad design of the interpreter. it only "works" for you because you're a shitter midwit who thinks, "um works on my machine after building a rube goldberg shitfest" is good enough for production software.

          • 3 weeks ago
            Anonymous

            >"um works on my machine after building a rube goldberg shitfest" is good enough for production software.
            whats wrong with this?

          • 3 weeks ago
            Anonymous

            Python is a language. You seem to be seething about some hackjob embedded interpreter that isnt even compliant. Not my problem.

          • 3 weeks ago
            Anonymous

            wrong, python is a snake

          • 3 weeks ago
            Anonymous

            no, it's CPython, otherwise your shitty software would "work" in pypy, which it won't because you're implicitly depending on binary dependencies like a shitter and probably use anaconda.

            again, try go. I don't like go that much, but it's a step up from Python.

          • 3 weeks ago
            Anonymous

            Frankly, I think you are a bad programmer if you have this many issues with portability in python. The entire stdlib is extremely portable and I rarely if ever have compatibility issues on modern systems. As for older systems, you shouldnt be using a high-level modern language on them, thats an asinine requirement.

          • 3 weeks ago
            Anonymous

            you literally don't know what you're doing or talking about. I swear to god, pyBlack folk really aren't programmers. the memes are real.

          • 3 weeks ago
            Anonymous

            >you are a bad programmer
            Tying together c libraries isn't programming, it's scripting. The fact that you somehow complicated scripting enough to convince yourself that you are a programmer is hilarious and sad.

          • 3 weeks ago
            Anonymous

            >tying together libc calls isn't programming, it's scripting
            Why do morons keep saying this shit?

          • 3 weeks ago
            Anonymous

            When your only programming accomplishment is using a "difficult" language, you have to come up with these sad copes. On IQfy they are heroes, in real life we call them "unemployed"

          • 3 weeks ago
            Anonymous

            It's just morons who think the most impressive thing you can do in a programming language is manage memory manually. Manual memory management isn't impressive, it's just tedious bullshit.

          • 3 weeks ago
            Anonymous

            Whichever specific type of boilerplate is their fetish, its inane first-year CS bullshit and they stick out like a sore thumb in the real world

          • 3 weeks ago
            Anonymous

            >boilerplate fetish
            kek, that's what i'm going to start calling this from now on. thanks anon.

          • 3 weeks ago
            Anonymous

            some guy I know who gets paid to contribute to numpy complains about random C and C++ bullshit differences between gcc, msvc, etc all the time. python software compatibility is a mess.

          • 3 weeks ago
            Anonymous

            >random C and C++ bullshit differences between gcc, msvc
            >Why did python do this!!!????

          • 3 weeks ago
            Anonymous

            yes, useful software in python is actually C, C++ or Fortran. glad you finally realized the truth.

          • 3 weeks ago
            Anonymous

            ok, sure. I'm just saying, for midwits, go is likely better and there are tons of go libraries that cover most the python stdlib.

            you should see python users struggle to correctly use the shitty python async event loop. it's hilarious.

          • 3 weeks ago
            Anonymous

            >le hipster meme language of the month #46123 is sooooooo much better
            >no i havent actually written anything useful ever

          • 3 weeks ago
            Anonymous

            go isn't a hipster language you shitter. I have written useful software in it which is why I hate it, but it "works" and it's "easy" enough for any idiot and midwit to understand.

          • 3 weeks ago
            Anonymous

            people who do math in python have no idea what people who process forms in python do, and neither of them have any idea about actual programming in python

          • 3 weeks ago
            Anonymous

            I want to add, my last job made the mistake of using python and I warned them that python on your "desktop" will not be the same as python on a EoL'd ARM SoC. they didn't listen and were surprised to hear how fricking slow it was and how hard it was to "build their software" to run on it and yes, they're too moronic to realize most python shitware is in fact C bindings.

  5. 3 weeks ago
    Anonymous

    woah black betty

  6. 3 weeks ago
    Anonymous

    I actually did this once awhile ago, but I used gnu awk as the base instead since it's slightly less awful with the caveat being opening system() bullshit, but escaping bash/sh strings isn't that hard honestly.

    it's not worth the effort. the time you make a good enough compiler, you probably could have written it in perl, python, javascript or whatever boutique bullshit scripting language with an interpreter that could be statically built and do all your "shell" shit in.
    no reason to really target bash.
    honestly shells on POSIX are just awful outside of very very basic tasks.

  7. 3 weeks ago
    Anonymous

    >amber
    >yeah like amber alert, the missing children warning system

    • 3 weeks ago
      Anonymous

      no, like 311's Amber is the color of your energy.

  8. 3 weeks ago
    Anonymous

    >Your thoughts, schizo?
    yet another CIA psyop

  9. 3 weeks ago
    Anonymous

    >compiles to bash
    It isn't a compiler, it is a translator. Amber is not compiled to assembly, it is translated to bash.

    Bash is already easy to use, so I am not sure I understand the point of something that translates to bash.

    • 3 weeks ago
      Anonymous

      A compiler is a translator. Your cpu is an interpreter.

      • 3 weeks ago
        Anonymous

        A compiler specifically takes a target language and produces assembly. An assembler takes assembly and produces machine code.

        A compiler is a special case of a translator which makes assembly. You can't "compile" to bash, because bash is not assembly. Therefore Amber is a translator, not a compiler.

        • 3 weeks ago
          Anonymous

          >A compiler is a special case of a translator which makes assembly.
          This is just straight up wrong and an over specification. A compiler is any program that takes a program and a target language as it's input and produces a new program with the same semantics in the target language. It has nothing to do with assembly. If you believe this you're a fricking moron.

          • 3 weeks ago
            Anonymous

            >A compiler is any program that takes a program and a target language as it's input and produces a new program with the same semantics in the target language.
            A compiler produces assembly. Amber produces bash. Amber is not a compiler, it is a translator. What you described is also not a compiler, unless the target language is assembly.

          • 3 weeks ago
            Anonymous

            >A compiler produces assembly.
            Nope, not as a rule. Sorry Eli.

  10. 3 weeks ago
    Anonymous

    bash fricking sucks. Powershell, Python, PHP

  11. 3 weeks ago
    baritone

    windows batch / PowerShell support? writing that shit still sucks, even with ai as a crutch

  12. 3 weeks ago
    Anonymous

    >compile to bash
    Who in their right mind would want that? Does macos even comes with bash?

  13. 3 weeks ago
    Anonymous

    That name is already taken.
    https://amber-lang.net/

  14. 3 weeks ago
    Anonymous

    Cool Ill try it

  15. 3 weeks ago
    Anonymous

    >yet another shell scripting language
    >compiles into bash which doesn't even come with all distros
    what's the fricking point, bash is still an external dependency

  16. 3 weeks ago
    Anonymous

    Why are you homosexuals arguing about python in a javascript -> bash compiler thread.

  17. 3 weeks ago
    Anonymous

    imagine using a compiler and having it output bash instead of literally anything else

  18. 3 weeks ago
    Anonymous

    don't overcomplicate bash

  19. 3 weeks ago
    Anonymous

    If your bash script is getting so complicated that you can no longer write it in bash and need some language that "compiles" to bash to make it easier, then use a real programming language in the first place. The use case for bash is making little scripts that have an easy time interacting with the system / OS, if your use case is beyond the level of a small script then just don't use bash in the first place.

    • 3 weeks ago
      Anonymous

      >real programming language
      how? According to IQfy, there arent any

  20. 3 weeks ago
    Anonymous

    >Amber lang
    classic

  21. 3 weeks ago
    Anonymous

    >compiled to bash
    The death of Perl and its consequences has been a disaster for the mental health of tech industry.

    • 3 weeks ago
      Anonymous

      I dont personally like perl, but I can respect how googling any possible string manipulation will yield at least one forum post of completely indecipherable gobblyasiatic written by some old geezer that just werkz

    • 3 weeks ago
      Anonymous

      >Perl
      quit deadnaming raku

      • 3 weeks ago
        Anonymous

        quit doarenaming perl

      • 3 weeks ago
        Anonymous

        but raku is dead except for real this time.
        this is a good, that shit is fricking cancer. I can vaguely understand the obsession with fancy OOP (normal OOP + mixins/roles) and maybe the late binding and dynamic dispatch autism, although I hate it, but the metaobject/metamodel/metaprotocol thing and NQP are both fricking useless and dead weight. Both from a feature/use case perspective and from the implementation perspective. There entire bootstrapping process, compiler and user space runtime are absolutely disgusting.
        All of this shit wasn't in the original spec though (when it stopped being developped around 2010). If the implementation actually followed the spec it would have turned out into a nice bloated and slow but comfy scripting language.
        They should have sticked to C for the implementation, throw away that bootstrapping and historic compiler code base pile of shit, told Larry Wall to frick off with his moronic idea of merging recursive descent parsing with lexing (transitive Longest Token Matching) and its continuation-based implementation.

  22. 3 weeks ago
    Anonymous

    The whole reason I use bash is because I want zero dependencies other than the standard gnu utils in my scripts, why the frick would I learn a whole new language just to add another dependency that zero package managers will actually carry?

    • 3 weeks ago
      Anonymous

      it'll compile to something that's zero-dependency that you can run on a server or give to an ops to run. problem is it probably compiles to something indecipherable that zero-trust users wouldn't have any more confidence in than a random exe

      • 3 weeks ago
        Anonymous

        Fair enough, I misunderstood how compilation would work.
        In that case, it would depend on 2 things:
        The clarity of the resulting script, to prevent esoteric posix nonsense from being introduced
        And how easily the language would integrate with sed, grep, awk, etc

  23. 3 weeks ago
    Anonymous

    let me learn your fotm gimmick shit instead of learning bash that has been around for a million years

  24. 3 weeks ago
    Anonymous

    >yo dawg I heard you like interpreted languages so we made an interpreted language that transpiles to interpreted language

  25. 3 weeks ago
    Anonymous

    >The programming language compiled to bash
    Why not just use Python?

    • 3 weeks ago
      Anonymous

      Why not just use a newer lang and statically link an executable

    • 3 weeks ago
      Anonymous

      which version though?

      • 3 weeks ago
        Anonymous

        We settled this lame argument a decade ago. And the entire thing was overblown to start with

  26. 3 weeks ago
    Anonymous

    my thoughts? you can't have them

  27. 3 weeks ago
    Anonymous

    How smooth does your brain have to be that you can't figure out how to write some Bash or at least POSIX shell
    I can't even comprehend the use case for such a thing

  28. 3 weeks ago
    Anonymous

    I have never needed to write a shell script in my life.

    • 3 weeks ago
      Anonymous

      what about regexes? never needed to do a text search or a find and replace?

      • 3 weeks ago
        Anonymous

        Not from a shell, no.

  29. 3 weeks ago
    Anonymous

    >So I don't have to manually write bash
    So I have to learn a new programming language and write software in that, so I don't have to write in a programming language I can already use?

  30. 3 weeks ago
    Anonymous

    Why compile to bash instead of Bourne shell if the compiled script isn't meant to be modified by humans anyway?
    Also, what is the advantage of this approach over working the way Perl does?

    • 3 weeks ago
      Anonymous

      readable
      safe
      correct

      • 3 weeks ago
        Anonymous

        >readable
        The point is to not have to read the outputted scripts
        >safe
        >correct
        Bash isn't safer than Bourne Shell, and correctness is determined by the transpiler code, not the target language.

        • 3 weeks ago
          Anonymous

          >Bash isn't safer than Bourne Shell
          elaborate

          • 3 weeks ago
            Anonymous

            not anon but no elaboration needed
            >correctness is determined by the transpiler code, not the target language
            unless writing correct code is impossible in the target language ofc

  31. 3 weeks ago
    Anonymous

    but... why? if it's short script just write it raw. if it's more than, idk 40-100 lines, write proper program in golang(for portability) or python(for interpretability)

  32. 3 weeks ago
    Anonymous

    >Download for WSL
    This tells me everything I need to know

Your email address will not be published. Required fields are marked *