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
130
Gratatouille: metaprogramming for your build-logic
mbonnin
April 14, 2024
Tweet
Share
More Decks by mbonnin
See All by mbonnin
Metadataquoi??
martinbonnin
0
72
Harmonizing APIs, a comparison of GraphQL and OpenAPI through the Spotify API
martinbonnin
1
32
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
85
Building libraries for the next 25 years
martinbonnin
2
46
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
57
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
29
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
62
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
51
What's new in Apollo Kotlin 3
martinbonnin
2
190
Other Decks in Programming
See All in Programming
Make Parsers Compatible Using Automata Learning
makenowjust
2
5.1k
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
120
Memory API : Patterns, Performance et Cas d'Utilisation
josepaumard
0
140
Golangci-lint v2爆誕: 君たちはどうすべきか
logica0419
1
130
MCP調べてみました! / Exploring MCP
uhzz
2
2.3k
ComposeでWebアプリを作る技術
tbsten
0
110
「理解」を重視したAI活用開発
fast_doctor
0
130
Do Dumb Things
mitsuhiko
0
440
スモールスタートで始めるためのLambda×モノリス(Lambdalith)
akihisaikeda
2
290
リストビュー画面UX改善の振り返り
splcywolf
0
150
プロフェッショナルとしての成長「問題の深掘り」が導く真のスキルアップ / issue-analysis-and-skill-up
minodriven
7
1.5k
「影響が少ない」を自分の目でみてみる
o0h
PRO
2
1.1k
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
46
14k
Agile that works and the tools we love
rasmusluckow
328
21k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
9
760
KATA
mclloyd
29
14k
What's in a price? How to price your products and services
michaelherold
245
12k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.4k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
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