Christoffer Lerno
5b83108dd1
- Add sigsegv stacktrace in test and regular errors for Darwin Arm64. #1105
2025-11-20 21:05:19 +01:00
Christoffer Lerno
7b50c87858
- Fix issue when tests encounter a segmentation fault or similar.
2025-11-20 12:52:25 +01:00
Christoffer Lerno
4e66693065
- Refactored @simd implementation.
...
- Regression vector ABI: npot vectors would load incorrectly from pointers and other things. #2576
2025-11-16 01:37:39 +01:00
Christoffer Lerno
eccc6700dc
- Fix appending to c:\ or \ #2569 .
2025-11-09 21:45:19 +01:00
Christoffer Lerno
52ececba37
- Fix to Path handling c:\foo and \home parent. #2569
2025-11-08 23:42:47 +01:00
Christoffer Lerno
0da6bf4455
- Passing a compile time type implicitly converted to a typeid would crash instead of producing an error. #2568
2025-11-08 22:17:58 +01:00
m0tholith
7063e684ba
Make expected error in test::@error macro optional
...
If not supplied with a fault, `test::@error` checks if a fault of any
type/value was returned
2025-11-07 11:46:37 +01:00
Technical Fowl
d438d7510e
Add default exception handler for win32 ( #2557 )
...
* Add default exception handler for win32
2025-11-03 13:58:07 +01:00
Christoffer Lerno
5a3c484ceb
Remove automatic win32 cleanup. RC2
2025-10-30 21:29:48 +01:00
Christopher Coverdale
c10d449e43
Add local TcpSocketPair ( #2526 )
...
* Add extern fn socketpair() to posix
* Add extern fn getsockname() for local socketpair loopback in windows
* Add local TcpSocketPair
* Add unit test for TcpSocketPair
* Add implicit wsa startup
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-10-27 13:16:14 +01:00
Christoffer Lerno
8aaf54e8b1
- Rename @extern to @cname, deprecating the old name #2493 .
2025-10-25 15:55:25 +02:00
Tonis
03ad72afbb
Quaternion math improvements ( #2524 )
...
* Add radians to deg function
* Quaternion math fixes
* Formatting, use splat/swizzling, divide into multiple tests.
---------
Co-authored-by: tonis2 <tanton@paysure.solutions >
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-10-20 11:04:28 +02:00
Christoffer Lerno
b924ede71a
Regression: Not printing backtrace when tests fail for MacOS #2536 .
2025-10-20 02:50:06 +02:00
Christoffer Lerno
a000ae560a
Add new builtins $$str_snakecase $$str_replace and $$str_pascalcase.
...
Added `@str_snakecase`, `@str_replace` and `@str_pascalcase` builtin compile time macros based on the `$$` builtins.
2025-10-09 22:13:59 +02:00
Christoffer Lerno
fe70f10bcc
Sorting functions correctly took slices by value, but also other types by value. Now, only slices are accepted by value, other containers are always by ref.
2025-10-07 22:43:40 +02:00
Christoffer Lerno
1eb8c0ced1
Bug in io::write_using_write_byte.
2025-10-05 00:29:34 +02:00
Christoffer Lerno
6287e8dfbf
Restore some out checking.
2025-09-26 21:19:38 +02:00
konimarti
1f49a5448e
Add AES algorithm ( #2496 )
...
* crypto: add AES algorithm
* Some updates to the API
* Silence test.
* Fixed stdlib tests
* Some cleanup. Comments. Make internal methods functions.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-09-26 16:59:30 +02:00
m0tholith
ece4a2b6fb
Make StderrLogger print file and line if FULL_LOG ( #2500 )
...
* Make StderrLogger print file and line if `FULL_LOG`
* Avoid inlining a lot of code by using a macro wrapper. Fix test.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-09-26 16:58:29 +02:00
Book-reader
a6d33ec4af
Update stdlib to use struct member docs from #2427 and other small changes ( #2473 )
...
* Doc comment improvements
* update `compression/qoi.c3` to use const enums
* revert sweeping doc comment changes that impacted readability for now
* Some tweaks.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-09-19 18:41:32 +02:00
BWindey
12eea4a98d
[STDLIB] Add macro return types ( #2487 )
...
* add return types to macros where applicable
* std::time::clock::now() -> clock::now()
2025-09-18 14:06:58 +02:00
Christoffer Lerno
c5e3a1b2da
- Compiler segfault for invalid e-mails in project.json. #2488
...
- `env::PROJECT_VERSION` now returns the version in project.json.
2025-09-18 10:58:15 +02:00
Christoffer Lerno
35270fb0bf
Fix unnecessary namespacing.
2025-09-18 00:16:08 +02:00
Christoffer Lerno
92aefb15f8
Generic inference ( #2475 )
...
* Change generic symbol resolution.
* Infer generic parameters lhs -> rhs: `List{int} x = list::NOHEAP`.
* Regression: Compiler segfault when assigning struct literal with too few members #2483
2025-09-16 18:05:21 +02:00
Christoffer Lerno
c71444e7a0
Compile time switch over type would not correctly compare function pointer types.
2025-09-16 14:10:28 +02:00
Velikiy Kirill
fabd96552f
Implement write_to_stdin() in std::os::process ( #2482 )
...
* SubProcess: Add write_to_stdin
* SubProcess: Change unit test for windows support
2025-09-15 13:41:35 +02:00
Christoffer Lerno
3ba0beee96
Support for SysV for CVaList
2025-09-09 13:41:26 +02:00
Christoffer Lerno
8e6535f13c
Fix of last checkin
2025-09-09 01:06:18 +02:00
Christoffer Lerno
0d8f9520e9
CVaList support on MacOS aarch64.
2025-09-09 01:05:20 +02:00
Christoffer Lerno
9f55a74d2e
Remove use of find_len and len_from_list. Rename lenof to lengthof
2025-09-06 18:35:03 +02:00
Zack Puhl
078d9dc0b7
Add LinkedList Operators and Update Tests ( #2438 )
...
* Add LinkedList Operators and Update Tests
* add linkedlist printing and `@new` macros (single-line init and pool-capable)
* add linkedlist node and reg iterator; comparisons w/ ==
* Fix benchmarks. Drop random access to the linked list using []. Only return a direct array view.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-09-06 11:57:21 +02:00
Christoffer Lerno
69b3263a00
- Added path::home_directory, path::documents_directory, path::videos_directory, path::pictures_directory, path::desktop_directory, path::screenshots_directory,
...
`path::public_share_directory`, `path::templates_directory`, `path::saved_games_directory`, `path::music_directory`, `path::downloads_directory`.
Fix codegen bug in expressions like `foo(x()) ?? io::EOF?` causing irregular crashes.
2025-09-06 02:27:10 +02:00
Christoffer Lerno
e605a21fd3
Revert "Revert 0.7.6 code for 0.7.5 re-release"
...
This reverts commit d1349c9cfb .
2025-09-05 23:30:35 +02:00
Christoffer Lerno
d1349c9cfb
Revert 0.7.6 code for 0.7.5 re-release
2025-09-05 18:42:54 +02:00
Book-reader
3c1f692d49
Make enum Cc inline so it can index Termios.c_cc ( #2448 )
2025-09-04 11:41:06 +02:00
niedlich
cf14787552
Typo fixes ( #2457 )
...
* fix typos in comments and strings
* fix typos in symbols (and some comments/strings)
* fix typos in releasenotes.md
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-09-04 01:07:07 +02:00
Book-reader
10241df23c
Add generic InterfaceList type for storing values that implement a specific interface ( #2433 )
...
* Add generic InterfaceList type
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-09-03 22:58:27 +02:00
Christoffer Lerno
0c7c5fbd7b
Update MAP_ANONYMOUS for Linux
2025-08-31 00:27:01 +02:00
Christoffer Lerno
b757f1447b
Fix incorrect priority filtering. Move ??? to features.
2025-08-30 13:22:10 +02:00
LowByteFox
bc3d9d761f
fix buffer overflow when deallocating an object and implement asan poisoning for unused memory
2025-08-30 11:31:35 +02:00
Christoffer Lerno
1080303768
Using ... to expand elements.
2025-08-29 16:30:28 +02:00
Christoffer Lerno
ca2fabc9f9
- $defined(#hash) will not check the internal expression, just that #hash exists.
...
- Added optional macro arguments using `macro foo(int x = ...)` which can be checked using `$defined(x)`.
- Supplemental `roundeven` has a normal implementation.
2025-08-29 11:23:39 +02:00
Christoffer Lerno
8f3cb9c6e9
Add more comments to mem functions.
2025-08-28 18:23:01 +02:00
Christoffer Lerno
c339278ff7
String.bformat has reduced overhead.
2025-08-28 12:12:22 +02:00
Christoffer Lerno
47316dac59
Add compile time ternary $val ??? <expr> : <expr>.
2025-08-28 01:56:05 +02:00
Christoffer Lerno
239d249f01
- Added $kindof compile time function.
...
- Deprecated `@typekind` macro in favour of `$kindof`.
- Deprecated `@typeis` macro in favour of `$typeof(#foo) == int`.
2025-08-27 20:38:12 +02:00
Christoffer Lerno
7312c10b9e
- @is_const is deprecated in favour of directly using $defined.
...
- `@is_lvalue(#value)` is deprecated in favour of directly using `$defined`.
2025-08-27 18:21:55 +02:00
Christoffer Lerno
3c6e6f1965
Make log and exp no-strip.
2025-08-27 14:41:19 +02:00
Christoffer Lerno
cb17cfff7d
Deprecation of @assignable_to
2025-08-26 13:21:42 +02:00
Zack Puhl
410a25f334
Add array @reduce, @filter, @any, @all, & @indices_of ( #2419 )
...
* wip: array reduce and any/all
* wip: continue adding more functional-like array module functions
* wip: documentation and other fixes
* finish unit tests, require INDEX variable in lambdas, ready for first review
* don't worry about iterating by ref (it wasn't passing it that way anyhow)
* update release notes again
* simplify, remove "summary operators" and related tests
* Use more $defined, remove "has_operator". Fix regression in `$defined(var $f = 123)`
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-08-25 14:47:08 +02:00