Skip to content

Instantly share code, notes, and snippets.

@Leonidas-from-XIV
Last active January 7, 2016 16:18
Show Gist options
  • Save Leonidas-from-XIV/0cc6494d2d3567ff1339 to your computer and use it in GitHub Desktop.
Save Leonidas-from-XIV/0cc6494d2d3567ff1339 to your computer and use it in GitHub Desktop.
js_of_ocaml, not a fan of stdio
$ ocamlbuild foo.byte
Finished, 3 targets (0 cached) in 00:00:00.
$ js_of_ocaml foo.byte
$ node foo.js /tmp/foo
/tmp/foo/foo.js:185
i=ak(r);if(0===i){if(!m)throw D;var
^
248,End_of_file,-5
let () =
input_line stdin
|> output_string stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment