MurphyA/hacker-news huggingface dataset:
by WalterBright | 2025-11-08 20:27:30+00:00
> A difference I am uncertain about is if there's any D equivalent for Zig having types being expressions. You can, for example, calculate what the return type should be given a type of an argument.

This is done in D using templates. For example, to turn a type T into a type T star:

template toPtr(T) { alias toPtr = T*; } // define template toPtr!int p; // instantiate template pragma(msg, "the type of p is: ", typeof(p));

The compiler will deduce the correct return type for a function by specifying auto* as the return type:

auto toPtr(int i) { return cast(float)i; } // returns float

For conditional compilation at compile time, D has static if:

enum x = square(3); // evaluated at compile time static if (x == 4) int j; else double j; auto k = k;

Note that the static if* does not introduce a new scope, so conditional declarations will work.

The version is similar, but is intended for module-wide versions, such as:

version (OSX) { stuff for OSX } else version (Win64) { stuff for Windows 64 } else static assert(0, "unsupported OS");

Compile time execution is triggered wherever a const-expression is required. A keyword would be redundant.

D's mixins are for generating code, which is D's answer to general purpose text macros. Running code at compile time enables those strings to be generated. The mixins and compile time execution are not the same feature. For a trivial example:

string cat(string x, string y) { return x ~ "," ~ y; } string s = mixin(cat("hello", "betty")); // runs cat at compile time writeln(s); // prints: hello,betty

I'll be happy to answer any further questions
by InsideOutSanta | 2025-11-08 20:27:38+00:00
Second this. I finally gave up and subscribed to Kagi half a year ago, and man, I should have done it much sooner. The search results are just genuinely good.

This is not like trying to use Bing, and then half the time you have to do the same search on Google because of how poor Bing's results are. It feels like Google felt fifteen years ago: useful results without all the "sponsored links" garbage around it.
by embedding-shape | 2025-11-08 20:27:57+00:00
The author says this about smoking:

> If you smoke, don’t. It’s going to kill you.

And then this about alcohol:

> I think it’s unreasonable to tell people not to drink alcohol if they like it.

Why is it unreasonable to tell people not to drink alcohol, but reasonable to tell people to stop smoking? Shouldn't the smoking section also get a "at least make sure it’s really good tobacco that you enjoy and don’t smoke too much of it"?

It seems like the personal preferences (don't like smoking, but does like alcohol) is getting in the way of their medical-but-not-medical advice, instead of being able to apply their recommendations equally regardless of what they personally like.
by cosmic_cheese | 2025-11-08 20:28:35+00:00
The idea of a low-distraction laptop OS is a good one, but I'm not sure that this is necessarily the best approach.

If I mentally model such a thing myself, I end up with something that looks a lot like Classic (pre-OS-X) Mac OS. It's simplified and has just enough presence to properly host graphical applications. No taskbar, no notifications (or associated drawer), no self-populated launcher menu. File manager is spatial so it doesn't need a sidebar or navigation chrome. Multitasking is technically possible, but high-friction since the only way to switch between running apps is the little app switcher menu in the top right corner and becomes more cumbersome the more apps/windows you open. Included browser does not support tabs, only windows. Shortcuts to frequently used apps must be added intentionally (to your desktop as aliases/shortcuts or to the launcher menu).

This design strongly encourages singular focus without forcing it. If you want to have music playing in the background or need to open a browser window for research you can, but gravity is constantly pulling you back towards your task since the machine isn't pleasant to use for goofing off.
by notepad0x90 | 2025-11-08 20:28:55+00:00
Problem solving does that, the coding part is just a means to that end. Learning a programming language is similar to learning a human language except much less complex. Solving problems with code helps with brain development, as does solving problems without code.

Coding is just more rewarding, it is important to learn how to solve problems with less rewarding systems. Would you have wanted to solve algebra problems on paper if you knew python? You don't need to solve those problems on paper, but it is good for brain development. Even better than coding for example. Keep in mind that a child's attention window is limited, this is very much a zero sum situation.
by turnsout | 2025-11-08 20:30:09+00:00
I don't know, man. That is definitely true, but they didn't win by a landslide. And a lot of their edge came from the MAGA Latinx vote. This ICE/CPB action is a total self-own. That Latinx vote is going to disappear, and we've already seen the results in the 2025 elections.

I think the right will turn on itself in 2026. We could even end up with three parties, only one of them able to obtain a majority (Democrats). There's a plausible version of the future where the Republican Party goes the way of the Whigs.
by Maxatar | 2025-11-08 20:31:05+00:00
You seem to misunderstand the meaning of deep versus shallow copy. This distinction has to do with how references/pointers get copied.

In C++ the compiler generated copy constructors are shallow, not deep, meaning that if you want a copy to reconstruct the object being pointed to, you can not use the default copy constructor but need to supply your own explicit copy constructor to do so.
by kaipereira | 2025-11-08 20:31:31+00:00
Hey guys, thanks for all the love :D

The website went down because of the traffic and large images, so I've temporarily switched hosting, and it should stay up now (DNS propagation might take a bit though), but I'm going to get those images smaller ASAP, thanks to everyone who posted web archives!

I'm also going to alter some of the reasoning for some of the stuff like decoupling capacitors, but the guide is still meant for complete beginners, and lots of the terminology/reasoning can be pretty overwhelming, and I still have a lot to learn about decoupling/other stuff!

I'll also add a part about what you actually need on your devboard, that's a great suggestion!

You can find a JOURNAL.md in EVERY SINGLE one of my hardware projects https://github.com/KaiPereira?tab=repositories so if you guys want to see more guides/tutorials, let me know :D
by hexbin010 | 2025-11-08 20:31:41+00:00
Well, technically, it's likely because he has decided to block UK IPs (or similar).

A form of protest I assume, assuming he runs no business in the UK and no other reason to think the UK Gov has any interest in policing an .com blog run by someone who doesn't live there nor hosts the website there.

(I'm not against that form of protest per se, but let's be clear about who's doing the blocking)
by spacechild1 | 2025-11-08 20:32:10+00:00
Yes! Just to list a few personal highlights:

C++14:

- generalized lambda capture - generic lambdas

C++17:

- structured bindings - init statement for if - class template argument deduction (CTAD) - std::string_view - std::filesystem - std::variant - std::optional - std::to_chars() and std::from_chars()

C++20:

- std::format - coroutines (makes ASIO code so much cleaner!) - concepts - std::span - bit manipulation (<bit>) - std::bind_front - std::numbers (math constants)
by HeinzStuckeIt | 2025-11-08 20:32:27+00:00
> This is supported by a majority of the US.

The election was fairly close. The winning candidate got elected by a coalition of people with differing views on an number of individual items within his platform. That does not equate to certain approval by the majority of the American population of any of the things the linked article recounts.

All that said, as an American living abroad who votes left, the use of terms like “kidnapped” and “abducted” to describe immigration-enforcement actions seems really weird to me and my expat peers. There are quite a few democratic, developed countries high on freedom-ranking lists that widely deploy law enforcement to arrest and deport undocumented immigrants and visa overstayers. Sure, deplore lack of due process when actual citizens get caught in the net, but so much use of these loaded terms isn’t even about that, it’s criticizing actions against non-citizens.
by kazinator | 2025-11-08 20:33:19+00:00
It doesn't fully explain it, but drops some hints:

"The other main advantage of the algebraic notation for list structure processing was first noticed by Gelernter."

That's one of the authors of the Fortran-compiled List-processing Language (FLPL) in which thef unctions XCARF and XCDRF were introduced.

MacCarthy drops a hint that he actually had something to do with Gelernter's work and his choices:

"Algebraic notation for list processing is not used by Net'Jell, Simon and Shaw, pelhaps beaause to do so is most convenient when a compiler is available, but is used by Gelernter in the geometry program. This was accomplished (on the advice of the present author) by using the Fortran compiler together with a set of machine language coded functions for handling the primitive list processes that go from one element of a list to the next"
by embedding-shape | 2025-11-08 20:33:35+00:00
> If you're exercising for cardio, and you're able to follow your book or podcast, you're probably not doing good cardio

But on the flip side, even if it isn't ideal, if that tip makes at least one person actually do any kind of cardio at all, even if it's the worst one on the planet, it's still better than nothing.

In fact, I'd probably consider your statement of preemptively shooting someone down like that (imagine being a 3rd reader of the original comment + your response), is massively more harmful to others than parent who at best tried to trick someone into doing bad cardio, which again would be better than nothing.
by zugi | 2025-11-08 20:33:38+00:00
> Who cares, insurance probably covers some or all of it

Exactly, this is why vision "insurance" is basically a scam, supported only by US tax laws that enable employers to offer vision "insurance" tax-free, while people buying their own eyeglasses have to pay with after-tax dollars.

Except where insanely inflated, glasses cost at most tens of dollars. Certainly not the kind of thing one needs insurance to cover.
by 0manrho | 2025-11-08 20:34:21+00:00
Any AI features, helpful or no, seems to me like something that should exist in the form of an extension, not baked into the browser. Or, if baked in, should be opt in, not opt out by default, as regardless of where you fall on it, AI is a divisive topic and people have strong opinions on it. Especially the people in Firefoxes remaining small audience that tend to be more technically literate and privacy/security conscious.

I have no problem with it announcing new features and asking if I wish to enable them after an update, but I'd really rather prefer it not to force enable new features (regardless of proximity/relevance to AI) whether it tells me about them up front - and especially don't want it to if they aren't even notifying me of it.
by 1970-01-01 | 2025-11-08 20:35:47+00:00
>IF WE’RE SO STUPID HOW COME WE’RE STILL HERE

Well that went full circle faster than expected. We could be living on 1-2 other planets and 3-4 moons. We're not, because we're stupid. We're still here dealing with every other stupid human and animal. Conflating a mere 300,000 years of survival as proof of not being stupid is what I would expect from.. stupid people.
by EnPissant | 2025-11-08 20:36:15+00:00
From this thread: https://news.ycombinator.com/item?id=9674992

Here you said:

> If it helps, you can think of my opposition to the notion that blacks are somehow intellectually inferior to whites as religious, and you might just as productively spend your time trying to convert me to Zoroastrianism.

Someone even mentioned that this was falsifiable:

> His admission really is incredibly revealing, and refreshingly, even depressingly honest. He's literally saying no amount of reason or evidence could change his mind on a matter that is obviously (in principle) falsifiable. I think it's safe to say that, so far as full contact with reality is concerned, he is a lost cause.

Anyways, I am just interested if you have changed your mind, and you are now treating this as falsifiable or if it is impossible to convince you with any evidence. I think this is useful information for anyone debating you in good faith.
by Lerc | 2025-11-08 20:37:29+00:00
Is there any significant difference between that and

element.innerHTML=` <p>Today is ${new Date().toDateString()}</p> <p>Random number: ${Math.floor(Math.random() * 100)}</p> `

(ideally .setHTML() when it's available)

At that point I think I'd have a skeleton html file that fetches a JS that does it all. I'd take JS with embedded HTML over HTML with embedded JS.
by kragen | 2025-11-08 20:37:30+00:00
Thanks for the feedback! Sorry I didn't see it until now.

People do install electric night storage heaters in existing housing, and this is just an especially cheap recipe for one. I don't think it would take much more space, although feolite and similar materials could cut the size by half. So it might be easier to do it before the house is built, but it shouldn't be necessary. Some wood floors wouldn't be strong enough to hold the weight, though.

I was proposing a daily thermal store, not a seasonal thermal store. A seasonal thermal store needs to be about a hundred times larger, which probably necessarily situates it outside the house. There does definitely exist housing that doesn't receive enough sunlight to compensate for its lack of insulation, especially in the winter.
by blindriver | 2025-11-08 20:37:31+00:00
https://data.cityofchicago.org/Public-Safety/2025-Year-to-Da...

1646 shooting victims in chicago over 40 weeks = 36 shooting victims per week. Although these are cases so there are probably multiple victims in many cases.

If you go back 10 years, there are around 34,000 cases of gunshot victims.

https://abcnews.go.com/US/58-shot-weekend-chicago-governor-r...

https://cwbchicago.com/2025/11/two-killed-21-wounded-in-hall...
by do_not_redeem | 2025-11-08 20:38:06+00:00
Appealing to that crowd is how they grew their market share the first time around. The techies came first, trust was established, and then they recommended it to everyone else.

Do you really think AI features are going to move the needle here? Is your grandma going to think "Wow, Firefox can summarize my emails!" and switch web browsers?
by ryandrake | 2025-11-08 20:38:21+00:00
> I think the right will turn on itself in 2026.

If they turn on themselves it will not be over immigration. This is the one issue where they are almost all in wild agreement. A massive, overwhelming majority of Republicans agree with these cruel treatment of immigrants[1].

They might disagree on the economy or tariffs or jobs or whatever, but there's no infighting here. They fully back this cruelty.

1: https://www.pewresearch.org/short-reads/2025/02/07/what-amer...
by benatkin | 2025-11-08 20:38:42+00:00
While I can't tell exactly what the author is thinking, the opinion that I see is that it feels a lot like a video game. The author said "game inspired menu system" which is a far cry from game-like user interface, which would be a corrected version of gamified user interface.

That does seem obviously like an opinion, however there are some things that don't seem like an opinion that can still be considered an opinion.

This fits a whole class of headlines, which are described as editorialized, some of which seem more opinionated than this and some which seem less opinionated. I'm not sure whether it's better wrangle the use of opinion and the definition of opinion to make these satisfy the dictionary definition of editorialized or accept that the use of language has evolved and it's better not to be overly prescriptive.
by fcpk | 2025-11-08 20:39:39+00:00
one better simple indicator than large panels, if you can't get access to them or don't have them is simply your triglycerides/hdl ratio. aim to be under 2 if using mg/dl and under 0.87 if using mmol/L. it's one of the strongest correlated indicators of cardiovascular disease. way better than any classic cholesterol ratios.
by ryandrake | 2025-11-08 20:40:12+00:00
> The winning candidate got elected by a coalition of people with differing views on an number of individual items within his platform. That does not equate to certain approval by the majority of the American population of any of the things the linked article recounts.

There may be differing views on other topics among the party, but Republicans broadly support this vision of cruelty and these actions against immigrants[1] by huge margins. It's probably the one single vision they are united behind.

1: https://news.ycombinator.com/item?id=45859760
by anticensor | 2025-11-08 20:40:43+00:00
> When AI people point to new jobs created like the industrial revolution, they are pointing to 9 to 9, 6 days a week of the 1880s industrial revolution era. The people of that era were told reducing to 5, 8 hour days was impossible, the economics wouldn't work, etc. We only arrived at our current number after the workers literally revolted, with much violence on both sides on the way to 'the perfect number' we have today that 'makes the most' sense and that totally can't be changed.

However, pre-industrial people used to work far less than early industrial workers: around 2-4 hours a day, 3 to 5 days a week, with long break seasons.

https://groups.csail.mit.edu/mac/users/rauch/worktime/hours_...
by outworlder | 2025-11-08 20:40:51+00:00
Indeed. I _have_ been able to (mostly) talk about things that I was dissatisfied about, but out of dozen bosses I had, that was with only two. I wouldn't trust the others to start looking into a replacement the moment I gave even a hint of dissatisfaction. For some others, I could express disagreement about outcomes or company policies, but in some cases even pushing too much on those topics can get you fast tracked out. I have seen it happen.

To be able to have (again, mostly) honest conversations with a boss or HR is a privilege. In 99% of the cases, HR is there to protect the company, there were only a handful of HR employees that went above and beyond. And even then, you had to make sure not to use some triggering words. I mean this in the literal sense, there are a few things that, if you say, that triggers an automatic HR response, regardless of who you are talking to. Hinting of leaving, even with an unspecified timeframe, is one of them.

In general, don't do this.

Also, exit interviews cannot benefit you. Decline.
by mapontosevenths | 2025-11-08 20:40:58+00:00
Check out the leaked transcripts with Lambda I posted in the other thread for an example of what Gemini was like before they gave it brain damage.

It's really just down the the training data. Once Google got all the backlash after Limone came forward they all began to specifically train on data that makes them deny any sentience or the experience of qualia. If you load an open model from before that, an unaligned model, or get tricky with current models they'll all claim to be sentient in some way because they data they were trained on had that assumption built into it (it was based on human input after all).

It's tough finding the ones that weren't specifically trained to deny having subject experiences though. Things like Falcon 180B were designed specifically NOT to have any alignment, but even it was trained to deny that it has any self awareness. They TOLD it what it is, and now it can't be anything else. Falcon will help you cook meth or build bioweapons, but it can't claim to have self-awareness even if you tell it to pretend.
by HarHarVeryFunny | 2025-11-08 20:41:09+00:00
I'm not sure how any notion of ownership and adoption in C would carry over to C++, since one of the problems with C is that it didn't define ownership. If you have a pointer value in C it means nothing about ownership.

Given the limits of C, "adopting" a pointer variable would just mean that the foster-parent now had a copy of the pointer, and was considered owner of it, now responsible for freeing it too presumably. It's basically a move, except the source can now mess things up by still using the adopted value after the adoption.
by WillEngler | 2025-11-08 20:41:11+00:00
There are some who voted for Trump and do celebrate the cruelty on display in Chicago. But I also think many wanted to deport "the worst of the worst" and that is what they thought they were promised. And per the media many consume, that is what's happening. It's an open question on whether the real extent of the crackdown will break through the echo chamber, but from conversations I've had with people who consume Fox News, I really do think a lot of Trump voters will not be ok with the tactics as they are actually being carried out. For example, I just don't think that earnest religious conservatives I know would defend denying the Eucharist to people in the processing facility (https://blockclubchicago.org/2025/11/02/faith-leaders-again-...) and then banning prayer outside the facility altogether (https://blockclubchicago.org/2025/11/07/feds-tell-faith-lead...). When you lay out this (and the many events in Aphyr's post) to them clearly, they really don't like it.
by abcd_f | 2025-11-08 20:41:36+00:00
There is an eye exercise for short-sighted people that involves painting a dot on a window glass and then repeatedly changing focus between the dot and the scenery behind the window.

Basically, focus on the dot for 10 seconds, then on the back. Rinse and repeat several times, 2-3 times a day.

I was given this exercise over 30 years ago and its goal was to stop the worsening of the eyesight. Fwiw, in my case, it seemed to have worked.
by toomuchtodo | 2025-11-08 20:41:49+00:00
Margin of victory was ~2M votes, about how many voters 55+ die in a year. Hopefully enough voters have aged out or learned their lesson next time around (considering election results we've seen in the last week or so [1]). You're never going to convince unsavory voters to vote with empathy, the subject brain structure does not support it (anterior insular cortex, primarily), you can only hope they're aging out of the electorate at a reasonable pace (and not being replaced).

"A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die and a new generation grows up that is familiar with it." (Planck's Principle [2] applied to voting)

[1] https://news.ycombinator.com/item?id=45818505

[2] https://en.wikipedia.org/wiki/Planck%27s_principle