Re:Python Facts
by ronreiter on Friday November 25, 2011 @10:47AM
(#3277318)
yes, but it's jailed pretty good and it's not a lot of CPU power to execute, so it's OK.
[ Parent
| on HN ]
It looks like you're using GAE. Not having much experience with it, I'm wondering if GAE provides the CPU jailing, or did you have to write some voodoo yourself?
I ask because it's trivially easy to send a statement containing a single bytecode that takes a really long time to execute, at least in CPython:
>>> print 999 * 0 # => 0, so not a bandwidth issue
If I send this to your backend in a bunch of tabs (I didn't) could that be a DoS?
Also, are you thinking of putting the backend code on github?
EDIT: HN swallowed my exponentiation. That should read "print nine to the nine to the nine, times zero". Without the times zero, that's a huge number.
>>> print 9**9**9*0 # => 0
Text after a blank line that is indented by two or more spaces is reproduced verbatim. http://news.ycombinator.com/formatdoc (the help link is in the bottom-right corner)
Re:Python Facts
by RyanMcGreal on Friday November 25, 2011 @11:30AM
(#3277440)
It allows `eval()` to run. Please see this: