« first day (2843 days earlier)      last day (937 days later) » 

4:17 PM
So nobody commented when I asked if foo and (bar) should interpret as bitwise (or more generally, as INTERSECT) e.g. set operations) with short-circuiting while foo and [bar] continue interpreting it as short-circuit similar to an ALL and return the second result if true, null if false.
One thing I mentioned makes this more awkward is the refinement-is-refinement situation. So if some-refinement and (other thing) [...] would need if did some-refinement and (other thing) [...]. That throws a bit of a wrench in it, since INTERSECT on ANY-STRING! gives you intersections of common letters.
 
 
5 hours later…
9:45 PM
@giuliolunati I want to get it so that the hacked up version of what I did to run a console is something built from the main sources. But I want the console code to be the host console code, so most of it will be written in Rebol with just a little bit coming from C, the startup and the INPUT.
My idea is, that the console code (in Rebol) would be served as data, so the JavaScript "driver" would look a lot like host-main.c. It would pull the console as text, load it up, run it. Basically, the best idea to understand about how much JavaScript I'm thinking of there being would be to look at host-main.c ... I don't want it to be that different.
So basically, for me, the next step is not to run the full host-console (too many details to run the whole thing as a first step) but to make sure that the JS code (on the worker) is calling Rebol code (on the worker), that turns back and uses something like INPUT...triggering a JavaScript native that does input. So we're going to need the first JavaScript native (like the TCC natives, spec is Rebol, body is a string of JavaScript)
But if the body of that JavaScript native wants to do anything in JavaScript that reads the GUI state, it cannot. It can only write. You learned that early with the web worker demo...you can send information in a print, but much trickier to get back info for an input.
 
10:22 PM
@HostileFork How can I help? Currently I'm wrestling with make-reb-lib.r, reb-lib.js and variadics functions...
@HostileFork A question about console (not JS related): how can I pass a block of code to console, so that is processed like as it was manually inserted (with >> and == prompts) ?
 

« first day (2843 days earlier)      last day (937 days later) »