Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Const-me
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
76 ms
·
901.
▲
by
Const-me
5y ago
Windows explorer does that. They are labelled "Size" and "Size on disk", respectively.
902.
▲
by
Const-me
5y ago
> it's usually faster to inspect the code manually I’m not sure how usual that is. Sometimes “the code” is too many thousands of lines to inspect. Other times, “the code” is only the machine code but not the source code, inspecting
903.
▲
by
Const-me
5y ago
Indeed, it can happen too. All software is different, bugs are different, and optimal debugging tactics is very different as well. But when the one in my comment does work, the saved debugging time can be measured in days . Speaking about
904.
▲
by
Const-me
5y ago
> Figuring out how you got there isn't necessarily any easier with a debugger than with generous logging. If anything, it can be much harder. Put a breakpoint early on startup, once hit put a data breakpoint on the part of the state
905.
▲
by
Const-me
5y ago
Yeah, but I’m pretty sure DNS over HTTPS will become default in a couple of years. I don’t believe the government should spend taxpayer’s money fighting a problem which will soon disappear automatically, regardless of their [in]actions.
906.
▲
by
Const-me
5y ago
Over the last few years, most of the internet upgraded to TLS. This technological shift made it much harder, and in many cases borderline impossible, for ISPs to mess with the traffic.
907.
▲
by
Const-me
5y ago
> I'd love to have faster C++ compile times. It's not an inherent property of the language. With some care, it is possible to write C++ code with compilation speed comparable to good old C, even in large projects. The worst off
908.
▲
by
Const-me
5y ago
To be fair, Microsoft does show how to replace the WiFi module, but I absolutely agree on the rest. Fortunately, Microsoft is not the only company making laptops and filming videos, check this out: https://www.youtube.com/wa
909.
▲
by
Const-me
5y ago
I think that behavior is totally fine, but only if the change is communicated to the people using the program or library. I had an interesting issue with Nuget package manager. Authors of some open-source package we’re using changed their l
910.
▲
by
Const-me
5y ago
I know another possible explanation, way simpler. Vast majority of these SEO abusers are monetized through google ads. For every advertisement dollar spent through google, google takes 30-50%. And 80% of Google's income is from interne
911.
▲
by
Const-me
5y ago
The COVIC pandemic is global and universal, but people responding differently. I’m not from Serbia but I live nearby, speak pretty much the same language, and culturally Montenegro is very close. Over here, many people are generally skeptic
912.
▲
by
Const-me
5y ago
> Current incidence 8 cases per 100000 people (US: 200 cases per 100000) This page says 100k active cases, they have 51m population, that’s the same 200 cases per 100k people: https://www.worldometers.info/coronavirus
913.
▲
by
Const-me
5y ago
That might be true for perl, but I don’t believe that’s true for programming languages in general. > C++ shepherds you into providing dependencies as header-only libraries. There’re many C++ libraries provided as DLLs too, like QT. Just
914.
▲
by
Const-me
5y ago
> I'm not sure what you mean by "sharing one time only" or "sharing between processes one-to-one" By one time only, I meant that you only want to pass the data once, as opposed to sharing the data and being able
915.
▲
by
Const-me
5y ago
> If you want to share memory between processes, it's easy enough to use mmap() It's only easy when all of the following is true: (1) sharing one time only (2) Sharing exactly one continuous buffer, as opposed to anything more
916.
▲
by
Const-me
5y ago
fork() is rarely ideal, unless followed by exec() to launch another processes. That copy-on-write thing often wastes too much physical memory. I think threads are usually better, the shared memory allows to marshal large volumes of data wit
917.
▲
by
Const-me
5y ago
Yeah, and where not available Java probably uses BSR instruction which does the same thing but introduced in i386 (1985): https://www.felixcloutier.com/x86/bsr
918.
▲
by
Const-me
5y ago
I think it’s the language. Haven’t really tested but in C# that would be something like that, 8 lines of code instead of 40: public static byte[] func( uint p, uint q ) { int pw = 32 - BitOperations.LeadingZeroCount( p );
919.
▲
by
Const-me
5y ago
> accuse the other party of propaganda Click the first link, it writes that Americans attempted a regime change in Belarus, and instigated a war between Azerbaijan and Armenia.
920.
▲
by
Const-me
5y ago
Which government? The root servers are all over the world: https://root-servers.org/
921.
▲
by
Const-me
5y ago
Despite the centralization efforts of big tech, Internet is more resilient than you think it is. > would shut down most existing apps until they're updated Most apps are using DNS client APIs provided by their operating systems. >
922.
▲
by
Const-me
5y ago
Last non-fiction book I read was “A Plague Upon Our House” by dr. Scott Atlas. Good one, can recommend, but it might be too depressing for a birthday, it’s about COVID and modern politics. Another good non-fiction one is “Skunk Works: A Per
923.
▲
by
Const-me
5y ago
> The code was awful and it would need to be a compiler generated thing for sure. C++ templates technically work, Eigen [1] is made entirely of them and the performance is pretty good. However, writing and debugging code in that style is
924.
▲
by
Const-me
5y ago
The researchers found a strong positive correlation between severe COVID-19 (defined as a COVID-19 hospitalization) and chance of death for any reason. There're obvious reasons why people of all ages with preexisting health issues are
925.
▲
by
Const-me
5y ago
I think if you watch that 4k video with nearest neighbor downsampling (i.e. the player which drops 75% of pixels and only render 25% of them, one from each 2x2 quad), you’ll get worse quality. Fortunately, that’s not how video players norma
926.
▲
by
Const-me
5y ago
Technically, that instruction is a scalar one. It multiplies just one number in the lowest lane of the vectors, and copies the second lane from the first vector register without changing it. BTW, on modern processors, the performance of suc
927.
▲
by
Const-me
5y ago
> most software we run resembles the garbage pointer chasing variety more than the finely tuned numerical variety. To be fair, crappy pointer-heavy data structures is not the only possible reason. Some useful algorithms are inherently se
928.
▲
by
Const-me
5y ago
> the best code almost always must be tuned for one specific CPU There’re very few relevant differences between CPUs of the same instruction set. The author of that PR implemented fast paths for SSE2, AVX2, and NEON. Combined, they cover
929.
▲
by
Const-me
5y ago
> its not true that unsigned is faster because the compiler can optimize. It’s not false either. For instance, casting int32_t into int64_t requires an instruction like movsxd which does sign extend. Casting uint32_t into uint64_t can of
930.
▲
by
Const-me
5y ago
I agree with GP. When I started my career in 2000, people used C or C++ for pretty much everything. People wrote desktop GUI apps with MFC. People built web apps with cgi-bin, ISAPI, and C++ implemented COM objects consumed from asp classic
More ›