• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[Rebol School] REBOL School

Sujoy
10-Oct-2012
[1277]
yes it certainly would
Sujoy
11-Oct-2012
[1278x3]
Kaj: 
love your r2 bindings for zeromq 
i've been trying to implement the push-pull ventilator example

ventilator:
REBOL []

do %zmq.r

pool: zmq/new-pool 1
socket: zmq/open pool zmq/push
zmq/serve socket tcp://*:5555

ventilate: func[][
  print "sending"
  u: form time/now/precise
  zmq/send socket to-binary u 0
]

wait 0:00:60 [
  ventilate
]

worker:
REBOL []

do %zmq.r

pool: zmq/new-pool 1
socket: zmq/open pool zmq/pull
zmq/connect socket tcp://*:5555

data: copy #{}

forever [
  zmq/receive socket data 0
  prin ["."] 
  print to-string data
]

...but the worker crashes
any idea why?
the weather update server works just fine...
Nicolas
11-Oct-2012
[1281]
Please excuse my ignorance but has rebol been open sourced yet?
Henrik
11-Oct-2012
[1282]
Nicolas, the license is still being discussed.
Nicolas
11-Oct-2012
[1283x2]
Thanks. That's what I suspected but I wasn't sure.
Excited?
Henrik
11-Oct-2012
[1285]
Well, it will be interesting to see if we can finally get some movement 
on it, but Red is getting rather distracting.
Nicolas
11-Oct-2012
[1286x2]
Yeah, I'm playing with it now.
Still. I'm pretty excited to see the code.
Kaj
11-Oct-2012
[1288]
Sujoy, I only did a request/reply example so far, so I'll have to 
look into it
Sujoy
11-Oct-2012
[1289x2]
Thanks Kaj
i need to be able to get rebol working with push-pull, so i can get 
apps running behind zed shaw's mongrel2 server

there's nothing better than rebol for parsing - and i want to keep 
using rebol
any help hugely appreciated!
Kaj
11-Oct-2012
[1291]
I'm running Mongrel since several weeks, with Cheyenne and Fossil 
behind it
Sujoy
11-Oct-2012
[1292]
cool! so you have the mongrel pushing requests to Cheyenne?
Kaj
11-Oct-2012
[1293]
You could also run R2 code on Cheyenne, and use Mongrel as a proxy
Sujoy
11-Oct-2012
[1294x2]
yes - mongrel as a proxy is great, but i was thinking more in terms 
of zed's idea of a language agnostic web server
so some apps (or parts of apps) could be written in rebol
Kaj
11-Oct-2012
[1296]
Only as a proxy so far, I'm planning towards running Red and R3 0MQ 
servers as Mongrel apps
Sujoy
11-Oct-2012
[1297x2]
i noticed that the r3 bindings are much more stable than r2
r2 tends to crash with zmq
but i'm nervous about using r3...
Kaj
11-Oct-2012
[1299]
I haven't tested them much yet, but Janko is running his business 
on the R2 binding
Sujoy
11-Oct-2012
[1300]
good to know!

i haven't seen janko around in a long time - i've been interested 
in using his distributed actors library, but cant find it online 
anywhere
Kaj
11-Oct-2012
[1301x2]
Janko is around, but he's busy
I'd say with the latest news, there's a future for R3 again
Sujoy
11-Oct-2012
[1303x2]
his blog - janko-in-a-jar seems offline
any ideas if he's shifted to some other domain?
YES! the news is incredible
Kaj
11-Oct-2012
[1305]
Dunno
Sujoy
11-Oct-2012
[1306x2]
Open Source R3! Thank you Carl!!
hoping that r2 will also be open sourced though
Kaj
11-Oct-2012
[1308]
I don't think so. However, I'll run as much as possible on Red
Sujoy
11-Oct-2012
[1309]
i havent started using red yet...
itching to
Henrik
11-Oct-2012
[1310]
r2 probably relies on some third party closed source, more than r3.
Sujoy
11-Oct-2012
[1311]
perhaps...but would be good to see r2 open
Henrik
11-Oct-2012
[1312]
at least for bug fixing, it would be nice, but with the legal issues 
that r3 must go through to become open source, I imagine it would 
be more difficult for r2.
Sujoy
11-Oct-2012
[1313x2]
well - am super excited that r3 is in what looks like the final stages 
of being open sourced
i'm not a licensing guru, but LGPL and MIT looks good to me
or Apache
or a custom REBOL license - based on Carl's latest blog post
Kaj
11-Oct-2012
[1315]
Had to make a Red bug report, but I'm looking into your ventilator 
now
Sujoy
11-Oct-2012
[1316]
thanks Kaj!
Kaj
11-Oct-2012
[1317]
Which 0MQ version are you using?
Sujoy
11-Oct-2012
[1318]
2.1.4
Kaj
11-Oct-2012
[1319]
That's good, I'm getting some strange results with 3.2
Sujoy
11-Oct-2012
[1320]
strange as in?
Kaj
11-Oct-2012
[1321]
Request/reply is not printing the message content
Sujoy
11-Oct-2012
[1322x5]
works perfectly with 2.1.4
havent been looking at changes to zmq for a while now
but all of my python stuff works just fine with 3.2
AND i have pub-sub working between r2 and python
2.1.4 on r2, 3.2 on python