Commit Graph

275 Commits

Author SHA1 Message Date
Erik Svedäng
16cd751790 A String.join function. 2018-03-11 15:09:30 +01:00
Erik Svedäng
fcc01ff268 Some new functions and macros. 2018-03-11 14:53:50 +01:00
Erik Svedäng
a83d343a98 Optimized 'Array.subarray', 3.90575s -> 25.046ms for taking the first half of an array of 10k ints. 2018-03-11 14:30:38 +01:00
Erik Svedäng
f3b55e7937 Optimized Array.aupdate from 5.93691s to 2.75493s for array of 1000000 ints. 2018-03-11 13:56:07 +01:00
Erik Svedäng
ff6852d839 Changed signature of Array.swap. Optimized from 2.66486s -> 1.32265s for 1000000 Int elements. 2018-03-11 10:38:24 +01:00
Erik Svedäng
9941d7dcb2 Merge branch 'master' of https://github.com/hellerve/Carp 2018-03-10 18:08:38 +01:00
Erik Svedäng
8059bb3c45 Fixed bug in Bench.carp where a value was used outside of its stack scope. 2018-03-07 15:20:44 +01:00
Erik Svedäng
e4978d5a96 Optimization works. 2018-03-07 12:03:59 +01:00
Erik Svedäng
4c8b661bdc Moved safe int functions into their own file that's not automatically loaded. 2018-03-06 16:44:07 +01:00
Erik Svedäng
a6f0db8675 All OpenGL-functions registered. 2018-03-06 14:18:25 +01:00
Erik Svedäng
5aba1d22df Merge branch 'regex' of https://github.com/hellerve/Carp 2018-03-05 01:42:14 +01:00
hellerve
ae8b7644aa all: patterns need to be their own typedef 2018-03-04 19:39:00 +01:00
Erik Svedäng
2aa4a1a5c0 'eval' macro for easy printing of (compiled) values in the REPL. 2018-03-04 11:41:47 +01:00
hellerve
fa41129ff3 core: pattern functions are now prefixed 2018-03-03 19:58:53 +01:00
hellerve
dac3bad33a core: regex helper functions are done 2018-03-03 19:19:59 +01:00
hellerve
5c736fd224 core: rename regex to pattern, as @RyanSquared suggested in #192 2018-03-02 15:31:26 +01:00
hellerve
5da0e91de8 all: add lua license 2018-03-02 14:14:19 +01:00
hellerve
345f5d3c8a all: add autoescaping in regexes 2018-03-01 19:41:20 +01:00
hellerve
bdbb2d7c5b regex: add regex module and type 2018-03-01 19:19:20 +01:00
hellerve
0494dda3ff core: bugfixes to regex; return -1 on simple find error, return correct index on find, and correct string on match-str 2018-03-01 18:04:33 +01:00
Erik Svedäng
41a8c1566e Use pkg-config for finding location of glfw instead. 2018-02-28 22:43:43 +01:00
hellerve
3deb6f0658 core: add match-str and matches? to regex 2018-02-28 11:19:13 +01:00
hellerve
93171ccbaa core: regex api seems to work completely 2018-02-28 11:18:57 +01:00
hellerve
749a9eae10 core: iro (initial regex offering) 2018-02-28 11:18:39 +01:00
Erik Svedäng
59da82b5c1 A little bit of OpenGL. 2018-02-27 17:13:46 +01:00
Erik Svedäng
633be61c50 GLFW bindings (automatically generated). 2018-02-27 16:48:31 +01:00
hellerve
8e2cff8dcf core: manual merge 2018-02-27 15:30:22 +01:00
hellerve
890a2eab1e core: rename System.srand to System.seed-random 2018-02-27 15:12:25 +01:00
hellerve
01f366f2c8 core: remove interdependencies between modules 2018-02-27 15:10:42 +01:00
hellerve
1ec7ee184d core: split up core 2018-02-27 15:09:13 +01:00
hellerve
b7ea8d1487 core: namespaced split-up carp headers 2018-02-27 15:08:39 +01:00
hellerve
f56b1ff93f core: split up core.h, installment 1 2018-02-27 15:08:36 +01:00
hellerve
619089aead core: change globals to vars in test 2018-02-23 17:25:15 +01:00
Erik Svedäng
9c7793d6d1 Undefine things until cl.exe can compile a Hello World program. 2018-02-12 14:34:17 +01:00
Erik Svedäng
36274a29d3 Made System.exit return 'a' instead of (). 2018-02-08 22:13:27 +01:00
Erik Svedäng
0610c8e209 BUGFIX: Memory allocated in the condition of a while-loop is managed
first run through the loop.
2018-02-08 18:34:53 +01:00
Erik Svedäng
97fef54482 Some comments in the Debug module. 2018-02-08 17:55:44 +01:00
Erik Svedäng
74d4025223 Put the c[ad]r dynamic functions into the Dynamic module. 2018-02-08 17:39:42 +01:00
Erik Svedäng
fefce23b90 New Project.config command, the old project-set! is deprecated. 2018-02-08 17:12:32 +01:00
Erik Svedäng
aea08f5dfd Switch amount of bytes allocated. 2018-02-06 19:43:12 +01:00
Erik Svedäng
f9926f732e All tests run with 'prn' enabled. 2018-02-06 18:58:41 +01:00
Erik Svedäng
e80af19a39 Added prn for Strings, make 'str' not print with @ and quotes. 2018-02-06 18:37:15 +01:00
Erik Svedäng
5c6bdb87d8 Define 'prn' function for built in types. 2018-02-06 16:48:14 +01:00
Erik Svedäng
a25606725e Proper 'assert' macro that reports source location. 2018-02-06 10:12:43 +01:00
Erik Svedäng
d23a211985 BUG FIX: Must handle deletion of temporary values used during initialization of global variables. 2018-02-06 08:21:50 +01:00
Erik Svedäng
26887f3716 Changed type signature of (set! ...) form. 2018-02-02 07:19:10 +01:00
hellerve
27a4a3edff core: fix bench and ignore form, because they were buggy 2018-02-01 18:01:45 +01:00
hellerve
7b10c28aee core: fix bench for new member accesses 2018-02-01 17:18:05 +01:00
hellerve
3fe9a8f321 core: better loop start for Array.ax/min 2018-01-29 10:55:45 +01:00
Erik Svedäng
8281dfa109 Made inc, dec, max, min into interfaces. Changed Array.max/min to new
names. Fixed tests and removed special max/min from Statistics module.
2018-01-29 07:14:56 +01:00