request for function: interrupts
- Posted by useless_ Jan 01, 2013
- 1014 views
From irc, for public evaluation and consideration:
[16:13] <CoJaBo> m_m: The biggest problem you'll probably run into is the lack of any support for time limits; if your code gets stuck in a loop it will DoS the server and bring it down. [16:17] * any25596957 will include code in loops that says :: if ((time() - starttime) > allowedtime) then exit/goto/quit/abort/die end if [16:17] <any25596957> because any and all internet apps can and do hang at the worst times [16:18] <CoJaBo> yeh, but you'd need to add that to EVERY loop for it to work; even the std libs. and that's assuming you don't hit interpreter hangs.. [16:19] * any25596957 nods [16:19] <CoJaBo> it'd need to be a built-in [16:20] <any25596957> an interruptable Euphoria [16:20] <any25596957> on timertick do {list of routines to check for user-supplied timeout}Nope, no wordwrap in <pre></pre> tags in creole.
useless