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

[REBOL] Re: Multi-process

From: carl:cybercraft at: 2-Nov-2002 8:52

On 02-Nov-02, Louis A. Turk wrote:
> Rebols, > In a certain script I must manually insert data then save the file. > The file is huge and takes over two minutes to save, while I just > sit there looking at the screen. > How can I save to a separate process so I can immediately get back > to data entry (the manual data entry itself takes over two minutes, > so there is no worry about saving before the previous save is > completed). > Is Rugby a solution? or does Rugby not work on a stand alone > computer? > What are my options?
Rugby is possibly a solution, (not used it so not sure), but a seperate process running a little server just for the job would certainly be an efficient way to do it. See the TCP section of Network Protocols in the Core Guide - simple servers are quiet easy to code. An alternative but probably not very efficient way would be to open a new window and use feel to do your saving. ie, something like this... view layout [ area "You can type stuff in here while the counter's counting." button "Start Count" [ count: 0 win: view/new/offset layout [ across text "Saving: " counter: text 100 rate 10 feel [engage: [ counter/text: to-string count show counter if 101 = count: count + 1 [unview/only win] ]] ] 20x250 ] ] (I didn't attempt a tiny server as I have to read the book to remind me how to code one:) -- Carl Read