Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



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.


AWK is an interpreter.


Awk has many interpreters and some compilers. awka is an awk compiler. lawk is an awk-JIT.


hence "compile" in quotes, and mention of AWK-lib instead of AWK. Ultimately, interpreted AWK will still call compiled machine code, no?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: