« first day (3569 days earlier)      last day (211 days later) » 

1:06 AM
Edge cases are annoying. Having trouble figuring out how to get x: 20 followed by x: me + 1 * 10 to make x = 210 in stackless.
(Pretend x were a longer name to where this made sense to use the ME shorthand.)
The problem is that ME is formulated as an enfix operator which quotes the X on the left and is then variadic on its right. The rules are such that 1 + 2 * 3 evaluates 1 + and then it goes into a "do not lookahead" mode, so that it will consume the 2 but doesn't go looking for the * after that. It completes 1 + 2 first, and then it picks up the * 3 so you get 9
Problem is that this is winding up thinking the X is included in the expression x: me + 1, and the me operation comes back and assigns it. So you get (x: me + 1) * 10. Pre-stackless this didn't happen, but for a reason that was probably bad.
 
1:53 AM
Well...I think I found a solution. But it's not something usermode code could do "on its own". That's generally been true of the SHOVE operator. But then again, what it means to say "a usermode operator could do X on its own" is a somewhat slippery slope. It's not like code can just run itself with no evaluator. So "magic" comes into play at some level, always.
 
2:23 AM
Something interesting I noted about Rust, their macro facility (all macro instantiations end with !) has some amount of support for DSLs.
 
2:37 AM
Okay...well with that detail fixed, a new model inspired by the beginning of the debug work is now functional and passing the tests. The new model--put briefly--gives unique identifiable FRAME! state to ordinary evaluations.
That is to say that if with foo: func [] [print "Hi" if true [(((1 + 2 breakpoint 3 + 4)))] print "Bye"]... that if you are at that BREAKPOINT and look up from it, you will have FRAME!s for each function call -and- each array level. (1 + 2 breakpoint 3 + 4) will have a frame, and ((1 + 2 breakpoint 3 + 4)) will have a frame, etc.
They had previously sort of existed; although in the case of functions they would co-opt the frame they were running in temporarily for performance reasons. But this undermines debugging. This way, if they exist and can be talked about in userspace, then you have a way of saying "I want to be called back when this frame finishes running", etc.
 
 
15 hours later…
5:59 PM
The real "problem" here is the changes have to be recompiled and the resulting file put on (any) server and as I do not really want to edit on the VM edited files must be transferred too. etc etc.
I have been thinking about Docker to get an instance of my hostserver on CentOS running.
It would be fancy if we could get RENC to deal with these process flows.
 
 
2 hours later…
7:58 PM
@iArnold Welcome to development in the cloud era. I have not used CentOS, but at least on Linux it's easy enough to develop in the VirtualBox VM (extensions make it interop with cut & paste, you can resize the screen resolution, there's editors and compilers and more tools than on Windows). Your issues with not being able to network on the host while CentOS is running aren't normal.
I think it would be neat to be able to run a local console to control a remote instance of the interpreter out-of-the-box. That is theoretically not difficult.
But there's quite near a billion things to do. Right now I feel like it's time to take the knowledge learned and chaos created during the stackless exploration and start cleaning up the mess. When I started I kind of had no idea how it was going to evolve, so I pushed things around until something worked. Now it's more or less working, and it's clearer what direction things are going to go.
 
 
2 hours later…
10:21 PM
"Q: What's a functional programmer's favorite animal"
"A: A lamb, duh."
 
11:14 PM
Elide has so many applications. switch state [(elide state: void) <state1> [...] <state2> [...] ...], you can poison the state after observation...so once you've witnessed it you can ensure transition to a new one. This would be great to have in C.
 

« first day (3569 days earlier)      last day (211 days later) »