« first day (2308 days earlier)      last day (1472 days later) » 

1:23 AM
@GrahamChiu I do not really have a clear picture of what the invariants are in the event model. Rebol's ports have a flag on them maintained independently of any OS thing. So if there's input you would get from the C polling calls, you won't necessarily get that when you wait, if the Rebol abstraction layer modeling the device doesn't have the flag set.
 
@HostileFork are there any differences in the way udp/tcp ports are implemented that might explain that?
 
@GrahamChiu I know UDP can be "connectionless" and it may relate to that; the absence of a connect event may mean that nothing kicks the flag in the Rebol layer over to "have data waiting, pay attention to me"
 
I passed a CONNECT event to the event handler and still it didn't work
maybe it has to happen at a deeper level
 
@GrahamChiu I'd agree you shouldn't have to do a workaround like reading to get the event. Let's see what @ShixinZeng thinks.
 
It's something that I can work around but I want to make sure it's not a bug
that I should be reporting
 
1:29 AM
@GrahamChiu Sounds like a bug to me.
 
where to raise the issue? metaeducation or zsr
 
@GrahamChiu If it applies to Atronix R3 then all things being equal I'd say zsx. :-) I have a lot to look at and like to keep Ren-C issues down to Ren-C specific things, as any bug or behavior that exists in R3-Alpha or earlier should be on rebol/rebol
 
ok, it's new since rebol/rebol didn't have UDP
So I'll raise the issue there on zsr
 
@GrahamChiu Yip.
 
And what other environments like Solaris which used to be supported?
Not important at present but wondering what the plans might be
zsx
 
1:40 AM
@GrahamChiu @MarkI Solaris's uncertain future notwithstanding, if someone has a Solaris machine around, and needs help with building, post an issue. Building on Solaris should be easier than that stuff I had to do to get @Brett running on that old NAS with clib 2.3.
Remember, I even got Ren-C building on Syllable, so... hey. What won't it run on?
(Right now, anything without 64-bit integer support in the C compiler, e.g. long long--which would be the most formidable limiting factor. Technically speaking, that didn't become standard until C99...though a lot of compilers had it earlier.)
C99 is coming up on being two decades old, and we're still trying to keep it as close to C89-buildable as possible. :-/
 
@HostileFork didn't they switch to use GCC?
 
@GrahamChiu Who's they?
 
@HostileFork Solaris
Anyway, there's still OpenIndiana
 
@GrahamChiu I don't keep up, but it looks like whatever compiler they had in the documentation was a C99 compiler.
While I know some people who run Solaris, I'm not under the impression anyone here does. :-)
 
The OpenSolaris kernel currently builds cleanly with the specially patched GCC 3.4 compiler shipped with OpenIndiana. Work is under way to allow building using a more recent GCC. There are also various other open source compiler suites to which we could turn, with more effort, should it turn out to be necessary or advantageous.
 
1:49 AM
Though earl probably had a machine in his inexplicable "why do you have that, anyway?" hardware closet.
 
I used to run all my CGI under Solaris
 
@GrahamChiu Well, if you run into any trouble building with the cc on Solaris, post the error message.
Should work.
(Though I'm not sure why it would be a priority at this time--but if it becomes a priority, I see no reason why it shouldn't work.)
 
@HostileFork that's what I wanted to hear
@HostileFork I"m easily distracted
 
2:23 AM
@HostileFork Done.
 
 
6 hours later…
8:08 AM
@HostileFork Syllable has not been under development some some years now. The forum is spammed. Last time I spoke Kaj, he had a new Windows laptop and Syllable could not run on it. Talking about Kaj, it looks like he is walking in the footsteps of the big masters now. No sign of him since Jan 25th.
 
8:24 AM
Middle life crisis?
@iArnold I tried to run that heart animation demo using the latest red build. Just errors for me.
 
9:11 AM
@GrahamChiu The one Didec made? For my use latest Red I consider to be very unstable because of the libRed thing. Besides things may have changed here and there, so not being able to run older scripts can be expected, Qingtian just brought back a fill method in DRAW. I will pick up some activity for Red after the release of 0.6.2 again.
 
9:30 AM
@iArnold presumably there's a particular binary it works with.
 
10:05 AM
@GrahamChiu I expect it to work again when the release is completed. Otherwise ask Didec to look at it first and after that perhaps an issue should be filed.
 
 
5 hours later…
2:50 PM
@HostileFork I can't provide a build farm or anything like that, but I have access and can test a Solaris build.
 
 
1 hour later…
4:15 PM
@iArnold Well, our differences aside, hopefully he is okay.
@MarkI I'm not going to specifically encourage adding things to the to-do list that no one wants, but, if you think it would be fun, feel free.
 
 
3 hours later…
7:20 PM
@MarkI would you do the build and upload it somewhere? Maybe we can host it on rebol.info
 
Hey, rebol.info has a new page. Cute.
We are now somehow affiliated with frogs.
 
7:52 PM
@rgchris would you consider setting up alternate download links for builds since rebolsource.net is obsolete
@MarkI is offering a x86? Solaris build
@ShixinZeng has builds occasionally on drop box
 
I could, I'd be concerned that—a) other locations are fluid, and b) the binary features are fluid.
 
When Atronix adopts Ren-C we will create a "stable" branch
 
rebol.info/announce/0873 need to curate some of these
 
@HostileFork A longstanding mascot 'RebIT' courtesy of @Kealist Snr. Frogs motifs have a bad rep these days though.
@GrahamChiu Would require some manual effort.
 
8:10 PM
What's dynamic and what's static?
 
Announce is dynamic (although the Announce feed is static, periodically generated). A whitelist/blacklist of announcements would have to be managed by someone. I'm not sure it's worth the effort—if there's ever a significant number of users tuned into it, we'll likely be using a more elegant system than AltME relay.
 
How's shttpd progressing!
 
Nothing new—have to get back to doing some paid work for the moment. Feedback on the last release would be nice :)
 
Was going to start using it today if I can
 
It's survived my basic tests, though can't yet get it to switch itself off (used in the Etsy authenticator script for R2). Feel free to hack it, I focussed more on the concept than the mechanics in this iteration.
 
8:44 PM
@HostileFork I did not even know that page!
 
@rgchris what do you mean switch off?
 
@GrahamChiu In the Rebol 2 version, you can add response/kill?: true and the server will close following the response. Designed to be used in an app with a specific purpose, like retrieving OAuth keys.
 
where does the response object get defined?
oh, must be in httpd
so response/kill? is being returned from the event handler?
 
9:01 PM
This is the prototype, and this is the specific instance and where it is dispatched.
 
and if true, it exits the awake handler?
 
The idea is that if it's true, the TCP listening port is removed from the wait-list and the HTTPd port is closed. Just isn't working at the moment.
Rebol 3 has system/ports/wait-list but I'm not sure it has a role.
 
doesn't closing the port do the same thing?
 
Should do, but that doesn't necessarily break out of WAIT.
 
I thought that exiting the awake function with true breaks out of the wait
if you return false, you stay inside the wait
so, first close the port, then return true and you're done
 
9:07 PM
I think so. Perhaps. However, need to be sure that the last response has been sent before closing the port. On WROTE, I guess.
 
Yes
are there two ports open?
 
I don't know.
 
the main port and the sub port
 
Oh, yes. But there's also the client ports.
Closing the main port will close the sub port.
 
9:20 PM
I take it you're not using the content-length to see when to stop reading?
 
9:36 PM
Script: Web Server Scheme for Rebol 3 Version: 0.3.0 Date: 23-Feb-2017
** Script error: incompatible or duplicate refinement: only
** Where: reduce case --anonymous-- if --anonymous-- open do catch either either --anonymous-- do
** Near: spec/ref: reduce/only spec/ref ?? [scheme httpd] [
    set-w...
** Note: use WHY for more error information
There's no /only refinement for reduce
Now if I do <r3-legacy>, and then help reduce, I get a failed assertion
@rgchris is there a need to use r3-legacy at all?
 
There's still a few none refs in there. The only things stopping it working in the latest Ren-C are REDUCE/ONLY and COLLECT/INTO (doesn't work with binary).
 
10:00 PM
so, I can't use it with the ren-C that has working UDP?
or can those bits be rewritten pro tem?
 
Can, just need to edit those bits.
 
is the r3-legacy needed for something else?
 
Ok, another roadblock:
** Script error: prepare-listener doesn't have RETURN: enabled for function!
How can I fix that in a Rebol 3/Ren-C neutral way?
Oh, right—yes, that's what <r3-legacy> is needed for here.
 
remind me .. we always need a 'return now?
 
Don't know—not with <r3-legacy>.
Ok, posted changes. Seemingly KILL? does work except doesn't break WAIT.
 
10:23 PM
@rgchris r3-legacy is currently broken :-/ since the console loop was moved to user code. Changing the definitions of functions breaks the console, which lives in user and not in lib. The easy thing to do is to load it into lib I guess, but I was sort of wanting it to have its own context and be easier to make new ones
@GrahamChiu The rule on RETURN is that if something returns a FUNCTION! or possibly a void then this must be explicit. The same rule applies to function parameters.
foo: func [a] [if unset? :a [print "unset"]] then foo () wasn't allowed in R3-Alpha, either.
 
@HostileFork Seems to work well enough to get my HTTPD script running.
 
@rgchris You using the console?
 
No.
 
Well, that's why...
 
Ah, right.
Anyways, Graham—unless you're working with the console, should be good now.
 
10:31 PM
Oh, I'm on console
Script: Web Server Scheme for Rebol 3 Version: 0.3.0 Date: 23-Feb-2017
** user error: Server lacking core features.
** Where: lib-make make case --anonymous-- if --anonymous-- open do catch either either --anonymous-- do
** Near: lib-make :type :def ??
** Note: use WHY for more error information
 
Mind the syntax has changed from Rebol 2:
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!"
            ]
        ]
    ]
]
 
posted on February 24, 2017 by hostilefork

When the evaluator is called, it is given the memory address of where the result value is to be written. This address is known to the frame, and the list of frames is known to the garbage collector--which allows this arbitrary location in memory to keep any series it refers to during the evaluation alive. One issue with this that had not been addressed was what would become of the bit pa

 
10:47 PM
Can also do the following if you want your port-id/handler set outside the spec:
server: open [
    scheme: 'httpd
    port-id: number
    does: handler
]
 
@GrahamChiu I can definitely try, and I think it would be fun. It's not x86 though, I have an actual t4000.
 
@MarkI I'm sure that there must be someone in the world using that :)
@rgchris so if we use the shttpd we need to make our scripts legacy
 
@GrahamChiu In case no-one saw the smiley, that is EXTREMELY unlikely.
 
@GrahamChiu Don't think so, I don't think Ren-C features are turned off by using <r3-legacy>, might be wrong...
 
@MarkI You do realise that here is middle earth
 
10:56 PM
@GrahamChiu A land where t4000s can marry amigas?
 
11:12 PM
I had an Amiga A4000 tower once
Didn't seem to be the marrying type. Incompatible with most things.
 

« first day (2308 days earlier)      last day (1472 days later) »