Commit Graph

8331 Commits

Author SHA1 Message Date
gingerBill
5ec4719124 Merge pull request #2523 from jcmoyer/fix-2056
Zero non-diagonal elements when converting to matrix
2023-05-18 11:25:44 +01:00
gingerBill
911c98e235 Merge pull request #2525 from laytan/fix-buffer-init-cap-0-wrong-allocator
fix bytes.buffer_init_allocator not using given allocator if len/cap is 0
2023-05-18 11:24:27 +01:00
gingerBill
535c64c318 Merge pull request #2534 from Tetralux/fix-append-nothing-loc
[runtime] Pass along #caller_location in append_nothing()
2023-05-18 11:23:46 +01:00
gingerBill
171f38b9b5 Allow implicit conversion between boolean types within or_return
This is to improve the experience using third-party code, especially foreign C-like code which may use a distinct boolean or a different sized one
2023-05-18 11:06:02 +01:00
Jeroen van Rijn
31c21a054b Merge pull request #2543 from Yawning/fix/cpuid-test
core/sys/info: Fix the CPUID check
2023-05-16 17:04:42 +02:00
Yawning Angel
def4fdc3f3 core/sys/info: Fix the CPUID check
This needs to test that the n-th bit is set.
2023-05-16 23:52:15 +09:00
Jeroen van Rijn
3fed1af7df Merge pull request #2542 from Yawning/bug/cpuid-osxsave
core/sys/info: Workaround extremely rare XGETBV issues
2023-05-16 16:07:43 +02:00
Yawning Angel
adb4692ce8 core/sys/info: Workaround extremely rare XGETBV issues
Someone ran into this on Discord, so adopt the same workaround that
chrome did, by checking both OSXSAVE and XSAVE before calling XGETBV.

The old way of detecting AVX is correct per Intel, but such is life.
2023-05-16 22:56:16 +09:00
gingerBill
bb4ff84a4a Add extra mutex for error block stuff 2023-05-16 11:52:02 +01:00
Jeroen van Rijn
5d2c1b175e Merge pull request #2541 from laytan/add-hex-and-expand-percent-decoding
fix hex.encode and add tests for the package
2023-05-15 22:32:27 +02:00
Laytan Laats
2ab6de8ee4 fix hex.encode and add tests for the package 2023-05-15 20:52:07 +02:00
Jeroen van Rijn
1896ae5d15 Merge pull request #2533 from laytan/add-hex-and-expand-percent-decoding
add encoding/hex and use it to expand the percent decoding chars
2023-05-15 19:25:31 +02:00
Laytan Laats
6e4fab19a2 fix indentation and simplify hex.decode_sequence 2023-05-15 18:40:36 +02:00
gingerBill
103dcfe897 Merge pull request #2539 from powerc9000/patch-6
lua MAXSTACK should be 1000000 on 32 bits OR greater
2023-05-14 22:05:28 +01:00
Clay Murray
8caadbacf7 lua MAXSTACK should be 1000000 on 32 bits OR greater
Code only checks if 4 bytes for `rawptr` size. However lua defines the macro (that I assume the odin code is based on) as:

```
/*
@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits.
*/
#define LUAI_IS32INT	((UINT_MAX >> 30) >= 3)
```

This error broke `upvalues` because it would be looking for the wrong index for lua to find them at.
2023-05-14 14:00:38 -06:00
Jeroen van Rijn
870d776875 Merge pull request #2537 from CORDEA/feature/join-url-queries
Join URL queries with &
2023-05-14 09:03:10 +02:00
Yoshihiro Tanaka
59e66ffe49 Add test for net.split_url 2023-05-14 12:15:20 +09:00
Yoshihiro Tanaka
418a0132d0 Join URL queries with & 2023-05-14 12:15:20 +09:00
Laytan Laats
a381846034 add encoding/hex and use it to expand the percent decoding chars 2023-05-14 03:23:24 +02:00
Tetralux
1c5ce75d9f [runtime] Pass along #caller_location in append_nothing() 2023-05-12 23:05:28 +00:00
gingerBill
8693a045bb Revert "Change intrinsics.read_cycle_counter on ARM64"
This reverts commit b567679eb6.
2023-05-12 11:50:49 +01:00
gingerBill
b567679eb6 Change intrinsics.read_cycle_counter on ARM64 2023-05-12 11:34:01 +01:00
Jeroen van Rijn
e6c8d3d1db Merge pull request #2532 from j0-1/j0-1-patch-1
Fixed incorrect header and typo
2023-05-11 22:28:37 +02:00
j0-1
12c4afd824 Fixed incorrect header and typo 2023-05-11 11:26:16 -07:00
Jeroen van Rijn
968a07ed7a Merge pull request #2531 from jasonKercher/fix2530
add nil check to heap_alloc calls (issue 2530)
2023-05-11 20:20:03 +02:00
jason
f9c600a760 add nil check to heap_alloc calls (issue 2530) 2023-05-11 14:04:09 -04:00
Jeroen van Rijn
82561cfbac Merge pull request #2528 from matias-eduardo/patch-1
Patch "no_copy" typo in parser.cpp
2023-05-10 09:11:46 +02:00
matias
277ae4e2b0 Patch "no_copy" typo in parser.cpp 2023-05-10 02:58:17 -04:00
Jeroen van Rijn
0f9e747583 Merge pull request #2520 from matias-eduardo/master
Allow for custom sleep duration in tsc frequency fallback
2023-05-09 23:03:47 +02:00
Matias Fernandez
4e146a75b6 Allow user to pass in scale directly in spall.context_create 2023-05-09 16:43:26 -04:00
Jeroen van Rijn
33d0e2037b Merge pull request #2524 from laytan/fix-url-parse-leak
fix leak in url_parse
2023-05-09 21:46:51 +02:00
Laytan Laats
7a04b7262e fix bytes.buffer_init_allocator not using given allocator if len/cap is 0 2023-05-09 21:25:15 +02:00
Laytan Laats
f2d5e4b995 fix leak in url_parse 2023-05-09 21:05:16 +02:00
J.C. Moyer
ada42aa184 Add test for issue #2056 2023-05-09 12:37:12 -04:00
J.C. Moyer
ed580b3060 Zero non-diagonal elements when converting to matrix
Fixes #2056
2023-05-09 12:00:38 -04:00
Jeroen van Rijn
29e4762011 Merge pull request #2519 from colrdavidson/revert-2462-master
Revert "Fix: header directories in Unix build script"
2023-05-09 08:27:47 +02:00
Matias Fernandez
9867037aa2 Revert "Add the waits that support I/O completion routines in kernel32.odin"
This reverts commit 46da53ba15.
2023-05-09 00:16:17 -04:00
Matias Fernandez
57c14f6a9b Allow custom sleep on tsc fallback.
This gives the user more control over the spectrum of precision vs. load time on Windows. Spall's output with much lower sleep times is still useful in my experience.

NOTE: A better API might be to allow the user to pass the freq as a param to "create_context" in case they already paid for it beforehand, but this seems fine for now.
2023-05-09 00:03:58 -04:00
Matias Fernandez
1ed105205c Merge branch 'master' of https://github.com/matias-eduardo/Odin 2023-05-08 23:52:21 -04:00
Colin Davidson
8233f49beb Revert "Fix: header directories in Unix build script" 2023-05-08 20:13:33 -07:00
Jeroen van Rijn
2c01a4613c Merge pull request #2516 from colrdavidson/read_at_fix
Make read_at and write_at more consistent between platforms
2023-05-07 08:52:37 +02:00
Colin Davidson
b0eda47b26 prevent infinite-loop on EOF 2023-05-06 17:52:08 -07:00
Colin Davidson
291111e626 oops. define e 2023-05-06 17:23:44 -07:00
Colin Davidson
47693da4aa Make read_at and write_at more consistent between platforms 2023-05-06 17:14:11 -07:00
Jeroen van Rijn
9f39209712 Merge pull request #2513 from laytan/add-time-weekday
add time.weekday proc
2023-05-06 20:20:13 +02:00
Laytan Laats
c47dcbbe2f fix spacing 2023-05-06 19:39:39 +02:00
Laytan Laats
956ffdf654 add time.weekday proc 2023-05-05 20:55:59 +02:00
gingerBill
182b269e46 Merge pull request #2511 from zhibog/botan3
Add Botan3 libraries and use VS 2022 for Windows builds
2023-05-03 22:14:17 +01:00
zhibog
05856ac93e Change nightly to VS 2022 too 2023-05-03 21:51:40 +02:00
zhibog
60c29e195a Windows requires the botan-3 naming due to the new release 2023-05-03 21:35:06 +02:00