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
1
48
Gratatouille: metaprogramming for your build-logic
mbonnin
April 14, 2024
Tweet
Share
More Decks by mbonnin
See All by mbonnin
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
0
17
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
0
11
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
2
37
Offline and Reactive apps with Apollo Kotlin
martinbonnin
0
38
What's new in Apollo Kotlin 3
martinbonnin
1
140
Offline and Reactive apps with Apollo Kotlin
martinbonnin
2
200
Everything you didn't want to know about the Kotlin DSL
martinbonnin
3
590
Kotlin native in 10 min
martinbonnin
0
87
DroidCon IT - GraphQL on the JVM and beyond
martinbonnin
0
28
Other Decks in Programming
See All in Programming
Netty Chicago Java User Group 2024-04-17
sullis
0
200
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
Next.js App Router
quramy
11
1.5k
AppRouter Panel Talk
yosuke_furukawa
PRO
1
440
Fast JSX: Don't clone props object #28768
yossydev
1
160
禅の心を手に入れよ
eltociear
1
280
PHPはいつから死んでいるかの調査
chiroruxx
2
410
PostmanでAPIの動作確認が楽になった話
h455h1
0
180
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
960
Code Reviews
bkuhlmann
4
890
大規模UIKitベースアプリへのTCAの段階的導入/gradual-adoption-of-tca-in-a-large-scale-uikit-based-app
takehilo
2
200
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
9
4.2k
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
26
5.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
Fantastic passwords and where to find them - at NoRuKo
philnash
38
2.5k
Clear Off the Table
cherdarchuk
85
310k
Building Your Own Lightsaber
phodgson
100
5.7k
Automating Front-end Workflow
addyosmani
1357
200k
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Into the Great Unknown - MozCon
thekraken
14
1k
[RailsConf 2023] Rails as a piece of cake
palkan
27
4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Become a Pro
speakerdeck
PRO
12
4.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