about summary refs log tree commit diff stats
path: root/shell/evaluate.mu
Commit message (Collapse)AuthorAgeFilesLines
* data.img now has more than one sector of dataKartik K. Agaram2021-04-161-1/+1
|
* first session programming _within_ the Mu computerKartik K. Agaram2021-04-151-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I tried building a function to draw a horizontal line across the screen. Here's what I have in data.txt: ( (globals . ( (horline . (fn () (screen y) (horline_1 screen y 0 (width screen)))) (horline_1 . (fn () (screen y lo hi) (if (>= lo hi) () ((fn () (pixel screen lo y 12) (horline_1 screen y (+ lo 1) hi)))))) )) (sandbox . (horline_1 screen 0 0 20)) ) $ dd if=/dev/zero of=data.img count=20160 $ cat data.txt |dd of=data.img conv=notrunc $ ./translate shell/*.mu && qemu-system-i386 -hda disk.img -hdb data.img Result: I can't call (horline screen 0) over a fake screen of width 40. Some stream overflows somewhere after all the tweaks to various fixed-size buffers scattered throughout the app. Calling horline_1 gets to a 'hi' column of 20, but not to 30.
* shell: full closuresKartik K. Agaram2021-04-101-6/+11
|
* apply doesn't need caller env in lexical scopeKartik K. Agaram2021-04-101-6/+9
|
* shell: none of our primitives need to be closuresKartik K. Agaram2021-04-101-1/+1
|
* .Kartik K. Agaram2021-04-101-2/+2
|
* shell: UI now showing fake keyboardKartik K. Agaram2021-04-101-21/+21
| | | | But we don't actually support fake keyboards anywhere yet.
* shell: move fake screen to sandboxKartik K. Agaram2021-04-101-21/+22
|
* shell: structural equality checkKartik K. Agaram2021-04-091-3/+3
| | | | Mu can now compute (factorial 5)
* shell: ifKartik K. Agaram2021-04-091-0/+41
|
* shell: 'set' for defining globalsKartik K. Agaram2021-04-061-0/+47
| | | | Currently stateful, but still good for things.
* shell: quoteKartik K. Agaram2021-04-061-0/+28
|
* shell: look up globalsKartik K. Agaram2021-04-061-31/+12
|
* shell: extensible array of globalsKartik K. Agaram2021-04-051-74/+22
| | | | I'm not bothering with full dynamic scope for now.
* .Kartik K. Agaram2021-04-051-0/+822