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
2
170
Gratatouille: metaprogramming for your build-logic
mbonnin
April 14, 2024
Tweet
Share
More Decks by mbonnin
See All by mbonnin
Metadataquoi??
martinbonnin
0
120
Harmonizing APIs, a comparison of GraphQL and OpenAPI through the Spotify API
martinbonnin
1
72
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
98
Building libraries for the next 25 years
martinbonnin
2
92
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
74
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
35
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
74
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
63
What's new in Apollo Kotlin 3
martinbonnin
2
230
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
390
2026/02/04 AIキャラクター人格の実装論 口 調の模倣から、コンテキスト制御による 『思想』と『行動』の創発へ
sr2mg4
0
680
文字コードの話
qnighy
43
17k
The Ralph Wiggum Loop: First Principles of Autonomous Development
sembayui
0
3.7k
Codex の「自走力」を高める
yorifuji
0
200
あなたはユーザーではない #PdENight
kajitack
4
300
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
370
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
170
CSC307 Lecture 15
javiergs
PRO
0
220
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
210
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
120
ご飯食べながらエージェントが開発できる。そう、Agentic Engineeringならね。
yokomachi
1
280
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
200
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
370
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
96
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Are puppies a ranking factor?
jonoalderson
1
3.1k
[SF Ruby Conf 2025] Rails X
palkan
2
810
Abbi's Birthday
coloredviolet
2
5.1k
4 Signs Your Business is Dying
shpigford
187
22k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
270
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
120
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