uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.53k stars 107 forks source link

Pad input lags if there is a slow `comptime` body #463

Closed bkDJ closed 5 months ago

bkDJ commented 5 months ago

In the online pad, if the code is valid and there is a slow function defined as comptime, every new keystroke needs to wait for that function to evaluate before the UI updates. Same results in Firefox, Safari, and Mobile Safari.

Example

Sleep ← ◌⍢(∘|>now)+now # do nothing for n seconds
comptime(Sleep 0.5)

# try typing new code or comments