Commit Graph

20 Commits

Author SHA1 Message Date
7279623e24 added clang-format 2023-02-09 12:32:48 -06:00
66d77bc54b Refactored cosmoO_equals
This sets up room for the '__equal' metamethod to be added

- cosmoO_equals now requires the state to be passed
- cosmoV_equals now requires the state to be passed
- cosmoT_get now requires the state to be passed
2021-02-19 17:04:23 -06:00
2050359d2f Added C99 support, refactored headers 2021-02-15 16:20:04 -06:00
78e21a0f28 refactored cosmoV_set & cosmoV_get, renamed COSMO_TOBJ->COSMO_TREF
also changed print() to print raw primitives instead of generating a <string> needlessly. helped performance immensely in scripts like `examples/increment.cosmo`
2021-02-07 14:32:39 -06:00
0d344f65df renamed cosmoV_pushObj->cosmoV_pushRef & cosmoV_newObj->cosmoV_newRef 2021-02-07 14:05:53 -06:00
8d37f1f243 Renamed cosmoV_readObj to cosmoV_readRef to reduce ambiguity
also fixed several typos
2021-02-07 14:00:00 -06:00
e995bb75fb added tonumber() and tostring() to base lib 2021-01-13 14:13:55 -06:00
ec3552a155 organized flags 2021-01-04 16:20:05 -06:00
7e9b61e018 minor refactor, fixed many warnings 2021-01-01 23:06:24 -06:00
9aa7fa1381 replaced facttest.lua with fibtest.lua
Optimized the NaN box to be byte aligned, performance under the fibtest.lua script improved by ~2.5 seconds (~31 before ~28.5 after on cpunch's machine)
also cleaned up some misc. comments
2020-12-07 23:26:55 -06:00
f8a062919f added cosmoM_addRoot & cosmoM_removeRoot 2020-12-07 15:53:23 -06:00
3a18d14a80 removed stale comments 2020-12-04 12:30:01 -06:00
d154d71163 improved nan box performance 2020-12-04 12:19:07 -06:00
b936827cc6 added support for NaN boxing (8 byte CValues!) 2020-12-04 00:04:14 -06:00
495f1d7272 more minor refactoring 2020-11-30 12:50:55 -06:00
08c640cd58 added # operator, improved error messages 2020-11-30 12:32:04 -06:00
1189dc4b78 correctly mark tombstones 2020-11-17 03:36:56 -06:00
9ebae876f6 minor refactoring, OP_INVOKE performance boost 2020-11-13 17:39:47 -06:00
40ae495aaf added input() to repl 2020-11-12 20:06:38 -06:00
2e1b745624 Initial commit 2020-10-28 00:16:30 -05:00