I added hello world programs for C, SWI Prolog, and OCaml (byte and native compilers). Timings on OpenBSD/amd64.
Edit: Since you can precompile Lua, I added that as 'luac'. It's not usually done, since Lua compiles VERY quickly, and the source is more portable. It's a data point, though. I also added a .pyc for Python - Python byte-compiles more slowly. There's little difference between lua and luac, but the difference between python and py_pyc is huge.
I also added shell with a new subshell, both sh and bash. And, source, as requested.
OCaml:
let _ = print_string "Hello world.\n"
Compile with "ocamlc -o ochello foo.ml" for bytecode, "ocamlopt -o ochello.opt foo.ml" for native.
SWI Prolog:
swipl => sub { system qq[swipl -g "write('Hello world.\n')." -t "halt."] },
luac:
print "Hello, world."
And then compile with "luac hellow.lua", run as "lua luac.out".
Edit: Since you can precompile Lua, I added that as 'luac'. It's not usually done, since Lua compiles VERY quickly, and the source is more portable. It's a data point, though. I also added a .pyc for Python - Python byte-compiles more slowly. There's little difference between lua and luac, but the difference between python and py_pyc is huge.
I also added shell with a new subshell, both sh and bash. And, source, as requested.
OCaml:
Compile with "ocamlc -o ochello foo.ml" for bytecode, "ocamlopt -o ochello.opt foo.ml" for native.SWI Prolog:
luac: And then compile with "luac hellow.lua", run as "lua luac.out".