« first day (1711 days earlier)      last day (2069 days later) » 

5:11 AM
I think at one point I promised a Quantum Leap in Rebol development... (?) Well, Coherence 1.5 is evolving into Coherence 15: The Revenge.
Making hostkit coherent, too.
I see what it was supposed to be now. So I'm making it that.
 
 
3 hours later…
8:13 AM
I'm reminded of how much a quantum leap is .. an electron moving from one energy state to a different one in an atom
 
@GrahamChiu No, it's time traveling a loop within your lifetime and waking up looking in the mirror finding you're somebody else than you think you are. Like, every day.
 
no, that's ground hog day
wrong movie
 
Anyway, this hostkit fixup will clear a lot of things up for people I think, who have struggled to extend Rebol via that mechanism.
Gotta wonder about a comment next to a memory allocation that says "be sure to free it..." Who? When? Perhaps there should be one of those notes on every malloc...?
 
8:33 AM
reminds me of those random comments on empty tracks of my 1541 software discs
 
I was hacking the game Boulderdash II and ran across a sector where the guy wrote a big rant about piracy, and how y'know if you want more games you should buy them...because if he can't make money doing it he'll have to do something more boring, and then no one will be happy.
 
 
3 hours later…
11:10 AM
@HostileFork Hum... so, do we owe to you the article on The Cutting Room Floor?
Sorry, I mistook it for another game with such a rant actually. My bad.
 
@Morwenn So I'm going to have some pretty weird stuff to show in a moment here hopefully about what I'm doing. Wacky Fork C just got wackier. But cool...
Since I'm changing my mind it's one of those "need to go git rebase it" things so it's easier to see the whole thing squashed into a single coherent page.
 
I'm kind of afraid.
 
 
4 hours later…
2:49 PM
0
Q: Access word value inside object

LuisIn the interpreter: >> qurl: "1234" == "1234" >> R: make object! [probe qurl qq: qurl probe qq] "1234" "1234" == make object! [ qq: "1234" ] This behaves like I'd expect. All "variables" or "words" are global by default. Using a script: REBOL [] qurl: "1234" Q: make object! [ pr...

 
3:26 PM
So the host kit as it was, was broken into two bits. One bit was the idea that if you want Rebol to call out to you to let you provide services (like reading/writing from a network or something) you provide a table of N callback functions... where N is some number on the order of 20.
It seems a little strange when you see a callback in that table for something like "What time is it?" to imagine how 20 functions would be enough, but of course some of those functions are "bigger". Like "handle device request w/this device ID and action number", and take a structure that has more fields, etc.
That is about how Rebol calls you but not how you call Rebol. Previously I complained that the ways you could call Rebol were limited. A similarly small table of functions with "Initialize", "Shutdown", "Evaluate this string", "Print out the value on the top of the stack...."
Yet if you put those two things together you have "all you need". You can register your set of functions, call init, load and run some code... that code calls into your C... and you're bouncing back and forth basically within that one call to do a string you made.
What's happened now though is that there are four platforms instead of two... OS/X, Linux, Windows, and POSIX. Where Linux is basically POSIX more-or-less, extended with graphics/etc. Then there's a fifth platform...which is the template for making your own hostkit...that's another copy of POSIX.
Thankfully there's code in some "agnostic" shared files, which doesn't do things like assume it knows how big a platform OS character is just because it's outside the core. That can be shared.
There must be a simpler way. Anyway, need a break... but hopefully cool things shortly. I'm raising my git-fu some more, going through merge hell...with myself.
 
 
4 hours later…
7:39 PM
@HostileFork Pressured to prove his theories or lose funding, MarkI steps into the chamber and ... oh boy! It's Java.
 
0
A: Access word value inside object

rgchrisWhen Rebol creates an object, it collects the (set-)words from the spec first and uses them to create the new object. The words of the new object are initially assigned to none. The spec is then bound to the new object and evaluated. In your first example, you haven't included qurl: in your spec...

 
 
1 hour later…
9:14 PM
@rgchris Thank you for being so clear. That pointed out immediately how I failed in reproducing it.
Forward references, woohoo!
 
9:28 PM
Just found a neat one:
>> select #[object! [q:]] 'q
 
; Brought to you by: try.rebol.nl
== none
 
Looks good, right? It's ... an illusion:
>> select #[object! [q: 1 r:]] 'r
 
; Brought to you by: try.rebol.nl
== none
 
Er, or not. Mine gives back 1 for that. Anybody else?
Interesting. When I do it as a string, I get none also. It's a bug peculiar to the console (Windows).
>> do "select #[object! [q: 1 r:]] 'r"
 
; Brought to you by: try.rebol.nl
== none
 
9:33 PM
So this bug is masked by the @RebolBot interface, lucky her!
>> #[object! [q: 1 r:]]
 
; Brought to you by: try.rebol.nl
== RESULT is an object of value:
   q               integer!  1
   r               none!     none
 
That one fails in my REPL too. Returns == 1. Is it Windows-only, anyone? With thanks in advance, of course.
 
10:00 PM
@MarkI No worries. No vote though? :(
 
By your command <end cylon voice>
 
Cool! Though I take heed @HostileFork's warning that with a higher rep comes more (unpaid) responsibility, I balance that with desiring higher ratings for Rebol questions and answers.
Stack sites being a popularity contest and all.
 
Remember Hipster Dog ... everything popular is crap ... but I am all for upping Rebol in any crappy manner :)
I'm looking forward to Rebol being as popular as, say, the wheel. Nobody says, hmm, we better get that wheel message out.
 
No wheels in Star Wars though (original trilogy).
 
@rgchris It makes up for that with doors that silently close faster than light.
 
10:18 PM
@MarkI Don't seem to be able to recreate this (at least on OS X).
 
0
Q: Would Rebol (or Red) benefit from Lisp-style Macros?

rgchrisAs a 'seasoned' Rebol developer with some knowledge of the world outside, I'd be curious as to the utility/pitfalls of implementing Lisp-style macros in Rebol (and/or Red). My understanding (always happy to revise) is that Lisp is able to preprocess code prior to evaluation/compilation, modifyin...

 
Here's a snapshot of what I see, just for reference:
>> select #[object! [q: 1 r:]] 'r
== 1

>> do "select #[object! [q: 1 r:]] 'r"
== none

>>
 
Ah, yep—I get that.
 
Neato! Not just a Windows thingie.
 

« first day (1711 days earlier)      last day (2069 days later) »