Re: Python/Pirate status

2004-10-28 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > Yes, I meant the ability to do things like '$P0 = new "Py_int"'. > Could this be JITed? The mapping between string class name and assigned > PMC type is constant throughout the life of the VM... Not really or not easily. Fastest is to have type enum numbers

Re: Python/Pirate status

2004-10-28 Thread Sam Ruby
Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: I'm now converting to dynclasses. To be honest, I'm not thrilled with this. What I would really prefer is a Parrot_new_p_s opcode with the runtime worrying about caching class names across sub and module boundaries. $P0 = new "Py_int" o

Re: Python/Pirate status

2004-10-28 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > I'm now converting to dynclasses. To be honest, I'm not thrilled with > this. What I would really prefer is a Parrot_new_p_s opcode with the > runtime worrying about caching class names across sub and module boundaries. $P0 = new "Py_int" or some such ha