Hacker Newsnew | past | comments | ask | show | jobs | submit | coolelectronics's commentslogin

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


Cloudflare R3 might suit the scenario better for you in terms of the heavy assets, it's like AWS S3 except for the cool part where you aren't charged for data egress (last I checked! haha)

I'm about to buy Terraria after all these years, just so I can get the assets and check this out. You're cool :)


Oh Terraria is totally worth it, especially when spelunking with friends.

Its better than Minecraft, in my opinion.


R2


The service worker jank, while conceptually hacky, is actually remarkably un-janky and not really noticeable to users! It's very much fire-and-forget unless you also wanted to have another service worker (in which case it's time for suffering; service workers aren't even a little bit composable).

For anyone wondering: https://github.com/gzuidhof/coi-serviceworker or https://github.com/WebReflection/mini-coi


Depending on how well the files compress, you could try: https://developer.mozilla.org/en-US/docs/Web/API/Compression...


btw: this results in a white page on the first load until you manually reload, since the SW has not been loaded yet. May want to force a page reload on the SW install event to fix.

also: this is incredibly cool. thanks for writing this up and sharing!


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


Which features do you mean?


I don’t know whether FF lacks these features, but I’m using:

- webpage splits

- search by image

- go to non-<a> url in bg tab

- open in new tab in a virtual sub group rather than just to the right or at the end

- tabs retain width on close until mouse goes away (helps with closing series of tabs)

- bookmarks open in new tab by default

- last tab doesn’t close the browser

- gestures and toolbar customization

That’s in Vivaldi, I probably forgot a bunch of features that feel natural but may have no FF counterpart. Tbh, looking at FF settings, there’s basically none. You can’t miss features that you never had, I guess.


most people don't use those it would be silly to add them to firefox unless it was an extension.


Half of it is ergonomics so basic, that people wouldn’t even mention as a feature.

With this reasoning you could remove tab rearrangement, open in new window and similar “most don’t use” features.


What features?


Like what?


i would always tell them to install firefox. this is mostly for developers and tech oriented people who need to keep chrome around


If I need to keep Chrome around for development, I'm not using extensions on it, and I'm only visiting the sites I'm developing.


If you use things like Apple Business Manager and you're not using a Mac, it only works on Chrome.


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


I don't think SpiderMonkey is the boat anchor you claim it to be: https://arewefastyet.com/linux64/benchmarks/overview


it's satire


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


To be fair I am not talking about small indie games with creative gaming aspect.

Go to steam, sort any 3d category by price and be amazing by the amount of reskinned unity shooters, RPGs, whatever.


https://github.com/pixelomer/discord-fs I know this exists, don't think anyone's done the twitter thing yet


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: