Previous: Dynamic Extensions, Up: Notes
AWK is a language similar to PERL, only considerably more elegant.
Arnold RobbinsHey!
Larry Wall
This section briefly lists extensions and possible improvements that indicate the directions we are currently considering for gawk. The file FUTURES in the gawk distribution lists these extensions as well.
Following is a list of probable future changes visible at the awk language level:
RECLEN variable for fixed-length recordsFIELDWIDTHS, this would speed up the processing of
fixed-length records.
PROCINFO["RS"] would be "RS" or "RECLEN",
depending upon which kind of record processing is in effect.
printf specifiersprintf
format specifiers. These should be evaluated for possible inclusion
in gawk.
lint warningsFollowing is a list of probable improvements that will make gawk's source code easier to work with:
Following is a list of probable improvements that will make gawk perform better:
It should be possible for gawk to convert the script's parse tree into a C program which the user would then compile, using the normal C compiler and a special gawk library to provide all the needed functions (regexps, fields, associative arrays, type coercion, and so on).
An easier possibility might be for an intermediate phase of gawk to convert the parse tree into a linear byte code form like the one used in GNU Emacs Lisp. The recursive evaluator would then be replaced by a straight line byte code interpreter that would be intermediate in speed between running a compiled program and doing what gawk does now.
Finally, the programs in the test suite could use documenting in this Web page.
See Additions, if you are interested in tackling any of these projects.