@StackedCrooked LRU gets pretty expensive. It's not bad for 2 way set associative caches, and manageable for 4 way set associative, but usually prohibitive above that. There are lots of different approximations of LRU, that have kind of the usual tradeoff between accuracy and speed. And then there are completely different non-LRU policies that can work well, depending on usage pattern. Some use stack- or FIFO-like behavior, and a lot try to have some adaptability.
@JerryCoffin it's a lot more complicated than that, at least on modern CPUs. I know I've been lectured by one person on this site about the internal IO buffers that are microarchitectural specific that only apply when doing certain operations etc. It can get rather crazy. But unless you're doing top500 benchmarks, or trying to push way beyond what current CPUs can do that usually doesn't matter that much. Are there people that care? Yes.
@Mgetz Yes, I certainly wasn't trying to say that was the whole iceberg (so to speak), just that although many make some attempt at sort of LRU-like behavior, almost nobody even tries to actually do real LRU. Beyond that, yes, it gets complex. Which was pretty much the point I was trying to make earlier: a lot of it isn't documented, because documenting it accurately is next to impossible and too few people care to justify the work.
@Mikhail Getting the manager's job, not likely. Biggest raises going to lazier/less competent people though...that's actually fairly common (at least in my experience).
@Mikhail Yeah, I fell for that idea once (but not for terribly long--less than a year, anyway).
@StackedCrooked I worry about the company's health when that starts to happen. Big companies can get by for a long time, but smaller ones usually need to stay pretty aggressive, or somebody else is likely to come along and steal their market. As I recall, you guys have most of an IP stack of your own though. If my memory of that is correct, that's probably a bit beyond what most startups will try to compete with, no matter how aggressive they might be.
@JerryCoffin I worry too. Surprisingly the company is doing pretty well. It's carried by the people that care, I guess. I care as well. If only we could get rid of the jokers.
@StackedCrooked That's one of the biggest problems you run into with rewarding poor people--their lack of contribution affects others. All too quickly, you have nobody left who really even wants to contribute much, because it's clear that it isn't rewarded (and sometimes barely even noticed).
@StackedCrooked In an interesting bit of timing, I just got kind of scolded for (at least as I interpret things) failing to take purely internal procedures seriously enough, and focusing too much on customers instead. They have a performance evaluation form, where you rate yourself on a scale of 1 to 5 on each of half a dozen (or so) parameters, and it has a space for comments for each. I'd filled out "technical knowledge" as a 5, and added a comment that I'd been studying what was new in C++23.
During the meeting they pointed out that many more junior engineers had listed 8 to 10 items, so they felt I needed to list more than that. Without thinking much, my response was to ask if they thought I should reduce that to a 4 instead. They replied that oh no, everybody agreed that 5 was the right rating. I just needed to put more time and effort into filling out the form because that became part of my "permanent record..."
@StackedCrooked No, I'm honestly not. Mostly they weren't sure how many items I should list, but something about "but more than 10", and it somehow reminded me of the scene in Office Space where the restaurant manager is talking to Jennifer Aniston's character about how many items of "flare" she's wearing...
As far as technical proficiency goes, being rated 5 there isn't really bragging at all. A couple of years ago we had some software that worked fine when people tested it with two copies of the program talking over localhost, but failed miserably when you ran it in real life. I looked it over and finally realized that they were communicating via TCP, but treating it as if it were framed instead of streaming.
Correct operation depended on one call to read reading the same amount of data as had been sent in one call to write. Which apparently does happen over localhost, but certainly not in general.
@Mikhail In TCP you need to put some kind of delimiter between messages, or a length field, or something that tells you when a message ends and a new one begins.