-
a3b85e8985
Merge
3416c917c7
into 72b59b7972
#38
Pedro Falcato
2024-03-19 23:43:26 -0500
-
-
72b59b7972
Use stable loop power calculation
master
K. Lange
2024-03-19 10:02:14 +0900
-
179b4e456a
Fix passing keyword args to sorted()
K. Lange
2024-03-13 16:34:07 +0900
-
bd2e22ddcc
time.h include missing after callgrind removal
K. Lange
2024-03-12 07:38:51 +0900
-
9f370f0bc6
Cleanups for callgrind tool
K. Lange
2024-03-07 16:57:48 +0900
-
2ed41a0fb0
Immortalize '__main__'
K. Lange
2024-03-07 14:53:42 +0900
-
5345006580
Add help text and -q options
K. Lange
2024-03-07 07:23:21 +0900
-
3e6632807a
New callgrind and watchdog tools
K. Lange
2024-03-06 20:16:48 +0900
-
0eaa455fbe
Remove callgrind generation from VM
K. Lange
2024-03-06 16:37:26 +0900
-
6b134d11ff
Ignore leading and trailing whitespace when parsing floats
K. Lange
2024-03-06 09:50:43 +0900
-
c865e0dc78
Fix oops in str.__repr__, how did tests not catch that
K. Lange
2024-03-06 09:47:07 +0900
-
66d81336ad
Accept NO_COLOR to disable graying repl response values
K. Lange
2024-03-05 22:08:48 +0900
-
ef2b18f1bf
Allow themes to be disabled in rline
K. Lange
2024-03-05 22:07:37 +0900
-
7acf2cd528
Clean up str.__repr__ for small generated code
K. Lange
2024-03-05 18:40:36 +0900
-
2b5df70d5a
Fix up linger direct use of hasKw in long_to_bytes
K. Lange
2024-03-05 18:40:21 +0900
-
dcd1fafc85
Add tool to generate huge source with overlong jumps
K. Lange
2024-03-05 14:45:42 +0900
-
84203501a5
Add simple reverse sort test
K. Lange
2024-03-05 14:43:57 +0900
-
34f8515d44
Add sort stability test
K. Lange
2024-03-05 14:39:23 +0900
-
d9398f1eff
Use string builder for repl results
K. Lange
2024-03-05 14:38:33 +0900
-
9d5c9200e8
Simplify some container __repr__ implementations with %R
K. Lange
2024-03-05 14:38:12 +0900
-
3e8bb098ff
Raise exception if __repr__ returns non-str in pushStringBuilderFormat
K. Lange
2024-03-05 14:21:49 +0900
-
6c41c32949
Implement naive powersort
K. Lange
2024-03-05 12:40:17 +0900
-
62822051a9
Account for overlongjump tables in size of codeobject
K. Lange
2024-03-05 08:36:35 +0900
-
4bd5988e31
Rearrange class compilation for cleaner line number mappings
K. Lange
2024-03-04 21:40:43 +0900
-
67fe4c542a
Merge
ced3c6fc5c
into dae53fadc4
#41
krkacc
2024-03-04 14:06:29 +0900
-
-
5949a4998e
Add PUSH_BUILD_CLASS opcode
K. Lange
2024-03-04 12:55:15 +0900
-
-
-
dae53fadc4
Remove extraneous jump from tail of if without else
K. Lange
2024-03-04 09:58:16 +0900
-
b1d3b7e697
Handle jump targets of over-long jumps
K. Lange
2024-03-04 09:51:54 +0900
-
0bd12bdf0a
Support overly-long jumps with new instruction
K. Lange
2024-03-03 22:18:15 +0900
-
272d503055
Use scratch space while swapping instead of push/pop
K. Lange
2024-03-03 22:17:21 +0900
-
f33cc7cac2
Has this always been wrong?
K. Lange
2024-03-03 22:16:03 +0900
-
864cda1bed
Cache jump targets in a hash/set
K. Lange
2024-03-03 22:10:07 +0900
-
1928fa6b0c
Compute line numbers through binary search, not linear scan
K. Lange
2024-03-03 12:11:42 +0900
-
e801ca642e
Implement list.sort with a 3-way quicksort
K. Lange
2024-03-02 21:31:49 +0900
-
edbf322a6f
Clean up sorted(), reversed(); pass kwargs to list.sort for sorted()
K. Lange
2024-03-02 21:30:09 +0900
-
ea55152aac
Fix two instances of OBJECT_VAL called on non-object
K. Lange
2024-03-02 12:37:14 +0900
-
158f660695
Fix a few uses of legacy hasKw checks
K. Lange
2024-03-02 12:30:55 +0900
-
294bd0376b
Move some special method names to the special method name table
K. Lange
2024-03-02 12:20:58 +0900
-
0918776d00
Don't use FLUSH when switching modes in rline
K. Lange
2024-03-01 20:36:37 +0900
-
47500c833f
Add rudimentary locale module
K. Lange
2024-03-01 10:12:54 +0900
-
837e389b4c
Bump alpha number
K. Lange
2024-03-01 07:48:10 +0900
-
1fadea3027
Implement float.as_integer_ratio
K. Lange
2024-02-29 13:00:34 +0900
-
b9332b2578
Implement long.__pow__ for negative exponents
K. Lange
2024-02-29 13:00:19 +0900
-
f6c1bfac59
Add some test cases for printing and parsing floats
K. Lange
2024-02-29 10:42:35 +0900
-
ed34101ba3
Finish up overflow handling and expand comments
K. Lange
2024-02-29 10:35:12 +0900
-
21f0828424
Fix bug in krk_long_medium for negative widths
K. Lange
2024-02-29 10:08:03 +0900
-
191515bbc3
Support exponential notation in lexer
K. Lange
2024-02-29 00:29:59 +0900
-
34a6e30769
Use new float parser instead of strtod
K. Lange
2024-02-29 00:29:22 +0900
-
ce6ddec02d
Add simple float parser
K. Lange
2024-02-29 00:26:44 +0900
-
cfe34614da
Hopefully more correct rounding in long.__truediv__?
K. Lange
2024-02-28 20:56:26 +0900
-
55debe7570
Fast long shifts
K. Lange
2024-02-28 19:12:25 +0900
-
a36f6e00eb
Remove unused 'exact' parameter.
K. Lange
2024-02-28 18:01:57 +0900
-
1cdd9dfb1b
Fix repr display of trailing zero
K. Lange
2024-02-28 17:58:27 +0900
-
7ed0cd6823
Improve final construction of decimal strings
K. Lange
2024-02-28 17:39:47 +0900
-
f80b5430f8
Support field width, some alignment for float.__format__
K. Lange
2024-02-28 09:10:43 +0900
-
4a2e736594
Use 10^52, as that makes more sense.
K. Lange
2024-02-28 07:16:18 +0900
-
27b2d584ab
Also cache 10^31
K. Lange
2024-02-27 19:42:43 +0900
-
4e97099bd6
Implement float → string conversion
K. Lange
2024-02-27 19:37:23 +0900
-
9ad85010bf
Fix leak of tmp values in long.__truediv__
K. Lange
2024-02-27 19:31:13 +0900
-
53c08adec9
Similarly, krk_tableAdjustCapacity can use identity
K. Lange
2024-02-27 19:26:51 +0900
-
1ebff2c5e5
Only check identity when populating string table
K. Lange
2024-02-27 19:19:11 +0900
-
f75adeb2ca
Implement long.__truediv__ through actual long division
K. Lange
2024-02-27 07:48:15 +0900
-
1c75adaa51
rline should only set LC_CTYPE, and only if needed
K. Lange
2024-02-27 07:46:54 +0900
-
0ced62883e
Merge
7976aa42f9
into 0c8cb94b6a
#49
Klaus Alexander Seistrup
2024-02-26 03:51:34 +0000
-
-
-
7976aa42f9
Move setlocale() from rline() to the top of main()
#49
Klaus Alexander Seistrup
2024-02-26 04:24:40 +0100
-
-
-
0c8cb94b6a
Quick hack for rline to not have locales break float parsing
K. Lange
2024-02-25 22:23:56 +0900
-
f1d7bdaa5a
Accept floats in things that use krk_long_to_int
K. Lange
2024-02-24 21:31:39 +0900
-
32bd212a49
Need sys/types.h for ssize_t
K. Lange
2024-02-15 18:49:28 +0900
-
2c0ab9a3e9
Fix another potential case of writing to the wrong stack
K. Lange
2024-02-15 17:54:50 +0900
-
d920ff7f54
Fix leaked KrkLong in rshift_z
K. Lange
2024-02-15 17:49:38 +0900
-
c179b7f4b4
Fix potential references to bad stacks due to ordering of array indexing
K. Lange
2024-02-15 17:48:00 +0900
-
e9702ad37e
Account for increased table sizes in getsizeof
K. Lange
2024-02-15 17:36:05 +0900
-
539f217714
Only scan used entries when iterating over dicts
K. Lange
2024-02-15 17:22:41 +0900
-
8acf7a9113
Make tables (dicts, methods/fields) ordered
K. Lange
2024-02-15 17:21:44 +0900
-
93b5fce168
dict should do power-of-two calculation when preallocating space
K. Lange
2024-02-15 12:01:12 +0900
-
2fd88b8219
krk_findEntry should not be exposed
K. Lange
2024-02-15 12:00:26 +0900
-
fbf1b09514
Fix missing spaces in tools/compile
K. Lange
2024-02-12 12:05:26 +0900
-
22e550ee67
Fixup bounds for negative values
K. Lange
2024-01-15 19:36:37 +0900
-
049c58c40c
Build strings from longs before formatting them
K. Lange
2024-01-15 19:27:08 +0900
-
99dfc12a67
_ format specifier should be 3 digits for decimal, 4 for others
K. Lange
2024-01-15 19:25:51 +0900
-
6e8aa9bee6
Don't pass around w as a KrkLong
K. Lange
2024-01-13 16:57:07 +0900
-
9590df3ef0
Faster binary-to-decimal conversions
K. Lange
2024-01-11 22:53:35 +0900
-
b162ed889b
Add support for building without nan-boxing
K. Lange
2024-01-11 13:36:27 +0900
-
df4435efdc
Ensure bytes are zero'd when building bytearrays
K. Lange
2024-01-10 21:44:42 +0900
-
0b516fd7e2
Fix long.__rshift__ in particular to be linear
K. Lange
2024-01-10 13:47:50 +0900
-
4008133a0b
Fix bad value boxings
K. Lange
2024-01-08 17:09:24 +0900
-
bc3024881f
Fixes that should enable MSVC to build the core interpreter
K. Lange
2024-01-08 14:12:24 +0900
-
c530cf20fd
file names passed to krk_interpret, krk_compile, krk_runfile can be const
K. Lange
2024-01-08 10:53:38 +0900
-
0a9a3c7129
Step one of trying to clean up the macro namespace
K. Lange
2024-01-08 09:29:52 +0900
-
a5f5c30157
NONE_VAL and NOTIMPL_VAL don't actually take an argument
K. Lange
2024-01-08 09:09:29 +0900
-
29b2f91762
Don't include sys/time.h, unused
K. Lange
2024-01-08 08:34:05 +0900
-
6211f81535
Avoid passing -g to can-floor-without-libm as clang doesn't like -g with -o /dev/null
K. Lange
2024-01-07 21:27:54 +0900
-
eb0d40a2ad
shut clang up
K. Lange
2024-01-07 21:17:18 +0900
-
e4136437c6
Add a test for expression underlining data
K. Lange
2024-01-07 17:51:50 +0900
-
0c552807ff
Simplify repl acquisition of build version
K. Lange
2024-01-07 17:40:19 +0900
-
5bf7cf89c3
Optimize type.__call__ when __new__ is a native function
K. Lange
2024-01-07 15:16:53 +0900
-
2f72a8004a
Handle common case for int.__new__ better
K. Lange
2024-01-07 15:16:26 +0900
-
484f0f68a1
Use krk_int_from_float for float.__int__, shortcircuit small enough values
K. Lange
2024-01-07 10:10:51 +0900
-
114b66dd5c
Set __hash__ to None when clearing it, to match CPython
K. Lange
2024-01-07 10:05:16 +0900
-
efca612a20
Support Ellipsis in tools/compile.c
K. Lange
2024-01-03 14:34:17 +0900