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 |
|
Erik Svedäng
|
0f99128f9c
|
Moved simplified dictionary code to generic struct examples.
|
2018-01-28 22:54:59 +01:00 |
|
Erik Svedäng
|
33aeab7c82
|
FIXED: Fails to find the correct Array.str when calling println* in a do-form.
|
2018-01-28 05:56:03 +01:00 |
|
Erik Svedäng
|
122ef5a4ce
|
Merge pull request #176 from hellerve/benchmarks
Add Benchmarks
|
2018-01-26 22:20:59 +01:00 |
|
Erik Svedäng
|
936dd8b26c
|
Changed type of member getter method to always returning a Ref (used to be non-ref for primitive types).
|
2018-01-26 21:23:29 +01:00 |
|
hellerve
|
9a3b0e5f59
|
bench: added first bits of benchmarking
|
2018-01-25 17:26:20 +01:00 |
|
hellerve
|
b250be5a12
|
core: readded emap template :(
|
2018-01-24 17:14:43 +01:00 |
|
hellerve
|
9c933c64c5
|
core: rewrite both map functions in carp
|
2018-01-24 17:06:17 +01:00 |
|
hellerve
|
0f86e15f0e
|
templates: add Array.allocate; core: rewrite repeat and replicate in Carp
|
2018-01-24 17:06:15 +01:00 |
|
Erik Svedäng
|
5e777a601f
|
Merge branch 'master' of https://github.com/hellerve/Carp
|
2018-01-24 16:42:12 +01:00 |
|
hellerve
|
2fa8be21ab
|
core: added set-min-runs! to Bench to be able to adjust the minimum number of runs
|
2018-01-24 13:28:57 +01:00 |
|
hellerve
|
a6e44d3c56
|
compiler: remove unused variable warning; core: add Statistics usage to Bench, fix ambiguity in Statistics
|
2018-01-24 13:08:46 +01:00 |
|
Thomas Dendale
|
8d49d76279
|
Added clamp to Int too. Fixed random-between floating point exception when lower = upper.
Added Array.initialize, symbol? commands
|
2018-01-23 16:23:37 +01:00 |
|
hellerve
|
8cb5f5311b
|
core & templates: fixed size of stringification buffers
|
2018-01-22 12:47:38 +01:00 |
|
Thomas Dendale
|
24d6e625e6
|
Fix for macro when body is empty
|
2018-01-17 17:08:02 +01:00 |
|
Thomas Dendale
|
5480f5277a
|
Print macro error (warning) when using more then one expression in body
|
2018-01-17 16:12:25 +01:00 |
|
Erik Svedäng
|
5042415109
|
Could avoid copying the array in String.repeat now.
|
2018-01-16 16:28:05 +01:00 |
|
hellerve
|
4d6b211853
|
core: sort->sort-with; fix statistics with new sorter
|
2018-01-15 16:47:22 +01:00 |
|
hellerve
|
eba07aeb34
|
core: added numerical ref modules
|
2018-01-15 16:27:05 +01:00 |
|
hellerve
|
f93eb16615
|
core: add cmp interface; src: better sort
|
2018-01-15 16:10:11 +01:00 |
|
hellerve
|
1c07003167
|
core: fix bugs and unnecessary check in fmt
|
2018-01-15 12:04:12 +01:00 |
|
hellerve
|
69a084e257
|
core: fixed bounds in range; tests: added regression tests
|
2018-01-10 14:24:32 +01:00 |
|
hellerve
|
1570f375bb
|
core: fix range for non-reachable end
|
2018-01-10 14:20:17 +01:00 |
|
hellerve
|
f76d664c43
|
compiler: make range a regular function instead of a template
|
2018-01-10 14:20:17 +01:00 |
|
hellerve
|
41ac52af99
|
core: fixed behavior of from-chars and ends-with?
|
2018-01-03 12:50:47 +01:00 |
|
Erik Svedäng
|
ec1e41b7c7
|
Merge pull request #157 from hellerve/stdlib-update
Add a few more functions to stdlib
|
2018-01-02 22:29:00 +01:00 |
|
hellerve
|
d32fe4102f
|
core: added a few more functions to stdlib
|
2018-01-02 18:13:52 +01:00 |
|
Erik Svedäng
|
9d0dc34ecc
|
Merge pull request #156 from hellerve/master
Rewrite index-of and elem-count in carp
|
2018-01-02 14:53:39 +01:00 |
|
hellerve
|
e1b1667ea3
|
core: fix printing percent in format
|
2018-01-02 14:46:42 +01:00 |
|
hellerve
|
de40aef4d8
|
array templates: rewrite index-of and elem-count in carp
|
2018-01-02 14:39:24 +01:00 |
|
Erik Svedäng
|
7cd40a8ad5
|
Better support for globals.
|
2018-01-02 08:56:23 +01:00 |
|
Erik Svedäng
|
6d5bd6a74d
|
More uniform solution for memory logging.
|
2018-01-02 06:54:05 +01:00 |
|
Erik Svedäng
|
7296b83264
|
memory-logged macro
|
2018-01-02 06:46:01 +01:00 |
|
hellerve
|
7c9eaeac9f
|
core: made format not leak memory; test: added test for format and fmt
|
2017-12-30 20:16:31 +01:00 |
|
hellerve
|
6a5e73e088
|
core: correct allocation in format
|
2017-12-30 18:39:16 +01:00 |
|
hellerve
|
8baffc1f77
|
core: fixed format on last arg
|
2017-12-30 18:21:59 +01:00 |
|
hellerve
|
2c529eba43
|
core: check whether too many arguments are there for the format string
|
2017-12-30 15:19:43 +01:00 |
|
hellerve
|
ff34744dc4
|
core: format works!
|
2017-12-30 15:13:58 +01:00 |
|
hellerve
|
eccddd00fe
|
format: added simple versions of format (work on issue #108)
|
2017-12-30 15:13:56 +01:00 |
|
hellerve
|
38d7bcd32a
|
format macro works
|
2017-12-30 15:13:00 +01:00 |
|
hellerve
|
2d183768fe
|
compiler: added dynamic +, -, *, and / on integers
|
2017-12-30 15:13:00 +01:00 |
|
hellerve
|
85ce16d5db
|
core & compiler: initial work on #108
|
2017-12-30 15:13:00 +01:00 |
|
Erik Svedäng
|
278a8c92ce
|
Merge pull request #153 from hellerve/varargs-macros
Add varargs macro
|
2017-12-29 12:23:55 +01:00 |
|
hellerve
|
a048d2f931
|
core: added and*, or*, str*, and println* macros
|
2017-12-29 11:49:51 +01:00 |
|
hellerve
|
66912d0ebe
|
core: fixed limiter in chars
|
2017-12-29 10:28:46 +01:00 |
|
hellerve
|
6897606f39
|
core: added random & random-between to char, random to string
|
2017-12-28 18:10:38 +01:00 |
|
hellerve
|
b561713add
|
core: added random to vector and double; added random and random-between interfaces
|
2017-12-28 18:02:50 +01:00 |
|
hellerve
|
cd9a0ddbbc
|
core: added mod interface
|
2017-12-28 17:46:47 +01:00 |
|
hellerve
|
8c77e75ea2
|
added parallelity and perpendicularity test
|
2017-12-28 17:44:20 +01:00 |
|
hellerve
|
33c0a542e3
|
core: added zero api to vctor
|
2017-12-28 17:22:25 +01:00 |
|
Erik Svedäng
|
a75bc7719a
|
Tweaked borrow semantics around 'set!' to allow for more efficient use
in loops, etc.
|
2017-12-25 18:02:03 +01:00 |
|
Erik Svedäng
|
b8c1da3e3b
|
Sleeping functions.
|
2017-12-25 16:51:23 +01:00 |
|
Erik Svedäng
|
463050d8d7
|
Trace function.
|
2017-12-25 16:33:03 +01:00 |
|
Erik Svedäng
|
62da15ea5e
|
Merge pull request #149 from hellerve/float-to-int
Add Float.from-int
|
2017-12-23 17:54:27 +01:00 |
|
hellerve
|
3f245820a8
|
core: added Float.to-int
|
2017-12-23 16:37:27 +01:00 |
|
Erik Svedäng
|
69b6c43a59
|
Comment.
|
2017-12-23 14:32:24 +01:00 |
|
Erik Svedäng
|
ef1dd0a45e
|
Fixed memory bug in String.repeat that was discovered when running with -fsanitize=address
|
2017-12-23 14:30:45 +01:00 |
|
Erik Svedäng
|
57bb9a7469
|
Extracted out Debug module.
|
2017-12-23 14:10:44 +01:00 |
|
Erik Svedäng
|
9a3ece2745
|
Some memory tests.
|
2017-12-23 09:24:16 +01:00 |
|
Erik Svedäng
|
bce28c65cd
|
This might work.
|
2017-12-23 08:58:57 +01:00 |
|
Erik Svedäng
|
61208b599f
|
Setting up proper test suit for finding memory errors.
|
2017-12-23 08:33:13 +01:00 |
|
hellerve
|
1c861d9f4d
|
interim commit
|
2017-12-22 11:17:19 +01:00 |
|
Erik Svedäng
|
46c5a2af49
|
Merge pull request #140 from hellerve/examples-to-test
Moved a few examples to test
|
2017-12-21 16:56:33 +01:00 |
|
hellerve
|
ab9c0075a9
|
core: added SDL_Renderer opaque type; Eval: able to compare two symbols
|
2017-12-21 14:02:00 +01:00 |
|
hellerve
|
9ebd2c7997
|
core: moved from C for String./= to Carp
|
2017-12-19 18:01:06 +01:00 |
|
hellerve
|
d04cd6dfb1
|
core: added = and /= for regular strings, not just refs, fixed String./=
|
2017-12-19 17:53:27 +01:00 |
|
Erik Svedäng
|
849209db90
|
Merge pull request #138 from Nananas/fix-readfile
Fixed segfault in read-line when file doesn't exist.
|
2017-12-19 17:28:14 +01:00 |
|
Thomas Dendale
|
df34ad84c7
|
Fixed segfault in read-line when file doesn't exist.
|
2017-12-19 12:52:55 +01:00 |
|
hellerve
|
4e83a704e4
|
core: generalized subarray; tests: more extensive tests for array
|
2017-12-19 12:46:46 +01:00 |
|
Erik Svedäng
|
a3dd41cea7
|
Merge pull request #134 from hellerve/string-lib
Strings I: A few functions
|
2017-12-18 22:39:08 +01:00 |
|
hellerve
|
1dc11540d3
|
core: reimplemented reverse in carp
|
2017-12-18 16:53:46 +01:00 |
|
hellerve
|
9116d16e4c
|
tests: tested new string functions
|
2017-12-18 16:19:29 +01:00 |
|
hellerve
|
582543a1cf
|
core: simplified String.head
|
2017-12-18 16:06:17 +01:00 |
|
hellerve
|
309f1377dd
|
core: added more string functions: compiler: added array reverse
|
2017-12-18 15:46:25 +01:00 |
|
hellerve
|
2f4505bf73
|
core: added char-at to String
|
2017-12-18 12:31:33 +01:00 |
|
hellerve
|
ea2f378cbf
|
string: fixed padding functions
|
2017-12-18 12:31:33 +01:00 |
|
hellerve
|
9a521ef42a
|
string: added head and tail
|
2017-12-18 12:31:33 +01:00 |
|
hellerve
|
5451c0367f
|
string: started lib as specified in #94, currently blocked by #118
|
2017-12-18 12:31:08 +01:00 |
|
Erik Svedäng
|
dc49804068
|
Raise error when applying a non-existing macro / dynamic function.
|
2017-12-17 15:20:06 +01:00 |
|
Erik Svedäng
|
fbc3f4984f
|
Merge pull request #129 from hellerve/more-macros
Add useful macros to the standard library
|
2017-12-15 18:57:07 +01:00 |
|
hellerve
|
9e60ff01c1
|
core: fixed statistics cond and tests; core: accurate error message on cond
|
2017-12-15 17:43:06 +01:00 |
|
Erik Svedäng
|
87c52cd5eb
|
<= and >= functions
|
2017-12-15 10:37:16 +01:00 |
|
hellerve
|
1deb64722a
|
core: fix rebase error
|
2017-12-15 09:28:14 +01:00 |
|
hellerve
|
ffe4913a29
|
core: added suggestions of @eriksvedang to new macros
|
2017-12-15 09:27:06 +01:00 |
|
hellerve
|
0ad340ad55
|
core: added useful macros to the standard library
|
2017-12-15 09:26:21 +01:00 |
|
Your Name
|
3f0c5047f1
|
Changed pi symbol to 'pi'
|
2017-12-14 22:48:19 +01:00 |
|
Erik Svedäng
|
46de83b4b1
|
Two new interfaces: '<' and '>'. Also found a bug.
|
2017-12-13 22:29:43 +01:00 |
|
hellerve
|
5b08413aa2
|
macros: added unless
|
2017-12-13 12:34:14 +01:00 |
|
hellerve
|
74423320b4
|
macros: added when
|
2017-12-13 12:34:14 +01:00 |
|
hellerve
|
ca6ecafbbc
|
core: added arithmetic ref interfaces and regular arithmetic interfaces, renamed functions in vectors
|
2017-12-13 11:10:42 +01:00 |
|
Erik Svedäng
|
79132cf13d
|
Define an interface for pi (π).
|
2017-12-12 23:13:05 +01:00 |
|
Erik Svedäng
|
f446476523
|
Remove old code.
|
2017-12-12 23:04:40 +01:00 |
|
hellerve
|
5704a9268c
|
macros: added use-all
|
2017-12-12 15:08:33 +01:00 |
|
Erik Svedäng
|
6938b65f01
|
Investigating bugs with symbol lookup in modules.
|
2017-12-12 12:57:13 +01:00 |
|
Erik Svedäng
|
0bf2d2bcaf
|
Merge branch 'master' of https://github.com/carp-lang/Carp
|
2017-12-10 19:45:59 +01:00 |
|
Erik Svedäng
|
6ac76fc39e
|
Subarray.
|
2017-12-08 15:12:50 +01:00 |
|
Erik Svedäng
|
42ce182669
|
Better "platform-only" macros.
|
2017-12-07 14:59:55 +01:00 |
|
hellerve
|
95dc737950
|
sdl: aded str and copy to keycode; compiler: use str function on member even if its external
|
2017-12-04 19:20:05 +01:00 |
|
hellerve
|
e17b6b892c
|
core: minor fixes
|
2017-12-04 19:17:52 +01:00 |
|
Erik Svedäng
|
e15b35e58f
|
Working on conditional compilation macros (not done).
|
2017-12-04 09:29:15 +01:00 |
|
Erik Svedäng
|
f902ea2be9
|
Revert "Adopt a length-prefixed string type"
This reverts commit d573372c7b .
|
2017-12-04 09:24:31 +01:00 |
|
Erik Svedäng
|
b0cdc65f4b
|
Implemented 'add-ref' and 'zero' for Int/Float/Double. Allows nice 'Array.sum' function.
|
2017-12-04 07:21:35 +01:00 |
|
Erik Svedäng
|
270f54a1de
|
Worked around a BUG: Importing Int and Array when defining String functions break things.
|
2017-12-04 06:58:06 +01:00 |
|
Erik Svedäng
|
ad6b1a9b6d
|
Added 'words' and 'lines' function
|
2017-12-03 22:30:48 +01:00 |
|
Felipe Oliveira Carvalho
|
d573372c7b
|
Adopt a length-prefixed string type
|
2017-12-03 19:15:25 +01:00 |
|
Felipe Oliveira Carvalho
|
17542b0bf4
|
Change type of Array.len to size_t
|
2017-12-03 19:14:58 +01:00 |
|
Felipe Oliveira Carvalho
|
3ba1ebfe65
|
Replace CARP_STRDUP with String_copy
|
2017-12-03 19:14:28 +01:00 |
|
Erik Svedäng
|
46004c7e69
|
A function for getting the numeric meaning of the chars '0' - '9'.
|
2017-12-01 12:02:36 +01:00 |
|
Erik Svedäng
|
5efecc1c8a
|
Turned the def* commands into special forms to not evaluated their args.
|
2017-12-01 10:36:14 +01:00 |
|
Erik Svedäng
|
778b0d465e
|
Args to commands are not evaluated at the REPL, for now.
|
2017-11-30 23:00:00 +01:00 |
|
Erik Svedäng
|
9e51b110af
|
Added 'Dynamic' module that will contain dynamic versions of various functions.
|
2017-11-30 14:47:21 +01:00 |
|
Erik Svedäng
|
699e64d9ed
|
Tried out writing a conditional compilation function.
|
2017-11-30 13:43:58 +01:00 |
|
hellerve
|
4e53130f53
|
long & int: updated tests
|
2017-11-29 17:28:05 +01:00 |
|
hellerve
|
fba4e8ba5e
|
long & int: added binary arithmetic
|
2017-11-29 17:26:51 +01:00 |
|
Erik Svedäng
|
7d3931c46a
|
Merge pull request #117 from hellerve/misc
Miscellaneous fixes
|
2017-11-29 15:50:12 +01:00 |
|
Erik Svedäng
|
7bbdf2c041
|
Merge pull request #115 from hellerve/long-to-int
Added int conversion to long module
|
2017-11-29 15:49:24 +01:00 |
|
hellerve
|
911076276e
|
all: miscellaneous fixes
|
2017-11-29 15:28:21 +01:00 |
|
hellerve
|
0e8558f6c3
|
long: added int conversion
|
2017-11-29 11:45:20 +01:00 |
|
Erik Svedäng
|
5dc648c93c
|
Use carp malloc.
|
2017-11-28 10:08:17 +01:00 |
|
Erik Svedäng
|
6998bb04d7
|
File reading function.
|
2017-11-28 10:07:46 +01:00 |
|
Erik Svedäng
|
f4f9eed551
|
Interfaces for +-*/ would be cool.
|
2017-11-27 21:55:52 +01:00 |
|
hellerve
|
843402c42f
|
fixed test cases
|
2017-11-27 14:51:33 +01:00 |
|
hellerve
|
89eb010045
|
tests: simplified
|
2017-11-27 14:45:14 +01:00 |
|
Erik Svedäng
|
1ae5385ad8
|
Merge branch 'master' of https://github.com/carp-lang/Carp
|
2017-11-27 12:56:08 +01:00 |
|
Erik Svedäng
|
7b5a0aa7eb
|
All tests run, but can still confuse the type checker, see "expression_problem.carp"
|
2017-11-27 12:36:17 +01:00 |
|
tamamu
|
a5c90feab8
|
Add CFLAG to build on typical Linux OSes
|
2017-11-26 16:17:48 +09:00 |
|
Erik Svedäng
|
88fd0dc32c
|
Adding an interface for '/='.
|
2017-11-24 17:17:49 +01:00 |
|
Erik Svedäng
|
de4cae3a9c
|
Merge pull request #106 from hellerve/simplify-geometry
Simplify Geometry module
|
2017-11-24 17:06:24 +01:00 |
|
hellerve
|
e874111093
|
geometry: simplified conversion
|
2017-11-24 16:22:53 +01:00 |
|
hellerve
|
cb2e278576
|
geometry: simplify functions for converting between degree and radians
|
2017-11-24 16:21:47 +01:00 |
|
Erik Svedäng
|
fb8d559cd9
|
Merge pull request #104 from hellerve/pi-and-e
Improve precision of π and e
|
2017-11-22 22:58:56 +01:00 |
|
Erik Svedäng
|
f566d080d8
|
Interfaces more typeclass-like, all tests run.
|
2017-11-22 22:03:08 +01:00 |
|
hellerve
|
ba2aa70a55
|
double: improve precision of pi and e
|
2017-11-22 18:25:03 +01:00 |
|
Erik Svedäng
|
6f86e2802a
|
New compiler flag: --log-memory
|
2017-11-22 16:33:03 +01:00 |
|
Erik Svedäng
|
9f60aba18d
|
strdup is handled properly by the memory balancer
|
2017-11-22 16:25:05 +01:00 |
|
Erik Svedäng
|
c3f5f233cc
|
Disable memory logging.
|
2017-11-22 16:08:19 +01:00 |
|
Erik Svedäng
|
be74ad5a1e
|
Fixed a few cases where plain malloc was used (should be CARP_MALLOC)
|
2017-11-22 16:04:14 +01:00 |
|
hellerve
|
6954766aa7
|
testing: with-test macro should return non-null on failure
|
2017-11-22 13:48:58 +01:00 |
|
Erik Svedäng
|
50c9c90d21
|
Interfaces!
|
2017-11-21 16:56:39 +01:00 |
|
Erik Svedäng
|
e172a736ea
|
New compiler flag: '--no-core' for running the compiler without the core libraries.
|
2017-11-21 12:21:36 +01:00 |
|
hellerve
|
b3d19ae9da
|
int/long: added math functions
|
2017-11-17 12:26:01 +01:00 |
|
hellerve
|
40c19b138e
|
int/long: added safe arithmetic
|
2017-11-16 21:19:39 +01:00 |
|
hellerve
|
64a82c2730
|
float: added all math function in math.h
|
2017-11-16 09:46:06 +01:00 |
|
hellerve
|
d346673a74
|
double: added all math function in math.h
|
2017-11-15 14:06:49 +01:00 |
|
Erik Svedäng
|
e7d77353ab
|
Remove bleh function.
|
2017-11-14 22:48:10 +01:00 |
|
Erik Svedäng
|
39c405bfb6
|
Remove duplicated function '/=' in Long.carp
|
2017-11-14 22:30:21 +01:00 |
|
Erik Svedäng
|
b8638f3920
|
Merge pull request #90 from hellerve/not=
Add /= wherever = is defined
|
2017-11-14 21:44:22 +01:00 |
|
hellerve
|
99573e335f
|
core: bugfix in String.from-chars; added Char.to-int and Char.from-int
|
2017-11-14 18:33:03 +01:00 |
|
hellerve
|
0990ed60cd
|
core: add /= wherever = is defined
|
2017-11-14 18:09:18 +01:00 |
|
hellerve
|
e3a0da969a
|
statistics: updated tests
|
2017-11-07 15:06:47 +01:00 |
|
hellerve
|
e326be04fa
|
bench: removed stale function
|
2017-11-06 20:57:41 +01:00 |
|
hellerve
|
395ff17574
|
bench: refactored bench function to make slightly less sucky
|
2017-11-06 20:47:21 +01:00 |
|
hellerve
|
dfe57da99d
|
bench: added clarification
|
2017-11-06 20:32:59 +01:00 |
|
hellerve
|
f794d7685f
|
bench: added nanosecond accuracy
|
2017-11-06 20:23:33 +01:00 |
|
hellerve
|
5c6556e406
|
bench: first version
|
2017-11-06 18:08:07 +01:00 |
|
hellerve
|
041645b298
|
bench: fixed parens
|
2017-11-06 13:16:20 +01:00 |
|
hellerve
|
046956d711
|
bench: renamed bench macro to bench-n and started working on real bench fn
|
2017-11-06 11:37:24 +01:00 |
|
hellerve
|
a8d0eef5ba
|
core: added bench module
|
2017-11-06 11:20:59 +01:00 |
|
Erik Svedäng
|
99bd6f3d65
|
Merge pull request #86 from hellerve/rename-geometry
Geometry: Rename module file
|
2017-11-01 14:45:56 +01:00 |
|
hellerve
|
e839b4e608
|
geometry: rename module file
|
2017-11-01 11:26:35 +01:00 |
|
hellerve
|
a035cdeecd
|
statistics: transform nested if into cond
|
2017-11-01 11:20:06 +01:00 |
|
hellerve
|
3239c77aeb
|
core: added statistics library
|
2017-10-26 17:41:54 +02:00 |
|
Erik Svedäng
|
d2f540e8c8
|
Merge pull request #81 from hellerve/long-type
Add Long type
|
2017-10-25 20:34:06 +02:00 |
|
hellerve
|
3a03969717
|
all: added long type
|
2017-10-25 19:17:53 +02:00 |
|
hellerve
|
7151742518
|
vector: fixed test cases, also Array.copy for primitive types
|
2017-10-25 13:45:46 +02:00 |
|
hellerve
|
a0078c779a
|
vectors: added lerp
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
f8550e07a1
|
vectors: added n-dimensional vectors
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
01adc4c50d
|
prelude: made and and or functions
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
120116a70a
|
vector2: integrated test suite
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
81c2af23f1
|
vectors: most things work
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
6dc31855d8
|
vectors: added a few math primitives and made most functions work
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
6de836d545
|
vectors: added a few more functions; still no lerp
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
c2cb743311
|
interim
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
5baa8dd97f
|
vectors: syntax errors, whoops
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
6d2b8ba37a
|
vectors: added basic, non-performant vector sketch
|
2017-10-25 13:07:52 +02:00 |
|
hellerve
|
8069aa31ff
|
prelude: fixed comparison functions for ints
|
2017-10-24 10:31:35 +02:00 |
|
hellerve
|
631e2ab95f
|
testing: added Test module
|
2017-10-23 16:07:54 +02:00 |
|
Erik Svedäng
|
fbf8477672
|
Int__EQ_ should return bool.
|
2017-10-20 16:57:54 +02:00 |
|
Erik Svedäng
|
510d0f3f1a
|
More todos.
|
2017-10-19 18:34:44 +02:00 |
|
Erik Svedäng
|
df06ca0d6b
|
Remove reduce from built in functions.
|
2017-10-19 18:22:52 +02:00 |
|
Erik Svedäng
|
d6189f1559
|
Moved sum to Int module for now. Not sure if that's a good idea...
|
2017-10-19 18:22:02 +02:00 |
|
Erik Svedäng
|
8267208bf8
|
Threading macros work.
|
2017-10-18 22:44:15 +02:00 |
|
Erik Svedäng
|
2dbcfac61b
|
Bunch of bug fixes and stuff.
|
2017-10-18 13:02:44 +02:00 |
|
Erik Svedäng
|
31b3472f87
|
The unique identifiers for XObj:s are set after the macro expansion which fixes bugs with macros.
|
2017-10-18 12:25:42 +02:00 |
|
Erik Svedäng
|
a76e6f1b48
|
Revert "Preparations for bumping the XObj Info identifier for expanded forms."
This reverts commit 3d843f33d9 .
|
2017-10-18 11:12:49 +02:00 |
|
Erik Svedäng
|
3d843f33d9
|
Preparations for bumping the XObj Info identifier for expanded forms.
|
2017-10-18 09:49:58 +02:00 |
|
Erik Svedäng
|
9997dd7f90
|
Printing of floats/doubles removes superfluos zeros at the end.
|
2017-10-18 08:43:37 +02:00 |
|
Erik Svedäng
|
b1f86624fb
|
Allow &t instead of (Ref t) in type declarations.
|
2017-10-17 16:05:42 +02:00 |
|
Erik Svedäng
|
42874e6d57
|
Allow lambda ("λ") as an alias for Fn when defining types
|
2017-10-17 09:42:57 +02:00 |
|
Erik Svedäng
|
dc83ef1f36
|
Bugs with foreach macro... :(
|
2017-10-17 09:25:30 +02:00 |
|
Erik Svedäng
|
2237b955aa
|
Quote reader macro.
|
2017-10-17 09:02:12 +02:00 |
|
Erik Svedäng
|
a0f35a5543
|
Rewrote 'reduce' with carp instead of C.
|
2017-10-17 08:57:36 +02:00 |
|
Erik Svedäng
|
09fc80599a
|
Renamed some functions in Double and Float.
|
2017-10-13 16:11:23 +02:00 |
|
Erik Svedäng
|
cebc0a98d9
|
Modules explained.
|
2017-10-13 16:04:06 +02:00 |
|
Erik Svedäng
|
b1819ef259
|
Started working on a slide show presentation.
|
2017-10-13 15:07:34 +02:00 |
|
Erik Svedäng
|
6bf7bf453d
|
Put foreach macro into the Array module.
|
2017-10-13 13:50:15 +02:00 |
|
Erik Svedäng
|
49b13592fb
|
foreach-macro
|
2017-10-13 13:48:40 +02:00 |
|
Erik Svedäng
|
aee6e713b3
|
Removed left-over trace.
|
2017-10-13 12:48:18 +02:00 |
|
Erik Svedäng
|
57f1c401a9
|
Documentation for Array functions in Array.carp
|
2017-10-12 21:27:36 +02:00 |
|
Erik Svedäng
|
cba677ee89
|
Range function works again.
|
2017-10-12 20:13:53 +02:00 |
|
Erik Svedäng
|
46681f4cd5
|
Print strings with @ in front of them.
|
2017-10-12 08:38:53 +02:00 |
|
Erik Svedäng
|
68c58f149d
|
Can generate str functions for arrays of primitives and of other arrays.
|
2017-10-11 15:19:36 +02:00 |
|
Erik Svedäng
|
6083d17b84
|
Getting there...
|
2017-10-11 15:13:40 +02:00 |
|
Erik Svedäng
|
07a9c1d6f6
|
Can print an array of structs.
|
2017-10-11 14:48:07 +02:00 |
|
Erik Svedäng
|
d4f1910bce
|
Added Bool module. Fixed error in test selection.carp
|
2017-10-11 10:52:18 +02:00 |
|
Erik Svedäng
|
8573098dca
|
str-function generated for structs
|
2017-10-10 20:13:58 +02:00 |
|
Erik Svedäng
|
65d17b732c
|
Tweaks to the memory logger. Also, replicate now takes a reference.
|
2017-09-29 14:54:49 +02:00 |
|
Erik Svedäng
|
b17780aa79
|
Fixed bugs in replicate and with nameofpolymorphicfunction.
|
2017-09-29 14:07:42 +02:00 |
|
Erik Svedäng
|
8cae7a7a3b
|
A way to run all tests in one go.
|
2017-09-08 12:24:57 +02:00 |
|
Erik Svedäng
|
3308652c75
|
Use the type (Ptr Char) to express raw C strings.
|
2017-09-07 19:44:02 +02:00 |
|
Erik Svedäng
|
9781c5f7cb
|
Fixed all examples after changing string literals to refs.
|
2017-09-07 18:55:43 +02:00 |
|
Erik Svedäng
|
9f6418022f
|
Better error messages for weird types in typedef.
|
2017-09-05 11:32:32 +02:00 |
|
Erik Svedäng
|
271756de57
|
Missing text.
|
2017-09-04 11:36:09 +02:00 |
|
Erik Svedäng
|
3bef2ce24d
|
Must register all external types now.
|
2017-09-02 11:17:19 +02:00 |
|
Erik Svedäng
|
7d7d99b9b7
|
External types are correctly identified as non-managed by the 'isManaged' function.
|
2017-09-01 17:30:43 +02:00 |
|
Erik Svedäng
|
3298fe3d32
|
set! takes a reference instead of just a variable
|
2017-07-13 13:08:45 +02:00 |
|
Erik Svedäng
|
00cd8df5cf
|
replicate & repeat generates deleter functions
|
2017-07-12 10:22:16 +02:00 |
|
Erik Svedäng
|
571f46bd9d
|
Give up on making range a template, was probably a bad idea...
|
2017-07-12 09:55:30 +02:00 |
|
Erik Svedäng
|
caaa4d99c3
|
Basics example work again.
|
2017-06-30 14:21:31 +02:00 |
|
Erik Svedäng
|
25f9892e94
|
Reduce!
|
2017-06-30 11:37:03 +02:00 |
|
Erik Svedäng
|
414c772f9a
|
Fixed memory bug in Array_str__int
|
2017-06-30 11:00:36 +02:00 |
|
Erik Svedäng
|
97714dc77b
|
Can log memory.
|
2017-06-30 10:46:40 +02:00 |
|
Erik Svedäng
|
1c6846729d
|
refstr-macro
|
2017-06-29 17:05:34 +02:00 |
|
Erik Svedäng
|
29ab0c8513
|
Endofunctor map.
|
2017-06-29 16:58:27 +02:00 |
|