Here is one fellow’s feedback on OCaml.
It is balanced and seems useful, especially given that he links to his philosophy on languages, which appears to be a healthy one.
HPDC 2010 in Chicago this year
Here is the website; it looks to be pretty interesting.
OpenMP vs MPI: Who needs more help using it?
OK this is definitely a tougne-in-cheek post, subtly suggesting that OpenMP is a better API then MPI simply by looking at the number of helpdesk tickets, but it is worth a laugh if you don’t take it too seriously :).
(Especially since they are apples vs oranges)
Write Android and Webapps in PLT Scheme with Moby
Here is a post over at Hacker News linking to how to write Android and web apps with Moby.
(via plt)
What is the defacto OCaml build tool?
I had wondered:
What is the defacto OCaml build tool?
to which Sylvain replied:
– ocamlbuild (in OCaml distribution)
– OCamlMakefile
Some other use OMake.
What is the defacto OCaml unit testing tool?
Running Ocamlbrowser with OCaml 3.11.2 on Cygwin 1.72
After building OCaml 3.11.2 from source on Cygwin 1.72 I tried running ocamlbrowser and got the error:
Fatal error: exception Protocol.TkError("Can't find a usable init.tcl in the following directories:
C:/cygwin/share/tcl8.4
C:/cygwin/home/rettkeg/ocaml/build/ocaml-3.11.2/share/tcl8.4
C:/cygwin/home/rettkeg/ocaml/build/ocaml-3.11.2/usr/share/tcl8.4
C:/cygwin/home/rettkeg/o
The solution is can be found here:
export TCL_LIBRARY=/usr/share/tcl8.4
Is it "poor taste" to include type information in function definitions?
I had wondered:
Is it “poor taste” to include type information in function definitions?
It seems like very nice documentation, but then again, maybe it is nicer rely on the inferencing engine to reduce the amount of code?
In theory you write short, easy to understand functions; in practice it isn’t always this simple though.
People kindly replied:
When you can avoid it, it is better to NOT include type information. Using a tool like “ocamldoc” will render the function and its inferred types in a real documentation format (e.g. HTML).
There are cases where you need to include type information, but they are corner cases.
— Sylvain
Interface files (.mli) are usually the main place for documentation. Within the .ml files, you can explain your algorithms but it’s usually just plain comments, not so much type annotations.
— Martin
As to the matter of “taste”, note that this practice is not idiomatic in Ocaml, in contrast to Haskell where it seems current. I’m not sure if that’s your case, but people coming to Ocaml from Haskell may at first tend to exaggerate on this aspect…
— Dario
An Identity Function in OCaml
I didn’t find one in Pervasives, and having read this thread I see why and that there probably is not one.
However, I wanted to do something like initialize an array of (0..9) and figured that identity is more convenient than (fun i -> i).
Raphael explained that it can be found here in Batteries Included.
(via ocaml-beginners)
PLT Scheme v4.2.5 adds real parallelism and class contracts
PLT Scheme v4.2.5 adds real parallelism and class contracts.
Awesome.
(via Eli)