News for hackers. Stuff that matters.
Re:Python to OCaml: Retrospective by steveklabnik on Tuesday January 26, 2016 @04:46PM (#10976369)
For fun I started porting the example over: https://gist.github.com/steveklabnik/f86cba4da1dc9c5c68e0

Then I realized that it wasn't totally clear to me what json_list_to_str_vector() should do, exactly, and so I don't even know how it would compare.

When this article was written Rust had a big runtime. It was a very different language. OCaml is pretty fast, but I would still expect Rust to fare much, much better today.

Re:Python to OCaml: Retrospective by masklinn on Wednesday January 27, 2016 @05:19AM (#10979274)
> Then I realized that it wasn't totally clear to me what json_list_to_str_vector() should do, exactly, and so I don't even know how it would compare.

It just converts a JSON-encoded list of strings into a Vec<String> doesn't it? That's what the other languages do:

* get data from some envvar

* decode it from json to an array/list/vector of strings

* concatenate argv[1..]to the result of (2)

* execute this new argslist (the first item being the name of the program)

Re:Python to OCaml: Retrospective by steveklabnik on Wednesday January 27, 2016 @09:33AM (#10980145)
Ah that makes sense. Oh well.