Commit Graph

6370 Commits

Author SHA1 Message Date
gingerBill
9eb4cbcbd2 Improve ABI design for wasm32 targets 2022-05-21 12:32:50 +01:00
gingerBill
2612f241c9 Minor clean up 2022-05-21 12:14:12 +01:00
gingerBill
0f1153fae2 Add page_alloc and page_allocator 2022-05-21 12:11:22 +01:00
gingerBill
94fda3d48d Rename to runWasm 2022-05-21 11:41:50 +01:00
gingerBill
5cf4f565d6 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-05-21 11:39:47 +01:00
gingerBill
c20b5cbd10 Change wasm/js/runtime.mjs to a normal .js file; Add interfaces and functions to a global odin variable 2022-05-21 11:39:35 +01:00
gingerBill
115612620f Merge pull request #1798 from Tetralux/filepath-patch
[path/filepath] Change join() to take a []string instead of varargs
2022-05-21 08:50:27 +01:00
Tetralux
06884da42b [path/filepath] Change join() to take a []string instead of varargs
This makes passing an allocator easier, as you no longer have to resort to
named arguments:
Before:
  `join(a, b, c)` became `join(elems={a, b, c}, allocator=ally)`
After:
  `join({a, b, c})` becomes `join({a, b, c}, ally)`
2022-05-21 04:48:06 +00:00
Jeroen van Rijn
6e7179d8f3 Merge pull request #1797 from Kelimion/libc_math
Fix is* proc in libc.
2022-05-20 20:05:44 +02:00
Jeroen van Rijn
e85f1dd9fb Fix is* proc in libc. 2022-05-20 20:00:27 +02:00
Jeroen van Rijn
9ac94e621b Merge pull request #1796 from Kelimion/make_directory
Fix Windows os.make_directory.
2022-05-20 19:37:40 +02:00
Jeroen van Rijn
db8d119cad Fix Windows os.make_directory. 2022-05-20 19:15:13 +02:00
gingerBill
836c325021 Merge pull request #1755 from bkrypt/update_miniaudio
Update `vendor/miniaudio` to v0.11.9
2022-05-19 20:53:19 +01:00
gingerBill
3bb31093fa Add documentation for CreateCurrentContextById and SetCurrentContextById 2022-05-18 13:08:31 +01:00
gingerBill
214b43974d Add WebGL ContextAttributes 2022-05-18 13:06:29 +01:00
gingerBill
55556aea77 Add WebGL runtime into the js/runtime.mjs; Allow for multiple WebGL contexts 2022-05-18 12:31:25 +01:00
gingerBill
223897d224 Fix typo 2022-05-18 12:30:44 +01:00
gingerBill
542e45de26 Increase minimum macOS version to 10.12.0 2022-05-18 12:30:26 +01:00
gingerBill
1fa9488a4d Merge pull request #1795 from Tetralux/os-patch
[os] Linux: os.unset_env()
2022-05-18 11:44:09 +01:00
gingerBill
b1196bd659 Merge pull request #1794 from mollstam/fix/optnone-procs
Emit LLVM IR to never optimize/inline procs when building debug and -o:minimal
2022-05-18 10:27:16 +01:00
Tetralux
57167be2a6 [os] Linux: os.unset_env() 2022-05-18 07:12:30 +00:00
Tobias Mollstam
846930a07f emit optnone and noinline for all procs when opt set to minimal 2022-05-18 07:07:20 +02:00
gingerBill
0cc67ff5e3 Add a return value to mem.zero_item and mem.zero_slice which is the same as the input 2022-05-17 22:42:37 +01:00
gingerBill
a86574da84 Use RtlWaitOnAddress to allow for a i64 sized duration rather than u32 2022-05-17 22:24:18 +01:00
gingerBill
33895b6d92 Convert all uses of *_from_slice to *_from_bytes where appropriate 2022-05-16 01:43:43 +01:00
gingerBill
e10105a780 Correct logic for tracking allocator proc for freeing a nil pointer 2022-05-15 23:50:51 +01:00
gingerBill
5451c9672d Fix dynamic_pool_destroy 2022-05-15 23:48:11 +01:00
gingerBill
4eba2bb8d9 Add _system_random for Darwin 2022-05-15 23:46:32 +01:00
gingerBill
2a58bceb56 Add rand.init_as_system to allow for system-level based random number generation 2022-05-15 23:43:20 +01:00
gingerBill
fdcf08410c Add Gompertz Distribution 2022-05-15 23:03:01 +01:00
gingerBill
5142955f00 Add more distributions 2022-05-15 22:58:39 +01:00
gingerBill
500150b12a Correct log normal 2022-05-15 22:52:11 +01:00
gingerBill
50ddd8dd26 Fix typo 2022-05-15 22:45:05 +01:00
gingerBill
6c6de2a07d Move distributions to a separate file 2022-05-15 22:20:25 +01:00
gingerBill
01912b6ba5 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-05-15 21:53:21 +01:00
gingerBill
be2c7b5c9b Add numerous different random distribution procedures 2022-05-15 21:53:16 +01:00
gingerBill
ed60ed3bae Merge pull request #1789 from Tetralux/os-patch
[os] Linux: Add os.exists(), os.get_env(), os.lookup_env(), os.set_env()
2022-05-15 20:49:55 +01:00
gingerBill
23cb96de02 Commit import _ changes 2022-05-15 16:37:05 +01:00
gingerBill
a2c771876e Merge pull request #1788 from odin-lang/image-general-loader
Generalized `core:image` loader
2022-05-15 13:04:26 +01:00
Tetralux
b5b329378f [os] Linux: Add os.exists(), os.get_env(), os.lookup_env(), os.set_env()
exists() does the access() syscall.

Renames getenv() to get_env() to match Windows.
2022-05-14 20:14:10 +00:00
gingerBill
f7b18cd86e Add DjVu 2022-05-14 15:32:28 +01:00
gingerBill
d74e4b427d Remove bool return on image.destroy 2022-05-14 15:16:56 +01:00
gingerBill
22dc020647 Destroy pixel buffer 2022-05-14 15:16:14 +01:00
gingerBill
e8485ee7e7 Correction to image.destroy 2022-05-14 15:15:04 +01:00
gingerBill
c516fb947f Add image.destroy 2022-05-14 15:11:23 +01:00
gingerBill
3aa0a733f3 Add destroy with loader 2022-05-14 15:06:55 +01:00
gingerBill
4e080057fb Rename load_from_buffer to load_from_bytes 2022-05-14 15:01:17 +01:00
gingerBill
9c1f270bd5 Rename load_from_slice to load_from_bytes across core 2022-05-14 14:55:15 +01:00
gingerBill
e46d87b221 Fix type and keep -vet happy 2022-05-14 14:47:58 +01:00
gingerBill
5bc866e420 Allow for import _ "foo" to allow for @(init) procedures; Remove using import code 2022-05-14 14:44:24 +01:00