News for hackers. Stuff that matters.

mohinder

Re:Hardening the C++ Standard Library at scale on Saturday November 29, 2025 @02:59PM (#46090296)
> This would neither pass a review, nor static analysis

I beg to differ. Humans are fallible. Static analysis of C++ cannot catch all cases and humans will often accept a change that passes the analyses.

You don't need all the permutations. If there are 32 bytes in a cache line then each instruction can only start at one of 32 possible positions. Then if you want to decode N instructions per cycle you need N 32-to-1 muxes. You can reduce the number of inputs to the later muxes since instructions can't be zero size.
The chopping up can happen the next cycle, in parallel across all the instructions in the cache line(s) that were fetched, and it can be pipelined so there's no loss in throughput. Since x86 instructions can be as small as one byte, in principle the throughput-per-cache-line can be higher on x86 than on RISC-V (e.g. a single 32-byte x86 cache line could have up to 32 instructions where the original RISC-V ISA might only have 8). And in any case, there are RISC-V extensions that allow variable-length instructions now, so they have to deal with the problem too.
Re:Attention is your scarcest resource on Thursday July 31, 2025 @05:55AM (#44744035)
I'm not arguing that it's logical, but I do think it's natural for humans to want to do the thing that pleases them now even if it costs them some unknown number of years of life in the unforeseeable future.
Re:Attention is your scarcest resource on Thursday July 31, 2025 @05:42AM (#44743971)
I agree with you when it comes to life in general. However, I think most people regard time spent working as fixed and already having been spent, and so maximizing the value of your attention is what is important.

I read the article assuming they were talking about work, not life in general.

Re:It's Now a Hate Crime to Vandalize Teslas in DC on Thursday March 27, 2025 @08:19PM (#43499844)
> Hate crimes only serve to give a specific group protected status

That's not true. There is no specific group of people that is protected. A racially motivated crime only requires that race be part of the motive, not that the victim be a member of a particular race.

Re:What's so hard about constexpr allocation? on Friday July 26, 2024 @12:45AM (#41075816)
It seems like the C++ language devs are always trying to rein in horses that have already left the barn.
Re:Get a cable modem, go to jail (1999) on Tuesday September 05, 2023 @04:09AM (#37389117)
> gaslighting

Please.

Just link a study or something. FWIW I think it's wild I'm being accused of gaslighting over a simple request. Isn't that DARVO?

Re:Get a cable modem, go to jail (1999) on Tuesday September 05, 2023 @03:01AM (#37388729)
> DAs have stopped fully prosecuting criminals -- including those who commit violent gun crimes

Just wondering if you have any evidence to back up this assertion.