Skip to content

Instantly share code, notes, and snippets.

@monochromegane
Created May 7, 2015 00:20
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 monochromegane/2fc28cfe7967a15f13de to your computer and use it in GitHub Desktop.
Save monochromegane/2fc28cfe7967a15f13de to your computer and use it in GitHub Desktop.
GoCon2015summer発表案
Generative programming in Go.
こちらのエントリ http://blog.monochromegane.com/blog/2015/03/04/argen/ で紹介した `argen` をつくって得られた go generate まわりの知見を発表します。
# What
argenの簡単な紹介を通してGo言語でのGenerative programmingとは何かを説明します。
# Why
なぜGenerative programmingが必要かを説明します。
- Go言語でのGenericsのサポート状況
- 構造体の埋込/interfaceとの使い分け
- reflectionとの性能比較
# How
コード解析、生成のTipsを交えてGenerative programmingのやり方を説明します。
- go/parser, go/ast
- template
- go generate
以上です。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment