▲ 86 ▼ Amber the programming language compiled to Bash, 0.5.1 release (docs.amber-lang.com) submitted 11 months ago by lens0021@programming.dev to c/linux@programming.dev 38 comments fedilink hide all child comments My primary use case for Amber is when I need to write a Bash script but don't remember the silly syntax. My most recent Bash mistake was misusing test -n and test -z. In Amber, I can just use something == "" or len(something) == 0
[+] sga@piefed.social 3 points 11 months ago (4 children) [deleted] permalink fedilink source parent hideshow 4 child comments replies: [–] SinTan1729@programming.dev 2 points 11 months ago (3 children) Been there, done that lol. Nowadays, if I think that some script is getting too long, I just rewrite it in Go. It's faster to write than Rust (in fact, I find it almost as easy as Python), and performant enough for replacing scripts. permalink fedilink source parent hideshow 3 child comments replies: [–] chris104@mastodon.social 2 points 11 months ago (2 children) @SinTan1729 @sga I've been toying with the idea of learning Go. I currently tinker in python and bash scripts. Is Go worth my time learning? permalink fedilink source parent hideshow 2 child comments replies: [–] SinTan1729@programming.dev 2 points 11 months ago* (last edited 11 months ago) (1 child) Oh, definitely. Its syntax is so simple, you can basically learn the basics over an afternoon. Outside of applications where consistent low latency is critical, if I can spare some extra RAM and CPU, I prefer Go to Rust. permalink fedilink source parent hideshow 1 child comment replies: [–] chris104@mastodon.social 1 point 11 months ago @SinTan1729 Thanks for the feedback. I'll do more research on it then. permalink fedilink source parent
[–] SinTan1729@programming.dev 2 points 11 months ago (3 children) Been there, done that lol. Nowadays, if I think that some script is getting too long, I just rewrite it in Go. It's faster to write than Rust (in fact, I find it almost as easy as Python), and performant enough for replacing scripts. permalink fedilink source parent hideshow 3 child comments replies: [–] chris104@mastodon.social 2 points 11 months ago (2 children) @SinTan1729 @sga I've been toying with the idea of learning Go. I currently tinker in python and bash scripts. Is Go worth my time learning? permalink fedilink source parent hideshow 2 child comments replies: [–] SinTan1729@programming.dev 2 points 11 months ago* (last edited 11 months ago) (1 child) Oh, definitely. Its syntax is so simple, you can basically learn the basics over an afternoon. Outside of applications where consistent low latency is critical, if I can spare some extra RAM and CPU, I prefer Go to Rust. permalink fedilink source parent hideshow 1 child comment replies: [–] chris104@mastodon.social 1 point 11 months ago @SinTan1729 Thanks for the feedback. I'll do more research on it then. permalink fedilink source parent
[–] chris104@mastodon.social 2 points 11 months ago (2 children) @SinTan1729 @sga I've been toying with the idea of learning Go. I currently tinker in python and bash scripts. Is Go worth my time learning? permalink fedilink source parent hideshow 2 child comments replies: [–] SinTan1729@programming.dev 2 points 11 months ago* (last edited 11 months ago) (1 child) Oh, definitely. Its syntax is so simple, you can basically learn the basics over an afternoon. Outside of applications where consistent low latency is critical, if I can spare some extra RAM and CPU, I prefer Go to Rust. permalink fedilink source parent hideshow 1 child comment replies: [–] chris104@mastodon.social 1 point 11 months ago @SinTan1729 Thanks for the feedback. I'll do more research on it then. permalink fedilink source parent
[–] SinTan1729@programming.dev 2 points 11 months ago* (last edited 11 months ago) (1 child) Oh, definitely. Its syntax is so simple, you can basically learn the basics over an afternoon. Outside of applications where consistent low latency is critical, if I can spare some extra RAM and CPU, I prefer Go to Rust. permalink fedilink source parent hideshow 1 child comment replies: [–] chris104@mastodon.social 1 point 11 months ago @SinTan1729 Thanks for the feedback. I'll do more research on it then. permalink fedilink source parent
[–] chris104@mastodon.social 1 point 11 months ago @SinTan1729 Thanks for the feedback. I'll do more research on it then. permalink fedilink source parent