Scala.js and WebAssembly - A Tale of the Dangers of the Sea
Explore the challenges and opportunities of integrating Scala.js with WebAssembly in this conference talk from Scala Days Lausanne 2019. Dive into the intricacies of WebAssembly as a language, its linear memory model, and JavaScript interoperability. Examine the Scala IR and its potential translation to WebAssembly, covering topics such as tail recursion, local variables, control flow, and virtual dispatch. Analyze proposed solutions for reference types and interoperability issues. Evaluate the potential performance benefits and effects on Scala programming when considering WebAssembly integration. Gain insights into the future of Scala.js and WebAssembly collaboration, including discussions on GBM implementation and the overall impact on the Scala ecosystem.