You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a2beab0
Browse filesBrowse the repository at this point in the historyBrowse files
Cache playground Lambda diffs and bound token work by block
Keep the Lambda view mounted, cache its rendered comparison by input text, and render collapsed context only when expanded. Preserve expansion for unchanged regions across edits.
Count shared edges once in the line budget, prioritize atoms in token alignment, and admit whole changed blocks before charging the shared token budget. Cover the algorithm and rendering regressions, and document the API v9 capture boundary.
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -428,6 +428,18 @@ $ node
428
428
> eval(result.js_code);
429
429
```
430
430
431
+
### Lambda debug outputs (API v9)
432
+
433
+
`comp.rescript.compileWithDebug(source)` returns `lambda` before the backend's
434
+
Lambda optimization passes and `lambda_optimized` after the whole-term passes,
435
+
before export grouping and JavaScript lowering. Both use the same Lambda printer
436
+
so their text can be compared directly. JavaScript lowering performs further
437
+
transformations; this snapshot is not the final JavaScript IR.
438
+
439
+
Regular `comp.rescript.compile(source)` does not capture these debug outputs.
440
+
Older bundles do not provide `lambda_optimized`; consumers should treat it as
441
+
optional when supporting multiple API versions.
442
+
431
443
### Testing the Playground bundle
432
444
433
445
Run `yarn workspace playground test` for a quick sanity check to see if all the build artifacts are working together correctly. When releasing the playground bundle, the test will always be executed before publishing to catch regressions.
0 commit comments