uiua-lang/uiua

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

Closed this issue · 0 comments

bkDJ commented

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