2 ms·
Question: could it be possible to translate/"compile" perl into equivalent AWK-lib version?
Maybe I'm wrong, but I though perl code tended to be "higher-level"
Question: could it be possible to translate/"compile" perl into equivalent AWK-lib version?
Maybe I'm wrong, but I though perl code tended to be "higher-level", whereas AWK is optimised C throughout?
AWK is an interpreter.
hence "compile" in quotes, and mention of AWK-lib instead of AWK. Ultimately, interpreted AWK will still call compiled machine code, no?
Awk has many interpreters and some compilers. awka is an awk compiler. lawk is an awk-JIT.
ok, I found https://github.com/noyesno/awka 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.