Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Const-me
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
811.
▲
by
Const-me
4y ago
Thanks, fixed.
812.
▲
by
Const-me
4y ago
> One incident almost 50 years ago Smaller incidents happen every year, example for Canada: https://www.technicalsafetybc.ca/case-study-ammonia-release-... > Millions of tons of ammonia are handled every year. Fertili
813.
▲
by
Const-me
4y ago
> Variable length encoding with a prepended length field The OP's method only works under the following assumptions: (1) length in bytes is power of 2 so the re-interpret trick works, and (2) the complete source data is in memory. I
814.
▲
by
Const-me
4y ago
> Electric synthetic ammonia is mature tech I'd prefer a nuclear plant nearby, ammonia is toxic: https://abc13.com/ammonia-truck-disaster-houston/1332062/
815.
▲
by
Const-me
4y ago
If one's goal is influence, fighting wars is counter-productive. The top five countries investing the most into the economy of Kazakhstan remained unchanged in 2019. Being the largest investor, the Netherlands invested $7.3 billion in
816.
▲
by
Const-me
4y ago
Look at what marketing people think is a modern high-end toaster: https://revcook.com/products/instaglo-r270-toaster Pretty sure it has way better embedded computer than i386/8MB RAM / 30MB storage / VGA
817.
▲
by
Const-me
4y ago
I have replaced pieces of C++ standard library quite a few times. std::list calls malloc/free for every node instead of a bunch of them, expensive. Also they are doubly linked, for some applications a single-linked lists fit better. st
818.
▲
by
Const-me
4y ago
File systems need backward compatibility. 40 years ago, it wasn’t clear people gonna invent Internet and start moving files across time zones. Keeping file modification time according to local clock was reasonable idea at that time. The FAT
819.
▲
by
Const-me
4y ago
It’s pretty fast. Likely reason for that, MS designed both language and runtime this way since version 1.0. They needed that for their Windows Forms which consumes huge chunk of WinAPI. I benchmarked a while ago when testing this library h
820.
▲
by
Const-me
4y ago
Hardware requirements are up to the product management. For instance, many modern videogames (they generally want compatibility because directly translates to sales) no longer support 32-bit or pre-AVX1 processors. Technically, Julia can dr
821.
▲
by
Const-me
4y ago
CPUs support these instructions for 9 years now. When ignoring these old CPUs, most languages and compilers are usually doing a good job. Example in C which does not depend on any library functions: double fma( double a, double b, dou
822.
▲
by
Const-me
4y ago
They are comparable. The most efficient shipping method is by sea, the fastest one is by air. The importance of that chokepoint is debatable. Flying distance to Moscow is different but not substantially so, 450 versus 600 km. There's n
823.
▲
by
Const-me
4y ago
> to not have a NATO supply line run straight up to a massive land border marching distance from Belgorod? Estonia, Latvia and Lithuania are NATO members. Russia already has that massive land border on the west, marching distance from Sa
824.
▲
by
Const-me
4y ago
This became true as the war continues. Wasn't the case in February. Western intelligence was expecting Russians to capture Kyiv within several days of the war [1] Therefore, western countries refused to supply heavy weapons. They remem
825.
▲
by
Const-me
4y ago
Right, unpacking numbers like that is pretty efficient in AVX512. Still, modern processors have BMI2. For some practical applications, the PEXT instruction is pretty comparable, here’s an example: https://stackoverflow.com/a
826.
▲
by
Const-me
4y ago
> do you consider a Unix root a single file system? No idea. On Windows, I consider volume a single file system. > you've just ignored the whole line about loading custom registry files I know about them. If you really want multi
827.
▲
by
Const-me
4y ago
The HKEY_CURRENT_USER key is just an alias within the same DB, it points to some key under HKEY_USERS. I don't think this counts as another instance of the DB, despite stored in separate files. ESENT databases are independent: a databa
828.
▲
by
Const-me
4y ago
Each Windows installation only has 1 registry, but it normally has multiple ESENT databases https://en.wikipedia.org/wiki/Extensible_Storage_Engine These databases are NoSQL as well. Albeit somewhat closer to tradition
829.
▲
by
Const-me
4y ago
As you correctly pointed out, the natural monopoly of electrical grid is the network of the cables which connect large pool of producers to even larger pool of consumers. There’re many ways to generate electricity, but if one wants reliable
830.
▲
by
Const-me
4y ago
> YouTube is not a natural monopoly, as evidenced by the fact that there are other video hosting services (e.g. Vimeo, Facebook, PeerTube). Tesla sells solar roofs and power walls accessible to every person in US. Is it an evidence elect
831.
▲
by
Const-me
4y ago
It’s totally fine when the service in question is not a natural monopoly. Youtube is a natural monopoly now, just like residential water and electricity suppliers. Too bad it’s not yet regulated as such.
832.
▲
by
Const-me
4y ago
I would do the SSE version slightly differently. No need for bitwise tricks, SSE2 has an instruction to compare bytes, which saves 1 instruction and one constant vector. int luhn( const char* s ) { __m128i r = _mm_loadu_si
833.
▲
by
Const-me
4y ago
It’s pretty fast, but I’m not sure it’s the fastest. If you want throughput, hardware-based h.264 gonna be faster than JPEG while delivering better quality. It’s possible to configure the encoder so it only emits keyframes (I-frames), which
834.
▲
by
Const-me
4y ago
> this often means other people taking similar risks to rescue them. I agree about mountains, but I don't think the risks are similar on the sea. Modern large vessels are relatively safe in all weather. Plane and helicopter pilots f
835.
▲
by
Const-me
4y ago
Microsoft only taxes laptops sold by physical retail outlets. When ordering them online, one can often find a laptop without any OS preinstalled. Vendors are usually selling them to corporations who want Win10 enterprise covered by their vo
836.
▲
by
Const-me
4y ago
I'm pretty sure Montenegro doesn't block anything on the internets.
837.
▲
by
Const-me
4y ago
The quadcopters are not terribly efficient, they spending too much energy hovering. I think a fixed-wing drone of the similar form factor is the way to go, would fly many times longer. However, they will fly much faster and can’t stop. To b
838.
▲
by
Const-me
4y ago
Find a library. Couple years ago I needed to generate PDF reports, relatively complicated ones: headers/footers/backgrounds, page numbers, complex tables, jpeg bitmaps, custom vector graphics in diagrams, etc. This one did the job
839.
▲
by
Const-me
4y ago
Cellular data was technically widely available for years before iPhones (see e.g. GPRS for the tech, adopted in 2000), albeit very expensive. Apple changed that. They negotiated a special contract with AT&T and for a year or so the firs
840.
▲
by
Const-me
5y ago
> What about OpenGL? Yeah, GL is good now. Vulkan too, when supported by GPU driver. However, both GL and VK can only render triangle meshes. Browsers don't quite need meshes (except WebGL but that's another story), they need 2
More ›