Commit graph

723 commits

Author SHA1 Message Date
Justin Ethier
3cceb2f84c Eliminate compiler warning 2016-07-29 03:16:42 -04:00
Justin Ethier
fe65274c77 Added Cyc_car / Cyc_cdr 2016-07-28 23:34:03 -04:00
Justin Ethier
9c04662938 Use fgets for read-line 2016-07-26 21:36:33 -04:00
Justin Ethier
fa24f4db37 Unsafe cell functions 2016-07-25 23:26:43 -04:00
Justin Ethier
1fa07c1e0f Handle error better 2016-07-24 22:20:45 -04:00
Justin Ethier
cfb3209648 Fixed compiler warning, replaced hexstr2int 2016-07-20 22:06:25 -04:00
Justin Ethier
d6f5a81f2d Fixed compiler warnings 2016-07-19 23:02:21 -04:00
Justin Ethier
2b7525655b Cleanup 2016-07-15 23:31:48 -04:00
Justin Ethier
1c0c0bb315 Change how mutations are stored in memory
Use a reallocated memory buffer instead of malloc'd pairs. This should speed things up by reducing the number of allocations and by keeping mutations in contiguous sections of memory.
2016-07-15 23:14:36 -04:00
Justin Ethier
9e2a51fdae Refactoring 2016-07-15 21:22:50 -04:00
Justin Ethier
f75b077270 Added (Cyc-macro?) 2016-07-14 22:18:46 -04:00
Justin Ethier
3f28243075 Use string_len macro instead of strlen() 2016-07-14 03:22:43 -04:00
Justin Ethier
7caa67a51c Include function name in args error 2016-07-12 21:05:45 -04:00
Justin Ethier
13ce612768 Massive speedup comparing certain types of lists 2016-07-07 21:42:12 -04:00
Justin Ethier
8e0e7309a2 Bug fixes 2016-07-07 23:39:49 -04:00
Justin Ethier
6794da5159 WIP - equalp with checks for circular lists 2016-07-07 23:24:39 -04:00
Justin Ethier
aac1c44b3d Attempt to allocate huge vectors on the heap 2016-07-06 23:38:57 -04:00
Justin Ethier
f526eeb6f3 Populate huge object heap 2016-07-06 23:07:43 -04:00
Justin Ethier
10286604e6 Issue #78 - Print doubles diffently than ints
Fixed problem where sometimes the decimal and trailing 0 are not printed for a double, which makes differentiating between ints/doubles confusing.
2016-07-06 02:53:54 -04:00
Justin Ethier
36c124fa80 Added TODO 2016-07-05 23:34:38 -04:00
Justin Ethier
655b56e390 Do not automatically convert floats to ints 2016-07-05 23:09:12 -04:00
Justin Ethier
b5ccb51feb Simplify macro following setjmp, just like closcall
A very minor improvement, but it technically improves performance and does simplify the code.
2016-07-04 22:51:14 -04:00
Justin Ethier
199b685de3 Use only one comparison in closcall macros
This improves performance a bit since these macros are called after almost every C function.
2016-07-04 22:42:35 -04:00
Justin Ethier
02e8b343c7 Fix Cyc_has_cycle to compare cons cells
Compare the cons cells themselves - instead of values - to determine if there is a cycle. By definition the pointers will be different unless there is a cycle.
2016-07-02 02:42:32 -04:00
Justin Ethier
f86132591d Issue #69 - Removed symtbl size checks
libck already does this internally
2016-07-01 21:53:36 -04:00
Justin Ethier
c9d93dd0b2 Bug fixes 2016-07-01 01:07:25 -04:00
Justin Ethier
9cf016e1a6 More cleanup, generalize apply_va logic 2016-06-29 22:55:18 -04:00
Justin Ethier
4f65fdb6e2 Cleanup 2016-06-29 22:41:42 -04:00
Justin Ethier
63e476839f va_args version of apply for eval 2016-06-29 22:14:58 -04:00
Justin Ethier
552fb19822 Added TODO's 2016-06-30 00:45:06 -04:00
Justin Ethier
67c00ae7ed WIP version of dispatch_apply_va 2016-06-30 00:09:17 -04:00
Justin Ethier
c46a8e57f6 WIP - apply with varargs 2016-06-28 23:01:50 -04:00
Justin Ethier
378b5f1c3e Experimenting with MRG32k3a 2016-06-20 22:50:35 -04:00
Justin Ethier
81d5a9e524 Issue #10 - Add vector support to (write). 2016-06-19 22:55:23 -04:00
Justin Ethier
730fdb3111 Fix crash when cdr is a value type 2016-05-03 00:10:59 -04:00
Justin Ethier
24cf670237 Added Cyc-opaque? 2016-04-26 21:52:30 -04:00
Justin Ethier
161c46ac72 Added Cyc_is_opaque 2016-04-27 04:05:54 -04:00
Justin Ethier
a946a6cb69 Refactoring 2016-04-27 03:58:38 -04:00
Justin Ethier
007c7d3fe5 Refactoring 2016-04-27 03:52:27 -04:00
Justin Ethier
7181268d6b Ran 'make indent' 2016-04-27 03:49:41 -04:00
Justin Ethier
ef4ad29969 Refactoring 2016-04-27 03:30:29 -04:00
Justin Ethier
e892ed2270 Refactoring 2016-04-27 03:18:47 -04:00
Justin Ethier
5d1a605b66 Refactoring 2016-04-27 02:24:05 -04:00
Justin Ethier
008c857755 Refactoring 2016-04-26 23:33:36 -04:00
Justin Ethier
df20aaa6d3 Refactoring 2016-04-20 23:42:21 -04:00
Justin Ethier
ef1db96f2a Refactoring 2016-04-20 23:10:46 -04:00
Justin Ethier
9bcdd35370 Added more GC constants 2016-04-20 22:07:14 -04:00
Justin Ethier
b4d67004fe Cleaned up list of tags 2016-04-21 03:37:20 -04:00
Justin Ethier
f89d35bb09 Removed unused functions 2016-04-21 00:48:56 -04:00
Justin Ethier
ea225a3ab7 Refactoring 2016-04-21 00:36:51 -04:00