RVA JS Logo

Compiling JavaScript Ahead-of-Time with Porffor

Oliver Medhurst

Founder, Porffor.Dev

Oliver Medhurst

Traditionally JavaScript has always been interpreted or just-in-time compiled, while this works great for web browsers, outside of them they can be non-ideal due to resource restrictions, security concerns, and more. Compiling JS ahead-of-time is a new option offering exciting new ways to use JS efficiently: instead of shipping an entire runtime to the end user, why not compile it like C++ or Rust? While ahead-of-time has it's own challenges, for some uses it makes much more sense than previous existing solutions thanks to its characteristics like tiny binary sizes and efficient resource usage. Porffor is a new open-source project which does exactly this! With already promising results, it makes ahead-of-time increasingly considered as one of JS's future paths forward.