Commit Graph

8373 Commits

Author SHA1 Message Date
Kartik K. Agaram 67aeff8934 .
I wrote a comment about how some code was not covered by tests, and then
promptly forgot what it was for. This is why we need tests.

Now the hack is gone.
2021-06-08 15:06:08 -07:00
Kartik K. Agaram a7008328cb stop printing more than one '.' per assertion
Screen real-estate is precious on the boot screen since we have no scrolling.
2021-06-08 12:03:39 -07:00
Kartik K. Agaram 227d18f8a2 shell: first test for entire environment
This introduces some ergonomic issues. But we have to start somewhere.
2021-06-08 11:57:03 -07:00
Kartik K. Agaram 9d2c64455a fizz-buzz take 2 2021-06-06 23:22:57 -07:00
Kartik K. Agaram 4ec95d54ce reverse-video for cursor 2021-06-06 23:08:40 -07:00
Kartik K. Agaram c546987a07 fizz-buzz exercise 2021-06-06 22:53:46 -07:00
Kartik K. Agaram b3869987da make fake screens more realistic
The real screen silently clips coordinates out of bounds.
2021-06-06 22:52:59 -07:00
Kartik K. Agaram b6e1cffd9b shell: concept of palettes 2021-06-06 22:38:56 -07:00
Kartik K. Agaram 32487eb00c growing disenamored with up and down 2021-06-06 22:25:07 -07:00
Kartik K. Agaram 3efbe5bf56 . 2021-06-06 22:14:24 -07:00
Kartik K. Agaram 9922e558a3 handle navigating to a non-existent function
We need a place to show error messages. Maybe on the top row?
2021-06-06 21:46:42 -07:00
Kartik Agaram ee1d9e8598 . 2021-06-06 19:04:28 -07:00
Kartik Agaram e941dd505c . 2021-06-06 19:03:41 -07:00
Kartik Agaram e962a53f9a . 2021-06-06 18:55:41 -07:00
Kartik K. Agaram 9fd3111ea9 shell: more foundations from Lisp 2021-06-06 16:41:37 -07:00
Kartik K. Agaram f79ae9ea54 . 2021-06-06 16:40:35 -07:00
Kartik K. Agaram 86f9744257 . 2021-06-06 16:39:07 -07:00
Kartik K. Agaram 4c07de4d3b . 2021-06-06 15:33:11 -07:00
Kartik K. Agaram c5983ab3cc nicer onboarding experience with Vim
Thanks Sumeet Agarwal (https://github.com/sumeet) for helping catch this.
2021-06-06 15:27:30 -07:00
Kartik K. Agaram 1116288871 hacky Vim syntax highlighting for Mu Lisp 2021-06-06 15:09:32 -07:00
Kartik K. Agaram c1fff5ec14 shell: fleshing out the 'standard library'
Based loosely on Arc's arc.arc:
  http://arclanguage.org
  https://github.com/arclanguage/anarki/blob/official/arc.arc
2021-06-06 12:55:06 -07:00
Kartik K. Agaram 44c53fa572 . 2021-06-06 12:50:25 -07:00
Kartik K. Agaram 8014210316 shell: support negative integer literals
We still don't support _any_ fractional literals, positive or negative.
2021-06-06 12:39:03 -07:00
Kartik K. Agaram 3bdf3b1a7f shell: remainder operation 2021-06-06 12:11:14 -07:00
Kartik K. Agaram d555a71cb3 . 2021-06-06 11:53:25 -07:00
Kartik K. Agaram c4cf38773f more space for definitions 2021-06-06 10:54:50 -07:00
Kartik K. Agaram b5d3095c92 shell: cool new stress-test 2021-06-05 23:12:13 -07:00
Kartik K. Agaram 79a80f7774 . 2021-06-05 23:12:13 -07:00
Kartik Agaram 32f197f744 . 2021-06-05 22:16:51 -07:00
Kartik K. Agaram 6d67e1bf14 . 2021-06-05 20:50:06 -07:00
Kartik K. Agaram 0b3d456f2c clean up a large memory leak
It turns out (bowboard screen 128) on a real screen massively slowed down
and ran out of memory since commit e2ab1b30b1 on May 19. The culprit was
these changes, which created memory allocations for a new trace on every
recursive call.

I originally had some vague desire to isolate these calls from the user-visible
trace. That's expensive enough that I'll wait until it becomes a concern
before trying to isolate again.
2021-06-05 20:43:39 -07:00
Kartik K. Agaram b012fba1bc . 2021-06-05 18:04:05 -07:00
Kartik K. Agaram 3ac99829c7 shell: moar macros 2021-06-05 17:49:03 -07:00
Kartik K. Agaram f3ee7be683 . 2021-06-05 17:39:56 -07:00
Kartik K. Agaram 48522591f8 refresh edited definitions on ctrl-s 2021-06-05 11:56:13 -07:00
Kartik K. Agaram 99523f654f . 2021-06-05 10:02:44 -07:00
Kartik K. Agaram 6897177137 go-to dialog starts with word at cursor by default 2021-06-05 09:53:15 -07:00
Kartik K. Agaram 3d4e1b8b28 working on jumping to word at cursor
I had a nice clean definition for word-at-cursor, but it's wrong and I'm
going to have to mangle it.
2021-06-05 09:35:37 -07:00
Kartik K. Agaram 5a066f8dda start editing function definitions 2021-06-04 22:11:41 -07:00
Kartik K. Agaram 65e414911f run sandbox even when cursor in function 2021-06-04 22:05:51 -07:00
Kartik K. Agaram 4975bc82df bugfix: show functions after ctrl-g, enter 2021-06-04 22:05:02 -07:00
Kartik K. Agaram 7de9d457eb .
Menu when cursor is within a function.
2021-06-04 21:59:01 -07:00
Kartik K. Agaram 73bbe731c5 select function to render first 2021-06-04 21:56:43 -07:00
Kartik K. Agaram 7531bc2124 always render functions starting at the cursor
For now we just never render definitions above it. That will improve.
2021-06-04 21:48:35 -07:00
Kartik K. Agaram 11e8d83d61 record the definition the cursor is currently at 2021-06-04 21:48:29 -07:00
Kartik K. Agaram 2177b38a68 conditionally display cursor on function side
Always shows at top-most function.
Can't actually do any editing yet.
2021-06-04 21:47:59 -07:00
Kartik K. Agaram 1f05bdcc34 conditionally display cursor in sandbox 2021-06-04 21:47:53 -07:00
Kartik K. Agaram d40dfea3ed modal dialog for function name to jump to 2021-06-04 21:47:36 -07:00
Kartik K. Agaram 9d1f0e6eca hacky colors for registers 2021-06-04 20:50:46 -07:00
Kartik K. Agaram 846664c4dd . 2021-06-04 20:15:11 -07:00