Commit graph

84 commits

Author SHA1 Message Date
Luke Boswell
58fa5c3678
bundle compiler rt 2025-08-04 23:28:02 +10:00
Luke Boswell
7418575d23
try remove libc from builtins library 2025-08-04 20:08:27 +10:00
Luke Boswell
2a13c35837
zig lints 2025-08-04 20:01:29 +10:00
Luke Boswell
b2eed52b9a
Link using LLD, build the builtins as a library and link with shim 2025-08-04 19:58:32 +10:00
Luke Boswell
faeecf7fda
WIP adding second test platform 2025-08-04 16:38:48 +10:00
Luke Boswell
438e6d2e30
build str test platform libhost.a with zig build 2025-08-04 15:26:40 +10:00
Richard Feldman
136c7ade41
Remove some interpreter workarounds 2025-08-03 18:51:11 -04:00
Richard Feldman
b43f72c1bd
got some hardcoded eval going 2025-08-03 15:13:41 -04:00
Luke Boswell
149d4fa967
fix shared memory roc run example 2025-08-02 21:44:25 +10:00
Luke Boswell
00d23a8d15
make lints happy 2025-08-02 17:51:49 +10:00
Luke Boswell
51ce294ad4
refactor to use host_abi 2025-08-02 17:31:46 +10:00
Luke Boswell
b07b83820a
Add a test harness for WASM Playground 2025-07-31 09:35:21 +10:00
Luke Boswell
5e70070dfd
move build/modules into src/ 2025-07-29 12:51:23 +10:00
Luke Boswell
50a2a86232
refactor build 2025-07-26 09:34:12 +10:00
Luke Boswell
167221fead
fix build options import 2025-07-26 09:30:57 +10:00
Luke Boswell
760280fa17
WIP refactor parse module 2025-07-26 09:19:34 +10:00
Luke Boswell
6d80c50848
refactor reporting and compile into Zig modules 2025-07-26 08:16:11 +10:00
Joshua Warner
e9c8477d44
Centralize all snapshot logic in src/snapshot.zig
This fixes a couple issues and hopefully prevents further such issues from cropping up.
* Previously, update-expected didn't correctly handle output from repl tests. Now, these use a separate OUTPUT section to avoid conflicting. Updates are also all handled by the same tool, reducing the chance of issues.
* Previously, we tried to parse the PROBLEMS section during update-expected and the snapshot verification tests, but this doesn't work because the PROBLEMS section can have embedded roc comments that look to the parser like a new section. Now we completely bypass this problem by re-generating the list of PROBLEMS during EXPECTED validation.
2025-07-21 11:06:17 -07:00
Luke Boswell
cea22b28f2
Implement evaluation for Lambdas, implement unary minus 2025-07-20 21:07:28 +10:00
Luke Boswell
a18d3925e9
fix build.zig 2025-07-19 21:36:22 +10:00
Luke Boswell
860c8e1b49
refactor to use Zig modules 2025-07-18 14:30:52 +10:00
Luke Boswell
22f4c8b55c
Copy shim library to source directory for embedding 2025-07-16 21:01:30 +10:00
Luke Boswell
965b67ee7d
build shim at compile time 2025-07-16 20:23:37 +10:00
Luke Boswell
8d95bcc45e
refactor closer to final design, use RocStr for roc_entrypoint 2025-07-16 20:03:36 +10:00
Luke Boswell
d4a1458663
WIP 2025-07-16 17:48:20 +10:00
Luke Boswell
7ba994528f
initial implementation 2025-07-14 20:54:14 +10:00
Luke Boswell
22984b5a48
improvements for module cache 2025-07-10 13:41:27 +10:00
Anton-4
c02e047cae
print tests passed msg (#7962) 2025-07-09 10:42:42 +02:00
Richard Feldman
0aabd77d9b
Verify EXPECTED sections during zig build test 2025-07-05 14:02:49 -04:00
Brendan Hansknecht
f9d9e26df0
Ensure tests are built with '-Dno-bin' such that they can be checked 2025-07-04 17:06:10 -07:00
Richard Feldman
334d5f2833
wip try to fuzz can 2025-06-27 22:04:18 -04:00
Richard Feldman
d02adf08a6
Copy zig builtins into src/builtins/ (#7802)
* Copy the zig builtins into src/builtins/

* fix breaking changes for zig 0.14

* remove dbg and expect from builtins

* Fix typos

* WIP fixing zig lints

* WIP fixing zig lints

* WIP fixing zig lints

* WIP fixing zig lints

* Complete fixing zig lints

* remove setjmp longjmp from zig compiler builtins

---------

Co-authored-by: Luke Boswell <lukewilliamboswell@gmail.com>
2025-05-23 15:20:07 +02:00
Anton-4
e0cefe4d41
add licenses subcommand (#7787)
* added licenses subcommand

* fmt

* fix nix legal_details inclusion

* zig fmt

* fix tests
2025-05-17 10:30:41 +02:00
Anton-4
b552466755
glossary: type signature + typos upgrade (#7776)
* glossary: type signature

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* ignore toolchain for typos

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* fix typos

* put toolchain file back

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-05-07 17:35:56 +02:00
Brendan Hansknecht
0cbfc0bca8
[tracy] wait for shutdown
TRACY_NO_EXIT is used to force tracy to wait for the profiler to finish collecting data before shutting down.
Sadly, it doesn't work on macos.

As a workaround, directly call into the tracy profiler on exit.
Request shutdown (which will start flushing data) and wait for shutdown to complete.
This makes the equivalent of TRACY_NO_EXIT the default.

Not, this only works on clean shutdown through `main` or `fatal`.
Any other shutdown will miss this codepath and exit before tracy fully dumps data.
2025-03-18 22:55:17 -07:00
Brendan Hansknecht
5f0d0faac9
fix linking llvm to prefer static libs for things bundled by roc-bootstrap 2025-03-17 19:56:51 -07:00
Brendan Hansknecht
6d0823e788
add some warning about tracy pitfalls 2025-03-17 17:05:05 -07:00
Brendan Hansknecht
05cda979fe
move build options into adding tracy 2025-03-17 16:58:23 -07:00
Brendan Hansknecht
b32c64275c
create install and run build step wrapper 2025-03-17 16:58:23 -07:00
Brendan Hansknecht
0b3c06b0fe
enable building anything with tracy 2025-03-17 16:58:23 -07:00
Brendan Hansknecht
ce2e6643ba
default to system-afl 2025-03-17 16:58:23 -07:00
Brendan Hansknecht
131bb231dd
cleanup install steps 2025-03-17 16:58:23 -07:00
Brendan Hansknecht
65c61bc4ae
add explicit roc build step 2025-03-17 16:58:22 -07:00
Brendan Hansknecht
f5f8009a82
Add tracy profiler to build 2025-03-17 16:58:22 -07:00
Brendan Hansknecht
f2fb7a519d
Enable incremental compilation
This gets us incremental compilation and a fast feedback loop.
Instead of a `check` step, this depends on `-Dno-bin`.

Note, we should look into [per-build config](https://zigtools.org/zls/configure/per-build/)
and switching back to simply `check` at some point.
Currently that doesn't seem to play nice with `-fincremental`.
2025-03-13 20:58:53 -07:00
Brendan Hansknecht
35631c8c88
Have zig directly generating fuzzing instrumentation
Fixes fuzzing on macos.
Since 0.14.0, macos fuzzing has not been coverage guided.
It has just been random.
2025-03-11 23:34:26 -07:00
Brendan Hansknecht
7a9532f0de
remove fuzz-cli (it has no real value anymore) 2025-03-11 17:19:11 -07:00
Brendan Hansknecht
557dc89e79
Enable optimizing fuzz repro scripts
Also correct to minor printout typos.
2025-03-11 00:00:51 -07:00
Brendan Hansknecht
305420973a
update zig afl kit 2025-03-08 11:26:22 -08:00
Brendan Hansknecht
8fd19acc3b
fix zig-afl-kit build 2025-03-08 11:25:58 -08:00