209 karma · joined Mar 1, 2021 (5y ago) · 61 submissions
comment 3mo ago · link · parent
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...
comment 3mo ago · link · parent
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...
comment 3mo ago · link · parent
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.
comment 3mo ago · link · parent
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...
8.
Ask HN: Can we direct AI on our personal projects during work hours?
3 points · by rpnx · 3mo ago · 8 comments
comment 5mo ago · link · parent
Air Conditioners do not produce a net heating effect unless you power them by burning fossil fuels.
14.
GCC Operation Compile 200-ish LOC at -Os: Mission Failed (badly)(godbolt.org ↗)
1 points · by rpnx · 1y ago · 2 comments
comment 1y ago · link · parent
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.
19.
Idea: Zerid Indexing(docs.google.com ↗)
1 points · by rpnx · 1y ago · 2 comments
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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.