News for hackers. Stuff that matters.
Re:Show HN: Awk-JVM – A toy JVM in Awk by ufo on Tuesday June 23, 2020 @01:04PM (#23616820)
Honestly, maybe the most robust workaround is to rewrite it in another language... Lua might be a good candidate: it has a similar syntax and also uses 1-based arrays.
Re:Show HN: Awk-JVM – A toy JVM in Awk by wahern on Tuesday June 23, 2020 @02:59PM (#23618568)
But awk is usually part of the default system install, unlike Lua. And while GNU awk isn't as common, it's still far more likely to be available than Lua, especially on Linux systems. (Though, per elsethread, it shouldn't be too difficult to port to POSIX awk, or the superset of "portable" awk.)
Re:Show HN: Awk-JVM – A toy JVM in Awk by Twirrim on Tuesday June 23, 2020 @08:49PM (#23622552)
The odds of finding a linux system without perl5 on it are pretty slim. How much do you hate yourself? Is it enough to want to implement a JVM in perl.... :D
Re:Show HN: Awk-JVM – A toy JVM in Awk by tyingq on Tuesday June 23, 2020 @11:42PM (#23623802)
Perl comes with an awk to Perl translator...
Re:Show HN: Awk-JVM – A toy JVM in Awk by Twirrim on Wednesday June 24, 2020 @01:48PM (#23631326)
Hold my beer....?