News for hackers. Stuff that matters.

rpnx

Re:The Two Factions of C++ on Monday August 24, 2026 @12:43PM (#49422420)
The C++ environment for builds is kind of awful. It's usable, but extremely complicated, non-uniform, and rarely well implemented.

CMake isn't a good build system, it's just the least bad one we have.

Re:The Two Factions of C++ on Monday August 24, 2026 @12:38PM (#49422344)
Disagree. There are important things C++ gets "right" that languages like Go, C#, Java, and Rust get "wrong". It's difficult to impress these ideas on people who dislike C++, because they are largely not willing to learn C++.

The C++ build environment is awful, I'll give you that much.

I find people tend to fall into two camps, people who don't understand C++ because it's "too complicated" and people who like C++ (though acknowledge the syntax is a bit odd sometimes).

Extraction of the essence of C++ is ongoing...

Re:The Two Factions of C++ on Thursday August 20, 2026 @01:54PM (#49377915)
> no real language will spent 4 entire years and is still stuck in version 0.0.0-0.

Strongly disagree. I too thought that it would be easy to implement a new language in 1-2 years. I started the current Quxlang codebase (under a different name) on Dec 27, 2022. In 2026, hundreds of commits and hundreds of thousands of lines of code later, I still don't have a feature complete language.

I also rewrote the syntax, mainly because C++ parsing is a nightmare... Although my choice was very different...

Re:The Two Factions of C++ on Thursday August 20, 2026 @01:30PM (#49377623)
Worth noting, Carbon is just an experimental language, I see no evidence it's being used widely or replacing C++.
Re:The Two Factions of C++ on Thursday August 20, 2026 @01:14PM (#49377407)
This is why I'm building Quxlang.

C++ cannot evolve easily without breaking backwards compatibility.

I started Quxlang because I saw the writing on the wall for C++. Doesn't mean C++ isn't good, but it has issues and needs improvement.

Somehow I managed to implement working modules, C++ doesn't seem to have that yet, although the C++ build system is horribly broken.

We'll have to see how it compares when it's more complete and ready to use. I don't have oop/inheritance yet which is also important for a C++ alternative.

Mainly /goal mode of complex project/prompts. Example: https://doxygen.rpnx.net/cortado/ was nearly a one-shot for GPT 5.6 sol and took well over 1 hour for the first prompt before finishing.

But anything to do with compiler development tends to leave the AI spinning its wheels for quite a while.

Edit: Checked the time on that one, I confused it with Compress taking 3+ hours for 1 prompt and another couple of hours each for the next few prompts... Cortado was still well over 1 hour for the initial prompt though...

Obviously using work equipment is a no-no. I'm also in agreement on point #2 aside that I think it's okay to discuss such topics e.g. during lunch in the same way you may discuss any other random topic at lunch.

Ask HN: Can we direct AI on our personal projects during work hours?

So here's the question I wanted to pose around AI usage. With modern advanced AI, much of the time, using AI consists of sending a message a waiting a long time (often an hour or more) before the AI finishes a task.Which I think brings up an important question, is it okay to take short work breaks to send instructions to AI working on your personal projects during work hours?Do any employers...

( Read More... | 8 comments | 3 points | on HN )
Re:Should We Make Daylight Saving Time Permanent? on Monday July 27, 2026 @07:22PM (#49076934)
No, we should make standard time permanent.

Daylight savings time is bad for our bodies particularly in the winter.

It also makes noon even more out of sync with solar noon.

It is worth noting that if the Air Conditioner is powered by electricity that came from solar panels, the net heat produced compared to letting the sun heat solar panel colored ground is exactly 0.

Air Conditioners do not produce a net heating effect unless you power them by burning fossil fuels.

Re:The US is flirting with its first-ever population decline on Tuesday February 10, 2026 @12:31PM (#46963512)
Good. Reduce population growth until housing buildout can catch up with population. Trying to create more babies and allowing immigration when there aren't enough homes is dumb.
Ran across this while writing the Quxlang compiler frontend. Was wondering how GCC/Clang solved this problem... turns out at least with regard to GCC... they don't!
200-ish line C++ file with no user-defined templates generates around 90k assembly lines with -Os enabled.
Re:Should I choose Ada, SPARK, or Rust over C/C++? (2024) on Tuesday October 07, 2025 @12:59PM (#45505664)
GC was removed from the C++ standard in C++23 because all the compilers were like "hell no" and it was an optional feature so they could get away with not adding it. So this optional feature never actually existed and they removed it in later standards.
Re:PinePhone Pro [GNU/Linux smartphone] has been discontinued on Thursday August 28, 2025 @12:45PM (#45054282)
Pinephone pro... The phone was not specced well enough and had issue. Hoping the FLX1 isn't vaporware.
That isn't how chemistry works.
Re:Idea: Zerid Indexing on Sunday June 22, 2025 @04:22PM (#44349972)
A document proposing terminology to describe 0-based indexes in unambiguous language.

For example, considering a sequence like [5, 4, 7, 8, 2]

What is the 4th element? 8, but if I asked what is the "0th element", you would answer 5, but that is the 1st element. The document introduces the terminology of the zerid element (0id element), oneid element (1id), etc. to handle 0-based indexing.

I think this honestly has more to do with moslty Chinese sellers engaging in review fraud, which is a rampant problem. I'm not saying non-Chinese sellers don't engage in review fraud, but I have noticed a trend that around 98% of fake or fraudulently advertised products are of Chinese origin.

If it was just because it was cheap, we'd also see similar fraud from Mexican or Vietnamese sellers, but I don't really see that.

I actually disagree. I think that people will pay more for higher quality software, but only if they know the software is higher quality.

It's great to say your software is higher quality, but the question I have is whether or not is is higher quality with the same or similar features, and second, whether the better quality is known to the customers.

It's the same way that I will pay hundreds of dollars for Jetbrains tools each year even though ostensibly VS Code has most of the same features, but the quality of the implementation greatly differs.

If a new company made their IDE better than jetbrains though, it'd be hard to get me to fork over money. Free trials and so on can help spread awareness.

Re:You Can Be a Great Designer and Be Completely Unknown on Friday April 25, 2025 @04:15PM (#43798093)
Stainless steel can be welded... just not easily and cheaply.
Re:Async Rust is not safe with io_uring on Wednesday October 30, 2024 @03:20PM (#41999104)
This is a simple problem I have met and dealt with before.

The issue is the lack of synchronization between cancellation and not handling cancel failure.

All cancellations can fail because there is always a race when calling cancel() where the operation completes.

You have two options, synchronous cancel (block until we know if cancel succeded) or async cancel (callback or other notification).

This code simply handles the race incorrectly, no need to think too hard about this.

It may be that some io_uring operations cannot be cancelled, that is a linux limitation. I've also seen there is no async way to close sockets, which is another issue.

To be clear, everyone alive today is still on average multiple iq points dumber than they would have been had we not burned tetraethyl lead 50 years ago, even though it has been banned for quite a while. Lead is THAT toxic.
Lead is toxic at any dose.

This means is damages your neurons in any amount.

Contrast to say, copper, which doesn't start causing damage until levels exceed a certain tolerable threshold.

While lead is toxic at any amount, low amounts of lead cause low amounts of damage. It doesn't change the fact that the ideal exposure is 0 and over 99% of people have about 5 to 10 times the bond lead levels found in remains of our ancestors, and that even relatively low lead exposure levels from breathing lead in the air from just air pollution are linked to dramatically reduced IQ.

I'll take microplastics over lead any day.
lead is extremely toxic even in small doses, microplastics are comparatively a non-issue.
It is a typical example of "I'm right so I should be allowed to bypass the democratic process and do whatever I want" thinking. It's quite dangerous.
Re:The staggering death toll of scientific lies on Friday August 23, 2024 @03:06PM (#41332048)
This is the root of the problem.

Take the whole "saturated fat is unhealthy" thing.

Here's what happened:

Study finds that unsaturated fat is healthier than saturated fat, but all fat is associated with lower mortality vs carbs.

Repeated as "unsaturated fat is healther than saturated fat".

Repeated as "saturated fat is unhealthy".

This conclusion isn't supported by any research compared to carbs(!).

Same-calorie diet of high fat is healthier than one based on carbs. But we are often taught otherwise.

The saturated fat is bad (wrong) consensus is reached like a game of telephone.

Back in university, my compsci security project didn't work on the university wifi for some reason, if we used google chrome. Firefox worked fine. Some kind of weird proxy broke the website. But to this day I don't know exactly what happened.

Older »