Better HN
topnewbestaskshowjobs
Log inSign up

heraclius1729

41 karma · joined Jan 18, 2024 (2y ago) · 19 submissions

Submissions

comment 10mo ago · link · parent

It's not very frequently updated, and there's not a lot on it, but here's mine!

domainofheraclius.info

comment 1y ago · link · parent

Regarding sniffing out "networker"s. At one of the first "networking" events I attended, I spoke for a bit with a particular person. An hour or two later, we ended up in the same circle and he proceeded to rattle off from memory everything I had told him about myself. I think he had meant to show off how well he was listening or something... it was more than a little off-putting.

comment 1y ago · link · parent

Can you be a little more specific about what you consider gross? I only read the article because of your comment; I got curious. Most of it just seems like common courtesy, and a few fairly standard body language tricks.

comment 1y ago · link · parent

Scholastic Metaphysics: A Contemporary Introduction by Edward Fesser

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.

comment 1y ago · link · parent

Oh! I didn't know that actually. That's useful information.

comment 1y ago · link · parent

These days, I personally haven't had any issues with odd scanners or printers and getting them to work. Years ago it was nightmarish, but now it tends to be a lot easier than Windows in my experience. My scanner still doesn't work in Windows (granted: I haven't sunk more than about 25 minutes into trying to get it to work), but it works just fine on Linux (with zero effort).

comment 1y ago · link · parent

> In both cases, asking for forgiveness (dereferencing a null pointer and then recovering) instead of permission (checking if the pointer is null before dereferencing it) is an optimization. Comparing all pointers with null would slow down execution when the pointer isn’t null, i.e. in the majority of cases. In contrast, signal handling is zero-cost until the signal is generated, which happens exceedingly rarely in well-written programs.

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.

8.

Using eqn for static website equation generation(douglasrumbaugh.com ↗)

39 points · by heraclius1729 · 1y ago · 7 comments

comment 2y ago · link · parent

Privet. Freakin' privet. I have spent countless hours trying to eradicate the descendants of a privet hedge that my great grandfather planted a hundred years ago; they've been taking over the nearby forest.

Talk about generational trauma.

comment 2y ago · link · parent

He sure got a gift for naming things. Between his S3XY cars and the Big Falcon Rocket from back in the day.

comment 2y ago · link · parent

Not to mention that the cost per search in terms of compute and energy is so much smaller for web search than for running an LLM. I forget the exact numbers now, but it was orders of magnitude as I recall.

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.

comment 2y ago · link · parent

That's an interesting positive spin on what is clearly a cost-cutting feature. I'm on the unlimited search tier, so it hasn't really been a big deal, but it's worth noting that clicking the "more results" button charges your account for an additional search too. Or at least it used to.

comment 2y ago · link · parent

I agree! I love a nice big dial--my car still has them for volume, heat, etc., and I cannot imagine dealing with one that didn't.

comment 2y ago · link · parent

The fact that you can do stuff like this with a typesetting system has always amused me. Back when I was in grad school for mechanical engineering, some other people in my research group were doing computational mechanics. We would always joke about writing all their simulations in TeX, so that the TeX file for their paper would include all of the simulation code too, and rebuilding the document would run all the simulations and generate the plots.

comment 2y ago · link · parent

If any entity needs some effort put into process streamlining and efficiency, it's the US government. But, seriously... Why, oh why, did it have to be called "DOGE"?

comment 2y ago · link · parent

"In the meantime, you can still buy blank cartridges and GB Interceptors from FerranteCraft's Etsy store, but everything else will have to be bought from the publisher's website." [emphasis mine]

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.

comment 2y ago · link · parent

Right, but just because it doesn't appear to be dangerous doesn't mean it won't be in the long term. Unless there've been studies already done on the effects of long term exposure, I'm inclined to be cautious. Things like this can have long term effects that aren't immediately apparent.

comment 2y ago · link · parent

I didn't think of that. This seems like a very good idea. Put the lights where the people aren't, but where the pathogens will be circulating.

comment 2y ago · link · parent

UV light is also pretty bad for humans, is it not? Sunburn, skin-cancer, and all that. I seem to recall a recent mistake where some UV disinfectant lights were used at an event, resulting in sunburns and eye problems for many attendees.

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.