Hacker News new | past | comments | ask | show | jobs | submit login

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



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


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


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

maybe the script tag should support that one day




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: