On Thu, Feb 09, 2012 at 11:24:31PM +0100, Aleksandar Lazic <[email protected]> 
wrote:
> Hi,
> 
> what are the list members think about to make a libev Java Interface?
> Is it worth comapared to NIO & NIO2?

Depends on how you measure "worth", but in most cases, I'd say somebody needs
to try it before being able to say so. Now, NIO* are specifications, so it
mostly depends on how the libev API would look like in java.

Since java requires manual destruction, the API would probably be an
"objectified C API", as opposed to e.g. the C++ interface which stores
the loop in each watcher to be able to automatically stop watchers. So
basically it would be the normal C API, but with methods. All the
functions thta expect a loop * as first arg would probably beocme loop
methods, and all the rest probably watcher methods.

If you mean particular implementations of NIO*, then of course it depends
on what those do. It's quite possible for NIO to outperform libev, for
example, because it is better-integrated with java - just nobody knows
that until it has been tried :)

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to