coolelectronics
coolelectronics on Hacker News
Unless you're running every origin in a different instance, I wouldn't use this as a daily driver, since a site would only need to find a renderer vuln to be able to read the rest of your cookies as multiprocess isolation is disabled here
It is required in order to yield the event loop and force an implicit sync on OffscreenCanvas. There is technically a slower workaround for this but JSPI is coming soon anyway to firefox 153 and safari 27.
$25k of tokens, closer to 30 billion I believe. It only took a few days to actually get the engine up, the hard parts where most of the effort was spent was squeezing out performance and increasing stability, as well as attempting the JIT.
Firefox was chosen because its single-process support was in a better place than chromium/blink. WebKit is also possible, it was done by a friend of mine earlier https://github.com/theogbob/WebkitWasm
Oh and for anyone asking, you can run firefox-wasm inside firefox-wasm inside firefox! I only got this to load once though since it gets pretty unstable at that level.
Posted by
coolelectronics on Wednesday July 15, 2026 @05:00PM
from the show-hn dept.
https://developer.puter.com/labs/firefox-wasm/
This is the entire Firefox browser rendering to a <canvas> element. Gecko, all UI components, and the Spidermonkey JS engine are all compiled and running in WebAssembly.Here are a few things you might find interesting:- This is fully end to end encrypted! We use the WISP protocol for TCP-over-websockets.- There is a novel WASM->JS JIT for experimental site speedup- This port cost over...
In the past we had "friends" for this
Posted by
coolelectronics on Tuesday December 02, 2025 @11:37AM
from the developer.puter.com dept.
It took me less than a minute on the site to run into factually wrong information, broken citations, etc. Cannot imagine rotting my brain with knowingly bad information for over 2 hours
Your example proxies the console object, the intended way in this case is to make a proxy from the log function itself and use the apply hook
toString will be called on the Proxy and not your hook so it won't reveal anything
could be very useful for my work, nice to see
I've been basically doing this for years via a private mastodon instance. Very nice to see!
Posted by
coolelectronics on Saturday July 12, 2025 @08:27PM
from the velzie.rip dept.
My bad! Switched over to the github pages fallback. Cloudflare pages isn't suitable because the wasm files (100mb+) exceed the 25mb limit. (i could bypass this with service worker jank but that tends to be fragile). Github Pages also isn't suitable because it doesn't have a native way of sending the coi/coep headers that are required for SharedArrayBuffer to be available. Can also bypass that with service worker jank but I would prefer not to
Posted by
coolelectronics on Monday May 26, 2025 @04:06PM
from the velzie.rip dept.
i do wish! firefox has web features missing that i need on a daily basis, and their developer team seems wholly uninterested on working on them at all
i would always tell them to install firefox. this is mostly for developers and tech oriented people who need to keep chrome around
Posted by
coolelectronics on Thursday June 06, 2024 @06:04PM
from the gist.github.com dept.
why? firefox performance will always be worse than blink, if only because of spidermonkey
the last thing people want from electron is a worse version of it hogging more resources
Posted by
coolelectronics on Sunday December 17, 2023 @03:42PM
from the gist.github.com dept.
really fucking cool! good job
the ability to make "worthless trash games" is the only reason that the indie industry can exist at all. there are huge communities around sharing small lower-effort projects (which countless well-received games started out as) and gatekeeping an engine to enterprise customers only would be a far far worse decision than what they've already done
besides, the rates only kick in after your profit reaches 200k so it wouldn't do anything
Posted by
coolelectronics on Wednesday September 06, 2023 @02:12PM
from the coolelectronics.me dept.
Posted by
coolelectronics on Wednesday August 09, 2023 @01:28PM
from the gist.github.com dept.
Posted by
coolelectronics on Sunday September 18, 2022 @10:29AM
from the show-hn dept.