HNHacker News
TopNewBestAskShowJobs

dpassens

429 karma · joined June 5, 2021

submissionscomments
dpassens··on Zig's Lovely Syntax
It's now too late to edit my original comment but I've skimmed your code a little too fast and now I see that you do understand that Zig works with reified types. But in that case, why conflate too very different things? Returning values of different types is not the same as returning types.

Regardless, we are now very far removed from the original code I was commenting on, which doesn't use auto to return different types.

dpassens··on Zig's Lovely Syntax
You still misunderstand the type type. "type" does not mean "generic over all types" but that you're returning a reified type. The original Zig function does not return an ArrayList value, it returns the ArrayList type.
dpassens··on Zig's Lovely Syntax
Well, your example seems to do something completely different, which is return an ArrayList!T rather than a type.
dpassens··on Zig's Lovely Syntax
No, you misunderstand. The function doesn't return any type, it returns _a_ type. Types are values in Zig and returning them from function is how generics are implemented.
dpassens··on Zig's Lovely Syntax
If my understanding of D's template syntax is correct, then Walter is showing a the declaration of a function called ArrayListType which is generic over T and returns a T. The original Zig code returns the struct type itself, so it is functionally equivalent to my example, provided I understood how D templates work.
dpassens··on Zig's Lovely Syntax
I don't know D but shouldn't that be

    struct ArrayListType(T) {

?
dpassens··on We'd be better off with 9-bit bytes
What exactly is the argument here? Bigger numbers are bigger? But then we could also argue that by that logic, octets are better than 9-bit bytes because you need more bytes sooner and that gives you seven more bits over the additional one in 9-bit.

> Thank you to GPT 4o and o4 for discussions, research, and drafting.

That explains a lot.

dpassens··on Rules by which a great empire may be reduced to a small one (1773)
Please do us all a favour and learn to communicate properly.
dpassens··on An AI Company Just Fired Someone for Endorsing Human Extinction
How would you know that human population will go down to zero rather than stabilise at a lower point or start to grow back after a period of decline? All projections into the future are, of course, just hypotheses but "people will have children as the vast majority of them are biologically hardwired to do" strikes me as a lot more likely than all of humanity just deciding not to keep having children.
dpassens··on States and cities decimated SROs, Americans' lowest-cost housing option
Well, it is relatively easy to get into one...
dpassens··on Software Rot
Linux syscalls. There's no such thing as POSIX syscalls because POSIX defines a C interface.
dpassens··on I dumped Google for Kagi
As opposed to LLMs, which aren't inaccurate or noisy?
dpassens··on A Carnival Attraction That Saved Premature Babies (2016)
Why wouldn't they?
dpassens··on We may not like what we become if A.I. solves loneliness
Mostly because cedws is apparently more interested in birth rates than in tandem sales. Personally, I can't say I fault them for that and don't understand why that's a problem because, going back to my original point, they're not suggesting that people who don't want children should be forced to have children.
dpassens··on We may not like what we become if A.I. solves loneliness
> No, and the comment indeed ignored the very visibly growing "child free" movement popular with the younger generations in a way that framed it as unintentional.

Not really. There are still young people who don't intentionally choose not to have children. Their birth rates might or might not increase without social media.

> your use of "just" is unfair here.

Fair enough, I'll concede that.

> I asserted that you understood that singling out the effect on birth rates over the effect on chocolate sales wasn't done arbitrarily.

Because birth rates are much more relevant to the topic at hand than chocolate sales, no? More loneliness almost necessarily translates into lower birth rates while you can eat chocolate alone or with others.

dpassens··on Write "Freehold" Software
The big difference between open source and proprietary but freehold seems to be precisely that those copies are unauthorized. That already eliminates most of your competition as nobody else can sell your software and distributions can't just distribute it. Sure, people will pirate, but even DRM doesn't seem to prevent that.
dpassens··on Write "Freehold" Software
No, the author explicitly mentions that paid software would also meet those definitions, provided you only need to pay once.
dpassens··on We may not like what we become if A.I. solves loneliness
> despite the clear preferences of younger people

But the assertion was not that young people have a 'clear preference' not to have children, it was that they just have a clear preference to engage in a behaviour that, as a side-effect, lowers birth rates.

> we both understand

I'm assuming that you're not doing this intentionally, but by asserting that I "understand" the commenter is trying to 'coerce [me] into having a more positive "positive" birth rate', a notion that I still disagree with, you're suggesting that I'm being intentionally obtuse. Please don't do that.

dpassens··on We may not like what we become if A.I. solves loneliness
But it doesn't, does it?

For one, the question was merely whether we'd observe an increased birth rate, not whether that is a reason to pass such a law.

Secondly, you're the one who's bringing up coercion. You can both not be on social media and not have kids. It's still your decision.

dpassens··on We may not like what we become if A.I. solves loneliness
I assure you, as a young person, nobody has ever commented on my birth rate when I went out.
dpassens··on Australia widens teen social media ban to YouTube, scraps exemption
No, but the strip club is next to everybody else's house as well as schools.
dpassens··on Australia widens teen social media ban to YouTube, scraps exemption
> This product would require constant work to keep in sync as UIs and features change.

But why does the UI need to change? Nobody would miss having to relearn it every couple of months.

dpassens··on Words about Arrays and Tables
Ah, but is it unintuitive though? Once one understands that in the vast majority of cases, C deals in pointers, not arrays, it makes perfect sense that indexing uses an offset rather than the nth element.
dpassens··on Try the Mosquito Bucket of Death
You have read the part where the sticks provide "good bugs that fall in [...] an escape path", right?
dpassens··on Try the Mosquito Bucket of Death
I thought it couldn't be that bad but wow, that's bad. The first font-family entry is Clas Ohlson Sans Web, so presumably a font developed for Clas Ohlson? Looking at samples online, J and to a lesser extend t are similarly hideous.
dpassens··on A 1960s schools experiment that created a new alphabet
> Sir Isaac Pitman, the inventor of shorthand

And, apparently, also the inventor of time travel—we know that various forms of shorthand have existed since antiquity.

dpassens··on Let me pay for Firefox
> kept the same spelling and meaning in English

So it's also an English word, then?

dpassens··on Killer whales groom each other with pieces of kelp
GP's comment reads reasonably clear to me: humans fearing orcas might eat them are about as rational as the cat visiting GP's garden, which also seems to be convinced GP wants to harm rather than feed it.
dpassens··on Harper – an open-source alternative to Grammarly
As a zoomer, I'd rather not receive emails that sound like they're written by a moron.
dpassens··on How you breathe is like a fingerprint that can identify you
Or you could take long breaths. 20 breaths per minute is only four seconds per breath which doesn't seem terribly long if it's both in- and out-breath.
← PreviousPage 2 of 6Next →