Commit Graph

293 Commits

Author SHA1 Message Date
Erik Svedäng
21c4d2d2fb Fix new function in carp_char.h 2018-03-18 15:23:34 +01:00
Erik Svedäng
7cb9288e5d Merge branch 'rename-c-types' of https://github.com/hellerve/Carp into hellerve-rename-c-types 2018-03-18 15:21:18 +01:00
hellerve
a55eeb98a5 core: rename string and pattern types 2018-03-18 14:53:03 +01:00
Erik Svedäng
00105618a4 A few extra functions for handling files and char pointers. 2018-03-18 14:40:49 +01:00
Erik Svedäng
4a74957b23 Merge branch 'hellerve-string-functions' 2018-03-13 17:31:07 +01:00
hellerve
ef5d50cad8 core: add Pattern.from-chars, simplify String.split-by 2018-03-13 17:06:14 +01:00
Erik Svedäng
87cf50fad9 Merge branch 'string-functions' of https://github.com/hellerve/Carp into hellerve-string-functions 2018-03-13 14:29:41 +01:00
Erik Svedäng
9d36c9e220 Fixed: 'assert' macro. Also -- reporting of errors in expanded macros now works. 2018-03-13 13:10:15 +01:00
hellerve
da91127563 core: add useful string functions 2018-03-13 12:13:29 +01:00
Erik Svedäng
b55bdd8e38 Preparations for making assert macro work. 2018-03-13 10:16:48 +01:00
Erik Svedäng
a9fd73ab2a Load 'Debug.carp' by default. 2018-03-13 09:43:08 +01:00
Erik Svedäng
832212d3fe The 'relative-include' macro works. 2018-03-13 09:36:18 +01:00
Erik Svedäng
ac6afff264 Started working on 'relative-include' macro - not working yet though. 2018-03-12 16:30:36 +01:00
Erik Svedäng
605a724765 Fixed memory leak in 'from-chars'. 2018-03-12 14:56:05 +01:00
Erik Svedäng
b5ab5cebca Fixed leaks in Array.reverse and Array.swap. 2018-03-12 14:37:53 +01:00
Erik Svedäng
0301837072 More useable signature for 'Array.element-count'. 2018-03-12 12:11:33 +01:00
Erik Svedäng
b23d60616b More permissive signature for 'Array.index-of'. 2018-03-12 12:04:23 +01:00
Erik Svedäng
2a79007a18 Todo. 2018-03-11 15:15:30 +01:00
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