[Toybox] awk seen in the wild

Andy Chu andychup at gmail.com
Wed Jul 20 22:57:50 PDT 2016


> The reason is presumably to reduce the number of languages a
> programmer must learn and remember.  But Andy's comments earlier about
> remembering those different syntaxes overstates the issue.  As a rule,
> you learn and recall the syntaxes you actually use.  You probably have
> to learn and use more than one, but you know that going in.  You
> likely aren't going to learn/use a lot of different scripting
> languages, because they address specific domains you may not be
> working in.

That assumption doesn't make sense unless you only work on your own code.

Look at something like Aboriginal Linux -- even if toybox were
complete, it would still be mostly other people's code (LLVM,
binutils, and whatnot).  Pretty much EVERY package uses a bunch of
shell and make, lots of it probably autoconf generated, and awk is
pretty common as well.  Those languages add up to about 150% of
functionality as far as I can tell, not 300%.

Rob apparently has no desire to learn awk, bc, m4 and all the rest
(and I don't blame him).  But he's learning those languages precisely
because he's dealing with other people's code.

Andy



More information about the Toybox mailing list