3 ms·
AWK is a very underappreciated language from the past, simple and fun to use. You did a very nice job, thanks!
by zserge 6y ago
AWK is a very underappreciated language from the past, simple and fun to use. You did a very nice job, thanks!
- enriquto 6y agoWhat do you mean by "from the past"? All existing languages are from the past. EDIT: what would be a language that is "not from the past"? Certainly Python(1991) is from the past if Akw(1977) is. The origin of Python is twice closer to the origin of awk than to the present time.
- yjftsjthsd-h 6y agoI'd argue that changes and improvements count almost as much as start date. Today, in 2020, "Python" mostly means "python3", and practically means "python>3.5 or so", which is not super recent but is a lot younger than 1991. Has AWK changed significantly in the last 30 years, or does current awk basically look the same as it did in System V?
- acqq 6y ago> Has AWK changed significantly in the last 30 years Actually it did, exactly the dialect used by the author of OP, Gawk got some very new and, in the context of awk language dialects, advanced features recently. https://www.gnu.org/software/gawk/manual/html_node/Namespace-Example.html https://www.gnu.org/software/gawk/manual/html_node/Namespace... The introduction of "namespaces" construct allows it to work with older programs but also construction of "libraries" in separate files. Anyway, I really like the OP implementation, everybody should take a look at: https://github.com/rethab/awk-jvm/blob/master/jvm.awk https://github.com/rethab/awk-jvm/blob/master/jvm.awk It's based on the https://github.com/zserge/tojvm/blob/master/vm.go https://github.com/zserge/tojvm/blob/master/vm.go but I consider the awk version really more "elegant" in some my-own-taste sense.