Better HN
topnewbestaskshowjobs
Log inSign up

binary132

1,656 karma · joined Mar 24, 2014 (12y ago) · 1,717 submissions

Submissions

comment 1y ago · link · parent

Only those who return the cart for upright and pure reasons (disorder makes my skin crawl) will escape samsara

comment 1y ago · link · parent

someone clever ought to do some kind of statistical analysis and figure out what hidden variables are causing these differences.

comment 1y ago · link · parent

I hold a strong but unproven belief that a minority of people who are naturally more conscientious than ordinary are basically holding the world together at the seams.

comment 1y ago · link · parent

Imagine, if you will, a society where it had become commonplace and normal for people to throw their trash on the ground, and there were people who were expected as part of their working duties to pick up this trash and put it in a wastebin. It wouldn’t really matter whether the worker minded this duty, or whether it was commonly accepted behavior, or whether it was a bit inconvenient to dispose of the trash properly, or whether the person was a bit busy. Some people, probably those raised a certain way, would automatically intuit that there is something wrong with this and throw out their own garbage. They might even pick up one or two pieces others had left behind, too. But who is really being inconvenienced?

comment 1y ago · link · parent

A lot of software, and thus build automation, will break due to certain features that become warnings or outright errors in new versions of C++. It may or may not be a lot of work to change that, and it may or may not even be possible in some cases. We would all like there to be unlimited developer time, but in real life software needs a maintainer.

comment 1y ago · link · parent

Totally rad! Makes me think about what kind of simple programming could be possible with a minimal HCI like this.

comment 1y ago · link · parent

Once upon a time inheritance was a way to compose classes out of pieces of orthogonal, general functionality.

Is-a Winged, TurbinePowered, Piloted, Aircraft, etc

comment 1y ago · link · parent

it’s hard to take that at face value when you also said privacy in and of itself is not that important to you. If you want to build a glass bathroom, be my guest, but I’ll keep putting up better walls for me and mine

comment 1y ago · link · parent

What I’m taking issue with is that you said you never really cared about privacy. I care about my family’s privacy. I’m not asking you to care about yours. I’m sorry you’ve given up on something that wasn’t important to you anyway, or whatever.

comment 1y ago · link · parent

People love to assert all kinds of meritless things about AI as if they were self-evident when they are anything but.

comment 1y ago · link · parent

what a ludicrously insane take. how can you not believe in privacy? do you think what you do in your home should be private, or do you think it’s fine for someone to put cameras in there? If you do, please feel free to invite them to do so; do not feel free to invite them to put cameras in my home.

comment 1y ago · link · parent

people have been doing that for a long time, but the level of urgency from the system hasn’t been at this level.

comment 1y ago · link · parent

what is it they’re so concerned about people talking about these days exactly anyway?

comment 1y ago · link · parent

I was talking about catching different classes, not about logging. Even if you’re just implementing a string description, there’s nothing stopping you from designing that string for use in a UI element, or implementing a structured message that can specify more details usable for defining UI elements, similarly to how many REST HTTP-driven web UIs work. I don’t think I’m quite following your criticism.

comment 1y ago · link · parent

I was actually just referencing the standard Wikipedia annotation that means something approximately like “you should support this somewhat substantial claim with something more than 'trust me bro'”

In other words, 10 pages of LLM blather isn’t doing much to convince me a given answer is actually better.

comment 1y ago · link · parent

citation needed

comment 1y ago · link · parent

If only there were some sort of automated idiom for cleaning up state under failure modes

comment 1y ago · link · parent

you mean kind of like dynamically implementing std::exception? hmm.

comment 1y ago · link · parent

This is a better way of expressing what I had been thinking about putting exception details behind an interface, except that in my mind encapsulating errors is just good design rather than implementation hiding, since the programmer might want to express a public error API, for example to tell the user whether a given fopen failed due to not finding the file or due to a filesystem fault.

comment 1y ago · link · parent

that sounds very similar to noexcept(bool) to me, except that noexcept can be computed, for example by deriving from some generic trait, and we presume throws unless specified non-throwing by noexcept.

comment 1y ago · link · parent

obviously the errno should have been obtained at the time of failure and included in the exception, maybe using a simple subclass of std exception. trying to compute information about the failure at handling time is just stupid.

comment 1y ago · link · parent

This strikes me as all wrong. The whole point of exceptions is control flow and destructors. By getting rid of RAII for the sake of simplifying the callsite a little, the author fails to obtain the real advantage, which is automatic resource unwinding of all local resources under failure conditions both during initialization and usage.

If you want to simplify the callsite, just move the exception handling to a higher scope. I can admit it’s a little irritating to put a try/catch in main but it’s trivial to automate, and most programs are not written inline in main.

The main problems I see with destructors have to do with hidden control flow and hidden type information. That said, hiding exceptional control flow from the mainline control flow of a function is also a useful feature, and the “exception type” of any given function is the recursive sum of all the exception types of any functions or operators it calls, including for example allocation. That quickly becomes either an extremely large and awkward flat sum or an extremely large and awkward nested sum, with awkward cross-namespace inclusion, and it becomes part of the hard contract of your API. This means, transitively, that if any deep inner call needs to extend or break its error types, it must either propagate all the way up into all of your callers, or you must recover and merge that error into _your_ API.

For _most_ usecases, it is just simpler to implement a lean common interface such as std::exception and allow callers who care to look for more detailed information that you document. That said, there is a proposal (P3166 by Lewis Baker) for allowing functions to specify their exception set, including via deduction (auto):

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p31...

comment 1y ago · link · parent

I think people who use AI too much are also unconsciously adopting turns of speech used by AIs.

comment 1y ago · link · parent

Why does everything need to have a soulless mascot now? It’s offputting.

comment 1y ago · link · parent

It seems to me that about 10-15 years ago, laptop stickers were a little more like patches on a punk jacket; that is, they were meant to show something about the cons or competitions you have participated in. A few such places would give out stickers.

At some point, people saw the cool-looking stickered-up laptops and thought they would also look cool and put fun stickers on their laptops to show that they also can google things. This diluted the original social signal value until it was completely ubiquitous, kind of like if everyone started putting whatever patches appeal to them on whatever jacket they wear without any thought to the idea of their origin. By that time, the original sticker-signalers had all moved on to other signals.

comment 1y ago · link · parent

Whoa, a little too edgy there, I’m calling HR

comment 1y ago · link · parent

“trust nobody, not even yourself” applies here for sure.

comment 1y ago · link · parent

presumably someone might want to write a game for it

comment 1y ago · link · parent

somehow my brain read “bought” as “physically acquired at the store” :)

comment 1y ago · link · parent

I presume this is not yet in your possession. Please do let us know how it goes.
1
121314
58