[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why someone should learn ocaml?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 22
Thread images: 2

File: download.jpg (7KB, 225x225px) Image search: [Google]
download.jpg
7KB, 225x225px
Why someone should learn ocaml?
>>
No one should. Let it die.
>>
>>61934826
Many reasons, like maybe you want a job at Jane St Capital in NY.

If you don't know anything about functional programming then you should start with 'Programming in Standard ML' by Harper, with the free new draft off his personal site. It's a much cleaner language and usually used for teaching (much like Scheme is used for teaching). It's a fantastic book that will also teach you how to program if you don't know already.

From there you can learn any other func language including OCaml
>>
>>61934826
Least obtrusive FP language out there, those don't really get faster than OCaml either. Sane and conservative design makes sure you don't get broken shit in every release. Very powerful module system that removes the need for any sort of OOP even though it supports it. Overall people who know OCaml (or its variant F# on MS platform) rarely use another language when it's not blatantly unsuitable.
>>
If you want to use SML but with uglier syntax.
If you want language that can't even into multithreading.
If you want language that doesn't have lot of libraries and has really painful C interface.
If you want language that is experiment ground and want features implement by some CS student.
>>
>>61934905
There's some undocumented C interfaces too
https://blog.janestreet.com/faster-ocaml-to-c-calls/

OCaml pops up in the weirdest places, besides finance you also find it being used for crypto test benches and some biolab work for some reason usually with calls to C libraries. Facebook uses it a lot too, for reasons unk
>>
>>61934826
because it has a cute camel as the logo
>>
>>61934965
>Facebook uses it a lot too, for reasons unk
Inhouse compilers afaik. Menhir is GOAT parser generator and it's much more convenient for such programs than most other FP languages.
The only downside with OCaml is the undocumented ABI honestly (among other things, it makes calling C procedures awkward).
>>
no parallelism
>>
>>61935208
>sharing address space (lol) is the only way to do parallelism
Kys
>>
>>61935290
>spawning new process when ever you need to run something parallel
SAD, also slow as shit.
>>
>>61935063
this
>>
Best jobs are in OCaml or Haskell.

I am an OCaml professional and amateur developer.
>>
>>61935428
>OCaml professional developer
Tell us more
>>
>>61935434
I am paid to write a C code generator. And I know that industry use OCaml when it's about static verification, because OCaml is a reliable language with strong pattern matching.
>>
>>61935447
So you're doing metaprogramming?
>>
>>61935428
Ocaml is real world language, Haskell is autism
>>
>>61934826
Because I smoke camel cigs.
>>
File: 1501743580657.jpg (31KB, 400x400px) Image search: [Google]
1501743580657.jpg
31KB, 400x400px
>>61934826
>>
>>61936106
Implying many apps really need multicore.
>>
>>61936646
grapes are sour too
>>
>>61934826
If you enjoy terrible tooling, terrible standard library and out-of-date packages.
Thread posts: 22
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.