Commit Graph

16976 Commits

Author SHA1 Message Date
gingerBill
4df2de057b Add Type_Info_Fixed_Capacity_Dynamic_Array to json 2026-03-11 18:43:01 +00:00
gingerBill
f1dbe9c242 [dynamic; N]T proof of concept: fixed capacity dynamic array (akin to small_array.Small_Array(N, T)) 2026-03-11 16:46:33 +00:00
gingerBill
143a8762a0 Merge branch 'master' of https://github.com/odin-lang/Odin 2026-03-11 14:22:49 +00:00
gingerBill
b7bb7a1dc4 Use scope_reserve call directly 2026-03-11 14:22:36 +00:00
gingerBill
ea3f5b1ead Merge pull request #6389 from connnnal/d3d12-1.619.x-partial
Partial 1.619.x d3d12 bindings
2026-03-11 14:20:54 +00:00
gingerBill
461486ef6c Fix comments which used /// instead of // 2026-03-11 13:41:27 +00:00
gingerBill
770ee8e420 Merge pull request #6392 from maximusdionyssopoulos/master
core:sys/darwin/Foundation: Fix NSTimer binding
2026-03-11 11:45:40 +00:00
gingerBill
c4ef17db3d Merge pull request #6402 from bymehul/fix-6401-generic-cycle-deadlock
Fix generic cycle deadlock in struct layout
2026-03-11 11:45:22 +00:00
gingerBill
03fff831bc Merge pull request #6400 from bymehul/fix-bitfield-literal-6396
fix: handle full-width bit_field literal masks
2026-03-11 11:33:41 +00:00
Jeroen van Rijn
7fc670c8a6 Merge pull request #6403 from mifreundorfer/fix-auto-reset-event-deadlock
Fix auto reset event signal deadlock
2026-03-11 10:25:11 +01:00
Michael Freundorfer
8b4cd5a3f3 Fix auto reset event signal deadlock
The status variables need to be updated every iteration, otherwise the thread
will spin forever, if another thread waits on the event between the load
and the compare exchange, because the old value is never updated.
2026-03-11 10:08:58 +01:00
bymehul
763c8d3a42 Fix generic cycle deadlock in struct layout 2026-03-11 03:04:26 +05:30
bymehul
c9e55d3add fix: handle full-width bit_field literal masks 2026-03-10 23:21:19 +05:30
gingerBill
7a41092dcc Merge pull request #6395 from daninaga/master
correcting SIMD shr examples documentation
2026-03-10 12:25:19 +00:00
turu
72db43f2d6 correcting SIMD shr examples documentation 2026-03-09 21:33:23 -05:00
Jeroen van Rijn
7ae1a4c456 Merge pull request #6394 from StudebakerGuy/ucd
UCD minor error
2026-03-10 00:50:11 +01:00
StudebakerGuy
d3a71c5dc6 string_to_proplist_property returns error
string_to_proplist_property was being used with an or_return but
did not return an error. The function now returns an error when
it cannot identify a property.
2026-03-09 19:32:27 -04:00
StudebakerGuy
20b4d5757f Corrected type name Prop_List_Property 2026-03-09 19:25:00 -04:00
Jeroen van Rijn
4cf2f1a61b Merge pull request #6391 from mtarik34b/duration-unit-spacing
Add formatting flag for space between time.Duration and unit of measurement
2026-03-10 00:21:10 +01:00
Tarık B.
e119b9883f Use fi.space instead of fi.hash 2026-03-10 00:05:46 +01:00
Jeroen van Rijn
dca824c6af Merge pull request #6393 from Kelimion/unicode
Unicode
2026-03-09 20:00:09 +01:00
Jeroen van Rijn
d880404b84 Style 2026-03-09 19:48:28 +01:00
Jeroen van Rijn
df0d74efbe Simplify table writer 2026-03-09 19:48:27 +01:00
Jeroen van Rijn
7928d1b92c Simplify 2026-03-09 19:48:26 +01:00
Jeroen van Rijn
7b79f28522 Allow compiling with -vet -vet-tabs -strict-style -vet-style -vet-cast -warnings-as-errors -disallow-do
Support the same strict flags as used throughout the CI tests.
2026-03-09 19:48:25 +01:00
Jeroen van Rijn
3f330752cd Replace iterators; fixes line ending handling 2026-03-09 19:48:24 +01:00
StudebakerGuy
1d0510d27f is_graphic now uses the generated Unicode tables
unicode.is_graphic has been modified to use the generted Unicode
tables. The tables Me, Mn, Mc, and Zs were add as needed by is_graphic.
2026-03-09 19:48:23 +01:00
StudebakerGuy
65d0e5c82f is_symbol uses generated Unicode tables
Tables for Sm, Sc, Sk, So are now being generated. These tables
are now being searched by is_symbol
2026-03-09 19:48:22 +01:00
StudebakerGuy
8f5f1ee1cc is_punct now searches generated tables 2026-03-09 19:48:20 +01:00
StudebakerGuy
3bfa01d4a8 Generate Unicode Punctuation Tables 2026-03-09 19:48:20 +01:00
StudebakerGuy
9b38bdf849 Refactor to remove the us of if do 2026-03-09 19:48:18 +01:00
StudebakerGuy
e9943e6145 is_letter now uses generated tables
unicode.is_letter has been modified to use the generated unicode tables.
2026-03-09 19:48:18 +01:00
StudebakerGuy
69c04b696a islower now used the generated tables 2026-03-09 19:48:16 +01:00
StudebakerGuy
b4d70d3c5b Corrected issue with PropList.txt ranges 2026-03-09 19:48:15 +01:00
StudebakerGuy
090dedda1b is_number now searches generate tables 2026-03-09 19:48:14 +01:00
StudebakerGuy
e5b1f1bf94 Add procedure is_decimal
This adds the function `is_decimal` to `core/unicode`
2026-03-09 19:48:13 +01:00
StudebakerGuy
263bc8cc7e Added comment to is_digit 2026-03-09 19:48:12 +01:00
StudebakerGuy
673adf30c3 Add searing of generated tables, Fixed in_digit
This adds the functino `unicode.in_range` to search for a run in
the `Range` type used in `core/unicode/generated.odin`.

This also modifies `unicode.binary_search` so it will support searching
types other than i32 by making it support implicit parametric polymorphism.

`unicode.in_digit` has been modified to use the generated tables.
2026-03-09 19:48:11 +01:00
StudebakerGuy
9d038b23ec Add generated tables to core/unicode 2026-03-09 19:48:09 +01:00
StudebakerGuy
8f579d1f3b Added program to generate Unicode Table
This adds a program that will generate tables for use by the `core/unicode`
package. The table generated file will be `core/unicode/generated.odin`

It may be better to incorporate this into `generate_entity_table.odin`.
This can easily be accomplised if desired.
2026-03-09 19:48:09 +01:00
StudebakerGuy
c4f5f9e55a Add files needed to generate unicode tables
This commit adds the directory `/core/assets/UCD/`. This directory
contains three files; `PropList.txt`, `UnicodeData.txt`, and `license.txt`.
These files are from the Unicode Database (UCD). The first two  are used to
generate tables for `core/unicode`. The third is the license that
covers the files that make up the UCD.

These files are from Unicode version 17.0.0. The latest versions may be
found ad [ucd](https://www.unicode.org/Public/UCD/latest/ucd/).
2026-03-09 19:48:07 +01:00
Jeroen van Rijn
1b23231e4a Merge pull request #6387 from krnowak/krnowak/fix-tokenizer-init
Fix tokenizer init
2026-03-09 14:35:11 +01:00
maximusdionyssopoulos
ac6cabd5e3 fix NSTimer scheduledTimerWithTimeInterval:repeats:block: procedure 2026-03-09 21:17:20 +11:00
Tarık B.
8f101af8f8 Add formatting flag for space between time.Duration and unit 2026-03-08 21:01:31 +01:00
connnnal
e77dd887aa Partial 1.619.x d3d12 bindings 2026-03-08 16:50:53 +00:00
Jeroen van Rijn
0087d6d62e Add preserve/* to base:runtime
```odin
none :: proc "preserve/none" () {}
most :: proc "preserve/most" () {}
all  :: proc "preserve/all"  () {}

print_cc :: proc(type: any) {
	ti := type_info_of(type.id)
	p := ti.variant.(runtime.Type_Info_Procedure)
	fmt.println(p.convention)
}

main :: proc() {
	print_cc(none)
	print_cc(most)
	print_cc(all)
}
```
2026-03-08 15:05:23 +01:00
Krzesimir Nowak
7320f10de6 Fix tokenizer init 2026-03-08 12:09:12 +01:00
Jeroen van Rijn
6f5446bfc4 Merge pull request #6381 from Faker-09/mem_rollback_stack_typo
core:testing remove whitespace typo
2026-03-07 18:28:35 +01:00
Shane Shrybman
e1ea3d634b core:testing remove whitespace typo 2026-03-07 11:34:15 -05:00
Jeroen van Rijn
1b850ded79 Merge pull request #6380 from gfaster/master
fix documentation of assign_at
2026-03-07 16:17:42 +01:00