libev and Java
al-libev at none.at
Tue Feb 14 12:24:14 CET 2012
On 10-02-2012 18:17, Marc Lehmann wrote:
> On Thu, Feb 09, 2012 at 11:24:31PM +0100, Aleksandar Lazic
> <al-libev at none.at> wrote:
>> what are the list members think about to make a libev Java
>> 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
> the loop in each watcher to be able to automatically stop watchers.
> basically it would be the normal C API, but with methods. All the
> functions thta expect a loop * as first arg would probably beocme
> methods, and all the rest probably watcher methods.
> If you mean particular implementations of NIO*, then of course it
> on what those do. It's quite possible for NIO to outperform libev,
> example, because it is better-integrated with java - just nobody
> that until it has been tried :)
Well I think to create a selector for NIO* is the *best* way.
I will take a look into this further but without timeline, it's just
for my curiosity ;-)
More information about the libev