HNHacker News
TopNewBestAskShowJobs

npsimons

4,272 karma · joined March 8, 2012

Previously a programmer in the DoD world, now a solo software developer. Before that, I used to hack on RTLinux until FSMLabs couldn't afford to pay me any more. My personal interests include search and rescue and musical groups. Also tried my hand at consulting around 2000-2001, failed; tried another startup based on a GPS logger concept that never got off the ground. Would like to contribute to open source, but the aforementioned extra-curricular activities get in the way. Run my own email/web for personal stuff at hardcorehackers.com; can be reached at the usual (RFC) addresses there.

I despise Apple fanboys and Microsoft shills, but I'm getting better (mostly by laughing at the former and ignoring the latter).

I used to be what I considered a master of C++; nowadays I'm an unabashed Lisp elitist, but mainly I putter along working on personal projects. Not currently looking for work, but if your project is interesting enough . . .

Still of the opinion that Emacs is the last editor on the last OS (Debian GNU/Linux).

submissionscomments
npsimons··on News is bad for you – and giving up reading it will make you happier (2013)
Name the most important thing in the news from two weeks ago.

You can't. Neither can I. The difference between you and I is, I didn't waste my time or energy keeping up with utterly inane "news" that I have zero agency to react to in any meaningful way.

Here's the really ironic part: Fox news viewers are less informed than those that watch no news[0]. So not only are news viewers more depressed and angry about things they have zero influence over (see also other comments regarding "circle of influence" and "circle of concern"), they are more ignorant to boot!

[0] - https://www.businessinsider.com/study-watching-fox-news-make...

and this makes it even more ironic:

https://www.washingtontimes.com/news/2021/may/19/survey-fox-...

npsimons··on Show HN: Using C++23 <stacktrace> to get proper crash logs in C++ programs
> The interface is more like printf

See, I don't believe that's an improvement. Having used printf in C, I was relieved to be able to "redirect" whatever to a stream, and not care about whether it should be "%d" or "%02f" or even if it was a struct/class.

On top of this, treating files as streams, strings as streams, or even extending streams to make a tee-stream[0] all seem clunkier to me with a printf like system.

Maybe fmt fixes these problems, I don't know. But I feel a lot of people don't like iostreams because they have some form of Stockholm syndrome with printf.

[0] - https://wordaligned.org/articles/cpp-streambufs#tee-streams

npsimons··on Against Alcohol (2022)
> Prohibition does work

It didn't. We tried it.

Look, I'm all for reducing consumption. I'm on board with trying to improve public health, or just health of everyone in general. But prohibition does not work. Didn't work for alcohol. Didn't work for marijuana. Didn't work for sex education.

So the question to ask is, what does work? And realize that an all or nothing, black and white approach is counterproductive.

Educate, inform, regulate. That's the best we can do, and there's a lot of room in the 'regulate' part to make inroads. Perhaps someday we'll get to synthehol, but we're a long way from that today.

npsimons··on Show HN: Using C++23 <stacktrace> to get proper crash logs in C++ programs
> What do you use instead [of std::iostream]?

This is what I want to know. Having come from C to C++, iostreams were a big improvement over the "strings" and print functions of C. I even extended a base iostream class to have a "teebuf" logger, that could output to multiple streams and had the standard logging levels.

It's been a while since I last had mastery of C++, but I'd like to hear what is as portable and better than iostreams.

npsimons··on Against Alcohol (2022)
> He also simultaneously cites the Arab world as an example of an alcohol-free society, yet makes no mention of the relatively low productivity rates there.

Even more ridiculous is that last I've heard, there is still alcohol being consumed in muslim countries.

I am firmly opposed to prohibition. As many have pointed out, it just doesn't work. Regulation and taxation, sure. And definitely anyone who is considering quitting should be encouraged and supported. No matter what else, support systems for those addicted (and victims of abusers) should be in place.

But prohibition did not, and will not, work.

npsimons··on Against Alcohol (2022)
> Can you go 7 days without drinking?

Yes, but I've also been blackout drunk, more than once. I can't really keep beer in the house, because much like a binge eater with sweets, I have surprisingly little self-control and will consume it all in little time.

I recognize I have a family history of addiction. I also recognize I can slow down and moderate, but honestly with no level of alcohol consumption being safe for our health, why shouldn't I just quit altogether?

npsimons··on The Cluetrain Manifesto (1999)
> winner take all for those who figured it out (Amazon, Meta, Apple, Microsoft, Google, many others)

What's really funny to me is the following quote from "Cluetrain Manifesto" that sticks out in stark opposition to the above:

> We are not seats or eyeballs or end users or consumers, we are human beings. And our reach exceeds your grasp. deal with it.

npsimons··on Against Alcohol (2022)
I am what I consider "borderline" for alcoholism, although I've been told by professionals that I am nowhere near it. I'm still trying to quit completely (after having reduced immensely) my intake because no level of alcohol consumption is safe for our health[0].

As you say, it's probably okay to drink rarely. But I wouldn't discourage the instinct to quit completely, and recognize that there is a high amount of pressure through culture to imbibe.

[0] https://www.who.int/europe/news/item/04-01-2023-no-level-of-...

npsimons··on Against Alcohol (2022)
This was also my understanding - the WHO classified alcohol as a carcinogen[0], and the statement "No level of alcohol consumption is safe for our health" appears to be true.

[0] - https://www.who.int/europe/news/item/04-01-2023-no-level-of-...

npsimons··on Names should be as short as possible while still being clear
Kindly cite a problem with admitting mistakes and growing and learning from them.

Then explain how consistency is a bad thing.

npsimons··on Names should be as short as possible while still being clear
Given how many people here are disagreeing except on "be consistent", I feel I'm in good company in having that as my rule. I'm not being inconsistent, I'm learning, growing and adapting. "Strong opinions, weakly held."

But yes, "A foolish consistency is the hobgoblin of little minds." The question is, what is "foolish"? I'm arguing against things like `strpos` and `str_rot13`. I'm arguing against having similar functions where argument order is inconsistent. These are the sorts of things that slow developers down and force them to check the documentation every time just to make sure they aren't introducing bugs by default.

npsimons··on Names should be as short as possible while still being clear
> - In MATLAB, you use... quiver(). You know, because it holds a lot of arrows. Short and clear, eh?

"Shaka, when the walls fell."

Sure it's poetic, but WTF do you mean?

npsimons··on Names should be as short as possible while still being clear
As someone who gets mired in details, I can understand how it happens. It's so much easier to focus on something you can control and fix.

Not excusing or defending it, just trying to serve up a reason why it happens.

npsimons··on Names should be as short as possible while still being clear
> We need more languages that come with rigid rules for things like style, so we can stop wasting time and get on with solving problems.

This is where I'm at now.

Decades ago, I was an "only spaces, no tabs" guy. Still am to an extent. But what made me more open was realizing it wasn't spaces or tabs specifically that mattered, only that code is readable, and consistently formatted code is more readable. Seeing things like `gofmt`, which mix tabs and spaces, and comes with the language? Your debate about spaces versus tabs is over, now we can get back to tackling real problems, and your code will be rejected at CI if it isn't run through the standard formatter. Same thing with `black` for Python.

Above all else, be consistent. I can understand hate for "standard" language libraries that have functions with wildly different naming schemes or input and output arguments that aren't consistent - those should DIAF (looking at you, PHP "standard" library). But as to the names themselves? Doesn't particularly matter much. Unless you're the Bruce Tognazzini of API design, you probably don't have anything of substance to back up why it should be "make_" versus "create_".

npsimons··on Use clean energy charging on your iPhone
Yup. I feel that the idea of smart interconnected devices talking to each other to decide "okay, now is when it will be most efficient to run" is a really awesome thing, but it's been ruined by capitalism. Just a race to the bottom to sell shit products and sell customer data to maximize CEOs' paychecks.

As it is, if you have the knowhow you could do it yourself. But that's a lot to ask the tech illiterati, and even I find myself just falling back to manual methods since they Just Work with no fiddling about with wires.

npsimons··on Use clean energy charging on your iPhone
> I'd love to be able to put a wet load of laundry into my drier and press "make sure it's dry by tomorrow morning".

So, I do a bit of this myself, manually. I've got a table of appliances and wattages, both rated and measured (using a Kill-O-Watt). I also have a 6kW (max) solar panel installation, plus I'm on a time-of-day metered plan.

I try to make sure that anything that uses hot water (tankless full electric water heater; 29kW rated max) like the dishwasher and shower are done between 1000 and 1400, as that's the highest time of solar insolation during the day, plus the time of day turns over to the highest tier at 1400.

I've bought but not yet installed an eMonPi (https://github.com/openenergymonitor/emonpi), so theoretically I could automate some things to optimize when to run devices. As it is though, by tracking and actively trying to reduce consumption, I've already managed to keep my electricity bill to zero for years, even putting thousands of USD back into the grid (sadly, I do not get money back from this; it only counts as credit, and resets every twelve months).

As for your specific example, I line dry my laundry. I don't see the point of running a space heater (dryer) in my garage; it usually only takes a few hours to dry where I live anyway. The only reason I still have a dryer is for down sleeping bags and coats that have to be fluffed up.

npsimons··on We are wasting up to 20% of our time on computer problems, says study
> Call me cynical, but from a dollars point of view this seems to be what customers want.

I'm right there with you, except I don't give "customers" that much credit.

Most people left to their own devices (ie, not brainwashed by marketing) will just stick with "good enough." But it's less fun (and less profitable) to fix and maintain old code, so companies induce "demand" by marketing. And if you're a company who decides to do the adult thing and not play that game, you'll be creamed by the ones that do.

npsimons··on So where are we all supposed to go now?
> I use [Reddit] as a resource for niche topics

This is honestly the best way to use Reddit. I feel a lot of the hate is from people that haven't found subreddits useful/relevant to their needs, or are just plain ignorant. And look, I understand there's not enough time in the world to try out everything, but when people like you and I tell them that they can be useful tools, it'd behoove people to take a look before speaking from ignorance a second time.

npsimons··on So where are we all supposed to go now?
> Did people actually used to believe places like Reddit or Twitter were "healthy good places" to spend your time?

If you never curated your reddit experience, I could see how you might have this attitude.

I won't deny that /r/popular and /r/all are rage inducing dumpster fires. But if you create an account and join subreddits, just going to https://www.reddit.com/ takes you to a selection just from those subreddits. And there are a large number of wholesome, nurturing, even useful subreddits.

In some respects, it is like Usenet used to be.

> never all that beneficial.

Google would disagree, after the recent blackouts. There's a lot of useful information going on in various subreddits - to the point that some posts on specific topics compete for stack answers in search rankings! Hell, I've found more useful Common Lisp resources in the Lisp subreddits than I ever found on HN, and better solutions to (some) problems than on stack.

npsimons··on So where are we all supposed to go now?
> zero lag.

Obviously you aren't drinking enough.

npsimons··on Self-driving cars are surveillance cameras on wheels
Not strictly true; I, for one, don't hop on my bicycle without my helmet camera turned on.
npsimons··on A curated list of Emacs Lisp development resources
You do realize that's satire, right? I'd hope the channel name ("Programmers are Also Human") would have given it away, but . . .
npsimons··on A curated list of Emacs Lisp development resources
> What’s the downside of using org for readmes?

Popularity.

That's it. orgmode format was around long before Markdown, then all of a sudden Markdown got pushed hard for some reason.

npsimons··on Google search's death by a thousand cuts
They retired "links:" (or something named similar) to find websites that linked to a given one. Was very useful, and I've been fearing ever since that they will do away with "site:" next.

There was also a time you could paste a URL to a .GPX file into Google Maps and have it loaded. Quick and easy, well before OSM and Leaflet.

npsimons··on Google search's death by a thousand cuts
I'm all for reducing bots and spam, but registration doesn't seem to have solved that problem for reddit.

On top of this, siloing adds the extra bonus that it breaks things like The Internet Archive. There are a lot of communities on Slack and Discord that are just prime for vaporising without a trace. A TON of knowledge will just disappear once someone decides to turn it off, for whatever reason.

npsimons··on Why write?
Not GP, but https://fourminutebooks.com comes to mind. It's also just incredibly useful to get a "4 minute precis" and decide whether or not it's worth it to you to spend more time on that book.
npsimons··on Emacs Is Not Enough
> This is something some have a hard time understanding, but some of us prefer a non-modal editor and like having simpler key chords instead of key sequences.

I'll second this.

I literally grew up on VI - my dad installed it with UNIX tools on the family 486 running MS-DOS. Then I dedicated a week to learning Emacs around the turn of the century, and I've never looked back.

To be sure, I still whip out vim for quick editing of remote server config files and it's my editor in mutt. But there's just so much power in emacs - I'm reminded of Vivek Halder's "Levels of Emacs Proficiency"[0], and the fact I do most everything in Emacs these days (I live in org-mode, play music in EMMS, run git through EGG, etc, etc). It's hard to think of anything with this level of consistency of keybindings, nor something that does so many things I need to do.

[0] - https://www.vivekhaldar.com/articles/the-levels-of-emacs-pro...

npsimons··on ‘Breakthrough’ obesity drugs that have stunned researchers
> We’re subsidizing companies that create unhealthy addictive food

People love to bitch about the "diet industry" (which as a whole, seems to be almost entirely bro-science and snake oil), but the profits made there pale in comparison to fast food and processed food. It's really something that we should fix, like we did with tobacco and alcohol.

Fixing food deserts, even though they are not really widespread enough to entirely account for the obesity epidemic, needs to happen as well.

And taking subsidies away from animal products like meat, dairy and corn (specifically for HFCS) would go a long ways to improving the standard American diet (aka, SAD).

npsimons··on ‘Breakthrough’ obesity drugs that have stunned researchers
> In the context where we have gone from obesity rates of 13 percent to 40, to suggest that people have a natural weight and that's the cause of this seems absurd to me.

It annoys me too! Human genes haven't changed radically over the last 100 years. We're not dogs or cats where generations can be measured in a year if not months, we're talking roughly 30 years between generations, so no, it's not "genes" or "set point". The answer is obvious for anyone paying even a passing interest to history: we largely went from an agrarian society to a sedentary one, eating more and moving less. It's that simple. Combine this with capitalism pushing the fast food industry to make profits at any externalized cost, and the results are obvious.

As an aside, it always amuses me how people talk about "set point" but never address that it only goes up. If "set point" is a thing, you'd think there would be some people with a lower one, or at a minimum it wouldn't go up (hence it being set), but no one likes to admit that . . .

npsimons··on ‘Breakthrough’ obesity drugs that have stunned researchers
> I'm embarrassed to say it took more than a year to change my behavior, despite my clear understanding of the harm of snacking all the time.

You shouldn't be - this is the crux to why weight loss is so hard, and something I try to harp on any time I get.

Yes, just for reference, I was fat too once (more than 40lb above my ideal weight). I managed to lose the weight, just like parent, through small, sustainable lifestyle changes.

It's simple: eat less, move more.

But it's not easy. Start small, do things you can do do for the rest of your life.

← PreviousPage 3 of 34Next →