Commit Graph

7400 Commits

Author SHA1 Message Date
Yawning Angel
4ef6300eb3 core/crypto/ed25519: Add private_key_generate 2026-02-20 04:10:54 +09:00
Yawning Angel
7e7515d7d9 core/crypto/ecdsa: Add ECDSA support 2026-02-20 04:10:54 +09:00
Yawning Angel
49ab240c45 core/crypto/_weierstrass: Add Shamir-Strauss 2026-02-20 03:59:34 +09:00
Yawning Angel
ffa6fc2a67 core/crypto/_weierstrass: Add scalar field inversion 2026-02-20 03:59:34 +09:00
gingerBill
aea6274a10 Fix _mkdir_all for wasi 2026-02-19 14:54:34 +00:00
gingerBill
b643b0b1a9 Fix _copy_directory_all_native 2026-02-19 14:05:49 +00:00
gingerBill
cf3ac07a7e Fix copy_directory_all 2026-02-19 14:00:38 +00:00
gingerBill
26a4b2bfef Fix perm: int to perm: Permissions 2026-02-19 13:58:02 +00:00
Håkon Stormo
686cba8ca2 Fix to_string_hms_12 2026-02-19 02:32:00 +01:00
Jeroen van Rijn
76f5c39d9b Merge pull request #6301 from laytan/remove-process-close-add-process-terminate
os: remove `process_close` and add `process_terminate`
2026-02-18 20:35:39 +01:00
Laytan
dfb09d1299 Merge pull request #6231 from lucypero/fix/atomic-typo
Fix typo in atomic.odin documentation
2026-02-18 20:28:02 +01:00
Laytan Laats
7a7d7560b6 os: remove sys/unix dep on Linux 2026-02-18 20:16:55 +01:00
Laytan Laats
e87e3fba1b os: remove process_close and add process_terminate
`process_wait` (optionally prefaced with a `process_kill`) can be used
to properly close and free resources of the process.

`process_terminate` was added because `process_kill` is a forceful
exit, we were missing a way to request the process to terminate.
2026-02-18 20:15:07 +01:00
jakubtomsu
73a62f672a Merge branch 'odin-lang:master' into more-import-cleanup 2026-02-18 10:59:00 +01:00
Shane Shrybman
45ac966901 Add missing return values on xar iterators 2026-02-17 22:51:39 -05:00
Krzesimir Nowak
a90f2ad3a0 Print errors in tools and examples to stderr 2026-02-17 23:08:32 +01:00
Krzesimir Nowak
47775214d6 Fix some tools and examples after core:os update and using-stmt feature 2026-02-17 21:58:08 +01:00
Shane Shrybman
111c2506d5 Fix typo in xar.array_linear_search() return 2026-02-17 14:40:15 -05:00
jakubtomsu
cd3ba3c3d5 unused intrinsics import in core:hash 2026-02-17 18:56:39 +01:00
jakubtomsu
8a7fb8bd4e net: generate DNS ID with context.random_generator directly 2026-02-17 18:51:41 +01:00
jakubtomsu
e8aac50f8b math/rand math/bits dependency 2026-02-17 18:34:37 +01:00
gingerBill
ad6cde0b3c Add reader_read_* utilities for slices and rawptr 2026-02-17 14:57:50 +00:00
gingerBill
96d6eec8e5 Add reader_read_slice and reader_read_slice_at 2026-02-17 14:55:59 +00:00
gingerBill
442b163871 Fix typos 2026-02-17 14:41:09 +00:00
gingerBill
6c3904f235 Merge branch 'master' of https://github.com/odin-lang/Odin 2026-02-17 14:34:38 +00:00
gingerBill
966b76c4cb Add write_slice/read_slice utility procedures to core:bytes, core:io, and core:os 2026-02-17 14:34:28 +00:00
gingerBill
8f77ac54ba Merge pull request #6235 from harold-b/hb.test-runner-rt-options
Allow test names to be specified as a command line option for tests executable
2026-02-17 12:38:19 +00:00
gingerBill
a7ed7ccd0c Merge pull request #6259 from odin-lang/bill/range-init
`for init; x in y {}` style loops (proof of concept)
2026-02-17 11:11:56 +00:00
gingerBill
58deab46a3 Add xar.Freelist_Array 2026-02-17 10:47:14 +00:00
gingerBill
6da4a6746f Add linalg.to_f16 2026-02-17 09:41:22 +00:00
Wrath
06b10f9ae8 Add #optional_allocator_error 2026-02-16 14:40:37 -05:00
wrathdoesthat
f0912ce4c2 Merge branch 'odin-lang:master' into master 2026-02-16 14:38:22 -05:00
gingerBill
bf1ea780d8 Merge pull request #6285 from DuchGhast/utf8-validation-fix
Fix utf8 validation
2026-02-16 11:24:43 +00:00
Wrath
5c5e337172 Propagate allocator errors from certain unicode functions 2026-02-15 22:27:30 -05:00
Jeroen van Rijn
64a0973776 Merge pull request #6287 from krnowak/krnowak/fix-sys-es
Fix build errors in the sys/es package
2026-02-15 17:39:05 +01:00
Jeroen van Rijn
a7bf06eb5f Fix cast. 2026-02-15 17:15:48 +01:00
Jeroen van Rijn
5c95a48bc7 Clean up core:math/big
- Deprecate the u64/u32 implementation so we can use fewer nails and have an easier time of maintaining and optimizing the package going forward. The remaining implementation still works on 32-bit targets, it's just a smidge less efficient.

- Use only 1 nail instead of 4. The tests now run 3.5% faster as a result.

Future optimizations may including using fully packed backing (no nails) using `intrinsics.overflow_*` to handle borrow and carry safely.
2026-02-15 17:00:53 +01:00
Krzesimir Nowak
2b985e900c Fix build errors in the sys/es package 2026-02-15 16:57:32 +01:00
DuchGhast
c1df42d991 Fix utf8 validation 2026-02-15 14:49:50 +00:00
Jeroen van Rijn
03a8526cf0 Add tests
Add tests for `core:container/xar` and `core:container/handle_map` (static + dynamic).
2026-02-15 14:54:31 +01:00
Jeroen van Rijn
95c82e0f76 Fix #6279
If the replacement rune was multi-byte, `os.replace_path_separators` would silently fail to replace anything.

Now it properly handles non-ASCII separator. Additionally added a fast path for when all runes in the input path as well as the replacement separator are simple ASCII.

Test added.
2026-02-15 12:42:55 +01:00
Shane Shrybman
3d9441c394 Update the comment on core:bytes.compare() to match the proc signature 2026-02-14 15:15:50 -05:00
Jeroen van Rijn
2622c1ab99 Fix #6229
Fixes #6229 by adding `encode_upper` and `encode_upper_into_writer`.

Also updated the documentation to be more like the rest of `core`.
2026-02-14 13:57:02 +01:00
Jeroen van Rijn
4c9466e3ea Add comment to ole32.odin and types.odin. 2026-02-14 13:17:28 +01:00
Jeroen van Rijn
1d38b715c3 Revert "Add missing platform guards."
This reverts commit 2da1befe04.
2026-02-14 13:14:33 +01:00
Jeroen van Rijn
2da1befe04 Add missing platform guards. 2026-02-14 13:11:36 +01:00
Jeroen van Rijn
1af1beb248 Fix filepath.dir 2026-02-14 12:52:51 +01:00
blob1807
dcd93579f0 Add more Windows endpoints 2026-02-14 20:31:51 +10:00
Jeroen van Rijn
d26ad6a0e5 Update doc line for core:os and core:os/old. 2026-02-14 00:55:21 +01:00
oxSleep
6fc3a8fb2a Use when-block for sanitizer poisoning
Replace @disabled attribute with when-statement to conditionally compile
address sanitizer poisoning in pool elements
2026-02-13 17:21:51 +01:00