On Tuesday, November 13, 2012 12:29:23 PM UTC+9, Dominick LoBraico wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">The fact that has probably blocked that is the general vastness of Core. There is an example file for the Command module included with Core I believe (command-line parsing module). If there are specific areas that you would like to see some clarity on I could write up some simple examples for you/the community.<br></blockquote><div><br>I gave it some thorough thought, that's why I did not reply right away.<br><br>1) definitively target the community, not just me, whatever I ask. I may be<br> a marginal user of both core and OCaml (I'm in academia in structural<br> biology / computer aided drug design, definitively not the mainstream<br> typical OCaml user).<br><br>2) I think some code example (compiling and working) using the error monad would<br> be nice. I would like more of my complex code to not be cluttered with error-<br> handling so that it is easier to reason about (and write).<br><br>3) Anything that's very different from what is in the OCaml std library might<br> be worth some code example, for example core's hash tables.<br> I know sometime there is some "bla bla" in wikis / text files, but working and<br> compiling code examples are invaluable.<br> If you read a lot of UNIX manpages, you will understand this in your guts:<br> no matter the amount of "bla bla", no matter who wrote it,<br> no matter how well it is written,<br> examples are _always_ invaluable (yes, some people will only read<br> and use the examples and nothing from the documentation,<br> but that's the problem of this kind of user).<br><br>Best regards,<br>Francois.<br><br></div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><br>On Monday, November 12, 2012 7:02:51 PM UTC-6, Francois Berenger wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the command.<br><br>In fact, it would be quite useful to have example programs for core too. <br>I think I saw just one, while async has many.<br><br>On Tuesday, November 13, 2012 5:20:43 AM UTC+9, Dominick LoBraico wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Francois,<div><br></div><div>If you have ocamlfind install, this should work (for example):</div><div><br></div><div>$ ocamlfind ocamlc -thread -package async -linkpkg <a href="http://hello.ml" target="_blank">hello.ml</a> -o hello.exe</div><div><br></div><div><br>On Thursday, November 8, 2012 7:01:50 PM UTC-6, Francois Berenger wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">By the way, how do I compile them?
<br>It was my initial question. ;)
<br>
<br>On Fri, Nov 9, 2012 at 10:00 AM, Francois Berenger
<br><<a>francois.ber...@gmail.com</a>> wrote:
<br>> $ cd ~/.opam/system/build/async.<wbr>108.07.01/examples
<br>> $ grep -ri jane.std *
<br>> bin_prot_test.ml:open Jane.Std
<br>> cat.ml:open Jane.Std
<br>> countdown.ml:open Jane.Std
<br>> finalizer.ml:open Jane.Std
<br>> monitors.ml:open Jane.Std
<br>> process.ml:open Jane.Std
<br>> process_stream.ml:open Jane.Std
<br>> server.ml:open Jane.Std
<br>> signals.ml:open Jane.Std
<br>> sigpipe.ml:open Jane.Std
<br>> socket.ml:open Jane.Std
<br>> sound.ml:open Jane.Std
<br>> write_forever.ml:open Jane.Std
<br>>
<br>> On Fri, Nov 9, 2012 at 2:02 AM, Stephen Weeks <<a>swe...@janestreet.com</a>> wrote:
<br>>>> Jane.Std is some internal stuff that is not exported. We should fix
<br>>>> that example not to use it. Which specific example is it?
<br>>>
<br>>> Many of the examples in base/async/examples unnecessarily refer to
<br>>> Jane.Std. I pushed a fix internally to change them all to Core.Std.
<br></blockquote></div></blockquote></blockquote></blockquote>