Richard Feldman
4d18bc526b
tests(eval/interpreter2): add Roc-syntax style test for (|x| x)("Hello") beginning/ending with Roc code; use Interpreter for value check and Interpreter2 for runtime call prep; integrate unifier into prepareCallWithFuncVar
2025-09-24 11:20:24 -04:00
Richard Feldman
fd13808dc6
eval/interpreter2: integrate runtime unification into prepareCallWithFuncVar; add test constraining (a->a) with Str
2025-09-24 11:12:07 -04:00
Richard Feldman
1d03076d5e
eval/interpreter2: add prepareCallWithFuncVar to populate poly cache from runtime function type; add tests
2025-09-24 11:00:16 -04:00
Richard Feldman
a0eb0fed7c
eval/interpreter2: add prepareCall using poly cache (miss->insert with hint, then hit); add test
2025-09-24 10:51:26 -04:00
Richard Feldman
6aad1f4799
eval/interpreter2: scaffold polymorphic instantiation cache (PolyKey/Entry + insert/lookup) with tests
2025-09-24 10:30:14 -04:00
Richard Feldman
2a53ede3de
eval/interpreter2: add translateTypeVar for flex and rigid vars with tests
2025-09-24 10:23:42 -04:00
Richard Feldman
1c221f7665
eval/interpreter2: add translateTypeVar for alias and nominal types with tests
2025-09-24 10:17:44 -04:00
Richard Feldman
f43f5f33da
eval/interpreter2: add translateTypeVar for records (fields + ext) with tests
2025-09-24 10:08:51 -04:00
Richard Feldman
92fa52ac9b
eval/interpreter2: add translateTypeVar for tuple (recursive element translation) with tests
2025-09-24 10:02:10 -04:00
Richard Feldman
8f729fe3d4
eval/interpreter2: add translateTypeVar for .str and concrete numeric (.int/.frac) types with tests
2025-09-24 09:48:45 -04:00
Richard Feldman
1d069c0fdf
eval: add Interpreter2 skeleton with O(1) Var→Layout cache and passing tests; wire into eval module; add FINAL_INTERPRETER_DESIGN.md
2025-09-24 09:41:40 -04:00
Luke Boswell
211b42db82
Merge pull request #8244 from FabHof/playground-test-runner
...
Add test evaluation to playground
2025-09-15 10:59:03 +10:00
Fabian Schmalzried
b160f2d975
some cleanup, add comments
2025-09-14 01:16:45 +02:00
Fabian Schmalzried
000354e59b
change html layout for test report
2025-09-14 00:18:49 +02:00
Fabian Schmalzried
914c495ded
fix class for test-failed
2025-09-13 23:15:49 +02:00
Richard Feldman
35cc3b9637
Merge pull request #8245 from roc-lang/roc_src
...
Add roc_src module
2025-09-13 08:21:00 -04:00
Richard Feldman
316744f539
Fix lints
2025-09-13 00:18:03 -04:00
Richard Feldman
dde515c84a
Add const to Bytes
2025-09-12 22:25:44 -04:00
Fabian Schmalzried
e340ce4a26
improve test runner output
2025-09-12 16:10:46 +02:00
Fabian Schmalzried
78abacfef8
add EVALUATE_TESTS msg to playground
2025-09-12 01:36:47 +02:00
Fabian Schmalzried
44b42dfb3f
add eval_all to test runner
2025-09-12 01:35:48 +02:00
Fabian Schmalzried
29ee0514c5
Create test runner
2025-09-12 01:27:24 +02:00
Richard Feldman
7237eec644
Delete Lines.zig
2025-09-11 18:36:53 -04:00
Richard Feldman
0b6cefba1a
Add roc_src module
2025-09-11 18:36:38 -04:00
Anton-4
0331d5aebe
update exec_bench.roc to basic-cli 0.20 ( #8243 )
...
update exec_bench to basic-cli 0.20
2025-09-09 18:30:27 +02:00
Anton-4
9090fa4f97
update link checker script ( #8242 )
...
update link checker
2025-09-09 17:00:59 +02:00
Anton-4
56e44049ed
musl removals
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 14:43:22 +02:00
Anton-4
29d9e17e6b
set GITHUB_TOKEN
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 14:12:26 +02:00
Luke Boswell
cb42d26e11
Roc platform host shim ( #8214 )
...
* use zig Builder to generate LLVM bc for platform host shim
* WIP
* Working embedded LLVM compilation
* lints
* Update test_shared_memory_system.zig
* Update main.zig
* Refactor out builder into separate file
* remove clang fallback, remove -Dllvm build flag
* WIP change platform header
* WIP no hardcoded platform entrypoints
* WIP no hardcoded entrypoints
* remove hardcoded interpreter shim entrypoint
* WIP multiple entrypoints
* WIP multiple entrypoints
* WIP alignment issue
* it's working!!
* cleanup
* fmt
* fix tests and snapshots
* fix cross-compile
* WIP fix linking linux
* improved debug logging in rocRun
* WIP fix linux segfaults
* cleanup stray dbgs
* fix Windows linking
* WIP remove std.debug.print in prebuilt shim
* remove libc stubs, try C shim for platform host main
* WORKING ON LINUX!!!
* WIP fixing int platform
* prevent double mapping of shared memory
* WIP
* remove clang fallback
* cleanup test platforms
* vendor linux object files for musl and gnu in test platforms
* fix windows __main export
* typo
* avoide hardcoding libc path and dynamic linker on linux
* some fixes
* try CI fix for linux ARM64
* try use system CRT for ARM64
* use absolute pats for vendored CRT
* minimal roc build
* use target os for filename not host os
* implement app stubs for test platforms
* fix glibc
* WIP cross compilation
* fix run, fix build for native
* Merge remote/main
* fix macos
* add bookends
* remove hosts
* fix cross-compile for linux on macos
* fix files paths for Windows
* Update main.zig
* test ubu 24.04 too
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* debug: log all used instructions
* fmt
* get bad instruction with gdb
* install gdb
* Revert last 4 commits
* simpler cross-compile arm64 runtime files
* add minimal cross-compilation for glibc
* simplify stub generation
* Update test_int_platform.sh
* Update ci_cross_compile.yml
* Update ci_cross_compile.yml
* try alpine3.18 x64musl files
* Claude's fix + removed CPU instructions
* fix fuzz crash empty after merge
* update snapshot
* restore full CI
* some cleanup
* remove debugging from CI - print all supported CPU instructions
* try using generic when LLVM compiles app stub
* enhanced error handling for app stub compilation using LLVM
* check machine ABI on linux
* try more debugging
* update test script to inidicate truncated error logs, temporarily display everything for arm64 linux errors
* fix missing arm64 libc search paths
* back to normal CI
* try without .git
See https://github.com/ziglang/zig/issues/21316#issuecomment-2408071050
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* undo .git change
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* retry zig build command
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* different retry strategy
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
---------
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 13:15:23 +02:00
Anton-4
d73ea109cc
build linux arm64 on github hosted runner ( #8241 )
...
* build linux arm64 on github hosted runner
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* disable ci manager
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* sudo llvm.sh
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* rm clang
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* normal triggers
---------
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-08 13:00:58 +02:00
dependabot[bot]
97e494430e
Bump tracing-subscriber from 0.3.19 to 0.3.20 ( #8232 )
...
* Bump tracing-subscriber from 0.3.19 to 0.3.20
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.19 to 0.3.20.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.19...tracing-subscriber-0.3.20 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-version: 0.3.20
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* regex dep false positive
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-06 18:00:22 +00:00
Anton-4
5fa6b29668
log download to eprintln ( #8237 )
...
log to eprintln
2025-09-06 19:04:37 +02:00
Luke Boswell
480bbd6a62
Merge pull request #8229 from FabHof/formatter_playground
...
Add QUERY_FORMATTED to wasm playground
2025-09-06 08:09:42 +10:00
Anton-4
74e2c6abf5
basic-webserver release 0.13.0 ( #8228 )
...
* basic-webserver release 0.13.0
* enable PR trigger
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* sync with cli changes
* try less flags
this works on my local rpi
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* install gcc-aarch64-linux-gnu
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* did install locally
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* debug ls
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* rm was done in prev step
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* rm file....exp
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* move rm
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* tar.br
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* back to normal triggers
---------
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-05 17:37:18 +02:00
Jared Ramirez
fa765dc829
Merge pull request #8213 from FabHof/main
2025-09-04 17:40:08 -07:00
Fabian Schmalzried
1fe3c5460d
fix wrong type merge
2025-09-04 23:17:23 +02:00
Jared Ramirez
b6fa4da21b
Merge branch 'main' into main
2025-09-04 12:37:55 -07:00
Fabian Schmalzried
459b01fe83
Extract common RESET handling
2025-09-04 09:26:16 +00:00
Fabian Schmalzried
d6bf12f159
Refactor RESET handling to simplify cleanup and ensure all state variables are reset
2025-09-04 09:26:16 +00:00
Fabian Schmalzried
32dfd91211
Add formatted code handling to CompilerStageData
2025-09-04 09:26:16 +00:00
Anton-4
26faf0ec5b
remove broken links ( #8235 )
...
See #8234
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-03 19:15:06 +02:00
Fabian Schmalzried
f51c829858
Add missing unification branch
2025-09-01 21:09:33 +02:00
Fabian Schmalzried
3808ea302e
Implement type unification for equality/comparison in binary operations
2025-09-01 21:09:28 +02:00
Anton-4
293148921d
basic-cli 0.20 ( #8227 )
...
* WIP basic-cli 0.20.0
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* disable typical CI
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* forgot tests dir
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* test on more OS
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* Remove ubuntu-20.04 from CI matrix
Official support for 20.04 was ended on 31 May 2025
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* test on ubuntu-24.04-arm too
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* macos ripgrep install
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* add ripgrep dep ubu
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* test musl hypothesis
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* Fix cargo copy
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* fix OS pattern linux arm64
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* Update build script to remove incompatible functions
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* Remove incompatible tests for Ubuntu builds
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* fix path
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* more musl removal
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* fix paths
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* fix multi command
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* debug with tree
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* install tree
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* test-cmd check
* correct filename
* no macos tests
* add macos again
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* debug cleanup
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* build tar.br release
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
* back to normal CI
---------
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-01 16:14:33 +02:00
Prokop Randáček
f5ba2db121
find . -name \*.png | parallel --bar optipng -o 7 {} ( #8233 )
2025-08-30 11:17:11 +02:00
JRI98
8ddb05635b
Merge pull request #8230 from JRI98/ci-fuzz-fixes
...
Fix fuzz crash by correctly handling incomplete imports
2025-08-29 03:58:43 +01:00
Luke Boswell
0b6ad5bb66
Revert "Don't try to format malformed snapshots"
...
This reverts commit 61429d72bf .
2025-08-29 12:44:22 +10:00
JRI98
61429d72bf
Don't try to format malformed snapshots
2025-08-28 23:02:54 +01:00
JRI98
18f72dbed6
Fix fuzz crash by correctly handling incomplete imports
...
zig build repro-parse -- -b bW9kdWxlW11lPSIiIgppbXBvcnQjXA== -v
2025-08-28 18:42:08 +01:00
Luke Boswell
45973b1383
cleanup
2025-08-27 10:48:02 +10:00