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
74
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
99
Building libraries for the next 25 years
martinbonnin
2
96
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
78
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
37
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
74
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
65
What's new in Apollo Kotlin 3
martinbonnin
2
230
Other Decks in Programming
See All in Programming
Pythonデータ分析コトハジメinFukuoka
kanan
0
100
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
410
Windows on Ryzen and I
seosoft
0
360
モックわからないマン卒業記 ~振る舞いを起点に見直した、フロントエンドテストにおけるモックの使いどころ~
tasukuwatanabe
3
410
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
570
Feature Toggle は捨てやすく使おう
gennei
0
250
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
1.3k
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
300
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
390
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
240
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
360
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
400
Context Engineering - Making Every Token Count
addyosmani
9
770
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
150
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Ethics towards AI in product and experience design
skipperchong
2
230
Into the Great Unknown - MozCon
thekraken
40
2.3k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
140
Making the Leap to Tech Lead
cromwellryan
135
9.8k
4 Signs Your Business is Dying
shpigford
187
22k
The browser strikes back
jonoalderson
0
830
GraphQLとの向き合い方2022年版
quramy
50
14k
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