HackerTrans
トップ新着トレンドコメント過去質問紹介求人

rpnx

no profile record

投稿

GCC Operation Compile 200-ish LOC at -Os: Mission Failed (badly)

godbolt.org
1 ポイント·投稿者 rpnx·9 か月前·2 コメント

Idea: Zerid Indexing

docs.google.com
1 ポイント·投稿者 rpnx·昨年·2 コメント

Ask HN: What do I do about boredom?

5 ポイント·投稿者 rpnx·2 年前·3 コメント

Ask HN: Need ideas for a programming language name

2 ポイント·投稿者 rpnx·3 年前·4 コメント

Ask HN: Suggestions for performance benchmarks for a new language?

2 ポイント·投稿者 rpnx·3 年前·3 コメント

Ask HN: What do you want to see in a systems programming language?

9 ポイント·投稿者 rpnx·3 年前·22 コメント

コメント

rpnx
·21 日前·議論
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.
rpnx
·5 か月前·議論
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.
rpnx
·9 か月前·議論
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!
rpnx
·9 か月前·議論
200-ish line C++ file with no user-defined templates generates around 90k assembly lines with -Os enabled.
rpnx
·9 か月前·議論
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.
rpnx
·11 か月前·議論
Pinephone pro... The phone was not specced well enough and had issue. Hoping the FLX1 isn't vaporware.
rpnx
·昨年·議論
That isn't how chemistry works.
rpnx
·昨年·議論
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.
rpnx
·昨年·議論
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.
rpnx
·昨年·議論
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.
rpnx
·昨年·議論
Stainless steel can be welded... just not easily and cheaply.
rpnx
·2 年前·議論
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.
rpnx
·2 年前·議論
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.
rpnx
·2 年前·議論
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.
rpnx
·2 年前·議論
I'll take microplastics over lead any day.
rpnx
·2 年前·議論
lead is extremely toxic even in small doses, microplastics are comparatively a non-issue.
rpnx
·2 年前·議論
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.
rpnx
·2 年前·議論
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.
rpnx
·2 年前·議論
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.
rpnx
·2 年前·議論
Agree. I work at Google. I promise nothing happens quickly. It can take over a week to set up a new SQL database & client. Half coding (don't get me started on boq...) and half data integrity and criticality annotations for the data...

I don't know what setting up a new domain is like but I can't imagine it's something you "just do".