« first day (1368 days earlier)      last day (2412 days later) » 

12:00 AM
Also wiping out archived PDFs. Articles if they matter. Weird progress bar study article
 
12:52 AM
OK. So I tried Andreas's web server, which works perfectly. However, there is still the problem of the R3 networking only allowing 32,000 bytes of data to be written at once. Has there been anyone working on fixing that? Right now, any page I create has to be smaller than 32,000 bytes or it gets truncated to 32,000 bytes.
 
1:17 AM
posted on July 30, 2014 by mothdragon

Hi, I'm still very new to Rebol. I've been kinda holding out until R3 was around. Recently I checked and noticed that it seems viable now :) Yay! I'm interested in being able to make programs that run the same on my computer as they do on my phone and tablet. This will make it easier for me to develop programs for my kids. Through my learning of Rebol, I have found it to be fairly easy to spe

 
@Respectech is this on Arm or Windows?
And what are you talking about? Posting some data, or reading some data from the web server?
 
@HappySpoon ARM. Rebol3 generates a string that is going to be the web page, and when it goes to write that string out, only the first 32,000 bytes are written. Even if I try to break the string into 16,000 byte pieces and write it out a piece at a time, it still stops at 32,000 bytes.
Rebol3 is running Andreas's web server and sending the data out to the browser, which is limited to 32,000 bytes.
 
And where is your code to write the data out?
I bet you have written it incorrectly.
 
It's Andreas's code. I can post a snippet here.
 
Andrea's code does not handle large data
https://github.com/earl/rebol3/blob/master/scripts/shttpd.r#L20
that's where he sends the response back.
What you need to do is
1. send 32kb
2. Wait for the `wrote` event
3 send another 32Kb
and keep going until you have finished writing the data out.
 
1:27 AM
I'll give that a try. Thanks!
 
https://github.com/earl/rebol3/blob/master/scripts/shttpd.r#L44
Here you can see he closes the port after the first 32kb of data is sent
And that is not what you want to happen.
 
@HappySpoon You are the best spoon I've ever met.
(Even though I don't think we've ever officially met)
 
wrote [
   either not empty? data [ write copy/part data 32kb remove/part data 32kb ][
       close port
   ]

]
something like that ... and I'd stick the data into a buffer that you can access from any of the actors
There's also the problem of reading a CGI post.
 
@HappySpoon Yes, I could imagine.
 
You're going to have to parse the CGI headers for the content-length to see how much data you expect to come in.
and packets can come in much smaller amounts than 32kb.
 
 
4 hours later…
5:25 AM
@Respectech See my redis protocol where I fixed the same 32'000 bytes limit after much frustration.
 
5:38 AM
Hello and good morning
Yesterday I finished my Quicksort in Red. Is there a repository to push that function to, where Red-examples are kept already? Perhaps someone can learn a bit from it...
 
@JoeDred AFAIK there's no centralized repo for such examples yet, you should probably put it on GitHub and left a message on mailing list so it can be found later.
 
@rebolek I will do that.
 
6:32 AM
@JoeDred I'd encourage you, if you have a blog, to just sort of blog about what Red is...what you learned, and give code examples. There's not a lot of awareness so having more blog entries out there is a good thing. I write a few but am working on non-Rebol and non-Red things of late
 
@HostileFork Just preparing a blog entry right now, but havent finished it. Explaining what my code does is the hardest thing, because im not fully aware of all the internas of Red ;)
 
@JoeDred If you write it down and say something wrong, someone will correct it...
 
6:48 AM
I hope so. But the striving for deeper understanding keeps me reading until blogging about something...

Also my blog is in german-language. Not sure if someone could understand it...

At least no Red-Dev I mean.
 
nice to hear that
 
 
1 hour later…
8:21 AM
@Respectech @HappySpoon @rebolek Yes, for shttpd.r to send responses >32'000 bytes, you'll need to manully break up the write into 32'000 byte chunks (I'll also push a fix for that directly to shttpd.r later today). Note, however, that this is necessary due to a few bugs in R3. When these bugs are fixed, the manual chunking will no longer be strictly necessary.
 
@earl Do you know where those bugs are?
 
@HappySpoon I think so, yes.
 
And presumably it affects all the tcp based protocols.
 
Yes.
These bugs are also in CureCode, but I'm on my mobile, so I don't have the links handy.
 
I was wondering why R3 seemed to be relatively slow at moving data across tcp
 
8:27 AM
I'd guess that sending might be slow precisely due to the manual chunking we have to do.
If we could rely on the internal chunking which R3 does already, I think sending may speed up significantly.
Maybe I can do some more tests on that later today as well.
 
That would be nice.
 
@rebolek's latest slowdown bug report is also part of those issues, btw.
It's also what triggered my deeper investigation of those issues :)
 
But if you fix it, how will it find its way into the builds!
 
Who knows.
 
Time to merge some stuff into the community branch, I guess.
 
8:33 AM
At present Atronix builds seem to be the most uptodate except I think there are some differences that stop it working well with R3GUI.
I have to use Saphir for GUI still.
@earl What has been stopping you before?
 
Where's the community version, anyway?
 
@rebolek you're kidding??
 
Currently, it's basically mainline + 64bit.
 
8:48 AM
@HappySpoon No, I'm not, as I'm using Saphir internal, I didn't care that much.
 
@rebolek and is it different from the public version?
 
@HappySpoon AFAIK public version hasn't been updated for a looong looong time. Better ask @earl and @Cyphre what's the state right now, or when it will be updated.
 
@johnk it seems the 128 bit encryption mentioned is IEEE 802.15.4 which refers to the radio signals
 
 
1 hour later…
10:11 AM
@respectech: about webserver, you can also try Ingo's websy
 
10:25 AM
@giuliolunati he's not writing the data correctly.
github.com/IngoHohmann/websy/blob/master/websy.r#L202 he should wait for the wrote event before writing more data.
 
10:55 AM
@happyspoon: is difficult to correct it?
 
@giuliolunati no, easy fix
 
and so it could serve >32kb ?
 
sure.
But Andreas thinks he can fix the tcp underlying issues so that this fix is not required.
 
very very well!
 
 
2 hours later…
12:34 PM
@earl actually according this github.com/rebolsource/r3/network there is no 64bit yet in the community fork... it seems to be still only in your fork github.com/earl/r3/tree/64b-for-mainline
 
12:45 PM
Is @kealist's serial support merged in either of those forks? I had a quick look and couldn't see it.
 
posted on July 30, 2014 by draegtun

[Reddit] Learn Rebol (Rebol 2)

posted on July 30, 2014 by draegtun

[Reddit] Transitioning from Rebol 2 to Rebol 3

 
1:45 PM
The 32k problem in TCP should have been fixed by: github.com/zsx/r3/commit/…
The r3-gui is broken in Atronix build due to this commit: github.com/zsx/r3/commit/…
You can easily remove this commit if you build from source
I added this commit because recursive call to "wait" will cause some substle bugs that you can't reproduce reliably
Especially when you mix the network communication with GUI event handlers
 
 
5 hours later…
6:35 PM
@Oldes 64-bit support was merged to community back in 2013-12: github.com/rebolsource/r3/commit/b909f15c -- my branch is a version of that rebased on top of current mainline, to allow for easier merging into mainline.
@ShixinZeng Unfortunately that fixes only one part of the "32k problem". @rebolek's recent report in cc#2160 still needs another fix.
Also, this earlier commit of yours is needed as well: github.com/zsx/r3/commit/ffa0d89
With those two, >32k unchunked writes at least work at all. They are just rather slow.
(Where "rather" might also be considered "extremely", depending on your expectations :)
The remaining issue is part of R3's internal event scheduling, which simply doesn't immediately re-schedule a port for more writing, if there's still data available to be written.
I'm working on a fix for that.
@johnk Nope.
 
 
2 hours later…
8:59 PM
@Respectech I just pushed a fix for shttpd.r to properly send reponses >32'000 bytes (a workaround for R3 bugs, as discussed above). Also pushed some other minor changes that might prove useful. I've announced it on AltME so that the "announce" feed can pick it up :)
 
9:19 PM
posted on July 30, 2014 by Andreas

I published a few updates to my minimalist "shttpd" HTTP server implementation for Rebol 3. Most notably, a workaround was added to properly send reponses >32'000 bytes (thanks to Bo and Boleslav for prodding me about this). The full list of changes:     Add a few select MIME types     Switch default MIME type to application/octet-stream &n

3
 
@earl Awesome! I modified your webserver script so it handles requests properly for my development purposes, but it will be great to have it be done "the right way". :-)
 
9:37 PM
@earl Not handling POST requests yet?
 

« first day (1368 days earlier)      last day (2412 days later) »