Justine Tunney
17bd5be818
Make intern function more readable
2021-11-24 00:09:01 -08:00
Justine Tunney
6000841378
Inline Evaluate into Eval (it looks nicer)
2021-11-22 17:52:05 -08:00
Justine Tunney
c549796f78
Make C impl match latest asm tactics
...
The C code now has garbage collection. It now uses negative memory
for storing cons cells. Function arguments have been inlined since
undefined evaluation order shouldn't matter since it is immutable.
Compiler warnings have been turned off so we can use traditional C
2021-11-22 16:43:03 -08:00
Justine Tunney
2f57156c34
Remove broken dot parsing in C code
...
Fixes #13
2021-11-21 23:25:53 -08:00
Justine Tunney
532b92688e
Fix regression in C code for PrintList()
...
Fixes #11
2021-11-16 00:05:30 -08:00
Peter Ferrie
8afbbdd383
shave some bytes
2021-11-08 08:09:12 -08:00
Justine Tunney
05d2bcbfd9
Improve LISP/C/ASM Rosetta Stone consistency
2021-10-30 00:42:55 -07:00
Justine Tunney
e09cdf6619
Remove more non-essential code
2021-10-26 19:53:17 -07:00
Justine Tunney
4233210a86
Remove old code and update documentation
2021-10-08 21:26:31 -07:00
Alain Greppin
3b26982d9c
Eval based on LISP 1.5 manual, 509 bytes
2021-09-28 05:25:24 -07:00
Scott Wolchok
1058c959d8
remove extra trailing NUL on kSymbols
...
It wastes a byte this way -- see https://godbolt.org/z/nEj9hc
See diff of hexdump of sectorlisp.bin before/after:
```
*** before.txt 2021-02-27 13:17:47.842081600 -0800
--- after.txt 2021-02-27 13:16:40.789140700 -0800
***************
*** 31,33 ****
000001e0: 4551 0043 4f4e 4400 4341 5200 4344 5200 EQ.COND.CAR.CDR.
! 000001f0: 434f 4e53 004c 414d 4244 4100 0090 55aa CONS.LAMBDA...U.
00000200: f7c7 0100 7509 d1ef 8db5 8641 e9a3 ff53 ....u......A...S
--- 31,33 ----
000001e0: 4551 0043 4f4e 4400 4341 5200 4344 5200 EQ.COND.CAR.CDR.
! 000001f0: 434f 4e53 004c 414d 4244 4100 6690 55aa CONS.LAMBDA.f.U.
00000200: f7c7 0100 7509 d1ef 8db5 8641 e9a3 ff53 ....u......A...S
```
Second zero byte after LAMBDA is now uninitialized.
2021-02-27 22:57:06 -08:00
Justine Tunney
8a29ec3b23
Reduce sectorlisp to 836 bytes
2021-02-04 01:18:34 -08:00
Justine Tunney
a561e031ae
Initial import
2020-10-26 18:21:15 -07:00