Commit Graph

720 Commits

Author SHA1 Message Date
HarJIT
5c2de206b9
Codecs package (#4)
Codecs package

Co-authored-by: HarJIT <harjit@harjit.moe>
2021-03-24 04:53:02 -07:00
K Lange
2ed8e65c89 Rework KrkValue to use NaN-boxing 2021-03-24 20:49:44 +09:00
K Lange
073a5828d0 Don't include tracing on emscripten, it lacks clock_gettime 2021-03-24 20:49:44 +09:00
K Lange
9da1577245 Make sure ctags includes headers 2021-03-24 20:49:44 +09:00
K Lange
ecf2adbc13 Quick fixes 2021-03-24 20:20:50 +09:00
K. Lange
d05dc4fd08 Include codeobject pointer reference in callgrind output so lambdas, etc. can be differentatiated 2021-03-24 12:37:25 +09:00
K. Lange
573e9b7074 Bundle socket module 2021-03-24 12:28:04 +09:00
K. Lange
6638d10def Put math module docstrings behind KRK_DOC macro 2021-03-24 12:27:12 +09:00
K. Lange
b5c22f77c5 Preallocate table space for krk_dict_of 2021-03-23 20:26:39 +09:00
K. Lange
49066f7ae2 Trace function calls 2021-03-23 19:17:54 +09:00
K. Lange
6f92af28a2 Update test/day7.krk to not just be a test of list.pop 2021-03-23 12:50:04 +09:00
K. Lange
955d5a68e5 Avoid mallocing space for small argument lists to native functions? 2021-03-23 12:21:30 +09:00
K. Lange
15b25cd634 Method names can be pointers, so gcc actually merges them as constants... 2021-03-23 11:26:10 +09:00
K. Lange
3b03b0267f More string normalization 2021-03-23 11:11:50 +09:00
K. Lange
d874ad0537 Don't use prefix characters in defineNative to mark methods (was a no-op anyway) 2021-03-23 10:21:42 +09:00
K. Lange
3c861ca167 Port print() to util macro 2021-03-23 09:43:01 +09:00
K. Lange
b153c5899d Normalize 'kuroko' module functions to util macros 2021-03-23 09:39:53 +09:00
K. Lange
3b77ecf669 Don't use __func__ for exception messages, embed _method_name instead 2021-03-23 09:26:30 +09:00
K. Lange
45e11b58e4 Port range to util macros 2021-03-23 09:09:06 +09:00
K. Lange
a598fc5615 Cleanup error tokens 2021-03-23 08:58:36 +09:00
K. Lange
f3e6b83597 remove --help text with NO_DOCUMENTATION 2021-03-23 08:58:24 +09:00
K. Lange
ea0baf0f3e Add delattr(), hasattr() 2021-03-22 18:31:27 +09:00
K. Lange
289537ff00 Add issubclass() 2021-03-22 18:23:09 +09:00
K. Lange
a63aef6b92 Try to make builds smaller
... by:
    - Normalizing some exception strings.
    - Putting the 'dis' module behind -DDEBUG.
2021-03-22 18:09:25 +09:00
K. Lange
6746ccf001 Add docstrings to socket module 2021-03-22 12:49:31 +09:00
K. Lange
c905809197 macos doesn't even have objcopy? meh 2021-03-22 12:38:28 +09:00
K Lange
a13fb0a837 Remove srv/vendor/*.o on clean 2021-03-22 10:17:09 +09:00
K. Lange
bdf1e9b492 Fix docs build for headers 2021-03-22 10:02:48 +09:00
K. Lange
a0ad38e225 Header reorg I've been meaning to do for a while 2021-03-22 09:22:39 +09:00
K. Lange
f8de1b47af Cleanup 2021-03-22 09:06:25 +09:00
K Lange
8c1ebe531a socket.connect(), general win32 support 2021-03-21 22:27:32 +09:00
K. Lange
492d85a2d6 WIP socket module 2021-03-21 21:45:51 +09:00
K. Lange
d750b9600c More convenience macros 2021-03-21 21:45:39 +09:00
K. Lange
d477b0dacb Add parenthesis matching to rline 2021-03-21 18:01:07 +09:00
K. Lange
4c7d5ba2a3 Fix a bad stack offset in generator calls on exception 2021-03-21 17:18:45 +09:00
K Lange
c68eb093e8 Fix broken stack handling in and make map,enumerate,filter object inits 2021-03-21 16:47:13 +09:00
K. Lange
3b8c521776 Correct some uses of OP_EQUAL where OP_IS would be better 2021-03-21 13:28:54 +09:00
K. Lange
13a7199840 Fully replace non-pop conditional jumps with popping versions 2021-03-21 13:02:50 +09:00
K. Lange
a25315de92 Implement chained comparison operators 2021-03-21 12:41:54 +09:00
K. Lange
d0ea1278a6 ... and update test 2021-03-21 11:31:07 +09:00
K. Lange
b1b4ad3718 Fix heading link for Python Compatibility 2021-03-21 11:30:09 +09:00
K Lange
63f4ae8d9b Retool the sandbox to disable modules and re-enable print 2021-03-20 22:51:22 +09:00
K. Lange
658eeb6afd Separate debug symbols from libkuroko.so by default 2021-03-20 21:23:05 +09:00
K Lange
01a124054d Update bytecode marshaller 2021-03-20 20:04:10 +09:00
K. Lange
1a569e36f6 README changed, update the test 2021-03-20 16:09:48 +09:00
K Lange
982554d1d7
New README 2021-03-20 16:07:36 +09:00
K. Lange
cb809dd0fe 'yield' as an expression with a value; 'yield from' 2021-03-20 12:07:46 +09:00
K. Lange
083a1a2e79 Add octal escapes to bytestrings 2021-03-20 10:12:18 +09:00
K. Lange
5b30c76e92 Add octal string escapes 2021-03-20 10:09:20 +09:00
K. Lange
23839cde76 Add a Make flag for KRK_NO_DOCUMENTATION 2021-03-20 09:29:32 +09:00