Re: Serializing code

2005-08-21 Thread Ingo Blechschmidt
Hi, Yuval Kogman nothingmuch at woobling.org writes: On Sat, Aug 20, 2005 at 22:27:56 +, Ingo Blechschmidt wrote: Not code, but the return value of code.emit Hm, Str? Or possibly a subtype of Str, allowing: I would guess an AST, that is, any object, that implements

Re: Serializing code

2005-08-21 Thread Yuval Kogman
On Sun, Aug 21, 2005 at 12:11:17 +, Ingo Blechschmidt wrote: Hi, Yuval Kogman nothingmuch at woobling.org writes: But we should note that some backends don't generate meaningful ASTs, simply because they don't convert PIL - target language AST - target language, but PIL - target

Re: Serializing code

2005-08-20 Thread Ingo Blechschmidt
Hi, Yuval Kogman nothingmuch at woobling.org writes: On Thu, Aug 18, 2005 at 12:24:40 +, Ingo Blechschmidt wrote: Yuval Kogman nothingmuch at woobling.org writes: So now that the skeptics can see why this is important, on the design side I'd like to ask for ideas on how the

Re: Serializing code

2005-08-20 Thread Yuval Kogman
On Sat, Aug 20, 2005 at 22:27:56 +, Ingo Blechschmidt wrote: Not code, but the return value of code.emit Hm, Str? Or possibly a subtype of Str, allowing: I would guess an AST, that is, any object, that implements stringification. the AST could just be the same PIL reblessed with some

Re: Serializing code

2005-08-18 Thread Ingo Blechschmidt
Hi, Yuval Kogman nothingmuch at woobling.org writes: So now that the skeptics can see why this is important, on the design side I'd like to ask for ideas on how the code serialization looks... sub { $?DOM.document.write(phello world!/p) }.emit(

Re: Serializing code

2005-08-18 Thread Yuval Kogman
On Thu, Aug 18, 2005 at 12:24:40 +, Ingo Blechschmidt wrote: Hi, Yuval Kogman nothingmuch at woobling.org writes: So now that the skeptics can see why this is important, on the design side I'd like to ask for ideas on how the code serialization looks... sub {

Re: Serializing code

2005-08-18 Thread Autrijus Tang
On Thu, Aug 18, 2005 at 08:22:20PM +0300, Yuval Kogman wrote: sub foo { $?DOM.document.write(...) } BEGIN { foo() }; # error, there's no $?DOM object # at compile-time! Unless you're compiling in the browser ;-) Which... is possible, and that's how I