Koni Marti
0cc62058a9
fix(string): use heap allocator for ZString.copy
...
Use the heap allocator for ZString.copy() instead of the temp allocator
to stay consistent across the code base.
The temp allocator is used for ZString.tcopy().
2024-10-08 17:33:29 +02:00
Christoffer Lerno
e3ea1d5049
Deprecate @adhoc, allow non-nested ad hoc generic types.
2024-10-08 11:02:10 +02:00
Fernando López Guevara
1a948e4341
fix(time): update month
2024-10-07 19:11:14 +02:00
Denis Palashevskii
217151be8d
fix int formatting in std::collections::object
2024-10-05 14:03:27 +02:00
Christoffer Lerno
2ef1465244
Improved ObjC support.
2024-10-04 23:25:51 +02:00
Christoffer Lerno
77ac864995
Unexpected compile error using a typed constant with copysign #1517
2024-10-04 18:01:57 +02:00
Christoffer Lerno
fa4ca7944f
- Add read/write to stream with big endian ints.
...
- Move accidently hidden "wrap_bytes".
2024-10-03 20:42:25 +02:00
Christoffer Lerno
02e9bfaf31
Separate const slice. Fix #1489 . Fix const slice appending. Remove unintended print of char[] as String. Support const conversion of array -> slice.
2024-10-03 15:04:33 +02:00
Christoffer Lerno
1b8f8c5f5a
Compiler crash when compiling c code in a library without --obj-out #1503 .
2024-10-03 00:56:01 +02:00
Fernando López Guevara
131a783e89
feat(hash): added test for sha256
2024-10-02 16:55:17 +02:00
chri-k
2233f24c8f
Add variants of DString.insert_at to match .append ( #1510 )
2024-10-02 10:22:59 +02:00
Christoffer Lerno
607a625641
Updated bigint.
2024-10-02 01:13:34 +02:00
Christoffer Lerno
9b49d19224
DString reverse and an initial BigInt implementation (untested),
2024-10-01 22:51:48 +02:00
Fernando López Guevara
c9b9de2838
fix(string): remove allocator argument on temp_ascii_to_lower
2024-09-30 22:01:44 +02:00
DanyDollaro
0d73f2fffa
Added mutex tests ( #1501 )
...
* Added mutex tests. Add errorcheck in safe mode for Posix threads. Make non-recursive locks fail when used recursively on Windows. Fix thread pool tests. Simple locking count.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2024-09-30 20:57:16 +02:00
Christoffer Lerno
c8018c5543
Added generic PBKDF2 implementation.
2024-09-30 00:07:49 +02:00
chri-k
94abb3bd0c
Fix escape sequence handling in encoding::json
2024-09-29 11:22:15 +02:00
Christoffer Lerno
3b009e0b50
Added generic HMAC.
2024-09-28 23:28:11 +02:00
Christoffer Lerno
cc130e04dd
Added MD5 and crypto::safe_compare.
2024-09-28 22:16:25 +02:00
Christoffer Lerno
2eca868540
Add UUID generation.
2024-09-28 20:58:03 +02:00
Christoffer Lerno
8e7efaae99
ThreadPool is now adhoc available.
2024-09-28 13:28:39 +02:00
Alex Ling
fe9e434020
Fix incorrect to_gmt_offset result
2024-09-28 13:23:48 +02:00
Christoffer Lerno
8a0b0f5cf5
Disable fixed_pool where no threads are available.
2024-09-28 03:50:22 +02:00
Christoffer Lerno
5df321816b
Unintended commit reverse.
2024-09-28 01:42:06 +02:00
Christoffer Lerno
7ff645c423
Free if broadcast fails.
2024-09-28 01:33:12 +02:00
Christoffer Lerno
93f290d57c
Added a simple fixed threadpool which allocates.
2024-09-28 01:25:08 +02:00
Alex Ling
4cdea865f0
TzDateTime enhancements #1473
2024-09-26 12:32:05 +02:00
alex_s168
da2f958614
add x86 APX features ( #1482 )
...
add apx features Update cpu_detect.c3
2024-09-25 21:11:01 +02:00
Christoffer Lerno
da47588502
Make methods be available in earlier stages of analysis. Add @adhoc attribute to allow types with ad hoc generic declarations.
2024-09-25 14:26:49 +02:00
Christoffer Lerno
6f7ffbeb3c
Add rand_in_range random function. Fix methodsof to apply to more types. Prevent methodsof in the wrong stage.
2024-09-25 00:18:11 +02:00
Christoffer Lerno
d067a31ce6
Fix entropy
2024-09-24 20:15:10 +02:00
Christoffer Lerno
c6e4eee789
Added rnd function.
2024-09-24 19:02:03 +02:00
Christoffer Lerno
07c49f832e
Safer seed of rand with WASM.
2024-09-24 18:38:11 +02:00
Caleb-o
0900f401c0
Add Enum constraint to enummap
...
Fix typo in enumset require
2024-09-20 19:17:09 +02:00
Christoffer Lerno
8e37e54645
Add env::COMPILER_BUILD_HASH and env::COMPILER_BUILD_DATE
2024-09-20 12:29:23 +02:00
Christoffer Lerno
41156cc45d
Temp allocator overwrites data when doing reset on extra allocated pages. #1462
2024-09-19 20:50:14 +02:00
Christoffer Lerno
3bada4560e
Correctly print interfaces.
2024-09-18 14:53:55 +02:00
Christoffer Lerno
5540519e52
Cleanup.
2024-09-18 10:20:57 +02:00
Christoffer Lerno
1b5472cc94
Add paramsof.
2024-09-15 23:43:09 +02:00
Christoffer Lerno
9bb45cb6a3
Add missing concat. Fix error message location on not enough arguments.
2024-09-15 15:56:13 +02:00
wilsonk
4c7d61ae82
Bsd family fixes ( #1435 )
...
Some small fixes for the BSD's
Try fcntl for NetBSD
Fixes for stdin, etc. and setjmp/longjmp
2024-09-13 14:49:51 +02:00
Alexey Kutepov
d53dd57b84
Introduce os::native_fputc() abstraction layer for File.write_byte() ( #1440 )
...
Introduce os::native_fputc() abstraction layer for File.write_byte()
2024-09-13 12:25:41 +02:00
wilsonk
1b54a99f6a
Add initial FreeBSD support ( #1430 )
...
Add initial FreeBSD support
2024-09-11 22:38:53 +02:00
ElaDeCode
2b0d2892af
move macro matrix_look_at to matrix module
2024-09-11 14:58:42 +02:00
Fernando López Guevara
27f2d201ed
fix: cast native thread
2024-09-11 10:12:33 +02:00
Christoffer Lerno
2092e2167e
Add io::read_new_fully for reading to the end of a stream. Add io::wrap_bytes for reading bytes with io functions.
2024-09-10 13:21:07 +02:00
Christoffer Lerno
d4fb5b747b
Update QOI type names.
2024-09-07 16:10:15 +02:00
Hema2
7581651011
Add QOI to the standard library ( #1409 )
...
Add QOI to the standard library
2024-09-07 15:55:26 +02:00
Christoffer Lerno
1cc1b83b6f
format functions are now functions and work better with splat.
2024-09-07 14:34:30 +02:00
Christoffer Lerno
840b3b3161
"optsize" did not work correctly in project.json.
2024-09-06 22:55:15 +02:00