Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Gratatouille: metaprogramming for your build-logic
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
mbonnin
April 14, 2024
Programming
180
2
Share
Gratatouille: metaprogramming for your build-logic
mbonnin
April 14, 2024
More Decks by mbonnin
See All by mbonnin
Metadataquoi??
martinbonnin
0
130
Harmonizing APIs, a comparison of GraphQL and OpenAPI through the Spotify API
martinbonnin
1
78
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
100
Building libraries for the next 25 years
martinbonnin
2
99
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
86
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
39
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
78
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
66
What's new in Apollo Kotlin 3
martinbonnin
2
240
Other Decks in Programming
See All in Programming
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
810
Programming with a DJ Controller — not vibe coding
m_seki
3
150
PHPer、Cloudflare に引っ越す
suguruooki
1
110
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
230
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
150
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
280
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
2.6k
How Swift's Type System Guides AI Agents
koher
0
300
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
160
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
280
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
230
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
800
Featured
See All Featured
Docker and Python
trallard
47
3.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
230
Git: the NoSQL Database
bkeepers
PRO
432
67k
Leo the Paperboy
mayatellez
7
1.7k
Everyday Curiosity
cassininazir
0
200
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
220
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
210
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Transcript
Gratatouille Webinar - Apr 2024
Hi 👋 🥐
apollographql/apollo-kotlin
Automatic code generation 4 query.graphql schema.graphqls Kotlin
Codegen 5 { sessions { nodes { language title startsAt
speakers { name } } } } class Session(val nodes: List<Node>) class Node( val language: String, val title: String, val startsAt: DateTime, val speakers: List<Speaker> ) class Speaker(val name: String)
6
7
Classloaders 8 • Several ones ◦ root project classloader ◦
subproject classloader ◦ buildSrc classloader • See Crash course in classloaders
9
10 Yes, BUT… johnrengelman/shadow
11 Yes, BUT… • Slow to compile • Duplicates bytecode
• Doesn’t fix everything GradleUp/Gr8 🐘🆙
Other things 12 • Overlapping outputs • Build cache •
Path sensitivity • Manual serialization • Parallel execution • Optional/nullable ⁉ • Type safety
Entering Gratatouille Even more classloaders… ;-)
Live demo?
Status 15 • Mostly proof of concept • Branch of
Apollo working with it • Single artifact mode • Testing