Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Compile Time Code Weaving with Go

Compile Time Code Weaving with Go

Goweave is a project to implement compile-time code weaving with go.

Ian Eyberg

July 10, 2015
Tweet

More Decks by Ian Eyberg

Other Decks in Technology

Transcript

  1. “which is our full time job . write a program

    to write a program” - rob pike / gopherfest 2015
  2. No Wrapping I don’t want to update code && leave

    the refs in it’s non-trivial I don’t want to hack it in/out each time I could forget in the future or not find all in the past
  3. Aspect Contains behavior that is prominent in many places but

    don’t really have anything to do with your business logic. Logging is a canonical example.
  4. Pointcut an expression that details where to apply your behavior

    CALL Before, after or wrap around calling a method. EXECUTE Before or after inside executing a method. WITHIN Every single call within a method.
  5. loom central place for storing .weave files you don’t have

    to re-invent the wheel more eyes - better software