Skip to content

Instantly share code, notes, and snippets.

@ekiru
Created June 15, 2010 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekiru/439694 to your computer and use it in GitHub Desktop.
Save ekiru/439694 to your computer and use it in GitHub Desktop.
What I did:
All of the following except where specified otherwise are referring to the gsoc_past_optimization branch.
* Implemented capturing of child and attribute sub-patterns of PAST::Patterns.
* Added .match and .subst methods to PAST::Node when PAST/Pattern.pbc is loaded.
* Implemented :g/:global and :p/:pos attributes for matching PAST::Patterns.
* Implemented .transform method for PAST::Pattern.
* Added support for VarLists to PAST::Walker/Transformer::Dynamic.
* Added an example of constant folding with PAST::Pattern.
* Updated MANIFEST.generated.
* Refactored PAST::Pattern.
* Wrote the beginning of a tutorial:
- http://parrot.org/content/adding-optimizations-hll-compilers-pastpattern
- The git repo for example code:
http://github.com/ekiru/nqp-rx/tree/optimization-tutorial-completed-nqp
* Started working on documentation.
* Made a fork on NQP-rx for testing of my optimizations:
- http://github.com/ekiru/nqp-rx
What I will do:
* Write more of a tutorial.
* Write more documentation.
* Fix any more bugs that are discovered.
* Write more optimizations.
EOR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment