it's blazing fast. strict (not like the other shit), french.
it supports:
functional style (yay)
imperative programing (because mutation is essential)
and a sane OOP (seriously is one sane OOP, is not ambitious is just useful)
pattern matching is great. i would love to see a OS with it's entire userland written in this.
but i don't why haven't catch on?, what is your excuse Prog
I prefer using Common Lisp, but I did learn O'Caml. I do like the language(the ML family), but I just find Lisp more comfortable for most general purpose programming.
Name:
Anonymous2012-01-14 2:52
>>34
I don't think the ML circles have much to say about Ruby and certainly not like Lisp circles are notorious for hating on Perl and everything that is not Lisp (and half of everything that is Lisp.) There's just no concept of a threat.
Name:
Anonymous2012-01-14 6:27
Symta:
sum [X@Xs] = X+Xs,r
C/C++:
int sum(int *Xs) {
int I,S;
for(S=I=0; I<Xs[-1]; I++) S+=Xs[I];
return S;
}
OCaml:
let rec sum xs =
match xs with
| [] -> 0
| x :: xs' -> x + sum xs'
Name:
Anonymous2012-01-14 6:38
i would love to see a OS with it's entire userland written in this
OCams --> GC --> slow
I like C++ more because it's faster. Maybe if they removed GC from OCaml I might reconsider.
>>37
It's pretty domain specific. My field is in computer vision and machine learning. There is no way Ocaml will come close what Matlab and C/C++ has in terms of libraries and code. Good start would be bindings to OpenCV, I guess, but Ocaml would have to be really really popular for that to happen.
Name:
Anonymous2012-01-14 23:48
>>49
Lets maintain some lisp code
())()-(*---)+)-)-(*(++?(**+?(*((((+(++)))))))))))))))))))
Name:
Anonymous2012-01-15 0:59
>>53
Yeah, that is fairly specific. Based on the bindings I've found I can only conclude that most OCaml users are not afraid of writing their own bindings, or there are a few prolific people out there writing bindings for the hell of it.
Either way, you're probably not going to see bindings pop up unless you write them yourself, or OCaml becomes more popular like you suggest.