Surma 's avatar

Surma

@surma.dev

411 followers 23 following 14 posts

DX at Shopify. Web Platform Advocate. Craving simplicity, finding it nowhere. Internetrovert 🏳️‍🌈 He/him.


Surma 's avatar Surma @surma.dev
[ View ]

🎧 Not that loads of people asked for it, but @jakearchibald.com and I put our Off The Main Thread podcast up on Google Podcast/YouTube/Google Music/YouTube Music/<insert Google’s current product iteration name&gt;.

music.youtube.com/playlist?
lis...

0 replies 1 reposts 4 likes


Surma 's avatar Surma @surma.dev
[ View ]

Scheduled a pickup with DHL, they never arrived and I can’t schedule a new pickup time. Went to website and clicked on “Help & Support”. It shows this in response. 10/10 would Lorem Ipsum again.

0 replies 0 reposts 10 likes


Reposted by Surma

Surma 's avatar Surma @surma.dev
[ View ]

🔥 A brand new episode of the Off The Main Thread podcast is out NOW!

While I built Wasmphobia, I learned a lot about how Source Maps (and WebAssembly’s counterpart!) work. In this episode, I try and share it all with @jakearchibald.com!

offthemainthread.tech/episode/why-...

0 replies 3 reposts 8 likes


Surma 's avatar Surma @surma.dev
[ View ]

(⚠️ Definitely one of the dumber things I have written)

This ES6 Proxy lets you instantiate any WebAssembly module without having to care about every import it requires. It generates an empty function for the ones you don’t provide.

gist.github.com/surma/da12f7...

0 replies 0 reposts 3 likes


Surma 's avatar Surma @surma.dev
[ View ]

I added experimental support for JavaScript sourcemaps (both inline and separate) to Wasmphobia.

I liked the idea of making it a one-stop-shop for all your bundle analysis needs 😅

wasmphobia.surma.technology

0 replies 0 reposts 3 likes


Surma 's avatar Surma @surma.dev
[ View ]

I really wanted to know which libraries are bloating my WebAssembly binaries, so I wrote a visualizer.

Throw in a .wasm file with DWARF debug symbols, and wasmphobia will generate a flame graph for you, breaking down the module by source file.

wasmphobia.surma.technology

0 replies 3 reposts 6 likes


Surma 's avatar Surma @surma.dev
[ View ]

ICYMI: In the most recent OTMT podcast episode, @jakearchibald.com and I talk about putting React in the browser.

While that’s good clickbait, the episode is about about past and present platform proposals that aim to help frameworks with managing the DOM.

offthemainthread.tech/episode/putt...

0 replies 1 reposts 4 likes


Reposted by Surma

Surma 's avatar Surma @surma.dev
[ View ]

Trying to get started with Kubernetes. Slightly annoyed by the cyclic “you should know about X first” in the docs 🙄

1 replies 0 reposts 6 likes


Surma 's avatar Surma @surma.dev
[ View ]

Just found a great show-case of AbortController. I don’t think I could make this code as concise without aEL’s support for AC signals. Note that I need to: - access `controller` from within the listener, - access `this` in `start()` - remove the listener in `cancel()`

0 replies 0 reposts 4 likes


Surma 's avatar Surma @surma.dev
[ View ]

One of my biggest upsets with getting more into smart home & automation is the hard data that my washing machine's "TurboWash 59" program takes 65 minutes.

0 replies 0 reposts 6 likes


Reposted by Surma

Jake Archibald's avatar Jake Archibald @jakearchibald.com
[ View ]

🧶 ICYMI, here's the latest episode of OTMT, where me and @surma.dev chat about service worker static routes, and whether it's ever ok to throw away most of the web platform and do everything in <canvas>.

Listen here: offthemainthread.tech/episode/canv...

1 replies 1 reposts 6 likes


Surma 's avatar Surma @surma.dev
[ View ]

The more I get into compilers, the more I think the Dragon Book (used at university and often recommended on the internet) is a bad introduction. It makes it seem like lexing and parsing are difficult and like they are the main part when building a compiler. Neither is true.

0 replies 1 reposts 3 likes


Surma 's avatar Surma @surma.dev
[ View ]

How is that not your profile photo mate

0 replies 0 reposts 1 likes


Surma 's avatar Surma @surma.dev
[ View ]

I have successfully ignored the main quests so far and have just been trying to claim towers and yeet myself through the air 😂

0 replies 0 reposts 0 likes