Hello
Here is the latest OCaml Weekly News, for the week of November 04 to 11, 2014.
Archive: https://sympa.inria.fr/sympa/arc/caml-list/2014-11/msg00014.html
Roelof Wobben asked and Paolo Donadeo replied:> Does Ocaml has a testing platform where I can write test like this way > I can do in clojure: > > (facts "about `pr134`" > (fact "it normally return true if the key exist and the value is nil" > (pr134 :a {:a nil :b 2}) => true > (pr134 :b {:a nil :b 2}) => false > (pr134 :c {:a nil :b 2}) => false > )) Did you considered qtest? http://batteries.vhugot.com/qtest/Milan Stanojević also replied:
There is also pa_ounit, https://github.com/janestreet/pa_ounit
Archive: https://sympa.inria.fr/sympa/arc/caml-list/2014-11/msg00026.html
Tony announced:OCaml is a fantastic language with huge potential which is only unlocked by a few London-based companies. I have a client which is exploring the application of programming using OCaml in the development of algebra representation for financial instruments. You will have the opportunity to introduce the language and train others who have a passion for functional programming. Unfortunately I have to limit the details I provide about this position via email. However, anyone who is interested please do get in touch in reply to this message and we can have an informal conversation to see if there is interest in both sides. An ideal candidate would have a background in good programming principles (perhaps C or C++) but a desire to work in OCaml for the future. The salary limit will be around £100,000.Jeremy Yallop then suggested:
There's a dedicated mailing list for job-related postings: ocaml-jobs@inria.fr. It might be worth posting there as well.
Archive: https://sympa.inria.fr/sympa/arc/caml-list/2014-11/msg00030.html
Christoph Höger asked and Gabriel Scherer replied:> is there a way to compare two abstract syntax trees for equality > without taking into account locations? Or rather a way to stratify the > location information inside a parsetree? I want to unit-test a parser > that invokes the OCaml parser itself. The Ast_mapper module contributed by Alain Frisch to recent versions of the OCaml distribution allows you to perform arbitrary transformations from AST to AST in a convenient way. In particular, you could implement a erase-all-locations pass by simply overloading the "location" method (it uses object-oriented style for open recursion) to always return a dummy value.Rodolphe Lepigre also replied:
One quick, dirty and hackish way to do that is to use the -dparsetree option to print the parse tree, use sed to remove position indication and the compare files with diff... I used that trick to compare the ast generated by an OCaml parser generated using DeCaP (http://lama.univ-savoie.fr/decap/), and the ast generated by other OCaml parsers. Here is the script we used: ########## #!/bin/bash ocamlc -dparsetree $1 2> /tmp/$1.ocaml ocamlc -dparsetree -pp ../pa_ocaml $1 2> /tmp/$1.pa_ocaml cat /tmp/$1.ocaml | sed -e 's/(.*\.ml\[.*\]\.\.\[.*\])\( ghost\)\?//' > /tmp/$1.ocaml.out cat /tmp/$1.pa_ocaml | sed -e 's/(.*\.ml\[.*\]\.\.\[.*\])\( ghost\)\?//' > /tmp/$1.pa_ocaml.out # diff -y /tmp/$1.ocaml.out /tmp/$1.pa_ocaml.out | less diff $2 /tmp/$1.ocaml.out /tmp/$1.pa_ocaml.out ##########
Archive: https://sympa.inria.fr/sympa/arc/caml-list/2014-11/msg00041.html
Anil Madhavapeddy announced:There have been several requests from professors who are teaching OCaml in schools and universities to have a forum to discuss issues relating to using OCaml in an educational context. I have created the <teaching@lists.ocaml.org> mailing list for this purpose: Subscription: http://lists.ocaml.org/listinfo/teaching Web Archives: http://lists.ocaml.org/pipermail/teaching/ There is an informal wiki that is gathering information for eventual importing to OCaml.org here: https://github.com/ocaml/ocaml.org/wiki/OCAML-Teaching-Resources (and the associated pull request: https://github.com/ocaml/ocaml.org/pull/565) If you would like to contribute, please free to join the list by following the first link, or contribute pointers to useful teaching resources at the wiki or OCaml.org site. In particular, if you teach a course and don't mind being publicly listed, adding yourself to the index helps other people who are considering using OCaml. As a reminder, anyone can request a mailing list on lists.ocaml.org if it is relevant to the OCaml language or ecosystem. Just drop a line to me or to <infrastructure@lists.ocaml.org> for more information.
Thanks to Alp Mestan, we now include in the OCaml Weekly News the links to the recent posts from the ocamlcore planet blog at http://planet.ocaml.org/. Complexity: http://shayne-fletcher.blogspot.com/2014/11/complexity.html Full Time: Software Developer (Functional Programming) at Jane Street in New York, NY; London, UK; Hong Kong: http://jobs.github.com/positions/0a9333c4-71da-11e0-9ac7-692793c00b45 Senior Software Engineer at McGraw-Hill Education (Full-time): http://functionaljobs.com/jobs/8760-senior-software-engineer-at-mcgraw-hill-education
If you happen to miss a CWN, you can send me a message and I'll mail it to you, or go take a look at the archive or the RSS feed of the archives.
If you also wish to receive it every week by mail, you may subscribe online.