Commit graph

267 commits

Author SHA1 Message Date
Justin Ethier
07500ce6d6 Properly store thread ID in thread objects
Also sketched out thread-join support but there are larger issues to consider to get that working.
2017-01-22 18:58:37 -05:00
Justin Ethier
b0ec9d9671 Handle conversion of other chars 2016-11-23 18:28:47 -05:00
Justin Ethier
b1ca2627d1 Issue #112 - Compilation of nan/inf 2016-10-24 17:15:32 -04:00
Justin Ethier
fa53f1225e Add fast numeric comparisons 2016-10-15 02:37:13 -04:00
Justin Ethier
5d089b83eb Bugfix, do not add & for "fast" functions 2016-10-14 23:10:16 -04:00
Justin Ethier
cf735c7917 Integrating fast sum 2016-10-14 22:41:08 -04:00
Justin Ethier
6d9ebb1a7c Use import DB to compile globals 2016-10-11 03:19:50 -04:00
Justin Ethier
cc16ca8de2 Store environment information 2016-09-28 23:23:24 -04:00
Justin Ethier
55f4a7403c Issue #3 - Fix C compiler warning for varargs 2016-08-12 18:07:05 -04:00
Justin Ethier
17ce827d8e Issue #3 - Allow compiling a pure varargs lambda 2016-08-13 01:42:58 -04:00
Justin Ethier
5dceed4e2d Issue #101 - Include an extra ; to prevent errors
Include an extra semicolon in the C entry point to prevent it from missing in cases where one is no normally inserted, such as for non-cps primitives or constants. This prevents C compilation errors in edge cases.
2016-08-11 23:50:43 -04:00
Justin Ethier
a8062e3f13 Issue #93 - Type-check call/cc argument 2016-08-05 23:31:15 -04:00
Justin Ethier
f46cc5b010 Explicitly declare C main as returning int 2016-07-20 22:35:01 -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
f4b8dbc8a1 Added a special case to set num_args to 0 for call/cc
This fixes validation later on for call/cc's internal lambda function. When we eval it we only want to validate 1 arg, not 2.
2016-06-11 01:27:50 -04:00
Justin Ethier
c3a7fcbe45 Deleted relocated code 2016-06-04 04:10:32 -04:00
Justin Ethier
d3fbcdc9c2 New library 2016-06-04 04:07:12 -04:00
Justin Ethier
24cf670237 Added Cyc-opaque? 2016-04-26 21:52:30 -04:00
Justin Ethier
360e9c1127 Added TODO 2016-04-27 04:07:04 -04:00
Justin Ethier
e892ed2270 Refactoring 2016-04-27 03:18:47 -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
ea225a3ab7 Refactoring 2016-04-21 00:36:51 -04:00
Justin Ethier
63a2204efc Refactoring 2016-04-20 22:20:02 -04:00
Justin Ethier
3553d0773c Refactoring 2016-04-20 03:39:58 -04:00
Justin Ethier
d2c8224444 Refactoring 2016-04-20 02:47:05 -04:00
Justin Ethier
61f42ef849 Output C headers 2016-04-20 00:04:00 -04:00
Justin Ethier
ea37de65f7 Read c headers included by a library 2016-04-19 23:38:48 -04:00
Justin Ethier
096d1e8a77 Cut over to Cyc_number2string2 2016-04-04 23:21:53 -04:00
Justin Ethier
1598a72921 Refactoring 2016-04-01 22:01:10 -04:00
Justin Ethier
a63f9a729e Refactoring 2016-04-01 21:48:01 -04:00
Justin Ethier
a5a2683f19 Added comment 2016-04-01 02:37:47 -04:00
Justin Ethier
5de999dee7 Use new comparison ops 2016-03-31 23:48:09 -04:00
Justin Ethier
9a0a0dc5ec Handle import sets containing numbers 2016-03-31 22:06:38 -04:00
Justin Ethier
de8196aa80 WIP - mangling of library globals 2016-03-30 03:49:45 -04:00
Justin Ethier
067f8b0ad7 cgen:mangle-global 2016-03-30 01:22:47 -04:00
Justin Ethier
e67b67895f Use lib:idb 2016-03-30 01:00:43 -04:00
Justin Ethier
8ef3cb7e61 utf8/string functions 2016-03-29 00:32:50 -04:00
Justin Ethier
b4ca192000 WIP 2016-03-24 01:22:42 -04:00
Justin Ethier
e9ed4abcc5 bytevector fixes 2016-03-24 00:14:57 -04:00
Justin Ethier
56278989eb Integrating bytevector-append 2016-03-23 22:58:56 -04:00
Justin Ethier
d184df6b4e WIP 2016-03-23 20:26:57 -04:00
Justin Ethier
059f6d5321 u8 primitives 2016-03-22 23:07:29 -04:00
Justin Ethier
d0914d863f Allow optional fill arg to (make-vector) in compiled code 2016-03-22 20:45:14 -04:00
Justin Ethier
943dd1aad5 Use new vector function 2016-03-22 20:07:37 -04:00
Justin Ethier
f11fec9f82 Cleaning up Cyc_length 2016-03-22 03:23:46 -04:00
Justin Ethier
739831ebe6 Removed redundant functions 2016-03-22 01:03:12 -04:00
Justin Ethier
b670dacddb Moving away from primitives that return integer_type 2016-03-21 23:08:58 -04:00
Justin Ethier
05d39afd3f Use immediates 2016-03-19 22:38:23 -04:00