code.pyret.org icon indicating copy to clipboard operation
code.pyret.org copied to clipboard

1e100000000000000 generates internal error

Open schanzer opened this issue 3 years ago • 2 comments

Came up in PD today

schanzer avatar Jul 26 '22 14:07 schanzer

This is kinda interesting.

  • The provided example, 1e100000000000000, immediately throws a stack overflow.
  • Much smaller examples, like 1e1000, simply evaluate, though progressively slower, as you would expect.
  • But inbetween examples, like 1e1000000, simply keep running, not throwing an error but taking up all the CPU so that nothing else can run in that tab:
image

asolove avatar Jan 21 '24 02:01 asolove

This is a duplicate of https://github.com/brownplt/pyret-lang/issues/1479, FWIW.

sorawee avatar Jan 21 '24 02:01 sorawee