2,562 karma · joined Aug 2, 2012 (14y ago) · 654 submissions
comment 8mo ago · link · parent
htons(..) and related socket-utility names are also often macros, but I'm pretty sure there is not a std::htons(..) in the C++ standard, partly because 'htons' is not an attractive name. Since it's (sometimes) a macro don't qualify its namespace like ::htons(..).
A long time ago in the Microsoft C (and later C++) dev envs there were macros named "min" and "max", which I thought were terrible names for macros.
comment 8mo ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Altho maybe I'm stretching the analogy too far.
comment 2y ago · link · parent
But there are fuzzy areas, like hashmaps. Discovery or engineering?
Tho perhaps it's pointless, or worse, elitist to even make this distinction.
comment 2y ago · link · parent
You can also take power using a capacitor instead of an inductor, from the changing voltage (not current) in an AC line. Like when you hold a florescent tube vertical under a hi-power line, and it lights up.
comment 2y ago · link · parent
Best furniture ever. Carted across the country twice. I still use both pieces every day. They've been reupholstered once.
comment 2y ago · link · parent
According to https://www.eia.gov/todayinenergy/detail.php?id=61364 humanity used about 27400 TWh in 2023, with bitcoin mining using in the range of 67 to 240 TWh. So we're using roughly half-a-percent of global electricity (~140 TWh) on bitcoin. That's about the 16 fission reactors.
If we decide that AI is as worthwhile as bitcoin then we should be willing to invest that much electricity. Maybe the U.A.E. is thinking they could provide those power plants.
comment 2y ago · link · parent
Intel may end up back on top.
https://www.asml.com/en/news/press-releases/2022/intel-and-a...
https://www.datacenterdynamics.com/en/news/intel-receives-it...
https://www.tomshardware.com/tech-industry/manufacturing/tsm...
comment 2y ago · link · parent
More info: https://en.wikipedia.org/wiki/Control_moment_gyroscope
comment 2y ago · link · parent
As in men, the single X-chromosome doesn't deactivate.
I'm curious how single-X manifests in other mammals. And if Turner has autoimmune implications.
https://www.mayoclinic.org/diseases-conditions/turner-syndro...