Christoffer Lerno
da4105ffb1
Whereami fix
2025-07-16 22:34:14 +02:00
Christoffer Lerno
5c5692ae98
Dev ( #2307 )
...
* Refactor whereami
2025-07-16 15:56:36 +02:00
Christoffer Lerno
379d16abe7
Some refactoring of ranges. env::AUTHORS and env::AUTHOR_EMAILS
2025-07-16 12:23:24 +02:00
Christoffer Lerno
078ce38c57
Test fix.
2025-07-16 00:22:28 +02:00
Christoffer Lerno
f99b903d78
- Fix unexpected display of macro definition when passing a poisoned expression #2305 .
2025-07-15 23:31:44 +02:00
Christoffer Lerno
3650b81970
Segfault when failing to cast subexpression to 'isz' in pointer subtraction #2305 .
2025-07-15 21:47:49 +02:00
Christian Buttner
bb6fcdfa6f
Improve atomic.c3
...
- Change `Atomic.xor` from function to macro
- Allow function pointers as native atomic type
- Use enum inference
2025-07-15 20:32:18 +02:00
Christian Buttner
8df112e157
Add WString.len
2025-07-15 20:30:14 +02:00
Christoffer Lerno
af91f35017
Fix stringify of $vaexpr #2301 .
2025-07-15 17:13:10 +02:00
Zack Puhl
3cce90bba1
fix hashmap tinit_with_key_values
2025-07-15 00:26:59 +02:00
Christoffer Lerno
1a351bdb6d
Error message for missing arg incorrect for methods with zero args #2296 .
2025-07-14 23:21:15 +02:00
Christoffer Lerno
efaac43248
- Virtual memory library.
...
- New virtual emory arena allocator.
- Fixed resize bug when resizing memory down in ArenaAllocator, DynamicArenaAllocator, BackedArenaAllocator.
- Added feature flag "SLOW_TESTS"
2025-07-14 22:36:43 +02:00
Christoffer Lerno
f082cac762
Updates to API
2025-07-14 03:44:52 +02:00
Christoffer Lerno
2bd289ebd6
Added VirtualMemory
2025-07-14 03:07:03 +02:00
Christoffer Lerno
aba9baf207
Added Vmem allocator
2025-07-13 17:26:57 +02:00
Christoffer Lerno
e755c36ea2
Removed the use of temp allocator in backtrace printing.
...
Added string::bformat.
2025-07-13 02:58:57 +02:00
Christoffer Lerno
6c7dc2a28e
Improved error on using cast expression as lvalue.
2025-07-11 13:47:52 +02:00
Christoffer Lerno
cdd530d807
Fixed bug splatting constants into constants.
2025-07-11 01:55:09 +02:00
Christoffer Lerno
02c0db7b8b
Multiline contract comments #2113
2025-07-11 01:18:58 +02:00
Christoffer Lerno
8a62c12089
Update releasenotes with whirlpool
2025-07-10 18:32:26 +02:00
Christoffer Lerno
988549599d
$is_const is deprecated in favour of @is_const based on $defined.
...
`$foo` variables could be assigned non-compile time values.
`$foo[0] = ...` was incorrectly requiring that the assigned values were compile time constants.
2025-07-10 18:31:44 +02:00
Zack Puhl
70159c00cc
Add WHIRLPOOL hashing to stdlib ( #2273 )
...
* add WHIRLPOOL hashing to stdlib
2025-07-10 16:39:42 +02:00
Christoffer Lerno
2dfbdea889
Update error message for struct initialization #2286
2025-07-10 16:29:49 +02:00
Christoffer Lerno
299d1f530f
Correctly poison the analysis after a failed $assert or $error. #2284
2025-07-09 16:51:43 +02:00
Christoffer Lerno
bf0ff8abbc
Splat 8 arguments can sometimes cause incorrect behaviour in the compiler. #2283
2025-07-09 16:36:02 +02:00
Ero Mrinin
123b1c8f44
Added unpack macro for Triple ( #2277 )
2025-07-09 03:11:13 +02:00
Christoffer Lerno
a314e05826
Use hex consistently for .max is 64 bits or more.
2025-07-09 03:09:10 +02:00
Christoffer Lerno
83fd24faa2
Improve error on unsigned implicit conversion to signed.
2025-07-09 02:49:19 +02:00
Christoffer Lerno
1d4ad5f1d5
Function pointers are now compile time constants.
...
const enum cannot be set to function pointer unless it's a lambda #2282 .
2025-07-08 12:42:16 +02:00
Christoffer Lerno
26d5cc694a
Formatting option "%h" now supports pointers.
2025-07-08 11:43:49 +02:00
Christoffer Lerno
a2122e0153
Update error message.
2025-07-08 00:24:29 +02:00
Christoffer Lerno
10fc94aaa7
Add RISCV asm print.
2025-07-07 23:52:43 +02:00
Christoffer Lerno
0835bada39
Add --list-asm to view all supported asm instructions.
2025-07-07 23:49:39 +02:00
Christoffer Lerno
277af1a2b6
Fix rdtsc instruction.
2025-07-07 19:02:13 +02:00
Christoffer Lerno
5b835bec3e
Fix to codegen when using a bitstruct constant defined using a cast with an operator #2248 .
2025-07-07 17:09:32 +02:00
Christoffer Lerno
dc23cef59a
LLVM 20 compatibility for test.
2025-07-07 03:01:09 +02:00
Christoffer Lerno
098079d317
Fix analysis error compiling. Fix $define for updated shift.
2025-07-07 02:50:17 +02:00
Christoffer Lerno
1ab57ecf20
Improve contract for readline. #2280
2025-07-07 02:42:48 +02:00
Christoffer Lerno
808ab56545
- Bit shift operation fails with inline uint enum despite matching underlying type #2279 .
2025-07-07 02:30:54 +02:00
Christoffer Lerno
19acdc7a19
Do not do certain implicit conversions on enums in binary expression.
2025-07-06 21:44:06 +02:00
Christoffer Lerno
e15fdc709f
Improve error message when doing a rethrow in a function that doesn't return an optional.
...
Array indices are now using int64 internally.
2025-07-06 20:20:42 +02:00
Disheng Su
457244e3de
Fix json parser ( #2272 )
...
* Fix json parser number
* Fix json parser leading zero
* Fix json parser with duplicated keys
* Fix json parser with trailing characters
* Fix json parser: set recursive depth to 128
* Fix json parser: skip comment to false
* Fix json parser: reject number trailing with null
* Make max depth configurable. Simplify with defer catch. Accept `2.`
* Make max depth configurable. Simplify with defer catch. Accept `2.`
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-06 03:07:46 +02:00
Ero Mrinin
d5559ecafd
Tuple update ( #2235 )
...
* 'next_float' macro patch
More optimized implementation.
* tuple-type update
* U suffix in 'next_float'
* Do not add triplet, quadruplet, keep Tuple but deprecate. Add unpack
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-06 02:08:59 +02:00
Kiana
802fbfcf1e
Add ansi.c3 for AnsiColor support ( #2261 )
...
* Add ansi.c3 for AnsiColor support
* Added tests
updated functions to macros
added formatting codes
* Fixed indentation
* Update names. Add plain rgb version. Add runtime colors.
* Update indentation, add 21-29
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-06 01:37:54 +02:00
Christoffer Lerno
a20e74c401
Fixes to thread local pointer handling.
2025-07-06 00:22:21 +02:00
Christoffer Lerno
7cdb1ce9eb
Catch accidental foo == BAR; where foo = BAR; was most likely intended. #2274
2025-07-05 20:40:55 +02:00
Christoffer Lerno
0d170a70b6
Make to_float more tolerant to spaces.
2025-07-05 19:42:44 +02:00
Christoffer Lerno
b19cd0b87d
Casting a fault to a pointer would trigger an assert.
2025-07-05 01:38:44 +02:00
Christoffer Lerno
50efc95c83
Update sponsors
2025-07-05 00:57:23 +02:00
Christoffer Lerno
fa50268b4e
Update max memory.
2025-07-04 17:46:02 +02:00