Shane Shrybman
25fde8a03a
For #soa dynamic arrays. Move assert(a.allocator.procedure != nil) out of the common path into the if check
2026-02-23 11:35:16 -05:00
Sylphrena
205bead9d2
Add @builtin to missing builtin procedure group procs
2025-12-19 15:57:25 +01:00
thetarnav
72754962ab
Use resize_soa instead of resize proc group in soa procs
2025-11-02 14:20:55 +01:00
thetarnav
e364e76f7f
Add inject_at_soa and append_nothing_soa procedures
2025-11-02 12:13:11 +01:00
Damian Tarnawski
ce0cf7076c
Add missing test attr and don't zero memory when reserve already did
2025-08-26 13:03:26 +02:00
gingerBill
83a78d5d28
Merge branch 'master' into soa-resize-zero-memory
2025-08-26 11:26:15 +01:00
Damian Tarnawski
95cfad67b7
Cleanup soa resize logic—reduce nesting
2025-08-24 15:17:13 +02:00
Damian Tarnawski
66f4c93420
Handle nil old data case
2025-08-24 15:04:19 +02:00
Damian Tarnawski
ac4a89e765
Always use .Resize_Non_Zeroed in _reserve_soa
2025-08-23 17:07:57 +02:00
Damian Tarnawski
2a6dfd2545
Avoid overlap issues when correcting memory after resize in _reserve_soa
2025-08-23 16:55:12 +02:00
Damian Tarnawski
18a2980d26
Zero existing memory when using resize_soa ( fixes #5614 )
2025-08-23 14:28:25 +02:00
Damian Tarnawski
9d651348b5
Only zero memory when requested
2025-08-23 13:10:19 +02:00
Damian Tarnawski
05706864b7
Support using allocator resize in _reserve_soa ( fixes #5615 )
2025-08-23 12:55:07 +02:00
Jeroen van Rijn
56e4da8546
Fix #4509
2024-11-24 13:08:24 +01:00
Franz Hoeltermann
02da1ac9af
Added #any_int directive to some more builtin slice/dynamic array
...
procedures
2024-09-03 12:36:32 +02:00
Franz Hoeltermann
b618b665c6
Added #any_int to some #soa procs to mirror the behaviour of their
...
non-soa counterparts
2024-09-03 11:46:09 +02:00
gingerBill
8642d719f0
Imply #no_capture to all variadic parameters
2024-07-14 12:19:47 +01:00
gingerBill
c7bd954752
Add more uses of #no_capture
2024-07-14 11:56:04 +01:00
gingerBill
942f3f5220
Add non_zero_* variants for #soa dynamic array
2024-07-01 12:04:29 +01:00
gingerBill
3a43928184
Add #no_broadcast to append_soa
2024-07-01 11:47:33 +01:00
gingerBill
4a2b87672c
Unify #soa code for structs and arrays
2024-07-01 11:11:06 +01:00
Karl Zylinski
679f9b4e41
Made default capacity of dynamic arrays more consistent.
...
Before this if you do `arr: [dynamic]int` and then append to arr, then it will have capacity 8.
But if you did `arr := make([dynamic]int, context.temp_allocator)` then arr would have capacity 16.
Now both `arr: [dynamic]int` and `arr := make([dynamic]int, context.temp_allocator)` will resut in arr having zero 0. The only reason to use `make` without an explicit len or cap now is because you want to set it up for a non-default allocator. After the first call to `append` it will now in both cases have capacity 8.
I also updated the documentation on the strings builder, both to reflect this, and also to fix it incorrectly saying that len would be 'max(16,len)', which wasn't true even before these changes.
2024-06-29 08:57:21 +02:00
gingerBill
7cf62f00c3
Correct #soa RTTI usage
2024-05-16 16:30:45 +01:00
James Duran
44aae76294
Fix syntax mistake again
...
Sorry for being blind
2024-02-16 10:55:55 -08:00
James Duran
009cebe8bf
Fix Syntax Mistake
2024-02-16 10:50:54 -08:00
James Duran
9399cb53b6
Make into_dynamic_soa more concise and remove builtin tag from it
2024-02-16 10:46:46 -08:00
James Duran
a4d3777ab2
Added into_dynamic_soa, unordered_remove_soa, and ordered_remove_soa
2024-02-14 16:51:09 -08:00
Zac Nowicki
9d0786ded7
Remove invalid allocator assignment to slice
...
`T` is `#soa[]$E`, which does not carry an allocator.
2024-02-08 04:14:16 -05:00
gingerBill
9c9ae5987a
Fix #3150
2024-01-29 16:21:26 +00:00
gingerBill
9e7cc8cf93
Remove core:os dependency from base:runtime; change to base:intrinsics
2024-01-28 21:59:43 +00:00
gingerBill
09fa1c29cd
Move core:runtime to base:runtime; keep alias around
2024-01-28 21:05:53 +00:00