HNHacker News
TopNewBestAskShowJobs

rented_mule

1,755 karma · joined July 4, 2021

submissionscomments
rented_mule··on California farmers to destroy 420k peach trees following Del Monte bankruptcy
There's a good chance of that, yes! Farmers tend to be very good at getting every bit of value out of things. I live in the Sierras, uphill from many of these peach trees. Near the peach trees are lots and lots of almond trees. Almond trees are rotated (removed and replaced with young trees) every couple of decades or so, so 3-5% are taken out every year.

A lot of the removed almond tree wood is sold to people like me up in the Sierras where we heat with it in the winter. Almond has significantly more energy per unit of volume that most other species of trees in our area. I don't like the smell of burning almond wood. I bet peach wood smells a lot better, but it would take a lot more space to store the same energy.

rented_mule··on Uber torches 2026 AI budget on Claude Code in four months
I have friends at two different companies that are taking a stick, rather than carrot, approach to this. They've set monthly minimums for token usage. Anything less than that gets you dinged in your next performance review. Imagine hiring a carpenter and writing a bad online review for them because they didn't use their hammer enough, even though the end product was on time, on budget, and worked well.

I was at a company 20 years ago that took this approach to automated tests. Everyone must write 2 a day, even if that's the only code they write that day. Once it was clear that this was being checked with automation, scripts were going around to generate and commit tests that 1 + 2 == 3 (replace with random numbers). Of course tokens are being burned this way at companies like this.

rented_mule··on Tesla tells HW3 owner to 'be patient' after 7 years of waiting for FSD
It's easier to predict, understand, and react to your own driving behavior.
rented_mule··on Installing every* Firefox extension
It's inline. Search the page for (and heed): epilepsy warning
rented_mule··on Why the US Navy won't blast the Iranians and 'open' Strait of Hormuz
I saw hints of this ~20 years ago. I was working on software for a consumer device. For manufacturing it, we chose Foxconn. One non-negotiable point from their end was that they had to write some of the software on the device. They didn't care which part or how small.

The device had a physical keyboard with a micocontroller that managed it and they ended up writing the code that ran on that micro as it was largely independent of the code we were writing, and easy for us to test. The first versions were not great, but they got better quickly.

As we talked amongst ourselves about why they were so emphatic about this, it became clear to us that they were taking a long term view of the importance of moving into the intellectual property side of things. Dustin points out that, in some areas, they are there.

rented_mule··on We rewrote our Rust WASM parser in TypeScript and it got faster
What an honor to have Walter Bright respond to my comment! I used Zortech C++ extensively in the late 1980s and early 1990s on OS/2 and Windows. That beautiful black and purple cube-shaped box sat prominently on my bookshelf for many years. Thanks Walter!
rented_mule··on We rewrote our Rust WASM parser in TypeScript and it got faster
Something not unlike this happened to me when moving some batch processing code from C++ to Python 1.4 (this was 1997). The batch started finishing about 10x faster. We refused to believe it at first and started looking to make sure the work was actually being done. It was.

The port had been done in a weekend just to see if we could use Python in production. The C++ code had taken a few months to write. The port was pretty direct, function for function. It was even line for line where language and library differences didn't offer an easier way.

A couple of us worked together for a day to find the reason for the speedup. Just looking at the code didn't give us any clues, so we started profiling both versions. We found out that the port had accidentally fixed a previously unknown bug in some code that built and compared cache keys. After identifying the small misbehaving function, we had to study the C++ code pretty hard to even understand what the problem was. I don't remember the exact nature of the bug, but I do remember thinking that particular type of bug would be hard to express in Python, and that's exactly why it was accidentally fixed.

We immediately started moving the rest of our back end to Python. Most things were slower, but not by much because most of our back end was i/o bound. We soon found out that we could make algorithmic improvements so much more quickly, so a lot of the slowest things got a lot faster than they had ever been. And, most importantly, we (the software developers) got quite a bit faster.

rented_mule··on Atari 2600 BASIC Programming (2015)
As a kid, I had the hardest time understanding what a computer was. At 9 years old in 1977, I had a friend whose dad was a computer programmer. The friend tried to explain to me what a computer was, but I just couldn't understand it. We even took a field trip to a National Weather Service office where they talked a lot about their computers and showed us one that filled a room, but I still didn't understand. None of the explanations made it sound like anything other than magic happening in a big set of boxes.

At 12 years old in 1980, I bought Atari BASIC Programming (it wasn't yet called the 2600). Minutes after plugging it in, the idea of a computer clicked for me. That quickly led to getting bored with that game system and convincing my parents to buy me a "real" computer. Eventually that led to a long career as a software developer. Thanks for opening that door for me Atari BASIC Programming!

rented_mule··on The Eternal Promise: A History of Attempts to Eliminate Programmers
Randomly, I spent an afternoon with a team of loom engineers long ago. In 1989, I took a month-long trip to the USSR. Trips for Americans back then were guided / chaperoned by the Soviet government, with the clear intention of showing off what the Soviet system was capable of. To see their manufacturing prowess, we spent an entire afternoon touring an automated bed-sheet factory and talking with the team that designed and maintained the machines. I don't remember much other than the intense noise and the large number of machines with white cotton sheets coming out.

All the sheets we saw in that factory, and in our hotels, were noticeably thicker and stiffer than American sheets, somewhere between American sheets and denim. When we asked about that, they seemed to feel sorry that we only had thin, flimsy sheets.

rented_mule··on Long-term unemployment is becoming 'a status quo' in today's job market
If you know about this ahead of time, and can be a contractor, then forming a corporation that is its own tax entity gives you this in the US. I did exactly this in the mid-90s when 9 months of work was suddenly going to yield 4-5x what I had made the previous year, then I would lose the position immediately after, and I knew I would need a break at that point. I paid myself the regular salary whether the corporation was making a lot or making nothing. The corporation had to pay taxes on the profit the first year, but it could deduct the loses against those profits in later years. The same thing happened 5 years later. All my work for a decade was through the corporation I had formed. You can also do things like have a company car (with the company deducting insurance, gas, maintenance, etc.), rent your home office to the company, and much more. US tax laws are much better for corporations and their owners than for individuals.
rented_mule··on Australian author's erotic novel is child sex abuse material, judge finds
> Basically thought crime

Let's go in the opposite direction...

>> Amanda was 10 years old. she went into the bathroom and had sex with a 30 year old man.

If the story was real, should Amanda be banned from publishing her own account of her experience later in life? Should she be able to write about the impact it had on her? I think she should have that freedom.

What if she was 17 years 364 days old and the adult was 18 years 1 day old, assuming the age of consent is 18, and she writes about it being a good experience for her? 16 years old and 20? 4 and 40? Those are increasingly grotesque to me, but I don't know where to draw the line.

Wait, have I crossed the line in what I've written in this reply? Have we all?

rented_mule··on Australian author's erotic novel is child sex abuse material, judge finds
I think one additional objection to AI generated depictions is that photo-realistic AI generated content gives plausible deniability to those who create/possess real life CSAM.
rented_mule··on Uber Found Liable in Rape by Driver, Setting Stage for Cases
Oh wow, what a bad memory. This exact thing happened in a building I lived in several years ago, a couple of floors above me. It looked like waterfalls outside our windows and water was rushing in under the baseboards. All while every fire alarm in the building was going off and fire truck sirens were blaring outside. Understandably, the fire department would not turn off the water until they had been to every floor to check for fire. On the upside, it's impressive how much water can be delivered by fire sprinklers.

Closer to the topic, the building's management company tried to come after me (a renter) for the expense of the restoration people who were brought in to rip out my drywall and carpet so mold wouldn't form. Maybe they figured tenants were an easier target than the contractor's insurance? Oh, and the management company were the ones who selected and hired the contractors. I had to get very aggressive, with plenty of threats of legal action, to get them to back down. That was fairly easy to do as my state's laws specifically specify liability rules for flooding in multi-tenant buildings. They never did do repairs while I was there - I moved out when my lease expired nearly a year later as they were tying to raise the rent, with drywall still missing.

rented_mule··on Cubans rendered powerless as outages persist and tensions with US escalate
A fascinating takeaway from that video for me... If you take the US land that is dedicated to growing corn for ethanol that is put in gasoline, and replace all the corn on that land with solar panels, how much energy would it produce? Twice today's total electrical generation in the US, from all sources. And that's in the corn belt, which is far from ideal for solar. It would be billions of panels, but it's a pretty interesting perspective on the questions about the land use requirements of solar.
rented_mule··on CIA to Sunset the World Factbook
20 years ago, I was working on a consumer device, doing indexing and searching of books. The indexer had about 1 MB of RAM available, and had to work in the background on a very slow, single core CPU, without the user noticing any slowdown. A lot of the optimization work involved trying to get algorithmic complexity and memory use closer to a function of the distinct words in books than to a function of the total words in books. Typical novels have on the order of 10 K distinct words and 100 K total words.

If you're indexing numbers, which we did, this book has little difference between total words and distinct words because it has so many distinct numbers in it. It ended up being a regular stress test to make sure our approach to capping memory use was working. But, because it constantly triggered that approach to capping memory usage, it took far longer to index than more typical books, including many that were much larger.

rented_mule··on X offices raided in France as UK opens fresh investigation into Grok
> Even the Google "AI" knows better than that. CSAM "is [...]"

Please don't use the "knowledge" of LLMs as evidence or support for anything. Generative models generate things that have some likelihood of being consistent with their input material, they don't "know" things.

Just last night, I did a Google search related to the cell tower recently constructed next to our local fire house. Above the search results, Gemini stated that the new tower is physically located on the Facebook page of the fire department.

Does this support the idea that "some physical cell towers are located on Facebook pages"? It does not. At best, it supports that the likelihood that the generated text is completely consistent with the model's input is less than 100% and/or that input to the model was factually incorrect.

rented_mule··on The TSA's New $45 Fee to Fly Without ID Is Illegal
California offers both. I renewed my license last year. I opted for a non Real ID version because I could renew online rather than spend hours at the DMV.
rented_mule··on Ask HN: Do you still use physical calculators?
I can't think of another electronic device that has survived and remained useful for half the 43 years my 15C has - through two years of high school, a math degree, and an entire software engineering career. When I calculate something any other way, it involves thinking about what my thumbs automatically do on my 15C and translating that.

When I'm away from it, there's a wonderful emulation of the 15C (and 16C) at https://jrpn.jovial.com. The numeric algorithms behave identically as far as I can tell, and it even includes the back panel (3-dot menu near the logo, then "Help"). The visuals make me feel right at home. If only they could reproduce the tactile experience.

rented_mule··on Interesting facts I've learned about wildfires over the years
The Lookout (https://www.youtube.com/@TheLookout1 and https://the-lookout.org), by Zeke Lunder, is a great resource for learning about wildfire. Zeke spent many years doing GIS / cartography onsite for wildfire fighting efforts.

My neighbor, who spent 40 years in the USFS doing fire fighting and prevention, pointed Zeke out to me saying, "This guy really understands fire." Zeke does great live streams during large wildfires, explaining what is happening with webcams and mapping of near-realtime data. It's crazy to watch him triangulate smoke plumes from multiple webcams and then correlate that with cartographic data put out by the agencies fighting the fire. His experience is obvious when you see how calmly, quickly, and rationally he evaluates devastating situations.

rented_mule··on We can’t send mail farther than 500 miles (2002)
About the same time the 500-mile email problem happened (mid 1990s), I had a difficult to understand issue with my office PC. Every morning, I'd come in, slide my hard drive sled in, and turn the computer on. We had 128 Kbps ISDN internet at the office and I had the same at home, but that was too slow to do much work. So I'd take the drive home so I could work at night, especially in the winter when the office was too cold at night.

Suddenly one winter morning, the PC wouldn't boot. I had to run to a meeting. When I got back, I turned the PC off and on again and everything was fine. The next morning, the same thing happened. The third day, I didn't have a meeting. I turned it off and back on, still no boot. I'd gotten in late, so I just turned it off and took an early lunch. When I got back, it still wouldn't boot. But I had a meeting, so I ran to that, leaving the computer on. When I got back, it booted fine.

The next morning, same thing. I decided to look inside, not having any idea what might cause such symptoms. As I took the shell off, a tiny mouse came out, jump off my desk, and ran across my lap before jumping on the floor and scurrying out of sight. From inside the computer came the smell of mouse urine. Apparently he'd been crawling in through the open drive bay to keep warm every night, and urinating while he was in there. Once the computer had been on for a while, the heat and airflow would dry it out enough to eliminate whatever electrical short was keeping it from booting. I went to the store and bought an empty drive sled to put in the drive bay whenever I took my drive out, and the problem never came back. I felt lucky that the liquid didn't cause permanent damage.

rented_mule··on The Responsibility of Intellectuals (1967)
> you need to be better to it than it is to you

If the person you are responding to hasn't screwed society over, then it sounds like they have easily cleared that bar, even by doing nothing.

rented_mule··on California is free of drought for the first time in 25 years
I wish I'd missed it. We had 12 feet of snow in 3 weeks where I live in the Sierra, and we're only at 4,500 feet above sea level. We average several feet a year, so we know snow, but not 12 feet in 3 weeks. We couldn't see out of our windows. I spent 3-8 hours a day for 3 weeks clearing snow from our driveway and cul-de-sac, only to have to wait longer for the county to clear the road beyond. We were running out of places to put the snow we cleared. Towards the end, people could no longer clear their roofs because the snow on the ground was so high. Decks collapsed everywhere, as did several roofs. There was no getting out for supplies, emergencies, etc. The ski resort nearest us closed because it was too difficult to get there.

Immediately after, we had a foot of rain in two weeks. That took care of much of the snow. But it also washed away significant roads (along with several feet of earth beneath them), some of which took a year or more to get back open.

The ground was so saturated that many septic systems failed in my neighborhood, some with water running into the houses through toilets/drains because the underground water table on the high side of their property was above those drains (artesian springs aren't so charming when they are coming through your septic system and out of your toilet). Most of those folks have installed one-way valves now, but that still means you can't flush in such scenarios because the water has nowhere to go. Ours didn't flow in reverse, but our drains/toilets stopped draining for ~2 months.

I like winter weather, but I'd be happy to never relive Feb/Mar of 2023 in the Sierra. I'll still take it over the floods that happen in valleys and flat lands as a result of such events.

rented_mule··on Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)
I like the peer comment's answer about a processing time threshold (e.g., a day). Another obvious threshold is data that doesn't conveniently fit on local disks. Large scale processing solutions can often process directly from/to object stores like S3. And if it's running inside the same provider (e.g., AWS in the case of S3), data can often be streamed much faster than with local SSDs. 10GB/s has been available for a decade or more, and I think 100GB/s is available these days.
rented_mule··on Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)
I don't know what the GP was referring too, but often this is about "JSONL" / "JSON Lines" - files containing one JSON object per line. This is common for things like log files. So, process the data as each line is deserialized rather than deserializing the entire file first.
rented_mule··on Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)
A little bit of history related to the article for any who might be interested...

mrjob, the tool mentioned in the article, has a local mode that does not use Hadoop, but just runs on the local computer. That mode is primarily for developing jobs you'll later run on a Hadoop cluster over more data. But, for smaller datasets, that local mode can be significantly faster than running on a cluster with Hadoop. That's especially true for transient AWS EMR clusters — for smaller jobs, local mode often finishes before the cluster is up and ready to start working.

Even so, I bet the author's approach is still significantly faster than mrjob's local mode for that dataset. What MapReduce brought was a constrained computation model that made it easy to scale way up. That has trade-offs that typically aren't worth it if you don't need that scale. Scaling up here refers to data that wouldn't easily fit on disks of the day — the ability to seamlessly stream input/output data from/to S3 was powerful.

I used mrjob a lot in the early 2010s — jobs that I worked on cumulatively processed many petabytes of data. What it enabled you to do, and how easy it was to do it, was pretty amazing when it was first released in 2010. But it hasn't been very relevant for a while now.

rented_mule··on Ask HN: When has a "dumb" solution beaten a sophisticated one for you?
Nearly 20 years ago, I was working on indexing gigabytes of text on a mobile CPU, before smart phones caused massive investment in such CPUs. Word normalization logic (e.g., sky/skies/sky's -> sky) was very slow, so I used an in-memory cache, which sped it up immensely. Conceptually, the cache looked like {"sky": "sky", "skies": "sky", "sky's": "sky", "cats": "cat", ...}.

I needed cache eviction logic as there was only 1 MB of RAM available to the indexer, and most of that was used by the library that parsed the input format. The initial version of that logic emptied the entire cache when it hit a certain number of entries, just as a placeholder. When I got around to adding some LRU eviction logic, it became faster on our desktop simulator, but far slower on the embedded device (slower than with no cache at all). I tried several different "smart" eviction strategies. All of them were faster on the desktop and slower on the device. The disconnect came down to CPU cache (not word cache) size / strategy differences between the desktop and mobile CPUs — that was fun to diagnose!

We ended up shipping the "dumb" eviction logic because it was so much faster. The eviction function was only two lines of code, plus a large comment explaining all this and saying something to the effect of "yes, this looks dumb, but test speed on the target device when making it smarter."

rented_mule··on Light Mode InFFFFFFlation
> The daylight is orders of magnitude stronger but you have no problem with it because your eyes adapt.

It turns out bodies don't all respond the same way to the same stimuli. Sunny days cause me real pain. A thin layer of ground fog with bright sun above it is brutal for me, as is bright sun with snow on the ground. I feel so much more comfortable outside on a dark, cloudy day. My eye doctor tells me she frequently hears the same from others. Each of us has a different response curve to light levels.

rented_mule··on The five orders of ignorance (2000)
> In my experience, most people don’t know what should be developed. Even users don’t know if you ask them.

That's also my experience. The most productive use of coding agents I've found so far is rooted in this.

I wanted to build a tool, for my own use, to let me specify a simple 2D geometry using a textual representation that looks like a simple version of the geometry itself. I'm the user and the implementer, so it should be easy right? I had some ideas for the basics of the textual representation, but the details were far from obvious.

I spent ~10 hours having AI give me suggestions and refinements for the textual representation along with evolving code to parse the representation. It turned out to be a highly productive way to explore the space of trade-offs. This representation looks really good, but it's ambiguous in some cases. That one is not ambiguous, but parsing is tricky. That one is too annoying for the user. It was all about quickly gathering the knowledge and therefore understanding what to build.

When I finally settled on a representation that had a good set of trade-offs, the code was pretty ugly. It worked, but it was about 1,200 lines of code, with weak tests. I tried to have the AI refactor it, and even restart from the final representation choices. Its best version was 1,000 lines of code that were difficult to understand.

I was getting on a plane with no internet the next day. So, armed with all the gathered knowledge, I decided to see what I could do with the code on the plane. It was too complicated to refactor as I went. So I rewrote it from scratch, employing the knowledge I'd built up. In 2-3 hours, I had a complete implementation that was simple to understand and less than 300 lines of code. ~40% of those lines of code were tests that were quite robust.

That amount of iteration in the knowledge gathering step would have taken me closer to a couple of weeks without the AI. And, by employing Fred Brooks' "build one to throw away" (a concept that I think is largely about the same thing as the article), I had a solid implementation without much more work.

I'm sure this workflow is not for everyone. But it (accidentally) leaned into the topic of the article, and I think that's exactly why it worked so well for me.

rented_mule··on A Brief Introduction to the Basics of Game Theory
I wish more business / product people understood this concept. When a product has been refined enough to approach Pareto optimality (at least on the dimensions the product is easily measured), it's all too common for people to chase improvements to one metric at a time, and when that runs out, switch to another metric. This results in going in circles (make metric A go up-up-up, forcing metric B down-down-down, then make B go up-up-up while forcing A to go down-down-down - it's worse than this because multiple dimensions go up/down together, making it harder to spot). Sometimes these cycles are over a period of quarters or years, making it even harder to spot because cycles are slower than employee attrition.

This is not independent of Goodhart's Law[1]. I've seen entire product orgs, on a very mature product (i.e., nearing the Pareto frontier for the metrics that are tracked), assign one metric per PM and tie PM comp to their individual metric improving. Then PMs wheel and deal away good features because "don't ship your thing that hurts my metric and I won't ship my thing that hurts yours" - and that's completely rational given the incentives. Of course the best wheelers-and-dealers get the money/promotions. So the games escalate ("you didn't deal last time, so it's going to cost you more this time"). Eventually negative politics explode and it's all just a reality TV show. Meanwhile engineers who don't have an inside view of what's going on are left wondering why PMs appear to be acting insane with ship/no-ship decisions.

If more people understood Pareto optimality and Goodhart's Law, even at a surface level, I think being "data driven" would be a much better thing.

[1] Goodhart's Law: when a measure becomes a target, it ceases to be a good measure

rented_mule··on Anthropic invests $1.5M in the Python Software Foundation
And if this money improves PyPI security (part of the focus), that reduces the chance of Claude Code adding malicious packages to a code base (a well publicized case of this could be a big PR headache for Anthropic). This donation is likely much better leverage than trying to somehow add mitigation at the Claude Code level.
← PreviousPage 3 of 12Next →