Recent submissions

Comment · 32 minutes ago
A misprediction may be much worse than a small stall.

Your error is to assume that it has to be only one or the other, instead of giving the programmer the choice, since the programmer is the only one benchmarking his code and knowing the answer.

Comment · 20 hours ago
This problem is older than AI. The problem is that recognition is given to the last mathematician in the chain, even when some intermediate people may have made key contributions.

For example, Millennium Prizes were offered to the last person. This encouraged people who know or believe they have an important piece of information to keep it secret, even if they can never get anything else out of it, and that hinders mathematical progress.

Instead, if recognition and rewards were shared along the chain, more people would be incentivized to share their ideas and contributions, even unfinished ones.

An interesting problem is how to distribute the reward. What's the value of a given contribution? But that's the kind of problem that mathematicians are good at solving, and this may stimulate the development of mathematical theories about the value of contributions, which may themselves orient mathematical investigation in general by indicating where further investigation should take place.

Comment · 22 hours ago
Frore makes thin flat electrostatic coolers that would be perfect for laptop SSDs, but I don't know if they're available for purchase by consumers.

The main problem would be powering them. They could potentially draw power from the M.2 connector through an adapter, or soldering to an USB connector, I guess.

Comment · 23 hours ago
I got one from Amazon. A 32-thread Ryzen 9 7945HX, along with a motherboard, CPU cooler, case, and PSU for $400. But I didn't trust the PSU, so I bought a better one, replaced the thermal paste with PTM 7950, and replaced the CPU fan with a Noctua.

I also had to buy SODIMM DDR5 RAM modules (just before prices skyrocketed, I got 64 GB for $180), a 2 TB Samsung NVMe SSD, and an RTX 5060. The CPU comes with an integrated GPU, but I disabled it to get better cooling.

I also wanted to replace the CPU cooler with a Noctua one, but the GPU sits too close to the CPU. Maybe someday I'll adapt a liquid-cooling radiator, but that would require 3D printing a custom adapter and making multiple trips to a 3D printing shop for trial and error. That's too much hassle.

Comment · 1 day ago
You are moving n/2 objects log(n) times, so its O(n.log(n))
Comment · 1 day ago
This is the typical person who would complain equally whether you do black or white, short or long, right or left. She isn't happy with the man and uses any excuse to rationalize her frustration, but the problem is never what she complains about.
Comment · 1 day ago
Malloc() is sloooow. Even more if you also use free(). Consider allocating a single array and scratching there if possible.
Comment · 1 day ago
I had a programmable calculator that could generate tones at specific frequencies. Then I learned that consecutive musical notes (an octave apart) have exactly double the frequency, so I was able to convert any written melody into music. But I never knew which frequency matched which note. It didn't matter much, as long as you preserve the relative intervals, the melody is recognizable.

Others thought I was some kind of wizard performing black magic, but the concept was so simple. Just one single, simple little piece of knowledge. Actually, I barely knew anything about music or sound programming.

Comment · 1 day ago
The soviet "union" never existed because it was imperialism: dozens of nations invaded, subjected to genocide, and kept together at gunpoint.

World War II started when the USSR and its ally, the Nazis, invaded Poland. After the war ended, the USSR continued invading even more countries and doomed them to miserable poverty and underdevelopment.

The same happens in China today: it is an empire. The Chinese language doesn't even exist. China is made up of thousands of nations with thousands of languages that are mutually unintelligible and hate each other. In western China, they are white, Caucasian.

Comment · 2 days ago
Hollywood is dead, regardless of the existence of YouTube. It committed suicide by ideology.

I hadn't watched movies in years. I'm tired of the trash coming out of Hollywood.

Comment · 2 days ago
Cannabis traces have also been found in ancient Egyptian mummies, many millennia before Columbus, despite being an American plant.
Comment · 2 days ago
The Spanish actually lost the first battle against the Aztecs, but the indigenous rescued and protected them.

During the wars of independence, the Indigenous people actually fought against independence because they remembered how things had been before and how much better things had become under Spanish rule.

Comment · 2 days ago
Insufficient support for operations with 8-bit registers is a bottleneck even in 64-bit CPUs.

For example, let's suppose that you have a for loop. You could update 8 uint8 values simultaneously by packing them into a uint64 and adding a constant. But when you need to unpack those 8 bytes to actually use them as indexes, the unpacking costs a lot of CPU cycles, so you lose the advantage you gained by avoiding 8 separate additions.

All you can do is access AH and AL (or `SIL`, `DIL`, `BPL`, `SPL`, etc.), but this does not take just 1 CPU cycle. It takes many cycles, and only the lowest bytes can be accessed. There is a lot of performance left on the table because of insufficient support for small registers inside larger registers.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton