« first day (2307 days earlier)      last day (1473 days later) » 

12:16 AM
posted on February 22, 2017 by endo64

This PR fixes infinite loop problem for replace/all "abab" #"a" #"a"

 
1:15 AM
Control C breaks to DOS prompt. Is that what's supposed to happen? And any support for using escape as in r2?
 
 
4 hours later…
4:48 AM
posted on February 23, 2017 by OneArb

Is there a way to capture keys within a field as they get typed along? With feel and engage, I can get keys as they are typed, at the cost of writing key handling. Is there a way to copy the field face object and modify its behavior? Can I access the string containing the characters showing on the screen? Also How to use a face created with make face inside a VID layout? R ebol[] view-blo

 
 
1 hour later…
6:17 AM
@rgchris Have you looked at r3gui at all?
 
@GrahamChiu Not much at all. Don't recall having access to a version that wasn't Windows only and don't use Windows much these days.
 
posted on February 23, 2017 by Zamlox

There is an issue with colors position for radial gradient when they are not specified in draw dialect. This commit will fix that issue.

 
@GrahamChiu I want escape behaviour also, but it was all ripped out before the open sourcing, don't know why.
 
6:33 AM
@MarkI it is there in the alpha builds?
 
@GrahamChiu No.
It died with R2, so, not totally dead, just virtually dead.
 
oh well, I can't say I was paying much attention
 
7:18 AM
HTTPd scheme for Rebol 3—adapted from the Rebol 2 version. Not without a few warts!
attempt [_: none]

do %httpd.reb

server: open [
    scheme: 'httpd 8080 [
        probe request/action
        switch request/action [
            "GET /hello" [
                response/status: 200
                response/type: "text/plain"
                response/content: "Hello!"
            ]
        ]
    ]
]

; attempt [browse 127.0.0.1:8080/hello]

wait _
 
Do you think that wait _ is clear in this context?
 
I'd prefer to write wait [] but that's not how Rebol 3 wait works.
Incidentally, this doesn't quite work with Ren/C—doesn't like REDUCE/ONLY or COLLECT/INTO [] MAKE BINARY! 0
I'm also not quite sure how to make response/kill? work in Rebol 3.
 
8:03 AM
How about wait [_] ?
 
Sure, that'd be up to you though. Point is, you don't need to specify that you're waiting on a specific server.
 
In that case, maybe we need a do-events ?
What puzzles me is why in the httpd server you don't need to kick things off with a read or write ( both of which are inappropriate anyway)
 
In my HTTPd server (just released) or any HTTPd server?
 
well, most of the tcp/udp event loops don't seem to do anything unless you either do something on connect , or you read from the port
I think I read that if there is no read actor defined, it gets passed through
so that it reads from the port
I am looking at your actors and you don't do either a write or read after open so I'm unclear as to how it works
 
8:24 AM
Most READ/WRITE operations are done on the spawned TCP subports, so uses those actors.
 
maybe servers work differently from clients
there's no lookup or connect events I presume in starting a server
@rgchris I think Gabriele generates events which he then feeds to the port or was it subport in the prot-http
Is Gabriele around to answer questions these days?
 
Yes, in AltME.
 
That's good to know he's around even if it is Altme!
So, in this code gist.github.com/gchiu/588d21599eb4fc09829d16f0945b73da I needed line 61 to make it start capturing UDP
 
8:43 AM
@HostileFork your Red parse infinite loop was acknowledged as a bug and fixed for the next release. Thanks ...
 
for delaying it :D
 
@pekr doc won't accept bug reports from fork in person?
 
I was surprised because you mentioned HF in it.
But I think a genuine bug should be acknowledged anyway.
Funny, the number of closed issues on the milestone 0.6.2 keeps growing, but so does the number of open issues for it.
 
9:42 AM
@iArnold What's he's doing is not trivial. Even these many years later we have bugs in Rebol2
 
9:56 AM
@iArnold @pekr It's kind of all ancient history for me. We might have thought at one point we had things in common--and learned we kind of did not. Had I been in a better place personally at that time, it could have just ended there. Anyway, there's nothing wrong with Red succeeding at what it is trying, nor me succeeding at what I'm trying, however improbable either is.
So the shared kinship of trying improbable things is perhaps where we can find common ground.
 
@GrahamChiu that's surely not true. HF posted here his finding. I asked Doc about it. He thought it might be a bug and asked me to post an issue ticket, so I did. Today the ticket was processed, that's just all ...
 
Community consensus is, I would assume, that I've been pretty normal for a while.
For me, anyway. :-)
It does help that people aren't antagonizing me on a daily basis while I work relatively hard.
But other factors have changed as well.
I'm also not working as hard...
But that said, it wouldn't take long to run up against a deep philosophical disagreement were I to try and participate in Red, so I think it's best to just kind of let us look into the different directions we like to think about without pushing our luck.
@MarkI Ctrl-C is delivered through a signal, which you can hook without hooking the keyboard specifically. To process escape in a tight loop requires a different code path, and that means hooking the message pump during tight loops, which gets harder to process cross-platform in an "abstracted" way.
R3-Alpha's attempt to unhook the core from the "host" left gaps in areas like this; you have to invent some kind of message pump architecture which abstracts the keyboard gathering loop across GUIs and consoles and what-not, so hooking Ctrl-C was the cop-out.
 
10:18 AM
Reminds me of the day in the early 80s I was sent by my departmental head to look at some database software. So, I duly trotted down to the shop or whatever it was in London to see a demo. He asked me if I want to try it. So, I pressed Control-C and the program aborted. He was horrified!
Now I'm the one horrified to see ren-c disappear when I do a control-C
 
@GrahamChiu If that's what it does on Windows, it's a bug
 
Then you have a bug report
What happens on unix?
 
@GrahamChiu I still would prefer bugs be reported as issues, given the whole "I might not be up to addressing it right now". On unix it is currently failing on an assertion.
 
I assumed it was the desired behavior so have not mentioned it before.
 
When the program is running a script on the command line, termination is appropriate, but within a REPL I guess the expectation is to be returned to the REPL
Though I have also wondered about what to do to break into the debugger leaving the stack as-is
For a time I thought breaking into the debugger would be a good thing for Ctrl-C, then if you really want to go back to toplevel type HALT
Seemed to give the most options
earl complained about that (or at least, complained about whatever specific thing I had done in this area, at one time)
 
10:45 AM
posted on February 23, 2017 by gchiu

At either the ren-c prompt, or while script is running, and on windows 10, ctrl-C quits the interpreter.

 
 
2 hours later…
1:10 PM
@HostileFork I like this idea too. I want "toplevel" to be the debugger with nothing running, and HALT could then be for popping the stack completely.
I wish I knew exactly what earl had against it.
Also, I definitely want the "stop what you are doing but don't exit" to be caused by ESC, I don't care what CTRL-C does.
It has to be one key IMO, not a combo.
 
 
4 hours later…
5:21 PM
@morwenn If you didn't notice, The Algorithm did some of the music for Hacknet
 
 
2 hours later…
6:58 PM
@MarkI The ability to interrupt a single-threaded interpreter with escape requires polling of some kind. Ctrl-C does not. Again, the cop-out answer is to give whatever your "host" can call a hook saying "request halt" or "request debug break" and leave it up to them.
Ren Garden split responsibilities between a "GUI" and "worker" thread, so the GUI could just call the "request halt" and it would write a variable the worker would see, if it got to a polling step.
 
7:58 PM
@HostileFork I don't know if it might be harder for doc to get over these sort of things. His comments tend to lose tact when R3 is involved. Good it feels already ancient for you.
 
@iArnold We're all our own worst enemies. Anyway, the best way to influence someone is action, not talk...and there's a certain level of authenticity when you're exchanging ideas on a somewhat adversarial space...because then, if someone adopts your ideas, you know it must be because they're good. :-)
 
8:40 PM
@HostileFork I am assuming this implies R2 did some kind of polling. Were/are there any complaints?
Ctrl-C is handled by the OS, and the interrupt needs to be caught by a trapper in the C code, but AFAIK the ESC in R2 only trapped between Rebol evaluations.
Would that mollify any "polling" concerns? Or am I missing the point completely (always a good chance)?
 
9:24 PM
@HostileFork Just curious. Do we need a special build for Solaris on x86 or will one of the others on rebolsource work?
And I guess the same question applies to OpenIndiana
 
 
2 hours later…
11:52 PM
@ShixinZeng @HostileFork Can you tell me why I need to do a read on the server port before it starts processing events on the port?
I can either do a read or, send a fake read event to the awake handler
tcp server code doesn't seem to need this step
 

« first day (2307 days earlier)      last day (1473 days later) »