Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
DOOM rendered via console.log() in a web browser (2021) (github.com/mattcozendey)
209 points by jumploops on Feb 26, 2024 | hide | past | favorite | 45 comments


Shouldn't use the term "web browser" when it's Chrome-only.


Everyone in this sub thread:

I agree with the sentiment (as a Firefox user who does not like the Chrome monopoly), but keep in mind this looks like a project purely for fun. The author owes us nothing and is nice enough to share their experiments. They may not have even noticed it only works on Chrome. We can certainly find a nice way to suggest them to specify that this is Chrome-only, maybe by sending a PR on the README file.

There's no need to be negative. You can even convey your message nicely.

Usually, people are receptive to feedback if the feedback is respectful and gentle.


I don't really see how this is being negative? Pedantic maybe, but negative? Do you expect everyone to tiptoe around and gloss over their feedback with layers of happiness?


Title says "in *a* web browser". Chrome is a web browser.


You are technically correct. The best kind of correct.


Yeah, I tried it in 2 different browsers where it didn’t work and then decided to check the comments. I’m not putting Chrome on my machine.



Thorium maeby more interesting!


I'm dissuaded from using Thorium after the news of the developer including... questionable material in their builds[0], and checked into CVS no less.

[0]: https://github.com/Alex313031/thorium/issues/147


Just to clarify I am not recommending Thorium!


What's their patch interval usually like?


Last year's releases (2023) were lagging behind.⏎ Only this yr's releases (2024) are in a timely fashion so far.⏎ However, being forewarned is being forearmed! ⏎ Both (Chromium/Thorium) browsers upstream releases are maintained by Google & both browsers contain various forms of spyware and/or telemetry! ⏎

MOAR:-

thorium.rocks ⏎

github.com/Alex313031/Thorium/releases ⏎

On a personal basis I prefer Firefox & Pals over Chromium & FRIENDS!!! ⏎ The last time I was used by Chromium was 7 years ago!!! ⏎ Carpe Deim!


BTW,

The LATEST Thorium release dropped just last week on 20th Feb which just so happened to be its 56th Release / 30th version birthday!

& IF anyone is interested heresa Firefox Fork:-

github.com/Alex313031/Mercury/releases ⏎

However itsa out-of-date release (v.122.0.2) versus tha LATEST (v.123) Firefox.


What's with the "⏎"?


To distract from the nonspecific answer :D


Also for some reason Mercury Alpha v124.0a1 is available for mac in .dmg


chrome != chromium.

it is the googley additions to chromium that makes chrome


What's missing in Chromium to run the posted project?


how do you know the difference from a closed source project and an open source project?


Did you reply to the wrong thread?


no. am I wrong in thinking that the Chrome source code is not available? Chrome is built on top of Chromium. Chrome != Chromium. So how do you know what the difference between these products are if you can't see it?


Widevine & assorted scum.


This has absolutely nothing to do with the article.


Equivalent: Shouldn't use the term "python" when it's CPython only.


(2021)

The repository has not been updated since which might explain some issues.


Related:

DOOM on Husqvarna Automower

https://news.ycombinator.com/item?id=39504655


Can I run IE3 in the console?


If DOOM can run that way, you can really run anything there.


Unlike DOOM, A browser would need to be able to make network requests, that could be a difficult aspect to handle.

(I know, I know, DOOM has a multiplayer mode :-))


I can't get it to work via remote debugging on iOS. Neither on Safari on the Mac, I notice. Are there any feature flags I have to enable?


> Safari on the Mac

Unlikely, Safari dev tools is bottom of the pile. I'm not sure Safari's console even supports CSS? Each time I'm forced to dip into it due to Safari bugs I get flash backs to the IE days where you had to try to infer everything.


> I'm not sure Safari's console even supports CSS?

It does, at least styling text. And the dev tools, in my opinion, are fine. I'd rather use Firefox for debugging, but my main driver is Orion (Safari-ish with FF/Chrome extension support) and use it a lot for random websites.


Doesn't work in latest Chrome on Mac. :-\


It works for me but it's a bit tricky to control (latest chrome, sonoma, intel)


also works for me on m1


same here


Works on latest Chrome (122.0.6261.69) on a M2 Max Mac.


Worked fine on my M1 Mac mini with Chrome 121.0.6167.184, and after updating to 122.0.6261.69 just now. Only issue I noticed was a bit of jitteriness as the frames were written to the console.


Can't get it to work on Firefox 123


impressive that it works at all, but WAY too laggy to even think about playing


TIL you can console log images. Cool project


Tnx, I have disabled WASM again...

Can anyone recommend a plugin that will allow enabling wasm (like js) per site?


I don't think it is meaningful to enable JS but disable WebAssembly, as almost all of wasm can be translated to JS anyway, as the older Emscripten did with asm.js.


Yeah it's really mostly just a (heavily) stripped down binary JavaScript with basic arithmetic and operations to modify an ArrayBuffer. With Wasm-GC it's a bit more of a binary statically, strongly typed JavaScript. Either way, outside of static, strong typing, the binary representation and SIMD support, it's really not exposing anything fundamentally new.


WASM isn't the reason this works. This could easily be written in pure javascript. The only thing WASM gives you is significantly faster WebWorker-like background threads, but ones that are still limited to WebWorker-only APIs.




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

Search: