Google I/O 2008 - Dalvik Virtual Machine Internals
Channel:Google for Developers · Length:1:01:33 · Published:2008-06-03 · Views:187931
Summary
Dan Bornstein's Google I/O 2008 talk on the internals of Dalvik, the virtual machine that runs Android code. It covers the motivation for its design, the dex format and its register-based interpreter, plus tips for writing code that suits the platform.
Why HN recommends it
HN points to it as the primary source on Dalvik's dex bytecode, register-based design and memory-saving choices.
Dan Bornstein's talk at Google I/O 2008 about the dex format and the original Dalvik interpreter — HN, 2012
Compilers, interpreters & program analysis · Operating systems & kernels
Subtitles (excerpt)
Hi everyone. Welcome back to Google IO. Hope you had a good time yesterday. I hope you have a good day today. I'm Dan Bornstein. I'm here to tell you about the Dalvik virtual machine. So, a little bit about my background. I joined Google in 2005 to work on the Android project. And I've been working on Dalvik almost the entire time. Uh before Google, I worked at on a couple different VMs at a few different companies uh including on the HipTop virtual machine uh immediately prior to Google. And uh although I did start the Dalvik project at Google, um the virtual machine and the libraries uh wouldn't be where they are today without the work of a whole lot of other people um ha- about half a dozen core contributors and a slew of other uh slew of other help throughout the team. So, thanks to those guys. Um if you're curious about the name, uh Dalvik Iceland is in the northern part of the country uh northern part of Iceland. Uh it's if you want to go to the Arctic Circle, you can catch a ferry there. Okay. If if you're familiar with Android at all, you've probably seen this diagram. Uh very briefly, Android is a it's a new platform for mobile devices and it really is the complete stack. Includes layers from the OS kernel at the bottom uh and
On Hacker News
Here's Dan Bornstein's talk at Google I/O 2008 about the dex format and the original Dalvik interpreter: [VIDEO] I'm not sure how useful it is in comparing the Dalvik JIT to MonoTouch though. — yonran, 2012-05
There's an experimental branch for Ruby: [LINK] Dalvik also uses a register-based bytecode. The early versions of Android needed a more efficient interpreter. Dan Bornstein's talk: [VIDEO] A classic paper on Register vs Stack VMs: [LINK] — jashmatthews, 2018-09
This is a great post. I like how they walked through all the steps and especially the "perf" tool. Ruby has a patch to do the same thing -- increase sharing by moving reference counts out of the object itself: Index here: [LINK] First post in a long series: [LINK] I think these patches or something similar may have made it into Ruby 2.0: [LINK] [LINK] The Dalvik VM (now replaced by ART) also did … — chubot, 2017-01
I agree: within the Android ecosystem and even within the ARM family, bytecode provides portability: you don't have to compile and distribute apps for different versions of the ARM architecture. It's paradoxical however that to increase the portability of certain types of apps across mobile ecosystems, eg. iOS and Android, and now Ubuntu, your best bet can be to write the portable part in native … — ttuominen, 2013-01
Related videos
- The Tragedy of systemd · linux.conf.au · 47:18
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- The Thirty Million Line Problem · Molly Rocket · 1:48:55
- VCF East: Ken Thompson interviewed by Brian Kernighan · Vintage Computer Federation · 1:03:51
- LISA11 - Fork Yeah! The Rise and Development of illumos · USENIX · 1:04:03
- CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17” · CppCon · 1:19:52
- USENIX ATC '21/OSDI '21 Joint Keynote Address-It's Time for Operating Systems to Rediscover Hardware · USENIX · 1:06:19
- Clasp: Common Lisp using LLVM and C++ for Molecular Metaprogramming · Google TechTalks · 57:37
- AT&T Archives: The UNIX Operating System · AT&T Tech Channel · 27:27
- Compiling C to printable x86, to make an executable research paper · suckerpinch · 25:41
- Break Me00 The MoVfuscator Turning mov into a soul crushing RE nightmare Christopher Domas · Adrian Crenshaw · 46:19
- A Talk Near the Future of Python (a.k.a., Dave live-codes a WebAssembly Interpreter) · David Beazley · 1:01:45
- Miguel de Icaza: Swift Godot: Fixing the Multi-million dollar mistake #GodotCon2023 · Godot Engine · 54:52
- Unix and Google · FOAM · 7:15