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
mbonnin
April 14, 2024
Programming
190
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Gratatouille: metaprogramming for your build-logic
mbonnin
April 14, 2024
More Decks by mbonnin
See All by mbonnin
Metadataquoi??
martinbonnin
0
140
Harmonizing APIs, a comparison of GraphQL and OpenAPI through the Spotify API
martinbonnin
1
94
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
110
Building libraries for the next 25 years
martinbonnin
2
120
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
100
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
45
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
94
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
74
What's new in Apollo Kotlin 3
martinbonnin
2
250
Other Decks in Programming
See All in Programming
What's New in Android 2026
veronikapj
0
130
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
1
210
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
8
3.1k
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.6k
AIエージェントで 変わるAndroid開発環境
takahirom
2
710
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
160
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
350
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
190
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
280
Foundation Models frameworkで画像分析
ryodeveloper
1
130
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
0
120
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
150
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
750
Leo the Paperboy
mayatellez
8
1.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Crafting Experiences
bethany
1
230
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
410
Accessibility Awareness
sabderemane
1
160
Navigating Team Friction
lara
192
16k
Six Lessons from altMBA
skipperchong
29
4.3k
Site-Speed That Sticks
csswizardry
13
1.3k
Designing for humans not robots
tammielis
254
26k
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