fusion32
bd4afafc66
make once_do_without_data_contextless actually contextless
2025-04-16 12:44:00 -03:00
gingerBill
4ec03a2d9b
Fix strconv.parse_float related procedures caused by a shifting problem
2025-04-16 13:45:50 +01:00
gingerBill
3dcc22fa6d
Change hashing rules for float-like types to make 0 == -0
2025-04-16 10:52:35 +01:00
Jeroen van Rijn
ddedddc16d
Get rid of duplicate math.signbit in favor of math.sign_bit
2025-04-15 16:17:02 +02:00
Laytan
11da543f26
net: add ECONNRESET to the error handling of recv
2025-04-14 21:17:22 +02:00
Jeroen van Rijn
0fc141db5d
core:mem/tlsf: Add early-out in OOM logic
...
This implementation doesn't allow for out-of-band allocations to be passed through, as it's not designed to
track those. Nor is it able to signal those allocations then need to be freed on the backing allocator,
as opposed to regular allocations handled for you when you `destroy` the TLSF instance.
So if we're asked for more than we're configured to grow by, we can fail with an OOM error early, without adding a new pool.
2025-04-14 20:40:05 +02:00
Jeroen van Rijn
3d13beb3ec
Remove now-implemented TODO
2025-04-14 20:09:55 +02:00
Jeroen van Rijn
beee27dec0
Allow core:mem/tlsf to automatically add new pools.
...
New features:
- If TLSF can't service an allocation made on it, and it's initialized with `new_pool_size` > 0, it will ask the backing allocator for additional memory.
- `estimate_pool_size` can tell you what size your initial (and `new_pool_size`) ought to be if you want to make `count` allocations of `size` and `alignment`, or in its other form, how much backing memory is needed for `count` allocations of `type` and its corresponding size and alignment.
2025-04-14 19:49:55 +02:00
Jeroen van Rijn
66d99c1be3
Merge pull request #5036 from Kelimion/tlsf
...
Refactor `core:mem/tlsf`, add `free_all` support.
2025-04-14 17:30:46 +02:00
Jeroen van Rijn
7088284ff4
Refactor core:mem/tlsf, add free_all support.
...
TODO: Allow the TLSF allocator to add additional pools when it would ordinarily OOM
by calling its backing allocator.
2025-04-14 17:13:27 +02:00
Jeroen van Rijn
9516084e58
Merge pull request #5035 from Sojamann/sync_chan-maintainance
...
core:sync/chan: maintainance and package clarity
2025-04-13 23:13:07 +02:00
Robin Bergewski
1c6958d443
core:sync/chan: maintainance and package clarity
...
this deprecates all procedures around 'Raw_Queue' for it to
become package private.
2025-04-13 22:56:40 +02:00
Jeroen van Rijn
bb38775fb1
Remove Type_Info_Tuple
2025-04-13 21:51:57 +02:00
jason
4998d4ebd0
Fix linux.dirent_name
...
Was not searching the first possible byte for 0.
2025-04-13 12:05:39 -04:00
Robin Bergewski
4ec93ffe39
fix indent
2025-04-13 16:40:08 +02:00
Robin Bergewski
ec71a5afb1
fix missing imports
2025-04-13 16:33:25 +02:00
Robin Bergewski
19eb53c321
changes due to review
2025-04-13 15:34:14 +02:00
Jeroen van Rijn
0e9cd0fb6a
Prepare for tlsf.free_all
2025-04-13 15:20:53 +02:00
Robin Bergewski
ca72aba9eb
core:sync/chan: add package documentation
2025-04-13 15:07:06 +02:00
Laytan Laats
74a66f7794
os2: fix get_executable_path() on FreeBSD including the nil-terminator
2025-04-12 21:33:44 +02:00
Jeroen van Rijn
41d4ddbc5e
Add reflect.length + reflect.capacity support for #simd[N]T
2025-04-11 22:44:02 +02:00
Jeroen van Rijn
f4ce84dfb4
Add fix to reflect.typeid_elem
2025-04-11 22:24:19 +02:00
gingerBill
1980ad8851
Merge pull request #4998 from dozn/patch-1
...
[core:time/timezone] Nanoseconds Not Preserved on Calls to `timezone.datetime_to_tz`
2025-04-10 14:01:25 +01:00
gingerBill
8629e5c958
Keep -vet happy
2025-04-10 11:41:05 +01:00
gingerBill
1f814c33dc
Support subtargets in build tags: #build darwin:generic and #build linux:android, darwin:ios
2025-04-10 11:36:03 +01:00
gingerBill
145dac5b75
Merge pull request #5016 from Barinzaya/fix-math-nextafter
...
Fix `math.nextafter` skipping from 0 to 1
2025-04-08 13:13:51 +01:00
Jeroen van Rijn
d77b8aeaa1
Merge pull request #5018 from Barinzaya/fix-fmt-bitset-nonzero-enum
...
Fix printing of `bit_set[Enum]` when `min(Enum) != 0`
2025-04-07 22:01:19 +02:00
Barinzaya
92ac86ae3c
Fixed fmt handling of bit_set[Enum] when min(Enum) != 0.
...
The lower bound of the `bit_set` was only being applied *after*
searching for a matching enum value, so values wouldn't line up if the
minimum value of the enum wasn't 0.
2025-04-07 15:41:21 -04:00
Jeroen van Rijn
716bd479a9
Disallow .Multiline in iterator.
2025-04-07 21:33:57 +02:00
Barinzaya
bffa0eaa58
Fixed math.nextafter procs skipping from 0 to 1.
2025-04-07 13:38:10 -04:00
Jeroen van Rijn
2b26c0b39e
Remove now unused field.
2025-04-07 15:02:36 +02:00
Jeroen van Rijn
a5e513567b
Optimize regex match iterator.
...
Reuse virtual machine and capture groups between matches.
2025-04-07 14:58:41 +02:00
Jeroen van Rijn
c13b68f103
Fix os2/process defer error.
2025-04-07 13:33:21 +02:00
Jeroen van Rijn
3287e1b0f0
Fix HXA defer warning
2025-04-07 13:19:00 +02:00
Jeroen van Rijn
9a2b6c01aa
Return loop index in regex iterator.
2025-04-06 21:45:37 +02:00
Jeroen van Rijn
66077add33
{.Glboal} implicit in regex allocator.
2025-04-06 21:13:02 +02:00
Jeroen van Rijn
cdc56dc691
Add iterator for core:text/regex.
...
Usage:
```odin
haystack := `xxfoobarxfoobarxx`
pattern := `f(o)ob(ar)`
it := regex.create_iterator(haystack, pattern, {.Global}) or_return
defer regex.destroy(it)
for capture in regex.match(&it) {
fmt.println(capture)
}
```
2025-04-06 14:19:14 +02:00
Jeroen van Rijn
a6977ac733
Remove stray import.
2025-04-05 19:25:39 +02:00
Jeroen van Rijn
4b203d0c78
Fix segfault in core:sys/info on WSL2
2025-04-05 19:23:58 +02:00
Jeroen van Rijn
8d283cefa0
Merge pull request #5007 from laytan/net-errors-overhaul
...
net: rework errors to be cross-platform
2025-04-05 17:53:10 +02:00
Laytan Laats
ff7d55a8e1
net: rework errors to be cross-platform
2025-04-05 17:35:19 +02:00
Jeroen van Rijn
f7c4c80ef3
Fix broken examples in documentation tester.
...
No more:
```
We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo"
The following procedures were found:
bar()
```
2025-04-05 16:36:26 +02:00
Jeroen van Rijn
8480295b60
Merge pull request #4993 from Sojamann/small-array-doc
...
[DOC] Add documentation for package core:container/small_array
2025-04-05 15:49:51 +02:00
Robin Bergewski
e963ba12fc
core:container/small_array: add package documentation
2025-04-05 15:38:42 +02:00
dozn
af0d6426c0
[core:time/timezone] Nanoseconds Not Preserved on Calls to timezone.datetime_to_tz
2025-04-04 04:01:02 -07:00
Harold Brenes
c5980ba6c4
Add linux build tag to core/sys/linux/sys.odin
2025-04-02 16:39:25 -04:00
gingerBill
70ddb74e40
Add mem.make_over_aligned
2025-03-31 10:51:02 +01:00
gingerBill
dcb683927e
Fix indentation
2025-03-31 10:40:03 +01:00
gingerBill
08ad2d20cd
Merge pull request #4986 from hardliner66/bugfix/use_correct_size_when_resolving_symbols
...
Use the proper size for SizeOfStruct to make resolving of procedure names work
2025-03-30 22:28:19 +01:00
Steve Biedermann
61610fa033
Use the proper size for SizeOfStruct
2025-03-30 18:11:41 +02:00