News for hackers. Stuff that matters.

odino

Re:A Second Search for Bash Scripting Alternatives on Thursday November 21, 2024 @10:03AM (#42204936)
ABS creator here. Thanks for the kind words :)

Long way to go but was very happy to see someone wanting a better alternative to bash and trying ABS out!

Re:The ABS Programing Language on Tuesday August 31, 2021 @12:07PM (#28369758)
BTW if we remove error handling, I think ABS' code would look like:

    ip = `curl -s 'https://api.ipify.org?format=json'`.json().ip
    total = ip.split('.').map(int).sum()
    if total > 100 {
        echo("The sum of [$ip] is a large number, $total.")
    }
I would suggest implementing decorators in NGS. Not because you will need them, but because they're easily the most fun part I had to write in ABS :) That, and seeing stdin() working for the first time on my terminal!
Re:The ABS Programing Language on Tuesday August 31, 2021 @12:05PM (#28369730)
Yes, I replied to your original comment. Again, truth to be told I've got limited space to work with on the UI to showcase some of the syntax but I agree that snippet doesn't make a lot of sense...suggestions welcome!
Re:The ABS Programing Language on Tuesday August 31, 2021 @12:00PM (#28369671)
Sorry the example on the docs is definitely not a good one, though I've had a hard time finding something more appropriate that can fit within that block :) Suggestions are more than welcome!

Hash keys need to be string (eg. n -> n.str()), I fixed the example on the homepage.

Re:The ABS Programing Language on Tuesday August 31, 2021 @11:31AM (#28369299)
I would check in a few weeks :)

https://github.com/abs-lang/abs/issues/447

Re:The ABS Programing Language on Tuesday August 31, 2021 @11:29AM (#28369283)
Re:The ABS Programing Language on Tuesday August 31, 2021 @11:28AM (#28369268)
Author here -- hi! :)

I just wanted to say thanks for sharing this, it made my day. I started ABS a couple Christmases ago as I had a week off and the constant thought that there's gotta be a "nicer" way to script things, without the verbosity of higher-level languages...and I'm happy to see folks finding ABS useful.

I haven't updated it in a couple of months as I find it pretty "complete" from my perspective, but I also have some crazy ideas every now and then that I know I'll want to throw into the language.

Again, thanks for giving ABS a try!

PS. I wanted to credit Thorsten Ball for his books, without them I would have never been able to build ABS:

https://interpreterbook.com/

https://www.abs-lang.org/

Brings me joy every single day, even if I'm the only user in the world :)

Re:The ABS programming language on Tuesday December 25, 2018 @02:29AM (#18756431)
Yeah, 100%. Being able to compile across platforms is one of the reasons Go was an absolute no-brainer:

https://www.abs-lang.org/misc/technical-details

Currently, there are binaries for a few different platforms:

https://github.com/abs-lang/abs/releases

Interestingly enough, the releases are built with an ABS script:

https://github.com/abs-lang/abs/blob/master/scripts/release....

:)

Re:The ABS programming language on Monday December 24, 2018 @07:21PM (#18755057)
Disclaimer: author here :)

This is something I've put together to see how scripting with an elegant language and easy bash commands would look like.

Happy to hear your feedback, both positive and negative!

Re:21 Years of Income as a Software Engineer in San Francisco on Saturday February 24, 2018 @08:51AM (#16453238)
> If you're making ~$60,000 or more in the US, you are overwhelmingly going to have good health insurance. If you're making $140,000, you're going to have great health insurance. I fail to see how universal healthcare is a lure in this case.

If you get insured.

I think most Europeans are proud to pay taxes to make sure a random fellow living down the street who got cancer can afford his treatments. At least that has been my mentality around taxes for as long as I've lived there.

Sure, taxes don't all go towards nice things :) but at the end of the day I'm proud to be helpful to those who are in need.

Never understood the healthcare system in the US, it just sounds "wrong" to me.

Re:Critical Vulnerabilities in JSON Web Token Libraries on Wednesday April 01, 2015 @03:25AM (#9302123)
By the way, claps for Tim for the amazing job. He contacted various people and gave them heads up weeks ago. I think the wat this was handled was awesome.

<3 OSS