News for hackers. Stuff that matters.
Re:Awk driven IoT by stephengillie on Monday July 10, 2017 @02:54PM (#14738646)
Add in dollar signs before the variables and you very nearly have valid Powershell as well.

>It's all there: the "in" operator, no need for semicolon as statement terminator, the "function" keyword, untypedness, regular expression constants, C-like curly braces, etc

At some point, these polyglots must merge. It makes no sense to have arbitrary particles be the only distinction between languages.

Re:Awk driven IoT by krick on Monday July 10, 2017 @04:57PM (#14739593)
Is there any downside to using JS instead of Awk for one-line shell scripting? Maybe it's time to retire Awk, and use js/Perl/whatever instead for that purpose?
Re:Awk driven IoT by shakna on Monday July 10, 2017 @09:54PM (#14741062)
Awk is much faster, and much more consistent in its memory management, and doesn't have some of the things that trip people up in JS (== vs ===, order of operations).

Plus, awk is probably in any *nix system, and probably doesn't need any updates to behave as expected. (And my favourite little thing: awk's executable is tiny.)