Porffor
Compiling JS ✨ Ahead-Of-Time ✨
Oliver Medhurst
Oliver Medhurst @canadahonk
Interpretation
JavaScript
source code
Executed
QuickJS
Just-in-time Compilation
JavaScript
source code
Machine code
V8
Executed
JIT Tradeoffs
Ahead-of-time Compilation
C++
source code
Binary
(Native, Wasm, etc)
Clang
Just-in-time Compilation
Unusable outside of the JS engine!
JavaScript
source code
Machine code
V8
Executed
AOT Fixes JIT Tradeoffs
Ahead-of-time Compilation
JavaScript source code
Binary
(Wasm, native, etc)
???
Introducing Porffor
JavaScript source code
Binary
(Wasm, native, etc)
✨ Porffor ✨
Test262: 47.68%
Test262: 47.68%
FUNDING
Performance
Natively compiled - BF Mandelbrot demo
Tiny native compilation
Hello world
Tiny native compilation
Hello world
15KB!
Supports TypeScript input
Written in JS + TS
Thanks! Questions?
Please ask anything and say hi after!
Follow progress on 🐦 @canadahonk or 🌐 porffor.dev