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

The Storm Engine

 [1/5] from: maarten:vrijheid at: 12-Aug-2003 7:31


As the main advice was "keep it clean" I thought I'd upload a slightly polished version. Docs and a sample included, asynchronously if you wnat it to be. Any feedback appreciated. Get it at: http://www.koopgoedkoop.net/software/storm-engine.zip --Maarten

 [2/5] from: petr:krenzelok:trz:cz at: 12-Aug-2003 16:53


[maarten--vrijheid--net] wrote:
>As the main advice was "keep it clean" I thought I'd >upload a slightly polished version. Docs and a sample
<<quoted lines omitted: 3>>
>http://www.koopgoedkoop.net/software/storm-engine.zip >--Maarten
Hello Maarten, 2 minutes feedback :-) 1) storm-engine/register-message echo func [ b [block!]][b] you state in the docs, that Storm is "block based". What about simplyfying syntax in following way? storm-engine/register-message [echo [b [block!]][b]] I mean - is 'func word really needed? Can it be actually anything else than 'func? I also enclosed 'echo word itself in a block, as Storm is a block based :-) Well, it is rougly a suggestion, - it is just brainstorming, nothing more ... 2) What is "storm-engine/message-handlers" in sample-server example good for? Maybe it is redundant and could be done automatically? cheers, -pekr-

 [3/5] from: andreas:bolka:gmx at: 12-Aug-2003 17:38


Tuesday, August 12, 2003, 4:31:58 PM, maarten wrote:
> As the main advice was "keep it clean" I thought I'd upload a > slightly polished version. Docs and a sample included, > asynchronously if you wnat it to be. > Any feedback appreciated.
1.) Of course your licensing is up to you, but is there any reason why this (and the async network stuff) has to be GPL'd? Makes it impossible to use in commercial/Non-GPLable REBOL stuff. 2.) repeat i 300 [ print i storm-client/send-message/deliver tcp://localhost:8000 echo [ test ] :probe ] -- output -- 1 2 ... 256 257 ** Access Error: Error opening socket /async ** Where: async-send ** Near: p2: open to url! p1 -- snap -- I'd guess some kind of max open ports (<=256) limit is reached. So I tried the following: repeat i 500 [ storm-client/send-message/deliver tcp://localhost:8000 echo reduce [ i ] :probe wait [] ] Seems to wait forever after msg #255 was received. If I leave the waiting by hitting ESC and try to send another message, I once more get the "Error opening socket /async" error. Any ideas? (the above was tried using rebol/core 2.5.6.3.1) -- Best regards, Andreas

 [4/5] from: maarten::vrijheid::net at: 12-Aug-2003 22:54


> 1.) Of course your licensing is up to you, but is there any reason why > this (and the async network stuff) has to be GPL'd? Makes it > impossible to use in commercial/Non-GPLable REBOL stuff.
Other licenses on request, commercial licenses available. Hence the free version is GPL'ed.
> 2.) > > repeat i 300 [ > print i > storm-client/send-message/deliver tcp://localhost:8000 echo [
test ]
> :probe > ]
<<quoted lines omitted: 12>>
> repeat i 500 [ > storm-client/send-message/deliver tcp://localhost:8000 echo
reduce [
> i ] :probe > wait []
<<quoted lines omitted: 3>>
> get the "Error opening socket /async" error. > Any ideas? (the above was tried using rebol/core 2.5.6.3.1)
On what OS? Can you do a length? System/ports/wait-list after hitting esc? Should be zero (ports are closed after delivery). I'll look into it. --Maarten

 [5/5] from: maarten:vrijheid at: 12-Aug-2003 22:56


> 2 minutes feedback :-) > 1) storm-engine/register-message echo func [ b [block!]][b]
<<quoted lines omitted: 3>>
> I mean - is 'func word really needed? Can it be actually anything else > than 'func? I also enclosed 'echo word itself in a block, as Storm is
a
> "block" based :-) Well, it is rougly a suggestion, - it is just > brainstorming, nothing more ... >
You pass a function, this one is just anonymous
> 2) What is "storm-engine/message-handlers" in sample-server example
good
> for? Maybe it is redundant and could be done automatically? >
Debugging code, remove that line... --Maarten

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted