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
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
84
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
110
Building libraries for the next 25 years
martinbonnin
2
110
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
94
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
42
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
88
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
69
What's new in Apollo Kotlin 3
martinbonnin
2
240
Other Decks in Programming
See All in Programming
Are We Really Coding 10× Faster with AI?
kohzas
0
240
横断組織出身のQAEがインプロセスQAEでつまずいたこと・活かせたこと
ty89
0
320
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
360
AI時代になぜ書くのか
mutsumix
0
460
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
120
分析エージェント精度向上における データアナリストの役割
oura_shoya
0
120
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
120
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
270
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
240
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1k
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.7k
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
1.1k
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
30 Presentation Tips
portentint
PRO
1
300
YesSQL, Process and Tooling at Scale
rocio
174
15k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
420
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
220
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
250
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
810
Documentation Writing (for coders)
carmenintech
77
5.3k
Facilitating Awesome Meetings
lara
57
6.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Leo the Paperboy
mayatellez
7
1.8k
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