Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 3y ago · link · parent

This is great. I’m not clear on if the bugs you are finding are in Ghidra’s processor model or in the emulator? (Though I think it’s the latter?) Also, why would Ghidra have the best (most accurate?) processor model vs some of the highest quality emulators?

One other question: when the cpu is being emulated at a 50th of its actual speed (or less!) how does replaying recorded input work? Do all games strictly use interrupts to read input or do any poll the state instead (or maybe just at certain sequences or for certain portions of the gameplay)? If the latter, did you have to adjust the key down/key up events you were replaying to avoid a slow-executing cpu missing inputs? (As you might be able to guess, I’m an embedded dev but haven’t dabbled with emulators beyond using them.)

Thanks in advance and again, awesome work!

comment 3y ago · link · parent

> There’s a general rule about consumer electronics: The older a device becomes, the more competitors appear and prices fall. This was true for televisions, personal computers and portable music players.

> It was supposed to happen with smartphones. But the iPhone has defied gravity.

The lock-in effect is real. The Sony and RCA of yesteryear would have killed for this sort of walled garden.

…

> The new flagship iPhones that Apple is set to unveil this week will feature speedier processors, more sophisticated cameras and titanium rather than stainless steel cases, according to supply chain analysts. The changes are expected to come with a $100 to $200 price increase, bringing the cost of an iPhone Pro to $1,100 and the Pro Max to $1,200.

Such paper-thin excuses to raise the price. By all rights, the genuine tech in an iPhone has become so pedestrian that prices should have plummeted, yet they continue to increase as long as the market will bear it.

comment 3y ago · link · parent

By letting the food “sit,” I save water two different ways: no need to rinse off proteins or sauces, and no need to run the dishwasher with a less-than-full-load (which wastes both water and electricity).

To be honest, since having kids and their being at a certain age, we now run the dishwasher filled to the brim every other day at most, so it’s a moot point. But in all cases, it runs while we’re sleeping and it makes no difference to me if it takes an hour or six.

The only time I’ve ever wished it finished faster is on the occasion of hosting guests and having more than the regular expected daily churn in dining ware. And that doesn’t happen enough to matter.

comment 3y ago · link · parent

How/why do European front-loaders avoid that problem?

comment 3y ago · link · parent

Thanks for your kind and detailed reply!

I didn’t really mean “immediately” so much as “you can’t leave it overnight then possibly forget about it the next morning,” but yeah, it seems to depend on the weather and other things (more on that below). Hasn’t happened in a while. The washing machine is clean, I scrub out the mold in the detergent tray regularly and have always left the door open. I used to run the cleaning cycle from time to time but don’t think it is necessary since I do whites with plenty bleach at scalding hot temps often enough. It happened with our old top loader, too. More than anything though, you can smell a moldy washer and ours doesn’t smell and a freshly washed load normally doesn’t either.

It seems to be the Lake Michigan water we are hooked up to responsible for the stinky occasions. I read up about this a few years ago and they actually monitor for the levels of the molecule (I don’t think it was bacteria?) that gives wet clothes their stink since it is rampant in the Great Lakes and they are constantly adjusting because it’s expensive to counteract more than they feel they need to. My guess is that they got their act together in recent years. Another point in this direction is that it happens some summers to towels used after a shower while they’re hanging to dry. I’m pretty sure it’s just the water.

Oh, and in answer to your question, we definitely noticed the euro-style front-loader was harder on the clothes than the old American top-loader – though it also did get more stains out. But yes, we too fill it up properly to capacity to avoid the waste of running it empty or mostly so - and I guess the increased friction would contribute.

comment 3y ago · link · parent

The follow-up to the video is worth linking to, if only because it explains why liquid detergent is crap: https://www.youtube.com/watch?v=Ll6-eGDpimU

comment 3y ago · link · parent

Maybe it’s your dishwasher or you are not putting powder in the pre-rinse compartment in addition to the action pack or powder in the main compartment. It doesn’t matter how old or baked-on the food residue is, and it can be baked-on cheese, egg, meat, burned gravy, whatever and it’ll reliably come off in the (European) dishwasher each time, every time.

Even when I was in a rental with a crappy American unit from the 80s, it would still get everything though I often had to use the extended “pots and pans” cycles for that to happen.

But yes, utensils can and do corrode in the dishwasher over time if you have different metals thrown together in the high-temp, high-conductivity alkaline bath.

comment 3y ago · link · parent

I do the dishes one load at a time (wait for the dishwasher to fill up so I’m not running it empty) and let my European-make dishwasher run overnight when electricity is cheapest and cleanest. But laundry requires being hung or transferred to the dryer immediately after to avoid things getting stinky - and I usually have multiple sorted loads (whites, colors, delicates) that I can’t just throw all together so I actually do get annoyed at how slow my front-loading washing machine is.

comment 3y ago · link · parent

Obviously GP means the units should be converted to whatever they actually want usage/cycle to be.

comment 3y ago · link · parent

Apparently a good part of the reason (parts of) the Midwest can get uncomfortably humid some summers despite being so far from large bodies of water is the evapotranspiration from the crops (mostly the corn). So too much evapotranspiration is not always a great thing!

(Of course those are being watered regularly.)

comment 3y ago · link · parent

Native, grown trees need no watering, even in a (one- or two-off) drought.

comment 3y ago · link · parent

Can you feasibly run this behind nginx (either over http in a regular reverse proxy setup or with sort of more clever shared memory forwarding situation?) so you could, eg use nginx-unit instead of php-fpm but keep everything (ssl termination, rate limiting, etc) centralized behind your core nginx load balancer?

Edit: yes, it’s as straightforward as it sounds: https://unit.nginx.org/howto/integration/

comment 3y ago · link · parent

I can’t say I know the percentage of Linux servers running ASP.NET Core but the percentage of ASP.NET Core apps running on Linux is no longer negligible. Bing runs it on Linux, iirc.

This isn’t the dark days of .NET Framework anymore.

comment 3y ago · link · parent

Those benchmark outcomes are ridiculously in nginx-unit’s favor over php-fpm, way more than I would have believed was possible. What is php-fpm doing architecturally that is so different to warrant such poor relative performance?

comment 3y ago · link · parent

Time to get a 3D printer!

comment 3y ago · link · parent

I don’t know about Wikipedia but I’m speaking from lived historical experience.

Here’s a throwback for you: https://www.phpbb.com/customise/db/styles/smilies-13

(All “emoji” images were just called smilies in a lot of software.)

comment 3y ago · link · parent

Not a Lego expert but from a material science perspective your worst culprit is always going to be UV, or sun exposure. It’ll change colors, make plastics brittle, and even introduce some warping. Then come heat and oxygen. Obviously some materials are more susceptible to chemical damage than others; ABS is very prone to breaking down even from exposure to weak solvents while PET is ridiculously solvent-resistant.

Storing old bricks with new shouldn’t really matter. ABS off gases but mainly when heated. Most damage to ABS is irreversible. It’s not a great long-term material and it has many shortcomings.

comment 3y ago · link · parent

No, implementation defined refers to the compiler implementation, which wouldn’t be the source of behavior here.

comment 3y ago · link · parent

Clever use of the dev tools console. I think you’re being a little uncharitable, the prompt said “smiley” and not “smiling emoji” and “smiley” was once upon a time used for the whole slew of emoji. With that in mind, several others also pass.

comment 3y ago · link · parent

Just to double-check, Bun doesn’t support targeting the web, right?

comment 3y ago · link · parent

Good point. But a compressor pre-stage is still a lot cheaper and more scalable than actually filtering through that many particles to get at each gram of CO2, no?

comment 3y ago · link · parent

On-topic tangent: reminder or heads-up (depending on if you’ve already seen this) that Postgres is experimenting with thread-based instead of process-based connections (which would pretty much obviate the need for pgBouncer if it works out and becomes the connection model going forward).

HN discussion from a few months ago, with lots of commentary relevant to any pgBouncer scenarios: https://news.ycombinator.com/item?id=36393030

comment 3y ago · link · parent

I came to a different conclusion (see sibling comment to yours) in part because I don’t believe the 98% O2 solution was toxic (and it would be if the other 2% were CO2, no?). I don’t have hard evidence for that belief, but I just expect that if it were toxic it would have been mentioned and NASA wouldn’t have been celebrating. (My guess was non-CO2 atmospheric gases.)

comment 3y ago · link · parent

Obviously the bulk of it is expelled separately - I’m just saying it could be an imperfect process.

comment 3y ago · link · parent

This works (and works well enough) because the atmosphere on Mars is 95% CO2.

On Earth, CO2 concentration is around 425 ppm (parts per million). On Mars, it is ~953,200 ppm!

If we had the same CO2 concentration on Earth, atmospheric carbon dioxide scrubbers and CO2 sequestration solutions would be many orders of magnitude more efficient (and therefore more feasible - enough to actually clean up the mess we’ve made of things, even). But we’d all be dead.

comment 3y ago · link · parent

I’m guessing CO2 that didn’t undergo conversion? Or the non-CO2 gases (comprising ~5% of the Martian atmosphere) that made it into the system and thus weren’t affected? Or the CO byproduct that wasn’t expelled separately?

Edit: thinking about the numbers some, I think non-CO2 (Martian!) atmospheric gases is a good guess for the bulk because they’re 5% of the atmosphere and the conversion input is two CO2 for one O2 out, so at the 2:1 ratio with 0.95 of the input converted you end up with 98.96% converted to either O2 or CO, and the rest is whatever else you had mixed in there, if I did the math right. Depending on how the O2 and CO are separated, the non-CO2 gases not affected by the conversion/reaction could plausibly end up all with the O2, all with the CO, or some mix of the two (probably by weight?). Add in a few ppm of CO2 that slipped through the process unconverted and Bob’s your uncle. Maybe.

comment 3y ago · link · parent

The headline initially sounds really positive then you realize the current count is 50% of what it was just in 2011.

comment 3y ago · link · parent

Not supported on iOS, which is a good chunk of the mobile traffic you’re trying to identify.

comment 3y ago · link · parent

Archived: https://archive.ph/YZ0Rz
1
484950
277