some hand-written queries in awk and c

c version
time ./a.out ~/Downloads/googlebooks-eng-all-1gram-20120701-a
real    0m17.396s
user    0m16.929s
sys     0m0.456s

awk version
time awk -f query_t1gram2.hand.awk ~/Downloads/googlebooks-eng-all-1gram-20120701-a
real 2m1.157s
user 1m59.960s
sys  0m0.994s
Merge branch 'master' of github.com:scala-lms/tutorials
remembering the mysql commands
example MySql queries

result on benchmark machine (different machine from the laptop over which the other anecdotical perf runs come from)
first query (*):
217 rows in set (1 min 0.97 sec)
second query (with field projection):
217 rows in set (49.30 sec)
fix c comment syntax
we're talking -O3, aren't we?
hand written C version using mmap, almost 3x faster

timings on my macbook:

me$ cc -O3 query_t1gram2.hand.c; time ./a.out ~/Downloads/googlebooks-eng-all-1gram-20120701-a

real	0m8.925s
user	0m8.395s
sys	0m0.472s

me$ cc -O3 query_t1gram2.hand2.c; time ./a.out ~/Downloads/googlebooks-eng-all-1gram-20120701-a

real	0m3.110s
user	0m1.501s
sys	0m1.590s
some work on c generation
Merge branch 'master' of https://github.com/scala-lms/tutorials