HNHacker News
TopNewBestAskShowJobs

jzwinck

5,693 karma · joined December 14, 2011

submissionscomments
jzwinck··on Make your programs run faster by better using the data cache (2020)
Reduce your working set. Make frequently used data and instructions as small and contiguous as possible. Reuse memory, e.g. store two large objects in a variant if you don't need them at the same time, or instead of calling free() keep the pointer until you need space again. Don't let templates bloat your instruction count. Be open to creating custom data structures when the standard library ones aren't optimal for you.
jzwinck··on Make your programs run faster by better using the data cache (2020)
The Jai programming language has some support for that.
jzwinck··on India official empties dam to retrieve lost phone
The article says 2 million liters but then quotes a public official saying 41 lakh liters which means 4.1 million liters.

Maybe the editor of this piece doesn't know what a lakh is: one hundred thousand (of anything).

jzwinck··on Ford EV Customers to Gain Access to 12,000 Tesla Superchargers
See here: https://youtu.be/O1lZ9n2bxWA
jzwinck··on Two types of C programmers
Good point, but not in base 1.
jzwinck··on Overnight 'hotel train' could link San Francisco and Los Angeles
Which countries (or trains) do that? I've taken night trains in four different countries and none of them worked like that. I wish they did.
jzwinck··on Mouse scroll wheel acceleration, implemented in user space
I used one of those mice for many years. It doesn't so much "enable acceleration" as it does "disable deceleration."

A button disengages the wheel from the detents that most mouse wheels have, so it acts like a flywheel.

jzwinck··on A trick to reaching flow: Leave your work broken
The photo of a mountain biker is not unrelated, you just aren't aware of how it's related.

Flow is a term used often in mountain biking, and in a similar way to programming and other pursuits. Garmin even have a metric for it: https://www.garmin.com/en-US/garmin-technology/cycling-scien...

jzwinck··on Reverse-engineering the multiplication algorithm in the Intel 8086 processor
As far as I know, x86 and x86-64 have never had microcode for ASCII (base 10 is what I'm interested in) to binary number conversion. Why do you think this is? It seems like a very common operation these days, and the reasons you gave for microcode multiply seem applicable.
jzwinck··on Boeing 737 Fireliner crashes in remote Western Australia
Until now I had no idea Trinidad and Tobago can be considered part of North America. Any lay person looking at a map would not think so. It seems like an unreasonable definition to me, one which brings more confusion than clarity.
jzwinck··on Ghost boat with GPS leads father-son duo to man overboard
The main reason you want your boat to have a bit of weatherhelm is because it makes the boat go faster upwind. And just because you have slight weatherhelm at optimal upwind trim does not mean the boat will fall into irons if the helmsman goes away.

There are devices to shut off the autopilot for a MOB alarm, but that won't stop the boat. And even if they did put the boat head to wind or heave to, you can't swim fast enough to catch even a drifting sailboat because it has so much more windage than you.

jzwinck··on The US Hasn’t Noticed That China-Made Cars Are Taking over the World
Are you saying this page is wrong? https://en.m.wikipedia.org/wiki/Volvo_Cars
jzwinck··on AMD Alveo V70 AI inference accelerator card
Because high end research uses a fleet of them, not just one.
jzwinck··on Software horror show: SAP Concur
Concur is indeed a poor system.

I suppose the thinking is that by having each employee of a big organization do a small amount of work, they can avoid hiring a central person who just accepts receipts in envelopes and deals with them.

Or maybe that by putting up roadblocks like Concur, some employee expenses will not need to be reimbursed.

The problem is that this requires educating every employee on how to use these systems. That's a waste of time and a drag on productivity. Better to hire that central person who will learn all the quirks of whatever system is used and let the other 99% of the organization do their jobs.

When companies need photos of their employees they find a photographer who provides that service. They don't ask each employee to learn about lighting technique and do the post processing according to a written set of standards in hopes the photos will look consistent. But with Concur that's what happens.

jzwinck··on All About USB-C: Illegal Adapters
If IEEE does that, some manufacturers will just ignore it. Sure they may have to write weasel words like "USB compatible but not USB authorized" on their products, but they'll dominate the market by allowing people to use the largest variety of devices.
jzwinck··on Ask HN: Have you ever intervened over safety when you weren't in charge?
At Burning Man I met a guy who was making...something...by drilling into a big piece of wood while his hand was on the other side of the wood. I told him he shouldn't have his hand in the path of the drill.

"You can't tell me what to do!"

That was a powerful lesson on the American view of personal liberty.

At a big sailing regatta for children (about 100 boats), I saw kids climbing onto a coach boat from the rear with the engine running (in neutral). Feet next to the propeller, even using the prop shaft housing as a foothold. I went over and quietly asked the coach boat driver to turn the engine off. She did, but with the most dismissive eye roll I've ever seen, and some comment about this is how they always do it.

Unlike the Burning Man guy, who I guess had a point that he was free to injure himself if he wanted to, perhaps I should have taken the boat situation to a higher authority. Dumb stuff is happening on boats constantly, but the potential to grievously harm children who wouldn't see it coming makes things different.

jzwinck··on How to sell tickets fairly
Sell a fraction of tickets at higher prices (perhaps via auction) ahead of time, and sell the rest at the door. Scalpers cannot pretend to be multiple people if they have to enter the venue and pay.

The known-price door tickets set a bound on the value of advance tickets, with the latter having a premium for certainty of getting in. Younger people with less money will place less value on certainty (they can wait in line at another concert).

Scalpers can still buy advance tickets and scalp them, but they have reduced pricing power because buyers might rather take a chance at $50 door tickets than pay $500 to a scalper. And there may be less bad press about tickets costing $500 if most of them are sold at the door for $50.

jzwinck··on Emergency SOS via satellite
I only meant that the devices, if properly maintained, can be trusted to do their job as best they can and not say "PC LOAD LETTER" and expect you to troubleshoot it. A successful rescue is never guaranteed.

Those of us who are programmers usually default to "If it's not tested end to end, it won't work," and that is the sentiment I was responding to.

jzwinck··on Emergency SOS via satellite
I dont own this but it is pretty much the standard: https://www.acrartex.com/products/resqlink-400/

These devices require a new battery every few years and that service includes a test done by the manufacturer. There is also a self test button on the device which does not send a message to the satellites.

If you really feel the need to send test messages into space, they do support that but then you need a subscription (https://www.acrartex.com/406link/). At that point you may as well buy a different device which has 2 way messaging included in the subscription. PLB users generally do trust that their devices work the first time they're used for real, and this trust is backed up by a lot of real world use.

jzwinck··on Oskar Barnack: The Father of 35mm Photography
SRAM bicycle parts start from X3 for the cheap stuff up to X9 for nice parts, then X0 is better than X9 and XX is the best. XX can be read as "X ten" but why is X0 between X9 and XX?
jzwinck··on Ask HN: What did Linux not do right?
Sure, every application does that, but the kernel could do it better. What if I'm writing to two filesystems and one of them might have high latency sometimes? Do I make two threads for disk I/O to avoid starving one write when another is slow? The reasons for multiplexing network I/O apply to disk as well.
jzwinck··on Ask HN: What did Linux not do right?
Disk I/O. It's basically all blocking except the fairly recent io_uring which is much more than disk I/O and perhaps a bit daunting for "I want to write some data without starving my main thread." I wish you could use select() and poll() on regular files on disk, like you can for almost all other file descriptors.
jzwinck··on Citrix acquired and merged with Tibco for $16.5B
Citrix is like VNC or Remote Desktop or NoMachine.

Tibco is like Apache ActiveMQ or RabbitMQ or IBM WebSphere MQ.

jzwinck··on Riding in a peloton is the most energy efficient locomotion – research (2018)
Many of those bicycles were stolen from Malaysians, who bought them from the Japanese before the war.

Years after the war, Shimano Japan became the biggest maker of bicycle componentry in the world. They manufacture most of it in Malaysia.

jzwinck··on Don't Pay UK
Not much gas will get stolen. This campaign says they'll stop their direct debit arrangements. They'll still owe the money and most people will pay eventually. It may squeeze the utility companies a bit in the short term though, and I wonder if they have insurance for this kind of thing.
jzwinck··on Foils Have Hooks
It is a wing you attach to the bottom of a surfboard so you can hydrofoil (ride the board with only the foil in the water).

You need energy to move forward. This can come from a tow boat, a kite, waves, jumping with your legs ("pumping" in TFA) or a small propeller ("e-foil").

It's fast because the drag is really low. Same as any hydrofoiling boat like some ferries or America's Cup sailboats.

jzwinck··on Recommended settings for Wi-Fi routers and access points
One is connected and logged on. The other sees the same-named network and is not logged on yet because it doesn't know the password. Two different senses of "connected."
jzwinck··on An Airbus A380 was flown on fuel derived from cooking oil
The fuel is made from used, waste oil. Not something you can cook with. The article explains this.

Same is true when you read about cars and buses powered by cooking oil. They aren't going to the grocery store to buy the oil.

jzwinck··on SSD will fail at 40k power-on hours (2021)
Yes. This one: https://www.reddit.com/r/buildapc/comments/1z2rm5/crucial_m4...

That problem became known a decade ago, so it's somewhat surprising to see such a similar bug now.

This new one is worse because the drive cannot be used after reaching the magic number of hours. In the Crucial M4 case the firmware could be updated even after the bug struck.

jzwinck··on France bans veggie ′steaks,′ ′sausages′ to describe vegetarian products
Just this week I bought two tubs of vegan yogurt by mistake.

They were the same shape, size and color as the milk based yogurts sitting all around them on the shelf. The only clue was the word "soya" printed at the bottom edge of the tubs in small letters. The kind of letters you'd expect to tell you something like the container size or the country the milk came from.

To be fair this vegan nogurt tastes almost the same as the real thing. But I did not appreciate being tricked into buying it.

← PreviousPage 3 of 34Next →