On 12 Apr, 20:13, gavino <gavcom...@[EMAIL PROTECTED]
> wrote:
> On Apr 9, 11:48 am, petter.eges...@[EMAIL PROTECTED]
wrote:
>
> > Hi,
>
> > I have written a tcp-server for GForth, as a getting-started-with-a-
> > real-Forth-project-lesson. It is non-blocking, multi-threaded and very
> > alpha. It is based on the bsd-sockets interface and needs a Unix-like
> > environment to run.
>
> > It is so far tested on Mac (Intel and PPC, Tiger) and Redhat 8.0
> > (Intel 32 bit). Comments on code/improvements are welcome.
>
> > More info onhttp://egesund.org/forth/forth.htm
>
> > Cheers,
>
> > Petter Egesund
>
> frigging awesome
> is it fast?
Well, at present it is fast, but it is also rather simple.
I am working on the next version, which will handle buffering of
incoming data as well as more advanced send-receive patterns.
I think the thread-layout of GForth fits a multithreaded server very
well. The server will keep a mapping between thread-id's and ****ts,
and send a wake-up call to the sleeping thread (which is waiting for
data) from the select loop when data is coming in. The plan is that
this will be very fast :-)
Petter


|