Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | . | Kartik K. Agaram | 2021-04-28 | 1 | -3/+1 |
| | |||||
* | shell: bugfix for stream literals | Kartik K. Agaram | 2021-04-28 | 1 | -2/+33 |
| | | | | | I was forgetting that callers sometimes reuse outputs between successive tokens. | ||||
* | start rendering definitions with indentation | Kartik K. Agaram | 2021-04-28 | 1 | -12/+6 |
| | |||||
* | start stashing and clearing sandbox after definitions | Kartik K. Agaram | 2021-04-28 | 3 | -9/+80 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-28 | 1 | -1/+1 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-28 | 2 | -36/+20 |
| | |||||
* | shell: stream literals | Kartik K. Agaram | 2021-04-27 | 4 | -3/+47 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-27 | 1 | -17/+17 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-27 | 1 | -73/+18 |
| | |||||
* | shell: tokenizing stream (string) literals | Kartik K. Agaram | 2021-04-27 | 1 | -1/+78 |
| | | | | We're calling them streams since they support appending. | ||||
* | . | Kartik K. Agaram | 2021-04-27 | 1 | -8/+1 |
| | |||||
* | . | Kartik Agaram | 2021-04-26 | 1 | -5/+5 |
| | |||||
* | bresenham circles | Kartik K. Agaram | 2021-04-25 | 1 | -1/+22 |
| | | | | Known issue: circles of radius 9 crash. (Multiples of 9 overflow the trace.) | ||||
* | bug in bresenham lines | Kartik K. Agaram | 2021-04-25 | 1 | -2/+2 |
| | |||||
* | shell: primitives 'and' and 'or' | Kartik K. Agaram | 2021-04-25 | 2 | -11/+87 |
| | |||||
* | shell: primitive 'not' | Kartik K. Agaram | 2021-04-25 | 1 | -4/+45 |
| | |||||
* | failing tests not printing since show-stack-state | Kartik K. Agaram | 2021-04-25 | 1 | -1/+10 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-25 | 2 | -4/+4 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-25 | 1 | -56/+56 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-25 | 2 | -1/+1 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-25 | 1 | -94/+0 |
| | |||||
* | expand stack to 16MB | Kartik K. Agaram | 2021-04-25 | 3 | -6/+6 |
| | | | | It's also no longer contiguous with code. | ||||
* | shell: tab inserts two spaces | Kartik K. Agaram | 2021-04-25 | 1 | -0/+8 |
| | |||||
* | shell: use ctrl-m rather than tab to bounce to trace | Kartik K. Agaram | 2021-04-25 | 2 | -10/+10 |
| | | | | We'll save tab for inserting graphemes. | ||||
* | . | Kartik K. Agaram | 2021-04-25 | 1 | -1/+2 |
| | | | | Show all builtins now that we have more space. | ||||
* | devote 2/3rds of screen to definitions | Kartik K. Agaram | 2021-04-25 | 2 | -3/+3 |
| | |||||
* | add some padding to the sandbox | Kartik K. Agaram | 2021-04-25 | 2 | -2/+2 |
| | |||||
* | a troubleshooting note | Kartik K. Agaram | 2021-04-25 | 1 | -0/+11 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-25 | 1 | -2/+0 |
| | |||||
* | expand memory to 2GB | Kartik K. Agaram | 2021-04-25 | 3 | -7/+11 |
| | | | | | | | | It requires more than 1GB to fill the screen with a chessboard pattern using the definition in shell/iterative-definitions.limg. I also speed up the chessboard program by clearing the screen up front and then only rendering the white pixels. | ||||
* | expand heap to Qemu default | Kartik Agaram | 2021-04-25 | 2 | -3/+3 |
| | |||||
* | . | Kartik Agaram | 2021-04-24 | 2 | -257/+0 |
| | | | | Get rid of my experiment adding Game of Life to the shell. | ||||
* | bugfix; thanks Max Bernstein | Kartik Agaram | 2021-04-24 | 1 | -1/+1 |
| | |||||
* | . | Kartik Agaram | 2021-04-23 | 1 | -2/+16 |
| | |||||
* | shell: some example definitions | Kartik Agaram | 2021-04-23 | 3 | -0/+180 |
| | |||||
* | . | Kartik Agaram | 2021-04-22 | 12 | -40737/+41324 |
| | |||||
* | better error message on trace overflow | Kartik K. Agaram | 2021-04-22 | 1 | -1/+8 |
| | |||||
* | faster emulation | Kartik K. Agaram | 2021-04-22 | 1 | -2/+2 |
| | | | | Thanks Maxwell Bernstein for pointing this out 🤦♂️ | ||||
* | clean up with the final bugfix | Kartik K. Agaram | 2021-04-22 | 2 | -62/+9 |
| | |||||
* | snapshot | Kartik K. Agaram | 2021-04-22 | 2 | -2/+62 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It took me _way_ too long to realize that I'm not checking for errors within the loop, and that will cause it to manifest as an infinite loop as inner evaluations fail to run. Debugging notes, for posterity: printing one row of a chessboard pattern over fake screen (chessboard screen 4 0 0 15) gets stuck in an infinite loop halfway through debug pattern during infinite loop: VWEX. It's still in the loop but it's not executing the body raw (fill_rect screen 16 0 20 4 15) works fine same number of calls to fill_rect work fine replacing calls to fill_rect with pixel inside chessboard2 works fine at the point of the infinite loop it's repeatedly going through the hline loop -- BUT it never executes the check of the loop (< lo hi) with lo=20, hi=20. Something is returning 1, but it's not inside < stream optimization is not implicated simple test case with a single loop ( (globals . ( (foo . (fn () (screen i n) (while (< i n) (pixel screen 4 4 i) (pixel screen 5 4 i) (pixel screen 6 4 i) (pixel screen 7 4 i) (set i (+ i 1))))) )) (sandbox . (foo screen 0 100)) ) simpler (if you reset cursor position before every print): ( (globals . ( (foo . (fn () (screen i n) (while (< i n) (print screen i) (set i (+ i 1))))) )) (sandbox . (foo screen 0 210)) ) I now believe it has nothing to do with the check. The check always works. Sometimes no body is evaluated. And so the set has no effect. | ||||
* | . | Kartik K. Agaram | 2021-04-22 | 2 | -0/+39 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-22 | 1 | -0/+13 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-22 | 1 | -2/+9 |
| | |||||
* | shell: non-recursive 'while' | Kartik K. Agaram | 2021-04-21 | 1 | -14/+58 |
| | |||||
* | shell: refuse to 'def' duplicate names | Kartik K. Agaram | 2021-04-21 | 2 | -2/+46 |
| | |||||
* | shell: separate 'def' from 'set' | Kartik K. Agaram | 2021-04-21 | 4 | -7/+272 |
| | | | | | 'def' creates new bindings (only in globals) 'set' only modifies existing bindings (either in env or globals) | ||||
* | slightly more responsive animation | Kartik K. Agaram | 2021-04-21 | 1 | -1/+1 |
| | |||||
* | clear old output when new run is in progress | Kartik K. Agaram | 2021-04-21 | 2 | -69/+94 |
| | | | | I'm currently doing this extremely naively/slowly/uglily. Not a bottleneck. | ||||
* | . | Kartik K. Agaram | 2021-04-21 | 2 | -14/+14 |
| | |||||
* | . | Kartik K. Agaram | 2021-04-21 | 1 | -1/+1 |
| |