Commit Graph

179 Commits

Author SHA1 Message Date
gingerBill
5f5c19fa2c Add deprecation notice to small_array/doc.odin 2026-03-15 18:58:27 +00:00
Barinzaya
e5c7ab0660 Add fmt field tags to core:container/small_array.Small_Array.
This enables fmt (and other packages that use it, like log) to format
Small_Arrays with only the used portion of the array.
2026-03-15 07:16:02 -04:00
Jeroen van Rijn
27667ce36b iff -> if and only if (⟺) 2026-03-13 11:54:15 +01:00
gingerBill
e8ca4a24fa Add assert to freelist_push_with_index 2026-03-01 13:28:30 +00:00
Faker-09
61d53212dd Handle map iterator reset for reuse + fix example (#6335)
* Reset the handle_map iterators for reuse
* Make the handle_map example more compilable
2026-02-25 21:41:00 +01:00
Laytan Laats
8bb8344ad6 xar: fix freelist_push_with_index using freelist_index_of which doesn't exist 2026-02-25 19:01:30 +01:00
Jeroen van Rijn
a7b2471a26 Update handle_map doc string 2026-02-25 17:33:33 +01:00
Jeroen van Rijn
853afea0c7 [core:container/priority_queue] Make example visible on package overview 2026-02-24 13:18:56 +01:00
Jeroen van Rijn
4321efacc3 [core:container/priority_queue] Add example and tests 2026-02-24 13:05:26 +01:00
gingerBill
4581f57953 Merge pull request #6320 from Faker-09/handle_map_duplicate_assignment
In handle_map.dynamic_add(), remove redundant assignment
2026-02-23 13:49:02 +00:00
Shane Shrybman
94fa423cac Reset the xar freelist iterators' index to 0 for easy reuse 2026-02-20 12:06:38 -05:00
Shane Shrybman
baaea5c1e6 Reset the xar iterator index to 0 for easy reuse 2026-02-20 11:28:50 -05:00
Shane Shrybman
45ac966901 Add missing return values on xar iterators 2026-02-17 22:51:39 -05:00
Shane Shrybman
0deacb6871 In handle_map.dynamic_add(), 'item' has been appended to the xar so this additional assignment is unneeded. 2026-02-17 15:31:17 -05:00
Shane Shrybman
111c2506d5 Fix typo in xar.array_linear_search() return 2026-02-17 14:40:15 -05: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
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
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
imlodinu
b906412f47 use xar.len instead of len for accessing length of items 2026-02-13 15:46:28 +08:00
Jeroen van Rijn
8cb22d9685 Remove core:mem import from core:container/bit_array. 2026-02-12 17:58:10 +01:00
Jeroen van Rijn
51183268b7 Remove core:mem import from core:container/pool. 2026-02-12 17:44:36 +01:00
Shane Shrybman
264029b2d6 Remove core:mem dependency from core:container/xar 2026-02-10 21:13:33 -05:00
gingerBill
8018604f83 Fix handle_map index on dynamic_add 2026-02-08 22:58:44 +00:00
gingerBill
2859bc0853 Update doc.odin 2026-01-26 15:11:07 +00:00
gingerBill
9f206ba6d5 Keep -vet happy 2026-01-26 15:06:15 +00:00
gingerBill
967b6754a7 Rename to static_handle_map.odin 2026-01-26 15:00:15 +00:00
gingerBill
25ecca7159 Rename to Static_Handle_Map 2026-01-26 15:00:00 +00:00
gingerBill
069ca73d4b Make things contextless where possible 2026-01-26 14:53:01 +00:00
gingerBill
f2a8960ab0 Add Dynamic_Handle_Map 2026-01-26 14:48:56 +00:00
gingerBill
02e84f2108 Keep -strict-style happy 2026-01-26 14:11:40 +00:00
gingerBill
425e7ca780 Add core:container/handle_map 2026-01-26 11:46:59 +00:00
Laytan Laats
57d02cb148 pool: remove assert that is too strict 2026-01-14 20:02:08 +01:00
Laytan Laats
4af4b2f575 pool: use elem in else of the when statement (vet issue) 2026-01-13 19:47:09 +01:00
Laytan Laats
4ae02aaacf pool: explicit memory ordering and improved destroy 2026-01-13 19:38:10 +01:00
Laytan Laats
24ee35af28 nbio: add package 2026-01-11 20:21:25 +01:00
Laytan Laats
08c4503875 xar: fix example 2026-01-11 20:21:25 +01:00
Laytan Laats
ec040c1fcb rbtree: fix pointer usages 2026-01-11 20:21:25 +01:00
gingerBill
6f396ac49b Rename xar.Xar to xar.Array 2025-12-31 15:01:03 +00:00
Laytan Laats
b53ee3dba3 container/xar: fix undeclared n assignment 2025-12-22 16:57:58 +01:00
gingerBill
a66b84372a Improve docs and add Iterator 2025-12-12 14:41:01 +00:00
gingerBill
d43b00bb10 Add basic docs 2025-12-12 01:44:31 +00:00
gingerBill
23ddb8dd3f Add push_back_elem_and_get_ptr 2025-12-12 01:00:11 +00:00
gingerBill
a2d361f17d Add basic docs 2025-12-12 00:40:03 +00:00
gingerBill
9bd2186c8a core:container/xar 2025-12-12 00:35:40 +00:00
Jeroen van Rijn
91409cb37e Clarify get and get_ptr in core:container/small_array.
See #5892.
2025-11-06 15:21:56 +01:00
Jeroen van Rijn
5b6889ccf5 Enable misnamed doc example test for small_array 2025-10-30 11:29:51 +01:00
Jeroen van Rijn
ece213afca Render examples. 2025-10-10 12:24:28 +02:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Jeroen van Rijn
248b0fe9e1 More package lines 2025-10-09 16:11:33 +02:00