Commit graph

46 commits

Author SHA1 Message Date
Ayaz Hafiz
884843205d
Update zig host for zero-size types 2022-09-20 08:32:20 -05:00
Folkert
5451c5461e
use timer in the benchmark platform 2022-08-26 18:28:40 +02:00
Ayaz Hafiz
29b37a10df
Correctly use module name in linked functions 2022-07-21 09:02:04 -04:00
Brian Carroll
f098d71f61
Make the benchmark host prompt the user for input 2022-07-01 21:57:02 +01:00
Ayaz Hafiz
9db8832e35
Rust roc_alloc rather than allocator in benchmarks platform
This is good style (I think?) and in #2226, the effect closures become
0-sized, which presently causes the ptrCast here to panic because it's
casting a nullptr. Aside of #3336 I think this is the last thing to get
the lazy effects working.
2022-06-27 18:26:06 -04:00
Ayaz Hafiz
fcc15a7c51
Avoid miscompilation on AArch64 for now
Stopgap to avoid running into the problems induced by #3046 until we
have a more permanent fix for that.
2022-05-10 09:13:11 -04:00
Folkert
a69bf971f0
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-06 15:38:15 +02:00
Folkert
9d9e7d10d4
use exposed_generic in hello world examples 2022-03-12 14:42:14 +01:00
Richard Feldman
696ec3c83e
zig fmt 2022-02-27 21:07:36 -05:00
Folkert
1b464076b0 update benchmark host.zig 2022-02-16 15:33:44 +01:00
Folkert
da3787feb8 Merge remote-tracking branch 'origin/trunk' into remove-call-result-again 2021-10-22 12:57:36 +02:00
Folkert
83de4b55ef remove another instance of RocCallResult 2021-10-22 12:26:04 +02:00
Folkert
0a12ce896f Revert "make list inc/dec non-recursive (except when freeing the list)"
This reverts commit 19eadbfe70.
2021-10-21 20:28:32 +02:00
Folkert
19eadbfe70 make list inc/dec non-recursive (except when freeing the list) 2021-10-14 19:57:23 +02:00
Brendan Hansknecht
7d1b88b3fb Merge branch 'trunk' into integrate-linker 2021-09-23 21:12:40 -07:00
Brendan Hansknecht
d710e78ab3
Merge branch 'trunk' into integrate-linker 2021-09-21 09:39:47 -07:00
Folkert
e319d1e758 make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
Folkert
c5eeaab2c2 remove callresult from cli examples 2021-09-19 18:34:42 +02:00
Richard Feldman
cda29d0706 memcpy and memset are byte-aligned 2021-09-18 23:40:36 -04:00
Richard Feldman
fa8aa20112
Merge branch 'trunk' into integrate-linker 2021-09-18 23:17:52 -04:00
Folkert
712dfb2702 simplify alignment calculation 2021-09-19 00:35:09 +02:00
Folkert
8429325eed make main have callconv C 2021-09-19 00:27:57 +02:00
Brendan Hansknecht
da28b669bb Get zig host working 2021-09-15 11:45:44 -07:00
Folkert
1496ee2e70 use zig allocator, not libc, in host 2021-09-10 10:15:41 +02:00
Folkert
f8c3351c08 better debug messages from bench host 2021-09-04 13:26:31 +02:00
Folkert
0ba91f885c make benchmark host.o more 32-bit compatible 2021-09-04 01:38:35 +02:00
Folkert
fb6131488c update platforms for the nightly zig + wasm C abi requirements 2021-08-26 21:22:44 +02:00
Folkert
a12e18ca70 add roc_panic to all hosts 2021-08-16 22:46:00 +02:00
Folkert
3c8d675378 get most cli tests to pass 2021-06-09 19:05:37 +02:00
Folkert
e85ddc3506 fix examples 2021-06-07 20:29:16 +02:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Richard Feldman
18df7fd24f Make alignment be a u32 2021-05-23 23:46:09 -04:00
Richard Feldman
24e22bc31b Have roc_alloc return a nullable pointer 2021-05-23 23:46:09 -04:00
Richard Feldman
175115ee4e Have examples with zig hosts use roc_alloc etc 2021-05-23 23:46:09 -04:00
Folkert
8f95647c00 fix host.zig 2021-05-14 23:34:24 +02:00
Folkert
89ad21145b get scratchpad to run 2021-05-14 20:53:47 +02:00
Folkert
3c78fae8dc add putInt to the benchmark platform 2021-03-30 22:59:03 +02:00
Folkert
ce435c9437 make zig show runtime errors thrown by roc 2021-03-23 22:01:46 +01:00
Richard Feldman
ce6969d31f Only do the compiler_rt workaround on macOS 2021-03-14 22:31:32 -04:00
Chadtech
7d78de110b Added comptime import compiler_rt to several host.zig files 2021-03-14 22:31:32 -04:00
Folkert
a79a9ea253 use the compiler's str.zig from platforms 2021-01-31 23:11:02 +01:00
Folkert
4bd9d417d1 add stdin support for cli tests (currently unused) 2021-01-29 00:13:09 +01:00
Folkert
4e6aac760a cleanup benchmarks platform 2021-01-21 20:23:47 +01:00
Folkert
ae27cc6c0b display runtime on stderr 2021-01-19 02:57:23 +01:00
Folkert
424c76d48d add benchmarks example 2021-01-18 22:16:02 +01:00