World: r3wp
[Core] Discuss core issues
older newer | first last |
Graham 12-Jun-2010 [17022x2] | I emailed him.... hope he has time to spare from his Java development to fix it :) |
Gab's async protocol, the awake event takes two parameters Romano's atcp protocol, the awake event takes one parameter .... | |
Anton 12-Jun-2010 [17024] | Oldes, I get braces when string length > 50 >> mold loop 51 [append "" "."] == {{...................................................}} |
Gabriele 13-Jun-2010 [17025] | Graham, though, tls:// never worked in REBOL so... :) |
Graham 13-Jun-2010 [17026] | Carl keeps saying otherwise :) |
Henrik 13-Jun-2010 [17027x3] | does anyone use str-enc-utils.r? I'm not sure if I have found a bug. |
actually there is not just a bug, but also a hang. | |
>> str-enc-utils/iso-8859-15-to-utf-8 "aø" == "" ; bad >> str-enc-utils/iso-8859-15-to-utf-8 "ø" == "ø" ; good >> str-enc-utils/iso-8859-1-to-utf-8 "aø" ; hangs | |
Steeve 13-Jun-2010 [17030] | Link plz... |
Henrik 13-Jun-2010 [17031x6] | http://www.rebol.org/view-script.r?script=str-enc-utils.r |
hmm.. that one is newer. I have to test that one. one sec. | |
the hang is gone, but the other bug is still present. | |
nope, hang is not gone, just required some different letters to trigger it. | |
ascii: charset [#"^(00)" - #"^(7F)"] ascii-rule: [ copy transfer [ascii some ascii] ( ; <- problem head insert tail output-string transfer ) ] This rule does not look correct. I replaced [ascii some ascii] with [some ascii] and now it works. | |
This is present in two locations in the script, but I can't be entirely sure if my fix is correct. | |
PeterWood 13-Jun-2010 [17037] | Thanks, Henrik. Could you possibly let me know the binary of the strings that you saw the bug with. I suspect I am seeing something different in AltME. |
Henrik 14-Jun-2010 [17038] | PeterWood: #{61F8} |
Graham 14-Jun-2010 [17039] | I was having problems with beer being disconnected while doing any significant http work, and using Gab's async http seems to have solved it for me. |
Henrik 14-Jun-2010 [17040] | Graham, I may have a little more time to work with it soon (not sure yet). Can you make it working without docs? |
Graham 14-Jun-2010 [17041] | Sure ... I wrote up an example |
Henrik 14-Jun-2010 [17042] | cool |
Graham 14-Jun-2010 [17043x2] | http://rebol.wik.is/Protocols/Test-async-http.r |
uses the same ahttp with a small change ... see http://github.com/gchiu/Rebol2/blob/master/Protocols/prot-ahttp.r | |
Henrik 14-Jun-2010 [17045] | thanks |
Graham 14-Jun-2010 [17046] | In the handler, there should be a check to see if the event is an error ...and then close the port |
Henrik 14-Jun-2010 [17047] | seems redirects are not supported |
Graham 14-Jun-2010 [17048x3] | Yes, that's correct |
I don't need redirects since I'm downloading from Amazon S3 ... | |
What's needed to support redirects? Grab the new url and open that instead? | |
Henrik 14-Jun-2010 [17051] | I'm not sure, but something must be returned from the server. |
Graham 14-Jun-2010 [17052x4] | Perhaps close the sub-port and re-open using the redirected url? |
Looks like that's what the standard prot-http does. It checks for circular references as well | |
Perhaps we can persuade Gab to take a break from his Rebol compiler to complete the protocol :) | |
Which reminds me .. what will it take to add proxy support to R3's tcp ? | |
Henrik 14-Jun-2010 [17056x2] | It seems there are more bugs in the string conversion utilities. the problem also exists when converting from UFT8 to ISO-8859-1. |
never mind, it was a part I had forgotten to fix. | |
Oldes 14-Jun-2010 [17058] | Graham, Gab.: you are right, never checked that MOLD works like that on longer strings. I will remember that now. But anyway... when you need to do call on unknown files, you should use more soficticated way. Using just: rejoin [{"} to-local-file file {"}] I consider as as security thread and I would never used it like that. And it does not metter if using MOLD or not. |
Reichart 14-Jun-2010 [17059] | Not to sound doom and gloom, but I see little evidence that we will get a single platform we can all write to so we can focus on a free market war of "best products" as opposed to a private war between the biggest companies (Apple, Microsoft, etc.). We are pawns in THEIR game until we have standards enforced. |
Graham 14-Jun-2010 [17060] | Oldes, I am using this to create a parameter to another program ... there's no security risk. |
Oldes 14-Jun-2010 [17061] | One never knows:) What about something like that: >> file: {^" call ^"something else } rejoin [{call "} to-local-file file {"}] == {call "" call "something else "} |
Graham 14-Jun-2010 [17062x2] | I look at the file extensions and create the batch file based on that .. .so nothing nasty is going to happen :) |
Anyone see any value in creating async network protocols for R2 based on Gab's async-protocol? It really seems if we are going to be using R2 for much longer still. | |
Henrik 15-Jun-2010 [17064] | if so, they must be properly documented. |
Graham 15-Jun-2010 [17065x2] | If so what? |
It seems to me we need a contingency plan for the possible failure of R3 ( all IT projects have high failure rates and R3 is no different ). And so we need to develop R2 as much as we can. | |
Henrik 15-Jun-2010 [17067] | The reasoning would be that existing R2 software that won't be moved to R2 can move to an async model. |
Graham 15-Jun-2010 [17068] | eh? |
Henrik 15-Jun-2010 [17069] | won't be moved to R3. sorry. |
Graham 15-Jun-2010 [17070] | Not only that but we all need to get experience with developing apps that use async protocols |
Henrik 15-Jun-2010 [17071] | yes, true |
older newer | first last |