Commit graph

137 commits

Author SHA1 Message Date
Justin Ethier
b51e3747e2 Use a common numeric operation va_list function 2015-04-15 13:58:51 -04:00
Justin Ethier
6cadac2be8 Renamed cyc_sum family of functions 2015-04-15 13:43:02 -04:00
Justin Ethier
3193ff1dd9 Only print GC start/done when in debug mode 2015-04-15 13:37:13 -04:00
Justin Ethier
4952129efb Removed debug printf's 2015-04-15 13:32:40 -04:00
Justin Ethier
abac04c58e Replace set-cell! with set-car!
Set-cell was just a wrapper on set-car anyway, but it was failing to record a mutation, which would cause problems later on for the GC. By using set-car directly we avoid GC issues and simplify the runtime code a bit.
2015-04-15 13:30:28 -04:00
Justin Ethier
03df6405e6 debugging 2015-04-14 18:11:31 -04:00
Justin Ethier
98fc7fa642 Added varargs sum, but working through issues with segfaults 2015-04-14 13:52:14 -04:00
Justin Ethier
2de7b46904 Stubs for va-args sum 2015-04-13 22:42:41 -04:00
Justin Ethier
7f82bf2617 WIP - Cyc_raise 2015-04-10 17:46:48 -04:00
Justin Ethier
04c11eabfb Replacing __sum macro with Cyc_sum 2015-04-10 14:56:47 -04:00
Justin Ethier
5be68ec60c Experimenting with Cyc_sum 2015-04-10 14:16:15 -04:00
Justin Ethier
010d3e6a18 Modified code to account for numeric tower, fixed up number->string 2015-04-09 21:52:49 -04:00
Justin Ethier
d9add7ab54 WIP 2015-04-09 18:04:06 -04:00
Justin Ethier
b2cc35e141 Added real? and integer? 2015-04-09 17:54:35 -04:00
Justin Ethier
cbcde1e0b1 Allow (string->number) to parse floats and ints 2015-04-09 14:13:15 -04:00
Justin Ethier
ea8f56a4ee Allow (string->number) to return common type (int and double) 2015-04-08 22:59:22 -04:00
Justin Ethier
c62e035153 Building-out double type 2015-04-08 22:30:05 -04:00
Justin Ethier
b946e75a02 Fixed compiler warning 2015-03-31 22:59:14 -04:00
Justin Ethier
78fe64cb56 Replaced AFTER_LONGJMP, and misc fixes 2015-03-31 21:45:10 -04:00
Justin Ethier
456af5b6d0 Removed unnecessary code 2015-03-31 13:59:21 -04:00
Justin Ethier
dd8b1852f7 WIP - separating runtime code 2015-03-30 13:40:41 -04:00
Justin Ethier
926d7b7881 First steps toward precompiling part of the runtime 2015-03-27 17:15:03 -04:00
Justin Ethier
e8d3424125 Experimenting with an alternative approach for apply 2015-03-27 15:54:48 -04:00
Justin Ethier
e0025483a0 Tweak has-cycle to check symbols again. flip-flopping on this 2015-03-25 22:24:57 -04:00
Justin Ethier
f23b89a05f Two fixes:
- Renamed 'Cyc-has-cycle?'
- Fixed Cyc_has_cycle to prevent an infinite loop
2015-03-25 21:58:02 -04:00
Justin Ethier
19ccf7cda3 Added remaining list/pair functions 2015-03-25 14:09:49 -04:00
Justin Ethier
c6e44a6156 Only define global if CYC_EVAL 2015-03-24 21:57:06 -04:00
Justin Ethier
aa1564eda8 Added (call/cc) to interpreter 2015-03-24 17:20:21 -04:00
Justin Ethier
d418ce265f has_cycle - remove comparisons for known dupe objs
Trying leaving out comparisons of objects that are expected to be equal such as value types, booleans, and symbols.
2015-03-24 15:53:54 -04:00
Justin Ethier
9ea8d0c778 Removed extraneous newlines 2015-03-24 15:43:21 -04:00
Justin Ethier
e73155586f Removed dead code 2015-03-23 22:22:39 -04:00
Justin Ethier
fd9b66f071 Proper formatting of (write) output 2015-03-23 21:58:30 -04:00
Justin Ethier
582524af81 Moving core exception handler code from C to Scheme 2015-03-21 22:01:14 -04:00
Justin Ethier
a46b5f18f8 Debugging ex handler integration with icyc 2015-03-20 23:25:50 -04:00
Justin Ethier
41c458c23f Allow (exit) to take no args 2015-03-20 11:14:26 -04:00
Justin Ethier
1d5409b4ae Initial version of (raise-continuable) 2015-03-19 22:20:12 -04:00
Justin Ethier
f819b9e055 WIP 2015-03-18 15:12:50 -04:00
Justin Ethier
35dd277080 WIP 2015-03-17 22:52:15 -04:00
Justin Ethier
6a27bd44ad WIP - raise 2015-03-17 22:32:52 -04:00
Justin Ethier
deff3e910d Experimenting with exception handler 2015-03-16 22:47:20 -04:00
Justin Ethier
dd7a8c1846 Stubbing out exception handling 2015-03-15 22:38:24 -04:00
Justin Ethier
f307504744 Tweaks to __halt 2015-03-13 23:46:38 -04:00
Justin Ethier
5bd3deefa1 Added (exit) 2015-03-13 23:42:41 -04:00
Justin Ethier
583b9297de Renamed write barrier to mutation table
This naming convention is more appropriate, and matches the scheme standards.
2015-03-13 16:51:31 -04:00
Justin Ethier
eb3dbfbfec Removed debug printf 2015-03-13 16:41:05 -04:00
Justin Ethier
a8bf11bf79 Extend GC to support mutations 2015-03-13 16:40:08 -04:00
Justin Ethier
30cf7b58a4 Disabling write barrier, not needed for pairs 2015-03-09 22:01:46 -04:00
Justin Ethier
d73f20ea4c Removed test code 2015-03-09 18:05:57 -04:00
Justin Ethier
8063fc61c0 WIP 2015-03-08 16:51:53 -04:00
Justin Ethier
abb56c5795 Experimenting with a write barrier 2015-03-08 16:15:51 -04:00