HNHacker News
TopNewBestAskShowJobs

chucksmash

2,817 karma · joined December 16, 2014

submissionscomments
chucksmash··on Unusual Raku Features
"Design patterns are really Band-Aids for missing language features" comes from a 1996 Peter Norvig presentation[0][1]:

> Some suggest that design patterns may be a sign that features are missing in a given programming language (Java or C++ for instance). Peter Norvig demonstrates that 16 out of the 23 patterns in the Design Patterns book (which is primarily focused on C++) are simplified or eliminated (via direct language support) in Lisp or Dylan.

[0]: https://en.wikipedia.org/wiki/Software_design_pattern#Critic...

[1]: slide 9 of PDF https://www.norvig.com/design-patterns/design-patterns.pdf

chucksmash··on Spanish police arrest ex-fraud chief after €20M found in walls of his house
Local dealerships will take cash but if you show up with enough of it (even a very large down payment amount), it's not uncommon that the person you try to give it to isn't sure they are allowed to accept it and will disappear to run it up the chain to get permission.
chucksmash··on In some scientific papers, words expressing uncertainty have decreased (2023)
Your account is dead but none of the posts in your history look bad. You can email hn@ycombinator.com and if there has been a mistake they'll sort it out.
chucksmash··on 50 Years Ago, Sugar Industry Paid Scientists to Point Blame at Fat (2016)
I disagree.

Think of the places where corruption is endemic. Having an outlook of "well, everybody is corrupt" normalizes the behavior and makes it easier to justify sliding into corruption oneself.

If the outlook were useful, it would help to fix the problem instead of doing the opposite.

The disillusionment doesn't offer any benefit that can't also be gained with a touch of common sense alone. But going from "some people are terrible, sometimes" to "everybody is terrible" forecloses any possibility of improvement.

chucksmash··on 50 Years Ago, Sugar Industry Paid Scientists to Point Blame at Fat (2016)
When someone asks for examples of particularly bad actors, replying "everybody is a bad actor" is a pat non-answer that communicates nothing except the answerer's disillusionment.
chucksmash··on You-get: Dumb downloader that scrapes the web
In the case of this tool, adding a failing test case looks trivial if you've got the URL of a page it fails on.

Provided the maintainer is willing to provide some minimal guidance to issue reporters who lack the necessary know-how, it even seems like a clever back door way of helping people learn to contribute to open source.

chucksmash··on OOP is not that bad
> Tight coupling is the basis of oop.

This is not what OOP people are talking about when they talk about tight or loose coupling though.

They are talking about the relationship between classes.

chucksmash··on Eye Contact Correction: Redirecting the eyes to look at the camera
> It would be great to have a feature where my closed eyes are replaced with open eyes looking at the camera

There's already a feature that does this called HR

chucksmash··on Sqlite3 WebAssembly
O'Reilly shows a 2nd edition slated for December 2025 but it seems like you can access it early with Safari Books.

https://www.oreilly.com/library/view/designing-data-intensiv...

chucksmash··on Ceres: An ocean world in the asteroid belt
Platinum prices going to zero wouldn't destroy the economy, just platinum mines.

The estimate I've seen for the total amount of gold humans have ever dug up is an approximately 20m³ cube. Wiki says gold has a density of 19.283 g/cm³. If I'm doing my math right, that means we've dug up 154,264,000 kg of gold. If you value that at the current price of $85,000/kg, we've got $13 trillion of gold.

Compare that with the guesses they were making about the "value" of a single metallic asteroid, 16 Psyche, of $10 quintillion[0]. Coming into contact with the New World let pre-industrial civilizations 2x or 3x the resources they could access, while the boost from asteroid mining could give us six or more orders of magnitude. That 20m³ could be collected and put in a museum.

[0]: https://www.smithsonianmag.com/smart-news/asteroid-16-psyche...

chucksmash··on Ceres: An ocean world in the asteroid belt
Back before there were so many hecto-billionaires (fifteen now, according to Forbes), I remember seeing a throwaway quote somewhere to the effect that the first trillionaire would be the first person to economically mine asteroids.

It made me wonder, because it seems like even if someone had easy access to $100 trillion worth of platinum, they would no longer have $100 trillion worth of platinum. How much can you benefit from scarcity when you are also obliterating it?

It's also mildly entertaining to consider that while the quote I mentioned was intended to express the idea that asteroid mining would make someone a trillionaire, it might have been prophetic yet gotten things exactly backwards. With Bezos and Musk both having space programs, it seems plausible that compound interest could bring us to a future where the first trillionaire becomes the first asteroid miner instead of the other way around.

chucksmash··on Who uses public libraries the most? There's a divide by religion, and politics.
> Right behind seniors and kids, homeless people are the next big group of library patrons in my town.

That has been my experience in places with lots of homeless people too, but not everywhere. As you might expect, you don't see many homeless people in places without many homeless people.

Which leads me to what I actually wanted to say. The article says this information was based on a YouGov survey. Clicking through to YouGov, it was an "opt-in Internet panel."

So it seems like some of the head scratchers could be explained as "people who don't opt in to Internet panels" rather than "people who don't use the library."

chucksmash··on Is AWS S3 having an outage?
> How is CST ambiguous?

- CST: Central Standard Time UTC−06

- CST: China Standard Time UTC+08

- CST: Cuba Standard Time UTC−05

chucksmash··on Patent troll Sable pays up, dedicates all its patents to the public
Doesn't seem like this should be flagged/against site guidelines, because this isn't a "you're an astroturfer, so how much are you getting paid for this post?" comment, it's a "you say you don't do anything for free, so how much are you getting paid for this post?" comment.
chucksmash··on Farewell to the car CD player, source of weirdly deep musical fandoms
Agreed on Spotify recommendations. I felt like the playlists I got from Spotify circa 2017 did a really good job of walking that line. Nowadays the "song radio" and "artist radio" playlists are bad. Definitely a step back. There are bands I still like that I've added to "Never play music from this artist" because Spotify puts them on every single playlist for me now.
chucksmash··on COBOL has been “dead” for so long, my grandpa wrote about it
There's also the difference between what a consulting company bills for the COBOL developer and what they pay the developer. Not every consultant is the captain of their own ship.

My first job after college was a software shop organized in a "services" model, where clients would have to sponsor teams to do feature dev or support beyond initial onboarding. It's been a long time and my memory is hazy, but as I recall I was expected to bill ~40 hours a week to clients and if I only worked 40 hours that week (being OT exempt, this was always the goal), my hourly pay came out to between 10-20% of what the company billed the client.

So $500/hr on the bill and $45/hr on the paycheck both manage to sound plausible, even at the same company.

chucksmash··on Greenwich: an experiment in collaborative links
> Let people flag NSFW and downvote bad faith annotations.

How many users will take the thing for a test drive and then patiently click through and downvote every goatse link they find versus simply uninstalling it when they get goatse'd?

chucksmash··on The Daily Scrum: Does It Have to Be Daily?
> And, from my experience, devs over-estimate greatly how much non-devs care about them and their "number of line of code written" pissing contest.

Your experience as a non-dev who doesn't manage devs? Noted. Unfortunately, the people signing our paychecks do care, and so devs have incentives to continue doing the same strange dance every morning.

chucksmash··on The Daily Scrum: Does It Have to Be Daily?
> I never had any problem to say "nothing to report on my side, working on X like yesterday".

If daily scrum is essentially a status meeting by-any-other-name and nobody is much bothered by what your status is....then maybe you don't need to be giving a status to begin with? Seems like functionally you are more of an observer than a participant and you just throw in a status as a "when in Rome" token.

For the managers in the room, "uhhhh, lots of meetings yesterday" is a fine status to give day after day.

Watch what happens to a programmer who gives an honest status of "uhhhh lots of meetings yesterday, not a lot of progress on X" though. They're inviting attention. There's an added onus on devs that they need to come up with a way to describe what they did the day before (no matter how small) such that non-dev listeners can hear some epsilon of progress was made. Because if it doesn't sound like progress, it sounds like no-progress. And then people who don't understand how any of it works want to start trying to understand. And now you've got two problems.

chucksmash··on Show HN: A tool to analyze Hacker News sentiment on any term in seconds
Tokens are characters in this context?

I tried "neumorphic design" based on the comment this replies to. It is classified as neutral.

chucksmash··on US House of Representatives adopts baseline policy for AI use
I thought I'd be clever, find HITPOL 7, and then increment the number in the URL I type into the browser (colloquially, this is sometimes referred to as "doing a cybercrime").

I found a page that contained a link to a "House Information Technology Policy for Official Domain Names," however that link is dead.

Some more searching hints at the existence of a "House IT Policy 007.0 – Bulk Email List Management," which is mentioned in the Members' Congressional Handbook[0]. Sadly, the elusive HITPOL 7 is not linked from the handbook and neither DDG nor Google seem to index said document.

[0]: https://cha.house.gov/members-congressional-handbook

chucksmash··on Gaining access to anyones Arc browser without them even visiting a website
I recall there being a thread with way more discussion at the time, but I can't put my finger on that thread right now. This post has some information:

https://news.ycombinator.com/item?id=35152419

chucksmash··on How to succeed in MrBeast production (Leaked PDF)
> Don't force it on others.

Nobody is forcing anything on anybody here so there's no need to end your thought with a defiant coda.

> If you want to engage in this type of culture because it helps you fit in with founders; fine, that's your own brain you're messing with.

You misunderstand the objection I hinted at. Which is fine. I'm not pro-"marketing bullshit" because it's not an either/or choice. What I object to is taking a perfectly normal word someone uses and then choosing a narrow, fraught, medical interpretation of the word to ascribe to them a viewpoint of, essentially, "they want you to be mentally ill!"

chucksmash··on How to succeed in MrBeast production (Leaked PDF)
"Obsession" predates the DSM and psychiatry as a profession.
chucksmash··on One in five genetics papers contains errors thanks to Excel (2016)
Excel (and GSheets) are tools where I think a stripped down "trust my input, I know what I'm doing" mode that doesn't try to intuit user intent would be useful.

As I type this comment and my phone miscorrects "intuit" to "Intuit," I think also Google keyboard could benefit from such a mode that only handles spelling mistakes but doesn't replace uncommon words with common brands, etc.

chucksmash··on Writing an OS in Rust
I completed the second edition years ago and found it illuminating. It's very well done! The explanations pertaining to OS dev are nice but it was also a useful artifact for learning more Rust after having gone through the Rust book. The author had a good grasp of the idiom of the language, so seeing how he expressed certain things in code vis a vis how I would have done was educational. The blog's explanation of how futures are implemented in Rust was especially a highlight[0], and I think it's the best I've seen on that topic anywhere.

I hope Phil will find the inspiration to come back and work on the EFI-based third edition again. AFAICT, (based on commits to the git branches) that has stalled. I was a GitHub sponsor for about a year until my CC expired and was always bummed to see it left out of the "This Month In Rust OSDev" posts.

Anyway, the second edition is still a great way to spend a weekend's dev time and I appreciate all the hard work that clearly went into it. Thanks Phil!

[0]: https://os.phil-opp.com/async-await/#async-await-in-rust

chucksmash··on Older Americans Are About to Lose a Lot of Weight
There's been an approx 80% decline in US infant mortality from 1963 to 2023 according to [0]. I know when comparing against pre-industrial society this is a big driver of increased life expectancy. There's another metric that adjusts for this that only looks at the life expectancy of individuals who survive to the age of (iirc) 15, but I don't have time to look it up right now. Perhaps comparing the change in that versus the one that includes the drop in infant mortality would be interesting though.

[0]: https://www.macrotrends.net/global-metrics/countries/USA/uni...

chucksmash··on Another police raid in Germany
> As a parent of very young children I have an extensive network of friends and contacts in my neighbourhood who also have children. As we know the subject of paedophilia is not one that can be debated with any rationality at all in the UK. It is surrounded by hysteria. I was terrified that people would find out that my computer had been taken because of that – ‘no smoke without fire’.
chucksmash··on 300μs typo detection for 1.3M words
It's not that weird considering LazyLock has only been in stable Rust since 1.80.0, which is only ~6 weeks old!

It's a great tip though. As an out of the loop/casual Rust programmer who has internalized using `lazy_static!` for this purpose, I probably never would have noticed this update short of lazy_static throwing compiler warnings directing me to use the std lib equivalents (so...maybe never?).

chucksmash··on What's new in C++26 (part 1)
> not only didn't you test the code

That's why I won't use C++ programmers in a large project

← PreviousPage 4 of 27Next →