Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by dorianm

9 years ago

Infinite loops (accidental in my case) should probably be catched in some way.

3 comments

dorianm

Reply

brian_cloutier  9 years ago

Yeah, the halting problem has been around since 1936. You'd think someone would have solved it already!

  • azeirah  9 years ago

    if (time_elapsed > some_arbitrary_threshold) { interrupt_sandboxed_code(); }

jlebrech  9 years ago

maybe give the scripts a quota of cycles then can consume.

maybe the script tag should support that one day

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities