Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34797

Re: : Light Weight Channels Lib anybody

From Daniel Pitts <usenet@coloraura.com>
Newsgroups comp.lang.java.programmer
Subject Re: : Light Weight Channels Lib anybody
Date 2016-07-08 10:25 -0700
Organization A noiseless patient Spider
Message-ID <nlonmr$4hr$1@dont-email.me> (permalink)
References <nlnsho$h2n$2@news.albasani.net> <nlohar$aq9$4@dont-email.me> <nlon73$5u4$1@news.albasani.net>

Show all headers | View raw


On 7/8/16 10:17 AM, Jan Burse wrote:
> Interesting. Small question before I go deeper in your code, is
> your code supposed to be a variant of:
> https://docs.oracle.com/javase/7/docs/api/java/nio/channels/Selector.html
>
> Because I consider this not as light weight, rather heavy
> weight, since it uses the OS channels. Also delegates to
> the OS poll.
>
> I would like to use some very simple home grown pipes(*)
> as channels, and don't need to support something else
> as channels.
Yes, my code uses the Selector class.

I think I misunderstood your original question, which I think maybe is 
about same-process communication.   There are *many* ways to do that 
with Java.  PipeInputStream and PipeOutputStream are one way.  The 
java.util.concurrent package has a lot of other ways to efficiently pass 
data between threads as well.


>
> Bye
>
> (*)
> http://www.jekejeke.ch/idatab/doclet/blog/en/docs/05_run/01_kernel/misc/Queue.html
>
>
> Daniel Pitts schrieb:
>> I just so happen to have created such a thing myself a while back:
>>
>> https://github.com/StochasticTinkr/net.virtualinfinity.nio
>>
>> Note that Golang has different semantics than Java, so you can't do a
>> one-to-one translation.
>

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

: Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-08 11:42 +0200
  Re: : Light Weight Channels Lib anybody Daniel Pitts <usenet@coloraura.com> - 2016-07-08 08:36 -0700
    Re: : Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-08 19:17 +0200
      Re: : Light Weight Channels Lib anybody Daniel Pitts <usenet@coloraura.com> - 2016-07-08 10:25 -0700
      Re: : Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-08 19:27 +0200
      Re: : Light Weight Channels Lib anybody Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-07-09 10:41 +0200
        Re: : Light Weight Channels Lib anybody Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-09 10:46 +0000
  Re: : Light Weight Channels Lib anybody j4n bur53 <janburse@fastmail.fm> - 2016-07-09 17:43 +0200
    Re: : Light Weight Channels Lib anybody j4n bur53 <janburse@fastmail.fm> - 2016-07-09 17:44 +0200
      Re: : Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-09 18:17 +0200

csiph-web