2 ms·
For fun I started porting the example over: https://gist.github.com/steveklabnik/f86cba4da1dc9c5c68e0 https://gist.github.com/steveklabnik/f86cba4da1dc9c5c68e0
by steveklabnik 11y ago
For fun I started porting the example over: https://gist.github.com/steveklabnik/f86cba4da1dc9c5c68e0 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.
- masklinn 11y ago> 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)
- steveklabnik 11y agoAh that makes sense. Oh well.