News for hackers. Stuff that matters.
Re:Python to OCaml: Retrospective by aikah on Tuesday January 26, 2016 @10:27AM (#10973833)
What about OCaml and concurrency ? what are the options out there ?

after reading :

http://roscidus.com/blog/blog/2013/09/28/ocaml-objects/

the language sounds quite interesting. Does it support something like channels ?

Re:Python to OCaml: Retrospective by jallmann on Tuesday January 26, 2016 @01:07PM (#10974804)
The canonical way to do concurrency these days is with a monadic library like Lwt or Async, which is a mechanism akin to promises/deferreds. They have their own implementations of channels/events/streams/what-call-you-it.

There is some interesting work being done on an effects system [1] which would be another option for type-safe concurrency, hopefully it will land soon alongside the multicore work.

There is also the old fashioned way with the stdlib's Event module[2] (in conjunction with Thread), but that's not used as often, mostly because Lwt/Async offer richer, safer abstractions.

[1] http://kcsrk.info/ocaml/multicore/2015/05/20/effects-multico...

[2] http://caml.inria.fr/pub/docs/manual-ocaml/libref/Event.html

Re:Python to OCaml: Retrospective by krat0sprakhar on Tuesday January 26, 2016 @10:42AM (#10973935)
OT: Yaron Minsky has a rather interesting view on concurrency in OCaml. Do checkout his latest interview on SE Daily - http://softwareengineeringdaily.com/2015/11/09/automated-tra...
Re:Python to OCaml: Retrospective by masklinn on Tuesday January 26, 2016 @10:52AM (#10973988)
LWT (a popular IO library) has channels: https://ocsigen.org/lwt/dev/api/Lwt_io

That's what TFAA (and MirageOS) use.

Re:Python to OCaml: Retrospective by bkirkbri on Tuesday January 26, 2016 @12:43PM (#10974661)
LWT's channels look more like filehandles. I think the GP was asking about channels in the CSP sense. It looks like LWT has that too in the form of streams.
Re:Python to OCaml: Retrospective by vog on Tuesday January 26, 2016 @11:33AM (#10974220)
Forgive my ignorance, but what is TFAA? All my web searches yield irrelevant results, such as "Triveni Faridabad Allottees Association" or "Trifluoroacetic anhydride".
Re:Python to OCaml: Retrospective by mercurial on Tuesday January 26, 2016 @11:50AM (#10974298)
The Fine Article Above?
Re:Python to OCaml: Retrospective by masklinn on Tuesday January 26, 2016 @12:56PM (#10974740)
The F(ine|ucking) Article's Author.
Re:Python to OCaml: Retrospective by fjh on Tuesday January 26, 2016 @12:48PM (#10974686)
"The fucking article's author"