ocaml-core - Google Groups: Message Pending [{IIK-oq-Cu-H1LCoCeWIwALbbsGLyV9UF0}]

Yaron Minsky yminsky at gmail.com
Tue Nov 1 01:12:08 GMT 2011


On Mon, Oct 31, 2011 at 1:45 PM, ocaml-core <
ocaml-core+msgappr at googlegroups.com> wrote:

>   A message has been sent to the ocaml-core<http://groups.google.com/group/ocaml-core?hl=en_US>group and is awaiting approval. We've included this message for your review.
>
> The message requires moderation because the user does not have permission
> to post.
>
> You can approve or reject<http://groups.google.com/group/ocaml-core/pendmsg?hl=en_US>this message or you can approve this message by replying to this email.
>  [image: Visit Google Groups]
>
> Start <https://groups.google.com/groups/create?hl=en_US&src=email> your
> own group, visit <http://groups.google.com/support/?hl=en_US&src=email>the help center, or
> report <https://groups.google.com/groups/abuse?hl=en_US&src=email> abuse.
>
>
> ---------- Forwarded message ----------
> From: Nathan Linger <nlinger at janestreet.com>
> To: ocaml-core at googlegroups.com
> Date: Mon, 31 Oct 2011 13:45:35 -0400
> Subject: Re: Making Async play better with others
>
> On 10/31/11 16:37, Anil Madhavapeddy wrote:
> > On 31 Oct 2011, at 15:06, Yaron Minsky wrote:
> >
> > > On 31/10/11 14:29, Anil Madhavapeddy wrote:
> > >> You could combine most of these by basing Async on top of libuv,
> > >> which is a superset of libev (the event library that Lwt uses to
> > >> abstract network I/O).
> > >>
> > >> https://github.com/joyent/libuv
> > >>
> > >> Crucially, libuv has good support for the Windows AIO model, and is
> > >> also what node.js uses to drive its event loop (so has widespread
> > >> usage).
> > >>
> > >> At first glance at Core, it looks like many of the Linux-specific
> > >> bits like high-res timers and thread scheduling are also covered by
> > >> it.
> > >
> > > How much do you know about the performance and quality of libuv?  I'm
> > > always nervous about shimming yet another layer between us and the
> > > bare metal.
> >
> > Nothing beyond flicking through the source code and occasionally being
> > cursed with using node.js (which works pretty well until you get to
> > the Javascript level :)
> >
> > It's pretty much the only game in town when it comes to cross-platform
> > C-based asynchronous programming libraries however (as far as I know).
>
> Isn't libevent[1] the same sort of thing?  I believe it is the C-based
> asynchronous programming library underlying memcached[2], which in turn
> is used by several high-profile web applications -- their website lists
> Wikipedia, WordPress.com, Flickr, Twitter, Typepad, Youtube, LiveJournal,
> Digg, Craigslist, and a handful of others I didn't recognize.
>
> I dusted off the ocaml bindings for libevent[3] at home last year and
> found them pretty usable for the small experiments I did (implementing a
> monadic interface for CML-style concurrent programming).  Their website[1]
> claims "Libevent should compile on Linux, *BSD, Mac OS X, Solaris,
> Windows, and more."
>
> [1] http://libevent.org/
> [2] http://www.memcached.org/
> [3] http://mmzeeman.home.xs4all.nl/ocaml/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/core/attachments/20111031/2b07e248/attachment.html>


More information about the core mailing list