HN user

logical42

473 karma

Software Engineer @ Coreweave.

Posts18
Comments213
View on HN
github.com 2y ago

N64 emulator written in pure ES6 JavaScript

logical42
3pts2
github.com 2y ago

N64 Emulator in JavaScript

logical42
2pts1
github.com 2y ago

N64 JavaScript Emulator

logical42
1pts2
news.ycombinator.com 6y ago

Ask HN: Best tablet for white boarding during a video conference?

logical42
13pts17
www.reddit.com 12y ago

I am a time traveler from rhe future here to beg you to stop what you are doing

logical42
4pts3
mobile.theverge.com 12y ago

Workers in Silicon Valley No Hire Scandal Granted Class Action Status

logical42
1pts0
mislav.uniqpath.com 12y ago

Vim Revisited (2011)

logical42
33pts11
www.pigdog.org 13y ago

Things to Say When You're Losing a Technical Argument

logical42
3pts0
monkeyandcrow.com 13y ago

Tagging with Active Record and Postgres Arrays

logical42
1pts0
thirst.github.io 13y ago

Open-sourced our rails code for building a google glass app

logical42
3pts1
mashable.com 13y ago

How we built a glass app in three days

logical42
5pts0
news.ycombinator.com 13y ago

Ask HN: What happened to the Netflix Instant queue?

logical42
1pts2
wpengine.com 13y ago

Finely Tuned Consultant: Chris Lema

logical42
1pts0
github.com 13y ago

Logical42/agnostic-frontend · GitHub

logical42
2pts0
existentialtype.wordpress.com 13y ago

Yet Another Reason Not To Be Lazy Or Imperative

logical42
1pts0
logical42.com 13y ago

On 'Getting things done'

logical42
1pts0
www.leftcolumn.net 13y ago

40 Useful Mac OS X Shell Scripts and Terminal Commands

logical42
9pts0
www.naderlibrary.com 14y ago

Charles Carreon vs. The Illuminati and Matt Inman

logical42
2pts1

I would love it if I could over-withdraw money from my bank account by having someone on the other side of the country take out money from my account at an ATM at the exact time as me, due to the fact that the bank's storage system was eventually consistent, but that's not the case.

I agree with you, but you are omitting a key aspect of the problem which makes this hard. If you have a single server serving from a local sqlite database, caching and invalidating the cache is trivially easy.

It becomes way more difficult when you have N servers all of which could potentially serve the same data. Local caches could then, yes easily become stale, and even if you have a propagation mechanism, you couldn't guarantee against network failures or latency issues.

But suppose you have an HA redis instance that you store your cached data in. Even with a write-through cache, you basically need to implement a 2-phase commit to ensure consistency.

n64js is an n64 emulator written in (mostly) pure ES6 JavaScript. It runs many roms at full framerate.

Why?

Mostly for the challenge. [hulkholden] spent ~25 years (on and off) working on N64 emulators and writing one in JavaScript gives [him] the opportunity to expand [their] comfort zone and learn something new. It's a good showcase for how powerful modern browsers have become.