Better HN
topnewbestaskshowjobs
Log inSign up

mohinder

21 karma · joined Sep 5, 2023 (3y ago) · 9 submissions

Submissions

comment 12mo ago · link · parent

> 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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

> 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.

comment 2y ago · link · parent

It seems like the C++ language devs are always trying to rein in horses that have already left the barn.

comment 3y ago · link · parent

> 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?

comment 3y ago · link · parent

> 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.