Commit Graph

7750 Commits

Author SHA1 Message Date
gingerBill
49120b0fa9 Use q.xyz rather than transmute 2026-07-02 13:33:52 +01:00
Jeroen van Rijn
7b57c3eff2 User 2026-07-01 11:37:44 +02:00
Jeroen van Rijn
92ced49bbd Fix typo 2026-07-01 11:16:28 +02:00
Jeroen van Rijn
4b9f396cb3 Fix whitespace normalize 2026-06-30 13:23:44 +02:00
gingerBill
7d32c733d3 json.match utility procedure 2026-06-29 13:44:45 +01:00
gingerBill
9e713e2940 Update core:encoding/json to use proc groups and @(require_results) 2026-06-29 13:44:29 +01:00
gingerBill
859290a9de Support where clauses for proc groups 2026-06-24 13:31:11 +01:00
gingerBill
9be5790dbe Fix -> (#simd[N]T) like types in signature returns 2026-06-24 11:09:53 +01:00
gingerBill
b1e9d83ea2 Merge pull request #6880 from RoBaertschi/master
Fix #6874
2026-06-24 10:36:20 +01:00
Bärtschi Robin
3883d079c8 Fix #6874 2026-06-24 08:04:17 +02:00
Barinzaya
583a397e1d Fixed alignment handling in mem.Dynamic_Arena. 2026-06-24 00:58:45 -04:00
gingerBill
5647a1b2fc Merge pull request #6873 from bennyyip/regex/inject
core:text/regex: improve compiler performance
2026-06-23 22:34:26 +01:00
bennyyip
f58d7edb39 pack consecutive inject 2026-06-23 22:19:59 +08:00
bennyyip
55e513fbd7 align struct fields 2026-06-23 22:19:26 +08:00
gingerBill
8c63a70aad Fix identation 2026-06-23 13:14:56 +01:00
gingerBill
87297950c1 Merge pull request #6435 from mtarik34b/improve-flags-bitset-support
Improve `bit_set` support in the `flags` package
2026-06-23 12:50:21 +01:00
gingerBill
2b684ed1ec Add json.unparse allowing for json.Value to io.Writer without the need for RTTI 2026-06-23 12:47:38 +01:00
gingerBill
6698ebacb1 Integrate docs from PR #5119 2026-06-23 12:35:58 +01:00
gingerBill
a1fe7222bb Remove using fmt for example docs 2026-06-23 12:28:27 +01:00
gingerBill
dc7cfbf443 Merge pull request #6671 from MaierN/master
fix memory leak and inconsistency in os.read_entire_file_from_file
2026-06-23 12:20:36 +01:00
gingerBill
1b75c44508 Change mem.Dynamic_Arena's alignment to be minimum_alignment 2026-06-23 12:18:15 +01:00
gingerBill
e30da0beb3 Remove old dynamic_pool_ aliases 2026-06-23 12:10:26 +01:00
gingerBill
3b56706439 Merge pull request #6471 from Carlyle-Foster/master
rename DEFAULT_PAGE_SIZE to PAGE_SIZE
2026-06-23 12:08:37 +01:00
gingerBill
a20363c2bf Add windows.GetConsoleScreenBufferInfoEx 2026-06-23 11:46:37 +01:00
gingerBill
38fa18023d Use intrinsics.count_leading_zeros internally for math.next_power_of_two 2026-06-23 11:39:19 +01:00
bennyyip
7bbfc50430 core:text/regex: improve compiler performance 2026-06-23 09:45:10 +08:00
gingerBill
244430bd4a Allow for struct #raw_union #packed 2026-06-22 12:55:15 +01:00
gingerBill
577889383d Merge pull request #6861 from BradLewis/fix/parse-multiline-ternary
Correct divergence with expr levels causing failures with the odin parser
2026-06-21 23:08:05 +01:00
Brad Lewis
76fb0aa975 Correct divergence with expr levels causing failures with the odin parser 2026-06-20 15:42:43 +10:00
gingerBill
abbfe793e0 fmt on h' floats: force the width to always be bit_size/4 to accurately represent the number 2026-06-19 09:20:26 +01:00
Jeroen van Rijn
7d19f3b735 Merge pull request #6463 from ngortheone/bufio_reader_read_doc
doc: use punctuation to disambiguate buifio.reader_read_slice doc
2026-06-13 21:52:11 +02:00
gingerBill
a0e29fca80 Merge pull request #6822 from RainerXE/pool-free-list-aba
core/container/pool: fix ABA race in the free list
2026-06-13 14:03:19 +01:00
TheRadischen
f41b57f1cc fixed type in slice.rotate
sry bll,
i swear im never programming tired again
2026-06-12 21:48:41 +02:00
RainerXE
baf85d78a3 core/container/pool: fix ABA race in the free list 2026-06-12 09:28:14 +02:00
RainerXE
b029cf08aa core/nbio: fix use-after-free of op.l in cross-thread exec 2026-06-11 23:34:20 +02:00
bluziDev
83702108a4 Add control sequences for Alternate Screen Buffer
Adds constants DECASB_ENTER and DECASB_EXIT to ansi.odin. ASB stands for Alternate Screen Buffer. DECASB_ENTER ( ?1049h ) saves the cursor position, clears the alternate buffer, and switches the view to said buffer. DECASB_EXIT ( ?1049l ) restores the main buffer's contents and the cursor position.
Commonly used by editors, games, and TUIs in general to avoid polluting the main buffer.
2026-06-10 23:48:33 -06:00
WP. Yingamphol
d3b7251757 Fix error message: 'do' not on the same line as 'for' 2026-06-07 20:22:12 +07:00
gco
77af26b5c8 fix buffer overflow when running a test which shrinks a dynamic array that was not the last allocation 2026-06-07 11:23:05 +10:00
Laytan Laats
23f57a4328 nbio(posix): fix wake_up error when the event loop hasn't ticked yet 2026-06-05 21:07:36 +02:00
Jeroen van Rijn
213b5e779b Merge pull request #6732 from adihodos/fix-backtrace
Link against libstdc++exp for backtrace support
2026-06-05 16:42:04 +02:00
gingerBill
1c9fa5d0b7 Merge pull request #6731 from odin-lang/bill/expand-values-operator
Support `**` as `expand_values` operator: `**x` == `expand_values(x)`
2026-06-05 11:42:08 +01:00
Jeroen van Rijn
d6f6c476fc Merge pull request #6765 from MightyChubz/fix/linux-inaccurate-meminfo
fix: Get meminfo from `/proc/meminfo` over `sysinfo()`
2026-06-05 09:39:30 +02:00
Alexander Cusaac (MightyChubz)
05f0539960 refactor: Move mem_unit before loop and apply it in switch statement 2026-06-04 13:21:27 -04:00
Alexander Cusaac (MightyChubz)
9942625c63 refactor: Use default_context() over removing "contextless" 2026-06-04 13:17:42 -04:00
Alexander Cusaac (MightyChubz)
c9621748a4 typo
oops
2026-06-03 16:55:51 -04:00
Alexander Cusaac (MightyChubz)
26f824eb8e docs: Updated comment to explain approach more accurately 2026-06-03 16:52:58 -04:00
Alexander Cusaac (MightyChubz)
962f8dfd1b refactor: Add fallback to sysinfo() if /proc/meminfo can't be read
This is likely to never _actually_ execute, and the possibility of this
failing is extremely slim, but if this _does_ fail, then this fallback
should catch it, as long as I'm understanding things correctly. If the
fallback fails, we just go back to the original assert that existed
before.
2026-06-03 16:47:37 -04:00
Alexander Cusaac (MightyChubz)
3d3aa45e02 refactor: Update fallback to just return MemFree 2026-06-03 16:45:06 -04:00
Alexander Cusaac (MightyChubz)
32de482025 docs: Add small comment to explain purpose of approach 2026-06-03 16:44:31 -04:00
TheRadischen
639196f28d Update slice.odin
added a check for rotate_left

rotating with 0 length array crashes
2026-06-03 22:33:49 +02:00