Commit Graph

47 Commits

Author SHA1 Message Date
Erik Svedäng
4478cd734b assert in println 2016-03-02 00:22:42 +01:00
Erik
85df84e302 updated todo etc 2016-02-29 18:32:14 +01:00
Erik
049aebf24c The primop 'map' can handle pointers to C arrays 2016-02-29 13:47:37 +01:00
Erik
5df29ae81a Merge branch 'master' of https://github.com/eriksvedang/Carp 2016-02-26 17:14:10 +01:00
Erik
5e55e7820c trying to solve GC bug in obj_to_string_internal for pointers to Array 2016-02-26 17:13:39 +01:00
Markus Gustavsson
007995c7bc Merge branch 'master' of github.com:eriksvedang/Carp 2016-02-26 16:45:46 +01:00
Erik
993a6196f4 can bake 'str' for array 2016-02-26 14:04:22 +01:00
Markus Gustavsson
638087590d Fix import mess for shared and platform 2016-02-25 18:28:50 +01:00
Markus Gustavsson
746e4211ab Don't leak file handles 2016-02-25 17:23:51 +01:00
Markus Gustavsson
c03f6d9f32 Define stuff at the right time and place 2016-02-25 17:05:28 +01:00
Erik
23cd339fce array stuff 2016-02-25 17:03:09 +01:00
Markus Gustavsson
c3af14ae9b Exporting builtins and loading crt manually for carp imports. 2016-02-25 16:38:16 +01:00
Erik
c686003726 infrastructure for compiling generic primops (their code is put into "functions.h") 2016-02-25 14:38:28 +01:00
Markus Gustavsson
b63c6d7626 Fix module mess 2016-02-25 12:14:23 +01:00
Markus Gustavsson
87c5e91ed9 Don't close the main module handle 2016-02-25 11:46:52 +01:00
Erik Svedäng
b0d6966394 plan for array codegen 2016-02-24 22:58:50 +01:00
Erik Svedäng
808642397a array... 2016-02-24 22:44:36 +01:00
Erik
f1fc265379 wrapping existing structs work too 2016-02-24 18:52:47 +01:00
Markus Gustavsson
90befac640 Move platform code to header to make it available for baked code. 2016-02-22 16:38:07 +01:00
Markus Gustavsson
085e26b2d5 Cross platform fixes. Should work on osx again now. 2016-02-22 16:31:07 +01:00
Markus Gustavsson
61af88b647 Platform OSX 2016-02-22 14:39:17 +01:00
Markus Gustavsson
5f1f8565a5 More windows stuff 2016-02-21 09:12:37 +01:00
Markus Gustavsson
b82ed0b97b Compiles, but does not link on windows 2016-02-20 10:39:54 +01:00
Erik
2dc53fcaca added 'spawn' and 'spork' 2016-02-17 09:24:44 +01:00
Erik Svedäng
31785cb4e2 todos 2016-02-16 06:09:56 +01:00
Erik Svedäng
ddf8be1d20 lots of work with calling lambdas from ffi, is it worth it? 2016-02-11 23:54:24 +01:00
Erik Svedäng
b37575c618 rudimentary support for calling lambdas from ffi functions 2016-02-11 23:39:05 +01:00
Erik Svedäng
4e21b9646f repl 2016-02-11 12:10:00 +01:00
Erik Svedäng
7082d576f5 nice stacktrace 2016-02-11 11:57:25 +01:00
Erik Svedäng
1b61dfd278 changed name of the error globla variable to eval_error 2016-02-11 11:06:06 +01:00
Erik
64d287325b added 'async' function 2016-02-10 11:37:33 +01:00
Erik Svedäng
3c182a31d2 mapping over string array works now 2016-02-09 23:41:07 +01:00
Erik Svedäng
b1302e39fb new bug identified with freeing in recursive loop 2016-02-05 13:15:44 +01:00
Erik Svedäng
7eed6c8c5a preparing for new ownership tests 2016-01-29 21:25:05 +01:00
Erik Svedäng
dd1ec2ce30 fixed a bunch of problems with function pointers 2016-01-25 16:55:56 +01:00
Erik
0def24b8f9 all tests run again 2016-01-22 15:59:55 +01:00
Erik Svedäng
8c4b4a0569 had to fix bug where a variable got generated twice in binop 2016-01-21 20:47:42 +01:00
Erik Svedäng
3fc26dcf06 can't make output any nicer at the moment, will try more later 2016-01-21 19:59:01 +01:00
Erik Svedäng
ccece31e98 finally solved problems with nested let statements 2016-01-20 14:56:31 +01:00
Erik Svedäng
b714ae5274 in the FFI, if a type isn't primitive it's assumed to be a void* 2016-01-20 12:22:55 +01:00
Erik Svedäng
655d6168cb started tinkering with a naive implementation of arrays, just to get a
feel for it
2016-01-20 10:58:57 +01:00
Erik Svedäng
a519c11dd9 fixed test errors up until #16 2016-01-20 01:23:23 +01:00
Erik
7497df37ed calls project.carp / user.carp if they exist in correct locations 2016-01-18 14:27:46 +01:00
Erik Svedäng
888223040e better, but segfaults in tricky situation 2016-01-18 12:05:22 +01:00
Erik
21923efe68 ref form 2016-01-17 22:56:35 +01:00
Erik
567c744453 getting ready for refs 2016-01-16 19:07:10 +01:00
Erik
364f64d604 default out dir is the folder you're executing carp in 2016-01-14 22:40:41 +01:00