domainofheraclius.info
41 karma · joined January 18, 2024
domainofheraclius.info
I stumbled across this completely by accident while doing research for a history of science class I was designing years ago. It took... a while... to stop saying "but why does this matter!" every two seconds while reading it, but eventually I was able to open my mind to metaphysics as a discipline and get it into my head exactly what he was talking about, and why it was useful. After that, it was smooth sailing. I owe a lot to this book.
At least from a C/C++ perspective, I can't help but feel like this isn't great advice. There isn't a "null dereference" signal that gets sent--it's just a standard SIGSEGV that cannot be distinguished easily from other memory access violations (memprotect, buffer overflows, etc). In principle I suppose you could write a fairly sophisticated signal handler that accounts for this--but at the end of the day it must replace the pointer with a not null one, as the memory read will be immediately retried when the handler returns. You'll get stuck in an infinite loop (READ, throw SIGSEGV, handler doesn't resolve the issue, READ, throw SIGSEGV, &c.) unless you do something to the value of that pointer.
All this to avoid the cost of an if-statement that almost always has the same result (not null), which is perfect conditions for the CPU branch predictor.
I'm not saying that it is definitely better to just do the check. But without any data to suggest that it is actually more performant, I don't really buy this.
EDIT: Actually, this is made a bit worse by the fact that dereferencing nullptr is undefined behavior. Most implementations set the nullptr to 0 and mark that page as unreadable, but that isn't a sure thing. The author says as much later in this article, which makes the above point even weirder.
Talk about generational trauma.
Search engines are just cheaper to run. I don't know that there's a good, long term model for a free LLM-based search replacement because of how much higher the operating costs are, ad supported or not.
This is really the solution here, thankfully they already have it up and running. Unfortunately, I'd bet it gets very little traffic compared to Etsy. This whole centralization of everything on the Internet thing onto a few large sites that really don't care about their users has been deeply saddening to watch.
The article does address this and is talking about a variety of techniques for UV light that has less exposure to people and doesn't result in immediate harm. But presumably this would still be more exposure than sunlight (otherwise, the sun would be killing all these bacteria/viruses anyway), and I'm not aware of any studies assessing the risk of long-term exposure to those levels of UV. If you want to install these systems in buildings, you'd need to assess the risk of literally years of continuous exposure to deem it safe. The couple of weeks on an oil rig proposed in the article wouldn't cut it, from a safety point of view.
But perhaps I'm just being overly conservative.