Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on ChaiScript – Easy to Use Scripting for C++. Parent comment
Now compare with Lua:
$ python3 -c "import sys, timeit; n = 10; print('%.2f ms/spawn' % (1000 * timeit.timeit('subprocess.call([%r, %r], stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL)' % ('lua', '-'), 'import subprocess', number=n) / n))" 1.09 ms/spawn
$ python3 -c "import sys, timeit; n = 10; print('%.2f ms/spawn' % (1000 * timeit.timeit('subprocess.call([%r, %r], stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL)' % ('newlisp', '-'), 'import subprocess', number=n) / n))" 1.25 ms/spawn
There are no comments on this comment yet.
Now compare with Lua:
NewLisp: