Re: Serializing code

2005-08-21 Thread Yuval Kogman
On Sun, Aug 21, 2005 at 12:11:17 +, Ingo Blechschmidt wrote: > Hi, > > Yuval Kogman 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 langua

Re: Serializing code

2005-08-21 Thread Ingo Blechschmidt
Hi, Yuval Kogman 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 > str

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

Re: Serializing code

2005-08-20 Thread Ingo Blechschmidt
Hi, Yuval Kogman woobling.org> writes: > On Thu, Aug 18, 2005 at 12:24:40 +, Ingo Blechschmidt wrote: > > Yuval Kogman 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

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

Re: Serializing code

2005-08-18 Thread Yuval Kogman
On Thu, Aug 18, 2005 at 12:24:40 +, Ingo Blechschmidt wrote: > Hi, > > Yuval Kogman 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.docume

Re: Serializing code

2005-08-18 Thread Autrijus Tang
On Thu, Aug 18, 2005 at 12:24:40PM +, Ingo Blechschmidt wrote: > >- closures? > A subclass of Code, e.g. Bare. There is no Bare anymore: Code - Routine - Block Thanks, /Autrijus/ pgpyGJA7hqKo5.pgp Description: PGP signature

Re: Serializing code

2005-08-18 Thread Ingo Blechschmidt
Hi, Yuval Kogman 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("hello world!") }.emit( > :runtime($browser_autodetect_object), >

Serializing code

2005-08-17 Thread Yuval Kogman
In the last year AJAX has become a significant technology. Now with perl 6 compiling to javascript and perl 5 and what not, i think there is a big future when you merge the two and remove the details. The way HTML::Prototype works is: you get an OO interface, which is clean and simple