aboutsummaryrefslogtreecommitdiff
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * | | | | | Windows was defaulting to the std handles of the current process, which is wrongLaytan2025-05-061-6/+32
| | | | | | | | |
| | * | | | | | | Merge pull request #5108 from Barinzaya/core-simd-indices-redadd-redmulgingerBill2025-05-061-2/+192
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Alternate `reduce_add`/`reduce_mul` intrinsics
| | | * | | | | | | Added alternate reduce-add/reduce-mul intrinsics.Barinzaya2025-05-051-2/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new reduce_add/reduce_mul procs perform the corresponding arithmetic reduction in different orders than sequential order. These alternative orders can often offer better SIMD hardware utilization. Two different orders are added: pair-wise (operating on pairs of adjacent elements) or bisection-wise (operating element-wise on the first and last N/2 elements of the vector).
| | * | | | | | | | Merge pull request #5124 from Barinzaya/core-simd-bmi-intrinsicsgingerBill2025-05-062-0/+125
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | BMI/BMI2 Intrinsics
| | | * | | | | | | | Added BMI and BMI2 intrinsics.Barinzaya2025-05-062-0/+125
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The BMI ones mostly aren't particularly interesting--they're mostly trivially representable in-language--but PDEP and PEXT from BMI2 could be.
| | * | | / / / / / Fix: Correct value cloning in os2._set_env for POSIXBrian2025-05-061-1/+1
| | | |_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The _set_env procedure in core/os/os2/env_posix.odin was incorrectly cloning the 'key' argument for 'cval' instead of the 'value' argument. This resulted in set_env effectively setting the environment variable's value to its own key. This commit corrects the typo to use the 'value' argument.
| | * | | | | | | Fix CreateDibSection bindingJeroen van Rijn2025-05-051-1/+1
| | |/ / / / / /
| | * | | | | | Add `simd.indices` and docsgingerBill2025-05-051-0/+14
| | | | | | | |
| | * | | | | | Merge pull request #5110 from omark96/feat/get_window_thread_process_idgingerBill2025-05-051-0/+2
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | win/sys: Add GetWindowThreadProcessId
| | | * | | | | | win/sys: Add GetWindowThreadProcessIdomark962025-05-031-0/+2
| | | | | | | | |
| | * | | | | | | Merge pull request #5112 from blob1807/masterLaytan2025-05-051-1/+1
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | `core:bufio`: Fix typo from `b.w-b.w` to `b.w-b.r`
| | | * | | | | | | Fix typo from `b.w-b.w` -> `b.w-b.r`blob18072025-05-041-1/+1
| | | | | | | | | |
| | * | | | | | | | Fix change_times on Windows and simplify time handling in statJeroen van Rijn2025-05-042-21/+29
| | | | | | | | | |
| | * | | | | | | | os2: Don't try to translate Windows file attributes to Unix mode flagsJeroen van Rijn2025-05-042-20/+36
| | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, fix `chmod`. It passed the wrong struct size to `SetFileInformationByHandle`.
| | * | | | | | | Proper fix for executable name on Linux.Jeroen van Rijn2025-05-041-36/+27
| | | | | | | | |
| | * | | | | | | Fix `executable_path` info on LinuxJeroen van Rijn2025-05-041-3/+24
| | |/ / / / / /
| | * | | | | | updated `file_windows.odin` to follow coding conventionsRohan Jadav2025-05-011-4/+5
| | | | | | | |
| | * | | | | | os2: Use win32_wstring_to_utf8 over win32_utf16_to_utf8 when converting ↵Jamie Dennis2025-04-301-1/+1
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | FIND_DATAW to File_Info
| | * | | | | Fixed an overflow when decoding a large CBOR slice.Barinzaya2025-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial allocation for the slice is limited to prevent untrusted data from forcing a huge allocation, but then the dynamic array was created with a capacity of the unlimited length, rather than the actual capacity of the allocation. This was causing a buffer overrun.
| | * | | | | Add cbor.unmarshal_from_bytes taking a []byteJeroen van Rijn2025-04-291-0/+6
| | | | | | |
| | * | | | | Fix lru.removeJeroen van Rijn2025-04-291-1/+1
| | | | | | |
| | * | | | | Fix typo in private functionEly Alon2025-04-281-2/+2
| | | | | | |
| * | | | | | fix frequency grabColin Davidson2025-06-082-3/+9
| | | | | | |
| * | | | | | Merge branch 'master' into macharenaColin Davidson2025-04-26329-9287/+22352
| |\| | | | |
| | * | | | | fix: Pipe size on windows.Rohan Jadav2025-04-271-2/+7
| | | | | | |
| | * | | | | Add `copy_directory`gingerBill2025-04-251-0/+27
| | | | | | |
| | * | | | | Merge pull request #5072 from Lperlind/asangingerBill2025-04-251-10/+43
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | Add more asan support to the odin runtime and begin sanitizing allocators
| | | * | | | | Add base:sanitizer packageLucas Perlind2025-04-241-22/+23
| | | | | | | |
| | | * | | | | Add more asan support to the odin runtime and begin sanitizingLucas Perlind2025-04-241-10/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allocators This adds various bindings to the asan runtime which can be used to poison/unpoison memory handed out by various allocators. This means we can catch use after free memory bugs when using operations such as free_all during runtime. Asan poisoning are added for the follow allocators in mem: Arena (including temporary arenas) Scratch Stack Small_Stack Additionally a bug in the stack allocator was fixed to disallow freeing in the middle of the stack (caught by the asan!). I plan on adding support for all the allocators in core. This is just a good starting point and were some of the easiest ones to implement asan for.
| | * | | | | | Added `tick_add` proc to `core:time`.Barinzaya2025-04-241-0/+7
| | |/ / / / /
| | * | | | | Correctly capitalize 'E' for the %E format specifier (#5065)mtarik34b2025-04-221-1/+4
| | | | | | |
| | * | | | | Fix float64_range exampleJeroen van Rijn2025-04-211-2/+2
| | | | | | |
| | * | | | | Add commentJeroen van Rijn2025-04-191-0/+4
| | | | | | |
| | * | | | | Fix parsing of CDATA tags (#5059)Jeroen van Rijn2025-04-193-92/+99
| | | | | | | | | | | | | | | | | | | | | Fixes #5054
| | * | | | | Replace default_tcp_options with constant (#5056)Jeroen van Rijn2025-04-196-16/+16
| | | | | | | | | | | | | | | | | | | | | Replace `default_tcp_options` with constant
| | * | | | | Merge pull request #5042 from fusion32/fix-once-do-without-data-contextlessgingerBill2025-04-181-2/+2
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | make once_do_without_data_contextless actually contextless
| | | * | | | | make once_do_without_data_contextless actually contextlessfusion322025-04-161-2/+2
| | | |/ / / /
| | * | | | | Merge pull request #5052 from harold-b/hb/fix-ns-dictionary-selectorsLaytan2025-04-171-2/+2
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | Fix 2 selectors in NSDictionary
| | | * | | | | Fix 2 selectors in NSDictionaryHarold Brenes2025-04-171-2/+2
| | | | | | | |
| | * | | | | | Early out and propagate `nil` in `create*`Jeroen van Rijn2025-04-171-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If allocation of a `^Thread` failed, `create*` now properly return `nil`, so you can assert on that instead of calling `thread.destroy` on a null pointer, say.
| | * | | | | | Fix #5049Jeroen van Rijn2025-04-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep in mind that `thread.create` needs an allocator to be set, as it returns `^Thread`.
| | * | | | | | Let `core:container/priority_queue` return `runtime.Allocator_Error`Jeroen van Rijn2025-04-171-6/+9
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | `init`, `reserve` and `push` now return `runtime.Allocator_Error`.
| | * | | | | Merge pull request #5041 from mtarik34b/remove-redundant-code-in-string-justifyLaytan2025-04-171-2/+0
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | Remove redundant `builder_init()` calls from `strings.left_justify()` and `strings.right_justify()`
| | | * | | | Remove redundant calls to builder_initmtarik34b2025-04-161-2/+0
| | | | | | |
| | * | | | | Fix `strconv.parse_float` related procedures caused by a shifting problemgingerBill2025-04-162-34/+24
| | |/ / / /
| | * | | | Change hashing rules for float-like types to make `0 == -0`gingerBill2025-04-161-3/+40
| | | | | |
| | * | | | Get rid of duplicate `math.signbit` in favor of `math.sign_bit`Jeroen van Rijn2025-04-152-27/+1
| | | | | |
| | * | | | net: add ECONNRESET to the error handling of recvLaytan2025-04-141-2/+2
| | | | | |
| | * | | | `core:mem/tlsf`: Add early-out in OOM logicJeroen van Rijn2025-04-141-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | | Remove now-implemented TODOJeroen van Rijn2025-04-141-2/+0
| | | | | |