Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search


From: d4marcus:dtek:chalmers:se at: 3-Oct-2001 20:59

On Tue, 2 Oct 2001, Maarten Koopmans wrote:
> Another example to prove my point: Ruby, a Japanese OO-like language with its > own light-weight threading system, even on DOS! You could write a > light-weight threading system if you'd really wanted too in Rebol as well. > Now as for Rugby: you can call functions in other REBOL processes in Rugby > using the /deferred or /http-deferred refinements. They return immediately > with a ticket number for your request. You can use this number to check > regularly if the result is there, and if so fetch it.
It would be cool though if Rebol had something like this builtin: t: thread [file] [ list-dir file: to-file ask "Give a filename to write the result to: " ] result: do massively-timeconsuming-calculations file: await t/file write file result Instead of letting the user wait for the result either before or after typing the filename, it runs as the user types. I suppose this could be implemented with ports as you suggest, but perhaps it would be slightly more complicated than the above? Marcus ------------------------------------ If you find that life spits on you calm down and pretend it's raining