HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rpnx

no profile record

Submissions

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

godbolt.org
1 points·by rpnx·9개월 전·2 comments

Idea: Zerid Indexing

docs.google.com
1 points·by rpnx·작년·2 comments

Ask HN: What do I do about boredom?

5 points·by rpnx·2년 전·3 comments

Ask HN: Need ideas for a programming language name

2 points·by rpnx·3년 전·4 comments

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

2 points·by rpnx·3년 전·3 comments

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

9 points·by rpnx·3년 전·22 comments

comments

rpnx
·21일 전·discuss
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개월 전·discuss
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개월 전·discuss
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개월 전·discuss
200-ish line C++ file with no user-defined templates generates around 90k assembly lines with -Os enabled.
rpnx
·9개월 전·discuss
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개월 전·discuss
Pinephone pro... The phone was not specced well enough and had issue. Hoping the FLX1 isn't vaporware.
rpnx
·작년·discuss
That isn't how chemistry works.
rpnx
·작년·discuss
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
·작년·discuss
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
·작년·discuss
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
·작년·discuss
Stainless steel can be welded... just not easily and cheaply.
rpnx
·2년 전·discuss
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년 전·discuss
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년 전·discuss
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년 전·discuss
I'll take microplastics over lead any day.
rpnx
·2년 전·discuss
lead is extremely toxic even in small doses, microplastics are comparatively a non-issue.
rpnx
·2년 전·discuss
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년 전·discuss
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년 전·discuss
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년 전·discuss
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".