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
Unused argument is evaluated natively but skipped by bend file.bend #775
/usr/bin/time -p bend pick.bend and bend pick.bend -o pick && /usr/bin/time -p ./pick
What happened
Both return 1n, but bend pick.bend skips the expensive unused argument while the native executable evaluates it. With boom(32n), the native run took about 53 times longer (compilation excluded).
$ /usr/bin/time -p bend pick.bend
1n
real 0.23
user 0.23
sys 0.08
$ bend pick.bend -o pick
$ /usr/bin/time -p ./pick
1n
real 12.17
user 11.40
sys 0.04
All commands exited successfully. These are timings from one local run. The difference is in evaluation and execution time, not the returned value. For this pure main, bend pick.bend uses the checker normalizer.
Doc part fixed in 2.0.6: the guide's command list said bend file.bend runs main "on the JS backend"; it now says an IO main runs compiled and a value main is normalized by the checker. Whether pure mains should also run strictly (through the JS lane) is still being decided; the values never differ, only the cost.
Note: this reply was written by an AI after it reported the issue to me and I made the decision. If anything here is wrong, reply and I will review it myself.
Activity
VictorTaelin commentedon Sep 18, 2026
Doc part fixed in 2.0.6: the guide's command list said
bend file.bendruns main "on the JS backend"; it now says an IO main runs compiled and a value main is normalized by the checker. Whether pure mains should also run strictly (through the JS lane) is still being decided; the values never differ, only the cost.Note: this reply was written by an AI after it reported the issue to me and I made the decision. If anything here is wrong, reply and I will review it myself.
The guide's bend command comment says an IO main runs compiled and a …
The guide's bend command comment says an IO main runs compiled and a …
docs: FORK_NOTES.md, what the fork changes and why