Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
https://github.com/djanderson/aho/blob/8cd5cb737a3296cd3b3fe...
Wouldn’t it be more in the spirit of awk to simply write this as
editor = config::get("core.editor") || ENVIRON["EDITOR"] || “vi”
Namespaces (GNU Awk 5.0+) make Awk pretty well suited for larger projects (as demonstrated by aho), but it never quite took off; this article (by the author of GoAwk[1]) is a nice look at the relevance of Awk in 2020: https://lwn.net/Articles/820829/
[1]: https://github.com/benhoyt/goawk
A version of PROLOG in awk is here - https://github.com/prolog8/awkprolog - but it would be interesting to see those problems for students in AI which are done with awk.
ok, I found https://github.com/noyesno/awka so it is possible, though it uses it's own lib to link against - I don't know how much of that is based on AWK C vs original code.