Re: Bytecode PDD

2006-10-06 Thread Jonathan Worthington
Bernhard Schmalhofer wrote: One thing that I noticed is the naming of the new field UUID. ||| The UUID is | ||| computed by applying the hash function specified in| ||| the UUID type field over the entire packfile not | ||

Re: Bytecode PDD

2006-10-06 Thread Jonathan Worthington
Leopold Toetsch wrote: Indeed. But we probably want to have an UUID to identify loaded .pasm/.pir/.pbc to avoid loading duplicates. The UUID as proposed was intended for that; I just hashed up the definition in the PDD. Er, no pun intended. As a side note: distinct PBC segments for checksu

Exceptions and Internationalization

2006-10-06 Thread chromatic
A thread on p5p recently brought up the idea of multi-language exceptions. That is, instead of throwing exceptions with English C-strings embedded in the source code, use a localization system. If there'll soon be a push to clean up all of the uses of exceptions in the source code (to make the

Re: Exceptions and Internationalization

2006-10-06 Thread Will Coleda
Yes please! On Oct 6, 2006, at 4:27 PM, chromatic wrote: A thread on p5p recently brought up the idea of multi-language exceptions. That is, instead of throwing exceptions with English C-strings embedded in the source code, use a localization system. If there'll soon be a push to clean up

RFC: Reduce closure magic

2006-10-06 Thread Bob Rogers
To my surprise, I found a 'ctx' member in struct Parrot_sub. It appears that this is only used for the "autoclose" feature, which AFAICS is not documented. The only place it is mentioned is in four t/op/lexicals.t cases (though it is also used in three t/pmc/exception.t cases; see the patch).

Re: Wikipedia example

2006-10-06 Thread chromatic
On Tuesday 03 October 2006 13:41, Aaron Sherman wrote: > This contains the Makefile, README, .pg grammar, a -harness.pir that > executes the parser on a sample string and dumps the parse tree and a > -stress.pir that runs 50,000 trial runs to see how fast PGE is (not too > shabby is the answer, as