Commit Graph

77 Commits

Author SHA1 Message Date
Kartik K. Agaram bb1d5c2cd3 . 2021-10-11 21:21:31 -07:00
Kartik K. Agaram 15b1c2651c . 2021-08-01 10:22:16 -07:00
Kartik K. Agaram a5cbf871ea . 2021-07-26 17:28:49 -07:00
Kartik K. Agaram bfa0efb7d1 game of life in lisp
Super slow; each frame is cleared as a sort of progress indicator while
it computes the next frame.

In the process I realize I need to adjust every single trace in the
shell sources to be more fault-tolerant to a filled-up trace stream.
2021-07-26 17:19:04 -07:00
Kartik K. Agaram 46441d7204 .
Smoked out some issues by rendering a single frame of Game of Life.
Incredibly slow.
2021-07-26 02:27:32 -07:00
Kartik K. Agaram 6b57715502 palette operations now a bit faster 2021-07-26 01:33:48 -07:00
Kartik K. Agaram 438c00fd1f . 2021-07-26 01:21:46 -07:00
Kartik K. Agaram 170b6787c5 shell: starting to implement arrays 2021-07-25 16:24:45 -07:00
Kartik K. Agaram 493aabf79a replace 'circle' with Mu implementation 2021-07-05 18:21:02 -07:00
Kartik K. Agaram c7bedaf49b replace 'vline' with Mu implementation 2021-07-05 18:12:07 -07:00
Kartik K. Agaram 5d8a858a6f replace 'hline' with Mu implementation 2021-07-05 18:08:40 -07:00
Kartik K. Agaram 0b07a43367 replace 'line' with Mu implementation 2021-07-05 18:08:33 -07:00
Kartik K. Agaram 7ced4e44dd alists 2021-07-03 16:28:15 -07:00
Kartik Agaram 6f6f6384f1 . 2021-06-24 14:33:22 -07:00
Kartik Agaram eee222f14c . 2021-06-24 09:18:59 -07:00
Kartik Agaram e4b6665aee . 2021-06-23 16:24:56 -07:00
Kartik Agaram a25e4c1ac2 . 2021-06-23 11:05:57 -07:00
Kartik K. Agaram ba0c41673b . 2021-06-23 01:01:42 -07:00
Kartik K. Agaram cfa1bac8bb . 2021-06-23 00:59:14 -07:00
Kartik K. Agaram f174695400 start using infix in data disk
Still some gaps to track down.
2021-06-23 00:03:07 -07:00
Kartik K. Agaram 0f071ae99b . 2021-06-20 23:09:50 -07:00
Kartik K. Agaram 77f347c181 shell: now no definitions with long lines 2021-06-20 23:07:23 -07:00
Kartik K. Agaram b195921b5f shell: shrink definition widths in a few places
The only remaining long lines now are in 'pair' and 'with'.
2021-06-20 23:07:23 -07:00
Kartik K. Agaram 3fd3f3a1c7 this is how we create aliases 2021-06-20 23:07:23 -07:00
Kartik K. Agaram 9ae724e1ec preserve indentation of the sandbox 2021-06-20 23:07:23 -07:00
Kartik K. Agaram 7045af7a4e 'with' lets us drop a few more parens 2021-06-20 22:33:05 -07:00
Kartik K. Agaram fa26249931 new macro: with 2021-06-20 22:32:03 -07:00
Kartik K. Agaram ecc763f092 new macro: ret
http://arclanguage.org/item?id=11068
2021-06-20 22:32:03 -07:00
Kartik K. Agaram deb610367f start dropping parens everywhere 2021-06-20 21:29:33 -07:00
Kartik Agaram 662e6b7177 . 2021-06-11 23:02:12 -07:00
Kartik K. Agaram d4968adbc9 . 2021-06-11 23:00:00 -07:00
Kartik K. Agaram 0dc4f9c62b hacky bugfix: support floats in nth
Needed because we don't yet have a primitive in the shell to truncate/round
non-integers to integers.

Before:
  (nth (/ 31 10)    # we don't have float literals yet
       '(1 2 3 4))
  => NULL

..with an unpleasant abort likely later on.

Really the correct thing to do is ensure none of my primitives ever returns
NULL. Start with car/cdr.
2021-06-11 21:36:12 -07:00
Kartik K. Agaram 8257825468 . 2021-06-11 18:20:30 -07:00
Kartik K. Agaram 9d2c64455a fizz-buzz take 2 2021-06-06 23:22:57 -07:00
Kartik K. Agaram c546987a07 fizz-buzz exercise 2021-06-06 22:53:46 -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 Agaram e941dd505c . 2021-06-06 19:03: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 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 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 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 4dd08c268d . 2021-06-04 16:46:20 -07:00
Kartik K. Agaram 224e264a65 . 2021-06-04 16:43:19 -07:00