Re: garbage-free java.nio

2018-03-12 Thread John Hening
Thanks! :) W dniu niedziela, 11 marca 2018 21:25:32 UTC+1 użytkownik John Hening napisał: > > Hello, > > recently I am interested in non-blokcing java api for networking. It seems > to be great. However, I would like to implement garbage-free solution. I am > trying to do it only for learning

Re: garbage-free java.nio

2018-03-12 Thread Roman Leventov
one.nio.net package of one-nio library ( https://github.com/odnoklassniki/one-nio/tree/master/src/one/nio/net) is basically a reimplementation of java.nio. It does less locking, and, I suppose, allocates less garbage. You may find it useful. On 12 March 2018 at 15:38, Michael Guyver

Re: garbage-free java.nio

2018-03-12 Thread Michael Guyver
On Sunday, March 11, 2018 at 8:25:32 PM UTC, John Hening wrote: > > recently I am interested in non-blokcing java api for networking. It seems > to be great. However, I would like to implement garbage-free solution. I am > trying to do it only for learning purpose (I know that I don't implement

Re: garbage-free java.nio

2018-03-12 Thread Martin Thompson
There are challenges with implementing a communications system (messaging or RPC) on top of NIO with Java but it can be done. If you want to learn about this you could study code bases that have done this. Aeron and Netty are two examples. For reference Aeron is garbage free once connections

garbage-free java.nio

2018-03-11 Thread John Hening
Hello, recently I am interested in non-blokcing java api for networking. It seems to be great. However, I would like to implement garbage-free solution. I am trying to do it only for learning purpose (I know that I don't implement a "better" solution). Especially, my solution is going to be