|
|
|
|
|
by cogwheel
3298 days ago
|
|
Thanks :) I love that I'm not the first/only one to do one of these in Brainfuck (especially in direct response to Ben's series). I have a feeling the approach I take will follow from whatever I decide for RAM zeroing. The purist in me is still a bit put off by the idea of preprocessing. It feels more like a compiler+CPU rather than just a CPU. If I go the "highest address counter" approach where I synthesize zeros the first time a RAM location is passed, I probably won't do the loop pre-processing. I could do a hybrid approach where both jump points are indexed the first time the loop is scanned. This would achieve amortized constant time. I think I could live with that... |
|