Commit Graph

15004 Commits

Author SHA1 Message Date
gingerBill c79466ab3c Merge pull request #4548 from Bazzas-Forks/linalg-clamp-length
[core:math/linalg] Add `linalg.clamp_length(vector, max_length) -> clamped_vector`
2024-12-04 12:05:06 +00:00
flysand7 49b8abe3ef Apply suggestions from code review
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-12-04 22:50:10 +11:00
Laytan 910b46ebf0 Merge pull request #4555 from ycros/fix-regex-num-groups
fix: regex's match_with_preallocated_capture returning num_groups
2024-12-04 12:46:57 +01:00
flysand7 ba6224b61a Apply suggestions from code review
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-12-04 19:11:21 +11:00
Ycros bf63e9b093 Add test for regex preallocated captures. 2024-12-04 14:38:07 +11:00
Ycros 7edc46f1b9 fix: regex's match_with_preallocated_capture returning num_groups 2024-12-04 13:51:27 +11:00
Jeroen van Rijn 04e8dcc042 Merge pull request #4554 from Kelimion/get-date
Add misc\get-date.c
2024-12-03 12:49:33 +01:00
Jeroen van Rijn ef5546aea5 Add misc\get-date.c
Prints the current date as YYYYMMDD without relying on PowerShell.

Hopefully fixes #4540
2024-12-03 12:42:13 +01:00
wrapperup 08f14db8e8 regenerate vulkan vendor bindings (1.4.303) 2024-12-02 17:48:32 -05:00
gingerBill b942479886 Minor improvement to type handing on failures 2024-12-02 15:57:20 +00:00
gingerBill 65de0256ce Fix #4535 2024-12-02 15:57:08 +00:00
gingerBill af8122e8c7 Merge pull request #4541 from Waqar144/work/thread-pool-use-queue
Use a proper Queue in thread.Pool
2024-12-02 12:04:28 +00:00
gingerBill 7d5ac2a164 Merge branch 'master' of https://github.com/odin-lang/Odin 2024-12-02 11:24:00 +00:00
gingerBill e2ba8ff6e6 Fix #4530 2024-12-02 11:23:55 +00:00
gingerBill 1a84820e83 Merge pull request #4542 from FourteenBrush/master
Pass allocator to implicitly (de)allocating procs in `core:log`
2024-12-02 10:55:09 +00:00
gingerBill d0f87913e2 Fix #4549 2024-12-02 10:49:49 +00:00
Bazzagibbs 4b76568596 Add linalg.clamp_length(vector, max_length) -> clamped_vector 2024-12-02 11:58:36 +11:00
Laytan 03a53ccce2 Merge pull request #4546 from thetarnav/correct-parsing-build-tag-newlines
Correct handling newlines between build tags in `core:odin`
2024-12-01 19:13:59 +01:00
Damian Tarnawski 26415bcb0e Correct handling newlines between build tags in core:odin
Previously I thought that each newline worked as `OR`
basically the same as `,`.

This corrects this to work as `AND` instead.
2024-12-01 18:21:26 +01:00
flysand7 8387561d0a [core/simd]: Write package documentation 2024-12-02 01:24:33 +11:00
Laytan Laats e6a9f93e9f dynlib: unload library before loading again & add LIBRARY_FILE_EXTENSION constant 2024-12-01 11:54:56 +11:00
Jeroen van Rijn 47888794c8 Fix assert when return value expected. 2024-12-01 11:54:56 +11:00
Jeroen van Rijn ad8bff4d3a Make O_RDONLY default for os.open on all platforms.
And also moved Windows file procs to `os_windows.odin`, in line with all the other platforms who didn't have a dedicated `file_<platform>.odin`
2024-12-01 11:54:56 +11:00
Evan Martinez 486a650630 Fix binomial function 2024-12-01 11:54:56 +11:00
0dminnimda 79733c5f5e src/main.cpp: apply suggestion
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-12-01 11:54:56 +11:00
0dminnimda 27aa40c357 Update version in more places 2024-12-01 11:54:56 +11:00
0dminnimda 496b676f12 Fix a mistake in build_odin.sh 2024-12-01 11:54:56 +11:00
0dminnimda 456279feba Add support for llvm version 19 2024-12-01 11:54:56 +11:00
Laytan Laats d51692a3b4 properly keep track of current scope for debugging
Fixes #4519
2024-12-01 11:54:56 +11:00
zhylmzr 2bd6fc9ebd fix DNS_RECORD.Data error align on windows i386
fixed: https://github.com/odin-lang/Odin/issues/4520
2024-12-01 11:54:56 +11:00
Jeroen van Rijn 21ff9856d4 Check type_expr in check_procedure_param_polymorphic_type
Fixes #4523 assert.
2024-12-01 11:54:56 +11:00
Andreas T Jonsson c572c80a64 Updated NetBSD CI to pkgsrc Q3 release 2024-12-01 11:54:56 +11:00
Laytan Laats da4347f790 sys/info & odin report: rework macos version retrieval 2024-12-01 11:54:56 +11:00
Laytan Laats 76516030c4 vendor/raylib: revert removal of arm64 raygui binaries and fix import paths 2024-12-01 11:54:56 +11:00
Laytan Laats 5a201d588b add macos 15.1.1 to odin report and sys/info 2024-12-01 11:54:56 +11:00
gingerBill 1be9833073 Convert mutex guard to "try lock" 2024-12-01 11:54:56 +11:00
Jeroen van Rijn 9388f0d5a5 Add aliases for Is*Ready -> Is*Valid 2024-12-01 11:54:56 +11:00
Jeroen van Rijn 0e3572947a Fix #4508 for abs, min, max (#4516)
* Fix #4508 for abs, min, max and the rest of the builtins.

None of these segfault now:
```odin
package bug

main :: proc() {
	p :: proc() {}

	// _ = len(p())
	// _ = cap(p())

	// _ = size_of(p())
	// _ = align_of(p())

	// T :: struct {}
	// _ = offset_of(p())
	// _ = offset_of(T, p())
	// _ = offset_of(p(), foo)
	// _ = offset_of(p(), "")

	// _ = type_of(p())
	// _ = type_info_of(p())
	// _ = typeid_of(p())

	// A: [4]int
	// _ = swizzle(p())    //  :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
	// _ = swizzle(A, p()) //  :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---

	// _ = complex(p(), p())
	// _ = quaternion(p(), p(), p(), p())
	// _ = quaternion(w=p(), x=p(), y=p(), z=p())

	// _ = real(p())
	// _ = imag(p())
	// _ = jmag(p())
	// _ = kmag(p())
	// _ = conj(p())

	// _ = expand_values(p())

	// _ = min(p())
	// _ = max(p())
	// _ = abs(p())
	// _ = clamp(p(), p(), p())

	// _ = soa_zip(p())
	// _ = soa_unzip(p())
}
```
2024-12-01 11:54:56 +11:00
gingerBill 3c3c59fc03 Allow for odin help build etc 2024-12-01 11:54:56 +11:00
Jeroen van Rijn 7e4aafe239 Add comment explaining #4515 test. 2024-12-01 11:54:56 +11:00
Jeroen van Rijn 66c57e380a Test #4515 2024-12-01 11:54:56 +11:00
o:tone d15d152746 fix unmarshal unhandled error (#4515)
* fix unmarshal unhandled error
2024-12-01 11:54:55 +11:00
lxmcf 0f7b1b426f Resolve indentation issues 2024-12-01 11:54:55 +11:00
Alex Macafee 58d08090f7 Add missing trailing commas 2024-12-01 11:54:55 +11:00
lxmcf 9f1e3862b5 Update vendor:raylib to raylib 5.5 2024-12-01 11:54:55 +11:00
gingerBill 329855e586 Delete imports of removed packages 2024-12-01 11:54:54 +11:00
gingerBill d85de2e54e Remove core:c/frontend 2024-12-01 11:54:54 +11:00
Jeroen van Rijn 4d9a9ec3f5 Fix #4509 2024-12-01 11:54:54 +11:00
Laytan Laats 1d8eb3aac4 checker: only error with -vet-cast when it is actually castable 2024-12-01 11:54:54 +11:00
Colin Davidson 876989b3ab oops, copy-paste-bug 2024-12-01 11:54:54 +11:00