gingerBill
6d7afd3fa9
Update format version
2024-03-21 11:59:45 +00:00
gingerBill
006ea11c56
Update doc-format for #by_ptr and #no_broadcast parameters
2024-03-21 11:58:32 +00:00
gingerBill
29e5f94c2a
Add #no_broadcast procedure parameter to disallow automatic array programming broadcasting on procedure arguments
2024-03-21 11:52:48 +00:00
Jeroen van Rijn
8f0d74c08d
Merge pull request #3292 from Kelimion/rfc3339
...
Add WiP datetime package and tests.
2024-03-20 23:23:27 +01:00
Jeroen van Rijn
fda283c55e
More better validation.
2024-03-20 23:09:09 +01:00
Jeroen van Rijn
ed5fd15f6e
Ensmallen Date struct.
2024-03-20 18:13:29 +01:00
Jeroen van Rijn
89ca15014c
Ensmallen Time struct.
2024-03-20 18:09:07 +01:00
Jeroen van Rijn
9c144dd24f
Change Ordinal from int to i64
2024-03-20 17:56:22 +01:00
gingerBill
56004c56fc
Merge pull request #3295 from kavalee/parser-newline-fix
...
Fixed issue #3264 regarding `core:odin/parser` compound literal not allowing a newline
2024-03-20 10:09:55 +00:00
Laytan Laats
d0b3b18e26
update macOS releases for core:sys/info and odin report
2024-03-20 00:14:01 +01:00
gingerBill
a750fc0ba6
Add #row_major matrix[R, C]T
...
As well as `#column_major matrix[R, C]T` as an alias for just `matrix[R, C]T`.
This is because some libraries require a row_major internal layout but still want to be used with row or major oriented vectors.
2024-03-19 21:05:23 +00:00
Aaron Kavaler
096b4f5454
fixed issue #3264 regarding core:odin/parser not allowing a newline at the end of a compound literal
2024-03-18 20:33:02 -07:00
Jeroen van Rijn
72c15d7699
Add WiP datetime package and tests.
...
A new package `core:time/datetime` has been added which can represent moments much further in the past and future than `core:time`.
It is based on *the* reference work on the subject, Calendrical Calculations Ultimate Edition, Reingold & Dershowitz.
More procedures will be added to it in the future, to for example calculate the 3rd Thursday in March to figure out holidays.
The package has been tested for more than a year and can handle dates 25 quadrillion years into the past and future with 64-bit day ordinals, or 5 million with 32-bit ones.
This also fixes a longstanding bug where converting between YYYY-MM:DD hh:mm:ss and `time.Time` and back could result in a mismatch.
RFC 3339 timestamps can now also be parsed using the `core:time` package.
2024-03-18 16:47:16 +01:00
gingerBill
04f0fbf23a
Merge pull request #3272 from iansimonson/add_getrusage_darwin
...
Add getrusage syscall for mac/darwin
2024-03-14 19:45:25 +00:00
Ian Simonson
835effdef1
Use c.long rather than int
2024-03-14 09:36:57 -07:00
Ian Simonson
c7bec2962e
Fix __darwin_suseconds_t definition
...
__darwin_suseconds_t is defined as long which on macos
64 bit systems is equivalent to 8 bytes. It is equivalent
to Odin int type _not_ i32
2024-03-14 07:21:26 -07:00
Aaron Kavaler
ac634acd4b
fixed slice.unique and slice.unique_proc
2024-03-13 19:19:31 -07:00
Ian Simonson
34c4389d75
No need for timeval definition
...
It already existed so lets just use that rather than
redeclaring it
2024-03-13 14:58:56 -07:00
Ian Simonson
8917a7ef88
Make RUsage more inline with macos man page
...
Swap to tabs to adhere to the Odin Core library standard
and also rename the rusage fields to match the actual
definitions from the macos bsd man pages
2024-03-13 14:51:17 -07:00
Ian Simonson
d7b1901b16
Fix syscall_munmap in darwin
...
this was using the .mmap syscall number when it should be
using the .munmap syscall number
2024-03-13 10:39:50 -07:00
gingerBill
97d6bf6d8f
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-13 16:30:28 +00:00
gingerBill
271f84ab5b
Expect stream as a field directly on os2.File
2024-03-13 16:30:22 +00:00
Chris
55141bdbb1
Make Mutex_Allocator use Ada_Case
2024-03-13 15:29:02 +00:00
Ian Simonson
26d107ce64
Add getrusage syscall for mac/darwin
...
The syscall number existed but the wrapper for calling it
did not. Also adds the RUsage struct to receive the data.
Naming is kept the same as in sys/linux
2024-03-13 08:07:12 -07:00
Ed Yu
dd74a57c44
Expose internal invmod and int_exponent_mod with more consistent naming
2024-03-12 11:01:09 -07:00
spindlebink
b2e7eb4db4
Properly initialize return matrices in linalg.orthonormalize
2024-03-09 09:10:25 -06:00
Jeroen van Rijn
fc9d3ec5a7
Merge branch 'master' of github.com:odin-lang/Odin
2024-03-08 18:06:13 +01:00
Jeroen van Rijn
db03c86544
Fix typo in big.internal_invmod
...
Fixes #3253
2024-03-08 18:05:34 +01:00
gingerBill
032e193d0d
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-08 13:20:33 +00:00
gingerBill
0f83ab466f
Minor change to spacing when printing a map
2024-03-08 13:20:27 +00:00
gingerBill
53ce945034
Merge pull request #3230 from avanspector/haiku
...
Add Haiku OS support
2024-03-08 11:15:13 +00:00
gingerBill
0e168dd292
Merge pull request #3241 from Hyrtwol/sys-windows
...
Gathered what I made for sys/windows
2024-03-07 15:26:31 +00:00
gingerBill
5ff6a25bdc
Improve formatting for %# on maps
2024-03-07 13:45:52 +00:00
gingerBill
b6b8e640f5
Replace b with _ as it is not needed
2024-03-07 13:41:54 +00:00
gingerBill
573402c97e
Begin work on %w - 'w'rite as valid Odin literals
2024-03-07 13:39:44 +00:00
gingerBill
e01701ce0e
Fix typo
2024-03-07 12:32:46 +00:00
gingerBill
f9b14500be
Add default_commit_size to virtual.Arena
2024-03-07 12:30:34 +00:00
gingerBill
6d5b1800fe
Fix typo
2024-03-06 16:34:17 +00:00
gingerBill
0f5328973e
Add mem.Mutex_Allocator
2024-03-06 16:33:54 +00:00
gingerBill
65277ddd6b
Add missing attribute
2024-03-06 16:30:39 +00:00
gingerBill
46718d6d85
Add Query_Info to Buddy_Allocator
2024-03-06 16:26:10 +00:00
gingerBill
2a0543d2f0
Add mem.Buddy_Allocator
2024-03-06 16:14:45 +00:00
gingerBill
792f06a234
Fix indentation
2024-03-06 15:29:07 +00:00
gingerBill
ffa3669d02
Add virtual.Arena utilities: new, new_aligned, make
2024-03-06 15:23:56 +00:00
gingerBill
c05a92ab3e
Merge pull request #3215 from blob1807/json-better-enum-support
...
core:encoding/json Add support for writing enum value names
2024-03-06 14:56:19 +00:00
gingerBill
78c05a49a3
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-03-06 14:52:04 +00:00
gingerBill
8d496dc3d0
Fix #3173
2024-03-06 14:51:56 +00:00
gingerBill
703eab2f15
Merge pull request #3229 from Yawning/feature/moar-crypto
...
core/crypto: More improvements/additions
2024-03-06 14:49:15 +00:00
gingerBill
04bfc926ee
Merge pull request #3238 from laytan/libc-free-raylib-and-rectpack
...
makes raylib and stb_rect_pack free of libc
2024-03-06 14:11:41 +00:00
gingerBill
6d3a57b4ac
Zero intrinsics.alloca
2024-03-06 13:48:37 +00:00