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
73
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
Geminiの機能を調べ尽くしてみた
naruyoshimi
0
200
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
300
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.6k
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
470
Rails Girls Tokyo 18th GMO Pepabo Sponsor Talk
yutokyokutyo
0
200
株式会社 Sun terras カンパニーデック
sunterras
0
2k
AI時代でも変わらない技術コミュニティの力~10年続く“ゆるい”つながりが生み出す価値
n_takehata
2
650
Claude Code、ちょっとした工夫で開発体験が変わる
tigertora7571
0
200
ご飯食べながらエージェントが開発できる。そう、Agentic Engineeringならね。
yokomachi
1
290
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
180
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
210
CSC307 Lecture 12
javiergs
PRO
0
460
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
470
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
100
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
65
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
400
Side Projects
sachag
455
43k
RailsConf 2023
tenderlove
30
1.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
300
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
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