Manu Linares
f254c27966
std/io/os/temp_directory.c3: fix INVALID_PATH in Win32 native_temp_directory ( #2762 )
...
* std/io/os/temp_directory.c3: fix INVALID_PATH in Windows native_temp_directory
- Use the actual length from GetTempPathW for Windows temp path slice
- We can remove the workaround in the test_suite_runner for WIN32 and
create all directories in %temp% now
* Updated releasenotes.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-01-15 21:23:30 +01:00
Christoffer Lerno
7f297a9d27
Fix type inference overrides parameterization #2761 . Remove support for ^io::EOF
2026-01-15 15:19:33 +01:00
Christoffer Lerno
702f836b40
io::read_fully now handles unbounded streams properly
2026-01-05 22:27:55 +01:00
Christoffer Lerno
04706f2dcd
Fix issue when removing test files on abort.
2025-12-31 00:13:38 +01:00
Manu Linares
dec49b05b8
Fix: Correct precision calculation for floating point formatting ( #2657 )
...
* Fix: Correct precision calculation for floating point formatting
---------
Signed-off-by: Manuel Barrio Linares <mbarriolinares@gmail.com >
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-12-19 15:51:42 +01:00
Walther Chen
f023db8638
fix ByteBuffer.grow ( #2622 )
...
* fix ByteBuffer.grow
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-12-06 17:57:11 +01:00
Christoffer Lerno
0a0e097bdf
Improve printf("%d") speed.
2025-11-28 17:04:10 +01:00
Christoffer Lerno
c3d5778ae0
Cache printf output.
2025-11-28 12:43:26 +01:00
Christoffer Lerno
5d468ccbf0
- Make printing typeids give some helpful typeid data.
2025-11-24 17:11:19 +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
1eb8c0ced1
Bug in io::write_using_write_byte.
2025-10-05 00:29:34 +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
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
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
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
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
cb17cfff7d
Deprecation of @assignable_to
2025-08-26 13:21:42 +02:00
Christoffer Lerno
f36e9fea48
Types converts to typeid implicitly.
2025-08-22 00:26:18 +02:00
Christoffer Lerno
29bae1fbd6
Updated like the PR #2375
2025-08-06 11:28:36 +02:00
Christoffer Lerno
9c770f360e
Formatter did not properly handle "null" for any, and null for empty faults. #2375
2025-08-06 11:23:56 +02:00
Christoffer Lerno
0205ee8688
Added the std::core::log for logging.
2025-08-05 18:30:46 +02:00
hamkoroke
440df8415e
Support memory mapped files and add File.map ( #2321 )
...
* Support memory mapped files and add File.map
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-08-03 23:26:52 +02:00
Christoffer Lerno
869bcf8b2b
Removing use of $assignable and deprecate it. Fix regression for stacktraces on MacOS. Added readline_to_stream. Regression: Chaining an optional together with contracts could in some cases lose the optional.
2025-07-21 03:20:40 +02:00
Christoffer Lerno
908d705669
Removing use of $assignable and deprecate it.
2025-07-20 20:07:06 +02:00
Kiana
506e63284b
Tidy up path.c3 ( #2309 )
...
* Tidy up path.c3
2025-07-20 12:26:44 +02:00
Christian Buttner
cf913b41c6
Fix Formatter.print returning incorrect size ( #2306 )
...
* Fix `Formatter.print` returning incorrect size
2025-07-18 15:54:07 +02:00
Christoffer Lerno
adb3df05c6
Allow even smaller memory limits.
2025-07-18 10:54:03 +02:00
Christoffer Lerno
26d5cc694a
Formatting option "%h" now supports pointers.
2025-07-08 11:43:49 +02:00
Christoffer Lerno
1ab57ecf20
Improve contract for readline. #2280
2025-07-07 02:42:48 +02:00
Christoffer Lerno
fad87b294b
mkdir/rmdir would not work properly with substring paths on non-windows platforms.
2025-06-30 21:41:52 +02:00
Christoffer Lerno
13bb2b6690
Const Enums From / to ordinal using casts is back. Add "--use-old-enums", deprecating lookup.
2025-06-30 21:41:52 +02:00
Christoffer Lerno
9285dfefad
- $member.get supports bitstructs.
...
- $member.set for setting members without the *& trick.
- io::struct_to_format now supports bitstructs.
2025-06-29 01:19:09 +02:00
Christoffer Lerno
2afa544d7d
Correctly format '%c' when given a width. #2199
2025-06-15 02:27:36 +02:00
Christoffer Lerno
496d23e93f
Fix some @require comments.
2025-06-10 01:54:45 +02:00
Christoffer Lerno
7f85534414
- Implicitly convert from constant typeid to Type in $Type assignment, and $assignable.
...
- Make $Type parameters accept constant typeid values.
2025-06-05 00:37:16 +02:00
Christoffer Lerno
8b29e4780d
The %s would not properly print function pointers.
2025-04-25 11:26:28 +02:00
Boris Barbulovski
b5d0739de0
Add env::ANDROID to std.*
2025-04-16 17:47:49 +02:00
Christoffer Lerno
fa707db078
Do not implicitly convert enums to ordinal in formatting functions.
2025-03-25 12:27:51 +01:00
Christoffer Lerno
d760378b02
- Added @format attribute for compile time printf validation #2057 .
...
- Bug when printing a boolean value as an integer using printf.
2025-03-24 13:32:44 +01:00
Christoffer Lerno
a03d821602
- Use @pool_init() to set up a temp pool on a thread. Only the main thread has implicit temp pool setup.
...
- `tmem` is now a variable.
2025-03-21 17:08:58 +01:00
Christoffer Lerno
7e100472e7
- AnyList now also defaults to the temp allocator.
...
- `os::getcwd` and `os::get_home_dir` requires an explicit allocator.
- `file::load_new` and `file::load_path_new` removed.
2025-03-18 18:34:52 +01:00
Christoffer Lerno
72608ce01d
- Temp allocator now supports more than 2 in-flight stacks.
...
- Printing stacktrace uses its own temp allocator.
- `@pool` no longer takes an argument.
- `Allocator` interface removes `mark` and `reset`.
- DynamicArenaAllocator has changed init function.
- Added `BackedArenaAllocator` which is allocated to a fixed size, then allocates on the backing allocator and supports mark/reset.
2025-03-18 15:16:22 +01:00
Christoffer Lerno
5c77c9a754
- Change distinct -> typedef.
...
- Order of attribute declaration is changed for `alias`.
- Added `LANGUAGE_DEV_VERSION` env constant.
- Rename `anyfault` -> `fault`.
- Changed `fault` -> `faultdef`.
- Added `attrdef` instead of `alias` for attribute aliases.
2025-03-15 20:10:47 +01:00
Christoffer Lerno
8b49e6c14d
Rename def to alias.
2025-03-13 11:22:27 +01:00
Christoffer Lerno
b8ae2b06d6
Rename @return! to @return?
2025-03-12 21:40:30 +01:00
Christoffer Lerno
25bccf4883
New faults and syntax ( #2034 )
...
- Remove `[?]` syntax.
- Change `int!` to `int?` syntax.
- New `fault` declarations.
- Enum associated values can reference the calling enum.
2025-03-10 00:11:35 +01:00