Taking JavaScript into Python

August 3, 2023 By Mark Otto Off

A Tale of Evading JavaScript Anti-Debugging Techniques โ€” When youโ€™re poking arounddebugging code written and distributed by a third party, there might be some sneaky traps thrown in your path to prevent your usual techniques from working. What next? Disable breakpoints in DevTools? Use a proxy? What about.. recompiling your entire browser? ๐Ÿ˜†

Veritas

This reminds me of the guy who scraped pages by dumping heap snapshots from the browser โ€“ another fun post if you enjoy low level spelunking.

PythonMonkey: JavaScript/WASM Interop for Python โ€” The alpha release of a new way to bring Python and JavaScript together, by way of embedding Mozilla SpiderMonkey into the Python VM. This post introduces the concept with some examples, an idea of where the project is headed, as well as some Colab demos. GitHub repo.

Will Pringle

โšก๏ธ IN BRIEF:

๐ŸŽ‰ RELEASES:

๐Ÿ“’ Articles & Tutorials

Speeding Up V8 Heap Snapshots โ€” When diagnosing a memory leak in a JavaScript app, engineers at Bloomberg encountered some weird performance issues with capturing a single full-size heapshot taking more than 30 minutes(!) at times. Hereโ€™s the full story of how they investigated and resolved the problem.

Josรฉ Dapena Paz (Igalia)

๐Ÿ›  Code & Tools

OGL 1.0: A Minimal WebGL Framework โ€” WebGL is far from the easiest technology to use on its own, so libraries like Three.js are often used to make it more accessible. OGL has a similar motive to Three.js while remaining far closer to the WebGL metal.

Nathan Gordon et al.

Find JavaScript Jobs with Hired โ€” Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.
Hired

๐Ÿง‘โ€๐Ÿ’ป Got a job listing to share? Here’s how.

Size Limit 8.2: JavaScript Performance Budgeting Tool โ€” Calculate the real โ€˜costโ€™ to run your JS app or lib and maintain an eye on performance and raise the alarm (in your CI system, say) when things go awry. Supports ES modules and tree shaking.

Andrey Sitnik

๐Ÿด Let’s hit the Oregon Trail

The Oregon Trail was a 2000+ mile wagon route used by traders and migrants headed west in the early days of the United States. It was also a hugely popular computer game that, more often than not, ended in disaster for the virtual settlers whose lives you directed.

Particularly popular on the Apple II and early Macs, you can give the game a spin via the following project:

Macintosh.js: A Virtual Macintosh Running via Electron โ€” An impressive virtual machine emulating a 1991 Macintosh Quadra 900 with System 8, all running in Electron. We linked to this several years ago but itโ€™s had some updates since then and runs faster than before. As well as a few games, such as Oregon Trail, there are a variety of apps pre-installed, including a trial of Adobe Photoshop 3 which starts up faster than my real Photoshop now.. (Download necessary since it’s an Electron app and all..)

Felix Rieseberg, Apple, et al.