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
54
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
18
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
0
13
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
2
42
Offline and Reactive apps with Apollo Kotlin
martinbonnin
0
41
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
89
DroidCon IT - GraphQL on the JVM and beyond
martinbonnin
0
28
Other Decks in Programming
See All in Programming
TypeScript 関数型スタイルでバックエンド開発のリアル
naoya
49
16k
[RubyKaigi 2024] Ruby Mixology 101: adding shots of PHP, Elixir, and more
palkan
0
130
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
1
130
GitLab CI/CD で C#/WPFアプリケーションのテストとインストーラーのビルド・デプロイを自動化する
hacarus
0
620
欠陥を早期に発見するための Software Engineer in Test とその重要性 / What is Software Engineer in Test and How they works
orgachem
PRO
18
2.5k
Jetpack Composeとデザインシステム
rmakiyama
0
240
TypeScriptから始める VR生活
tamagokakeg
2
130
TypeScriptの型とパフォーマンス (TSKaigi 2024)
ypresto
14
5.1k
Amazon Aurora Serverless v2が意外と高かった話と、AWS Database Migration Serviceの話
satoshi256kbyte
1
110
How to improve maintainability and readability of your automated tests? ( #scrumniigata )
teyamagu
PRO
1
130
Timeline エディター拡張入門
yucchiy
0
460
The Final Frontier of Web Development: React Server Components vs Jakarta EE
ivargrimstad
0
160
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
Art, The Web, and Tiny UX
lynnandtonic
290
19k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
358
22k
How to name files
jennybc
65
94k
Automating Front-end Workflow
addyosmani
1357
200k
Why Our Code Smells
bkeepers
PRO
331
56k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
244
12k
Embracing the Ebb and Flow
colly
80
4.2k
Designing Experiences People Love
moore
136
23k
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