[REBOL] Re: timers in Core would be enough imo :-) (was) Re: Re: REBOL multithr
From: petr:krenzelok:trz:cz at: 15-Feb-2002 10:22
> Here's a quick (and probably ignorant) question:
> If threading isn't really possible with REBOL,
noone said it isn't :-) In fact, Holger posted one long and very nice
description of what are the possibilities and consequences of threading in
regard to scripting languages ....
> how can you really
> construct a decent GUI, or server? I mean, serverware that can be listening
> to the port, receive a request, and deal with it, while another request is
> received, and so forth. Wouldn't this require threading?
No :-) Do we have threading? Can you see your View scripts to block you? As with
tcp, when you open your listen port, you can open it in no-wait mode. In this
case wait [portX] checks for data on your portX, but returns imediatelly, either
telling you there is no data, or returning you port (or block of ports if
wait/all is used) some data appeared on ....
You can receive your data in parts, process them and return back to waiting. You
can look at some web-server or proxy scripts in the script library for some