r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Graham
12-Jul-2010
[8525x2]
Sure .. just wondering if it's easier to do thru web ports and if 
the server can notify me thru an open port when it succeeds or fails 
rather than me poll the server
I wonder if this is a way to ask Cheyenne to unload it self ... I 
presume 'quit does not work in RSP scripts
Dockimbel
12-Jul-2010
[8527]
Notification thru websocket port: sure, you can have that, but you'll 
need: a ws client for REBOL, a websocket app and a RSP script for 
that (the websocket app will need a timer to trigger queries on a 
RSP script to get the email status or hack in local MTA data to get 
the info to avoid querying a RSP script).
Terry
12-Jul-2010
[8528x4]
Doc, check out this link

http://blog.sproutcore.com/post/531215199/introducing-sproutcore-touch
fyi html5 has a new file api.. 
http://dailyjs.com/2009/11/30/html5-file-api/
Since the File API is asynchronous, files could be loaded and processed 
in the background while the user does other things. This could also 
be useful for creating web applications that work offline.
File Api Demo (requires firefox)
http://html5demos.com/file-api
Terry
13-Jul-2010
[8532]
If you haven't yet, check out http://lesscss.org/
BrianH
13-Jul-2010
[8533x2]
Or look here if you want to code in something other than Ruby, PHP 
or .NET: http://fadeyev.net/2010/06/19/lessjs-will-obsolete-css/
And it's supposed to be 40x faster too, since the processing is done 
client-side.
Terry
13-Jul-2010
[8535x3]
Yeah, was looking for the JS link (not on their main site?)

<i>This</i> is the kind of thing I'm talking about when I say "less 
language, more tools".
There's basically ZILCH of this sort of thing in Rebol.
I mean, if this doesn't have Rebol dialect written all over it, what 
does?
less.watch() is pretty cool
Maxim
13-Jul-2010
[8538]
well remark allows you to do this on ther server... and you could 
cache it so its just processed once.
Terry
13-Jul-2010
[8539]
http://www.googlefight.com/index.php?lang=en_GB&word1=rebol&word2=less.js
Maxim
13-Jul-2010
[8540x2]
well, if you search each one individually, you don't get the same 
results....
also note that at some point,  the word "less" is used directly.... 
 so this skews the results a lot
Terry
13-Jul-2010
[8542x2]
hmm, true
However, I think any kind of implementation like this should tie 
in with Cheyenne.
Henrik
13-Jul-2010
[8544]
LESS looks interesting in that it could be incorporated into the 
HTML dialect.
BrianH
14-Jul-2010
[8545]
Maxim, the reason the client-side processing is faster is not because 
of processing overhead, it is because the resulting CSS code is much 
larger than the LESS source code, so it takes longer to transmit 
over a network connection.
Maxim
14-Jul-2010
[8546]
ok, but client-side caching should mitigate this difference .
BrianH
14-Jul-2010
[8547]
I expect that the rest of the speedup came from the fact that Ruby 
is much slower than optimized JS. Still, not having to use Ruby is 
its own reward :)
Terry
14-Jul-2010
[8548x2]
Doc, just an update regarding using the browser on the websocket 
host box closing as soon as the websocket connects.. seems to be 
a Google Chrome issue.. Safari 5 is working fine
scratch the word "using" in that last post.
Post posting.. a great time to proofread ;)
Dockimbel
14-Jul-2010
[8550]
Terry, Chrome is working ok here with my ws applications, but I've 
noticed such issues while writing them, wasn't sure if it was caused 
by the browser or my code.
Terry
14-Jul-2010
[8551x4]
To keep Cheyenne on the html5 leading edge, you may want to add a 
"server-sent events" service as well.
http://dev.w3.org/html5/eventsource
uses a text/event-stream mime type
It's basically a one way websocket communication... server -> browser 
 . Not sure what the real advantage would be, perhaps less overhead?
Dockimbel
14-Jul-2010
[8555]
Interesting...Do you know if current browsers supporting ws, implement 
the EventSource interface too?
Terry
14-Jul-2010
[8556x6]
I believe Safari 5 does
yeah
here's a nice little tool
http://html5test.com
The latest Chrome does as well.
FF needs to step up to the plate
Section 9 "Connectionless push and other features" in the W3 doc 
is interesting.
Dockimbel
14-Jul-2010
[8562]
My Chrome 5.0.375.99 scores a "no" at Server-Sent Events :(
Terry
15-Jul-2010
[8563x3]
There's a Chrome 6
http://www.chromium.org/getting-involved/dev-channel#TOC-Windows
If you haven't tried Safari lately, check out Safari 5.. not bad.
Graham
15-Jul-2010
[8566x2]
Never!
Apple software installers try to get every apple product downloaded 
onto your pc ...
Terry
15-Jul-2010
[8568x2]
Don't they all?
Another advantage of web apps :) At least you can block the ads.
Terry
16-Jul-2010
[8570]
Scrap that whole Safari plug.. thing is buggy with websockets.
Endo
23-Jul-2010
[8571]
good site to test web sockets http://jwebsocket.org/index.htm
Endo
26-Jul-2010
[8572x2]
I wrote a very simple ws client protocol, http://rebolforum.com/index.cgi?f=printtopic&topicnumber=47
I write the pick function to return none if an error occurs. whole 
the function is inside an attempt
pick port 1 ;--> none
first port ;--> still return error

but "first port" actually same with "pick port 1", it calls "pick", 
how it returns error?
Graham
26-Jul-2010
[8574]
I can't read unformatted source code .. .but isn't your pick missing 
an integer parameter?s