Commit Graph

813 Commits

Author SHA1 Message Date
Yawning Angel
ffa6fc2a67 core/crypto/_weierstrass: Add scalar field inversion 2026-02-20 03:59:34 +09:00
Håkon Stormo
686cba8ca2 Fix to_string_hms_12 2026-02-19 02:32:00 +01:00
Jeroen van Rijn
69831da51f Vendor Yawning Angel's odin-wycheproof into tests/crypto/wycheproof
Upstream test vectors from [wycheproof](https://github.com/C2SP/wycheproof) have been vendored into the [Odin test-assets](https://github.com/odin-lang/test-assets) repository, and will be downloaded and verified using `tests/core/download_assets.py`.
2026-02-16 19:00:43 +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
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
c66059dd03 One more test, unicode path elements 2026-02-15 13:00:34 +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
Jeroen van Rijn
1af1beb248 Fix filepath.dir 2026-02-14 12:52:51 +01:00
Jeroen van Rijn
57653dd363 short_stem 2026-02-13 12:37:55 +01:00
Jeroen van Rijn
faca11d593 Fix os.stem, os.short_stem. 2026-02-13 12:36:15 +01:00
Jeroen van Rijn
97683ae014 Simplify 2026-02-12 10:48:26 +01:00
Jeroen van Rijn
8366e7094a Fix up ABI name for core:os and core:os/old 2026-02-09 16:27:53 +01:00
Jeroen van Rijn
e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn
8ed264680b Remove all core:os imports from JS targets
Fix `local_tz_name` on FreeBSD.
2026-02-09 15:07:27 +01:00
Jeroen van Rijn
674f0e0474 Fix doc tests 2026-02-08 13:28:04 +01:00
Jeroen van Rijn
2c39af1581 Fix 2026-02-08 13:06:19 +01:00
Jeroen van Rijn
13228c14e8 More conflicts during rebase 2026-02-08 13:04:44 +01:00
Jeroen van Rijn
5924fb448e Add tests for glob + match 2026-02-08 12:54:25 +01:00
Jeroen van Rijn
5d03da8365 Start of glob test 2026-02-08 12:54:24 +01:00
Jeroen van Rijn
691dc44719 Add glob + match to os2 2026-02-08 12:51:29 +01:00
Jeroen van Rijn
af57035fd6 tests/core/io -> os2 2026-02-08 12:50:23 +01:00
Jeroen van Rijn
67db0fde4f Port doc tester to os2 itself as well 2026-02-08 12:48:50 +01:00
Jeroen van Rijn
ffa94764b4 Fix doc tester 2026-02-08 12:48:49 +01:00
Jeroen van Rijn
f63c209478 Convert core:encoding/hxa 2026-02-08 12:42:26 +01:00
Jeroen van Rijn
1cbd60f40e Reenable core:encoding/ini tests 2026-02-08 12:42:25 +01:00
Jeroen van Rijn
270df36468 Merge pull request #6213 from Yawning/feature/more-secec
crypto: More core:crypto
2026-02-03 15:45:57 +01:00
Yawning Angel
eadd5f789c core/crypto/ecdh: Add secp384r1 2026-02-03 18:48:07 +09:00
Yawning Angel
64ce2bdf0e core/crypto/_weierstrass: Add secp384r1 2026-02-03 18:48:07 +09:00
Laytan Laats
0a05ff05a3 nbio: fix send/recv buffer logic 2026-01-30 23:37:31 +01:00
Yawning Angel
c35b49bf60 core/crypto/ecdh: Initial import 2026-01-28 22:50:27 +09:00
Yawning Angel
5ce448a8d5 core/crypto: Start work on the NIST curves 2026-01-28 22:50:27 +09:00
Yawning Angel
429e8a46db core/crypto/ed25519: Cosmetic fixes (NFC) 2026-01-28 22:20:03 +09:00
Jeroen van Rijn
1c529d8cb2 Fix #6165 2026-01-24 14:06:31 +01:00
CJ
55f3a45322 Update run.bat and run.sh 2026-01-24 01:30:15 +09:00
CJ
89f6f535db Fix string16 bugs in Mac and Linux 2026-01-24 01:26:36 +09:00
Jeroen van Rijn
4acdd3f60b Fix CRC 2026-01-22 11:49:47 +01:00
Jeroen van Rijn
3f8a32aeb9 Merge branch 'master' into xmlcomment 2026-01-22 11:47:23 +01:00
Jeroen van Rijn
27ac0ebc37 Merge pull request #6145 from odin-lang/bill/html-escape
Update `core:encoding/entity`
2026-01-18 13:37:45 +01:00
gingerBill
ca507d0596 Fix crc32 for xml_test_entities_unbox_decode 2026-01-18 12:30:55 +00:00
rykad
454f75cb22 core:encoding/base64: add support for url variant 2026-01-17 22:26:25 +00:00
gingerBill
d46c547264 Merge pull request #6124 from laytan/nbio
Add `core:nbio`
2026-01-16 13:25:03 +00:00
Laytan Laats
24ee35af28 nbio: add package 2026-01-11 20:21:25 +01:00
Laytan Laats
872fe3ff73 kqueue: fix bsds, add user filter, add struct tests 2026-01-11 20:21:25 +01:00
Laytan Laats
ec040c1fcb rbtree: fix pointer usages 2026-01-11 20:21:25 +01:00
Laytan Laats
c10771305d net: implement OpenBSD and NetBSD support & add stubs for other targets & cleanup 2026-01-11 20:21:21 +01:00
Tohei Ichikawa
c8f2603d3e Fix test name, add PR link, use tabs 2026-01-10 03:35:33 -05:00
Tohei Ichikawa
bf7c92bf09 Fix assertion error when imported proc groups are passed as proc arguments 2026-01-10 03:05:04 -05:00
StudebakerGuy
fb479b3aae Corrected CRC's
CRC's were correct in relation to changes to address comments containing
-- at the end.
2026-01-08 11:34:50 -05:00
ske
91c1950b9f Fix constant conversion checks (#6104) 2026-01-07 02:19:41 -03:00
ske
e4bf5476c3 Fix literal endianness (fix #6068) 2025-12-30 22:08:40 -03:00