Get the latest tech news

Get in loser. We're rewinding the stack


Sandboxing Perl with WebAssembly - Part 2.

In my last post, I expressed frustration at how the lack of exnref support in most WebAssembly runtimes made zeroperl effectively unusable. Using libsetjmp from the WASI SDK for setjmp/longjmp breaks compatibility across WebAssembly runtimes, so I decided to implement it myself. Binaryen has an Asyncify feature, which provides more than enough functionality to build a setjmp implementation from scratch.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of stack

stack

Photo of loser

loser

Related news:

News photo

Debugging memory corruption: who the hell writes "2" into my stack? (2016)

News photo

My history with Forth and stack machines (2010)

News photo

Get in, Loser—We’re Chasing a Waymo Into the Future