News for hackers. Stuff that matters.

logical42

Re:Caching is an Abstraction, not an Optimization on Saturday July 05, 2025 @06:44PM (#44476178)
You didn't implement change data capture. You're using theirs.
Re:Caching is an Abstraction, not an Optimization on Saturday July 05, 2025 @06:44PM (#44476174)
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.
Re:Caching is an Abstraction, not an Optimization on Saturday July 05, 2025 @06:41PM (#44476165)
That means they did implement change data capture, and only exposed it for a very specific use case.
Re:Caching is an Abstraction, not an Optimization on Friday July 04, 2025 @02:12AM (#44461603)
Adding change data capture to a database isn't exactly trivial.
Re:Caching is an Abstraction, not an Optimization on Friday July 04, 2025 @02:10AM (#44461595)
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.

Re:South Korean Author Han Kang Wins Nobel Prize on Thursday October 10, 2024 @12:24PM (#41800467)
I am tempted to write a book called "The carnivore" though.
Re:South Korean Author Han Kang Wins Nobel Prize on Thursday October 10, 2024 @12:12PM (#41800335)
Well I guess I'm never going to be google-able again.
Re:Do All Problems Have Technical Fixes? on Tuesday October 01, 2024 @07:54PM (#41715734)
food scarcity could be viewed as a bin packing problem when you consider the amount of food that gets thrown away.
Re:Reflecting on 18 Years at Google on Thursday November 23, 2023 @12:03PM (#38394866)
Counterpoint: Apple has been quite successful despite their insistence in silos across teams and orgs.
Re:N64 emulator written in pure ES6 JavaScript on Friday November 17, 2023 @04:01PM (#38310263)
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.

Re:N64 Emulator in JavaScript on Monday September 25, 2023 @10:22AM (#37644244)
You can run it in the browser.

Demo: https://youtu.be/cIMGaOHLgzk

Re:N64 JavaScript Emulator on Tuesday September 19, 2023 @10:09AM (#37570169)
An N64 emulator written completely in javascript, so you can play N64 games in your browser.
Re:GoKart: A static analysis tool for securing Go code on Thursday August 19, 2021 @03:20PM (#28238119)
It's possible in Java.
Re:GoKart: A static analysis tool for securing Go code on Wednesday August 18, 2021 @07:39PM (#28228605)
You know what's fun?

Getting a nil where you are supposed to have an Optional.

Re:'Bath sponge' breakthrough could boost cleaner cars on Sunday April 19, 2020 @12:33PM (#22916940)
There are enough CNG stations to drive from SF to LA as long as you fill up appropriately.
Re:Urbit for Normies on Monday April 13, 2020 @02:45PM (#22858675)
So far I’m not sure if people realize that this is a (non-serious) reference to a Borges short story: https://en.m.wikipedia.org/wiki/Tlön,_Uqbar,_Orbis_Tertius.
Re:Tesla offers ventilators free of cost to hospitals on Wednesday April 01, 2020 @09:08PM (#22755266)
You’re missing the point. It aerosolizes the coronavirus which is especially problematic for the doctors and nurses trying to care for you.
There are Mazdas with the center tactile knob for CarPlay interactions.
Re:A Cheating Scandal Rocking the Poker World on Friday October 04, 2019 @09:53PM (#21163336)
Both would suck to play against but the AI oracle would play optimally and not perfectly.
Any chance you’ll consider releasing the hand history of the session?
There’s also daylight savings time.
Also, Gattaca.
Re:Compare career levels across companies on Wednesday October 31, 2018 @07:43PM (#18350188)
They have fields for additional compensation.
Re:Toyota Investing $500M in Uber in Driverless Car Pact on Monday August 27, 2018 @04:39PM (#17854339)
To be fair, I feel like I, as a human, get confused about what I’m supposed to be doing driving in SF at a rate worse than once every thousand miles.
Pumpkin pie isn’t closed, at least, not from my experience.

Older »