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
140
Gratatouille: metaprogramming for your build-logic
mbonnin
April 14, 2024
Tweet
Share
More Decks by mbonnin
See All by mbonnin
Metadataquoi??
martinbonnin
0
82
Harmonizing APIs, a comparison of GraphQL and OpenAPI through the Spotify API
martinbonnin
1
33
Construisez votre bibliothèque Java/Kotlin
martinbonnin
2
86
Building libraries for the next 25 years
martinbonnin
2
48
GraphQL 💙 Kotlin, 2024 edition
martinbonnin
1
58
GraphQL_nullability__state_of_the_union.pdf
martinbonnin
1
30
Paris Kotlin Meetup de mai: Gradle 💙 Kotlin
martinbonnin
3
63
Offline and Reactive apps with Apollo Kotlin
martinbonnin
1
52
What's new in Apollo Kotlin 3
martinbonnin
2
200
Other Decks in Programming
See All in Programming
Feature Flag 自動お掃除のための TypeScript プログラム変換
azrsh
PRO
4
540
2025年のz-index設計を考える
tak_dcxi
13
5.1k
Agent Rules as Domain Parser
yodakeisuke
1
170
データベースの技術選定を突き詰める ~複数事例から考える最適なデータベースの選び方~
nnaka2992
3
3.9k
ソフトウェア品質特性、意識してますか?AIの真の力を引き出す活用事例 / ai-and-software-quality
minodriven
19
6.3k
テスト分析入門/Test Analysis Tutorial
goyoki
8
2.4k
知識0からカンファレンスやってみたらこうなった!
syossan27
5
310
TypeScript を活かしてデザインシステム MCP を作る / #tskaigi_after_night
izumin5210
4
420
primeNumberでのRBS導入の現在 && RBS::Traceでinline RBSを拡充してみた
mnmandahalf
0
170
AI Coding Agent Enablement in TypeScript
yukukotani
15
5.9k
Digging into the Matrix: Practicing Code Archaeology
arthurdoler
PRO
0
200
ts-morph実践:型を利用するcodemodのテクニック
ypresto
1
470
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
33k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
14
870
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Optimising Largest Contentful Paint
csswizardry
37
3.2k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
5
640
The Power of CSS Pseudo Elements
geoffreycrofte
76
5.8k
Fireside Chat
paigeccino
37
3.5k
A better future with KSS
kneath
239
17k
Designing for humans not robots
tammielis
253
25k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
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