JVMLS 2015 - Compilers are Databases
Channel:Java · Length:1:08:52 · Published:2015-08-11 · Views:16312
Summary
Martin Odersky's JVM Language Summit 2015 talk argues that compilers can be thought of as databases. It describes design ideas for the Scala compiler and for developer tools.
Why HN recommends it
Cited as the origin of the compilers-as-databases idea in discussions of IDEs and incremental tooling.
Both developer tools and compilers can be seen as special cases of a much simpler and more general pattern known as a graph database — HN, 2021
Functional programming · Compilers, interpreters & program analysis · Databases & storage
Subtitles (excerpt)
uh my first thanks for uh having me here give the keynote I'm very much honored by by the privilege and it's great to be finally here at the jvm languages Summit after for so many years I just couldn't make it because it was always during vacation season in Europe uh now we decided we do vacation in California so that's what we did and I can come to the summit great so uh um you might say well that's really a Shameless uh thing for Oracle to say well oh since Oracle is a database company now this guy is claiming compilers are databases just to suck up to Oracle so no it's not it's not that uh in fact compilers uh I've come to realize are very much like databases and I hope that in my talk I will uh explain a little bit uh why uh that's a valid mode of thinking so if you look at compilers uh then uh a compiler is essentially that's the standard picture if you look on on Google image search that's the first thing that pops up probably so compiler is a source program it translates into an executable program and that thing then can be run in a data database we all know it's this big round thing right so that's the thing so so this thing looks pretty square and this thing looks pretty round so aren't we putting a
On Hacker News
Martin Odersky (lead designer of Scala) also pursued this approach some years ago, not sure if any of this actually went into Scala3. He mentioned this in many talks before, such as [VIDEO] (JVMLS 2015 - Compilers are Databases) — it4rb, 2022-10
The author frames this as a contest between two architectures: either spend a lot of effort building custom developer tools, or repurpose the compiler as a server for multiple clients. Both approaches have their tradeoffs: the first, as the author mentions, violates DRY [1]. The second violates the Unix philosophy [2]. However, there is a third way . Both developer tools and compilers can be seen… — brzozowski, 2021-03
Depth. Every programmer I admire has worked on their chosen field for years. You can keep flitting between languages and frameworks, but mastery ultimately comes from hankering down on one thing and advancing our collective knowledge a bit further. You can achieve mastery in any field - it can be a business domain - as mundane as a Time Tracking or a Todo list app, or it can be a technical domain… — jasim, 2017-07
This number is not true I guess. scalac with idomatic Scala code (no Macro's) is at 500-700 loc/sec. (And scalac is considered slow by many people) Source: [VIDEO] That would be a slowdown of like 4x to current javac, I guess his computer is just not good enough? — merb, 2016-08
Related videos
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Lecture 1A: Overview and Introduction to Lisp · MIT OpenCourseWare · 1:12:55
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51