Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-09 Thread Michael Hudson
Ka-Ping Yee [EMAIL PROTECTED] writes: Client-side web scripting tends to have a callback/continuation-ish concurrency style because it has to deal with network transactions (which can stall for long periods of time) in a user interface that is expected to stay always responsive. The Firefox

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-07 Thread Guido van Rossum
On 7/7/06, Ka-Ping Yee [EMAIL PROTECTED] wrote: I've been doing a bunch of Firefox extension programming in Javascript and suddenly a few of the recent topics here came together in my head in a silent kapow of thoughts. This is kind of a side note to the security discussion, but they're all

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-07 Thread Ka-Ping Yee
On Fri, 7 Jul 2006, Guido van Rossum wrote: On 7/7/06, Ka-Ping Yee [EMAIL PROTECTED] wrote: I've been doing a bunch of Firefox extension programming in Javascript and suddenly a few of the recent topics here came together in my head in a silent kapow of thoughts. This is kind of a side

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-07 Thread Bob Ippolito
On Jul 7, 2006, at 1:08 PM, Guido van Rossum wrote: On 7/7/06, Ka-Ping Yee [EMAIL PROTECTED] wrote: I've been doing a bunch of Firefox extension programming in Javascript and suddenly a few of the recent topics here came together in my head in a silent kapow of thoughts. This is kind of

[Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-06 Thread Ka-Ping Yee
On Wed, 21 Jun 2006, Brett Cannon wrote: I have been working on a design doc for restricted execution of Python as part of my dissertation for getting Python into Firefox to replace JavaScript on the web. I've been doing a bunch of Firefox extension programming in Javascript and suddenly a few

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-06 Thread Phillip J. Eby
At 05:17 PM 7/6/2006 -0500, Ka-Ping Yee wrote: On Wed, 21 Jun 2006, Brett Cannon wrote: I have been working on a design doc for restricted execution of Python as part of my dissertation for getting Python into Firefox to replace JavaScript on the web. I've been doing a bunch of Firefox

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-06 Thread Ka-Ping Yee
On Thu, 6 Jul 2006, Phillip J. Eby wrote: As much as I'd love to have the nested scope feature, I think it's only right to point out that the above can be rewritten as something like this in Python 2.5: def spam(): local_A = do_work() result_1 = yield

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-06 Thread Bob Ippolito
On Jul 6, 2006, at 5:04 PM, Ka-Ping Yee wrote: On Thu, 6 Jul 2006, Phillip J. Eby wrote: As much as I'd love to have the nested scope feature, I think it's only right to point out that the above can be rewritten as something like this in Python 2.5: def spam(): local_A

Re: [Python-Dev] Musings on concurrency and scoping (replacing Javascript)

2006-07-06 Thread Phillip J. Eby
At 07:04 PM 7/6/2006 -0500, Ka-Ping Yee wrote: On Thu, 6 Jul 2006, Phillip J. Eby wrote: As much as I'd love to have the nested scope feature, I think it's only right to point out that the above can be rewritten as something like this in Python 2.5: def spam(): local_A =