News for hackers. Stuff that matters.
Re:Show HN: Awk-JVM – A toy JVM in Awk by mzs on Tuesday June 23, 2020 @01:52PM (#23617594)
Nice project! It's only very old awks that don't support functions (like BSD awk does and nawk does on SunOS but /usr/bin/awk doesn't) and the GNU docs have an implementation of strtonum: https://www.gnu.org/software/gawk/manual/html_node/Strtonum-...
Re:Show HN: Awk-JVM – A toy JVM in Awk by wahern on Tuesday June 23, 2020 @03:02PM (#23618605)
POSIX awk supports user-defined functions. I'm surprised Solaris' default awk doesn't, but /usr/xpg4/bin/awk does support user-defined functions. (I just confirmed both behaviors on Solaris 11.4.)