Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Const-me
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
961.
▲
by
Const-me
5y ago
> Not it's a human bug (not knowing enough about your system). I know enough about my systems, yet I think Windows is doing it right. The numbers reported by Linux, or visible on the “memory composition” diagram in Windows task mana
962.
▲
by
Const-me
5y ago
I wonder have anyone considered fixing that? That's an obvious usability bug of these reporting tools. They should not include disk cache in the "used" memory. Windows does it right. On the task manager graph, disk cache is n
963.
▲
by
Const-me
5y ago
Also, important stroke parameters are missing, line joins and caps. See pictures on these pages for illustrations: https://docs.microsoft.com/en-us/windows/win32/api/d2d1/ne-d... https://
964.
▲
by
Const-me
5y ago
This is awesome! A few notes on the formats. > magic must be { 0x72, 0x56 } I usually use weird non-ASCII bytes in file signatures of binary formats. Many tools will then correctly identify the file as binary data. > RGB 565 Not impor
965.
▲
by
Const-me
5y ago
> giving up games to write boring tax software instead I don’t believe tax software actually needs people with game development background. The GUI is relatively basic, the code is not terribly complicated nor performance-critical, but p
966.
▲
by
Const-me
5y ago
> How to choose the components For CPUs, I normally use cpubenchmark.net ratings. For GPUs, I simply look at “single precision TFLops” column on Wikipedia. > make sure they are compatible That’s a bit tricky indeed. TL/DR version
967.
▲
by
Const-me
5y ago
Yes, one of the CPUID arguments returns a string. Normally, the values are either "GenuineIntel" or "AuthenticAMD" in ASCII, marshalled as 3 32-bit registers so 12 bytes in total.
968.
▲
by
Const-me
5y ago
> there only needs to be one way of doing it that the compilers knows about Too much magic to my taste. If compiler will be doing that anyway, why not expose an intrinsic we can use? The SSE instruction in question is rather efficient to
969.
▲
by
Const-me
5y ago
> that can easily be fixed Theoretically, yes. Practically, I think that’s a “sufficiently smart compiler” class of problems, insanely hard to solve. Especially given that WASM is a JIT compiler, it simply doesn’t have time for expensive
970.
▲
by
Const-me
5y ago
> A good example of this is _mm_mul_epu32. The below is the Wasm equivalent Pretty sure the "equivalent" is at least 10 times slower. AMD64 CPUs don't have SIMD instructions multiplying 64-bit integers. The wasm32::u64x2_m
971.
▲
by
Const-me
5y ago
> harder without the underlying OS I don’t think there’s anything wrong with the current mainline Linux. There’re issues on desktop, sure. But VR/AR stuff is not similar to desktop, quite the opposite, it’s similar to embedded. For
972.
▲
by
Const-me
5y ago
Neither WPF nor WinUI are using OS controls for most of their GUI. Their GUI is defined by styles and templates in various XAML files. You can make controls look however you like. Microsoft did a great job back then re-implementing UX of Wi
973.
▲
by
Const-me
5y ago
> So I would guess the problem is WinUI3? I think the worst offender is the new packaging system used by WinUI3. The default project template creates a solution with 2 projects, the windows app itself, and the package. They including .NE
974.
▲
by
Const-me
5y ago
WPF hello world app gonna build in couple seconds on any machine. WinUI3 is a mess. I have a fast desktop PC, first time it took longer than 1 minute. BTW, the installation package size for “Hello world” app made from the default template i
975.
▲
by
Const-me
5y ago
> If a normal recent laptop Apparently, 80% of recent laptops are engineered for web browsing and very light office workloads, even regardless on their price. Despite the CPUs are generally good, they don’t usually install enough RAM in
976.
▲
by
Const-me
5y ago
> I used this guide: https://docs.microsoft.com/en-us/windows/apps/winui/winui3 Your experience is expected for the framework. That thing is brand new, has questionable architecture, and I'm not
977.
▲
by
Const-me
5y ago
> ads for therapy for gambling addicts sound fine. Not sure about that. If I would be a gambler, I would find ads for that therapy rather annoying. A therapy with the only goal to take away from me something I like.
978.
▲
by
Const-me
5y ago
A perfect example why youtube’s decision to hide count of dislikes wasn’t a good idea.
979.
▲
by
Const-me
5y ago
> I had to work with fixed-size ASCII strings that are not NUL-terminated and are, instead, padded with spaces at the end. When I have strings on performance-critical paths, unless they’re too long for a good reason, I sometimes pad them
980.
▲
by
Const-me
5y ago
One interesting thing about quaternions that’s almost never mentioned anywhere on the internets, there’re two conventions for them. The convention in that article is known as “Hamilton's quaternions”. There’s another incompatible one u
981.
▲
by
Const-me
5y ago
Block storage is $0.0425 / GB / month with ”balanced” I/O performance level whatever that means, file storage is $0.30 / GB / month. Block volumes are attached to a specific virtual machine which views that thing as
982.
▲
by
Const-me
5y ago
> Do you happen to know how these algorithms are implemented? I do not. I never designed CPUs, only optimized different code for different processors, that’s why I’m aware of these timings. BTW, for AMD64, this is the best resource I’m a
983.
▲
by
Const-me
5y ago
> last time I looked into this problem (in 2005 or so) there wasn't much latency difference between FMA-based implementation and a dedicated hardware divider In 2005 or so, the newest and greatest CPUs were probably Core 2 Duo i.e.
984.
▲
by
Const-me
5y ago
According to nVidia, you gonna need these expensive data center-targeted GPUs (no consumer cards), plus extra licenses. Details and pricing are in that PDF: https://www.nvidia.com/content/dam/en-zz/Solutions&#
985.
▲
by
Const-me
5y ago
> Another classic is computing 1/sqrt(x) for normalizing a vector All AMD64 processors support RSQRTPS instruction, on modern CPUs the latency is ≤ 3 cycles. Similar on ARM with FRSQRTE instruction, albeit I don’t know where to look
986.
▲
by
Const-me
5y ago
Very likely. AFAIK there’re only 4 differences between GeForce and Tesla/Grid: more and faster VRAM, more FP64 GFlops on most GPUs, unlimited count of nvenc encoding streams versus 2 on GeForce, and support for virtualization. Only the
987.
▲
by
Const-me
5y ago
Good article, but note that if the hardware supports the division instruction, will be much faster than the described workarounds. Personally, I recently did what’s written in 2 cases: FP32 division on ARMv7, and FP64 division on GPUs who d
988.
▲
by
Const-me
5y ago
Off the grid is too extreme, IMO. I have relocated to a small town, under 10k urban population. The grids are OK, for the electricity the average downtime is couple hours / year.
989.
▲
by
Const-me
5y ago
The suspect allegedly stole gigabytes of data, need bandwidth for that. Last time I tried to use tor, I was getting like 32 kbit/sec, on top of a symmetric 100 mbit/second internet connection. That was many years ago but I doubt t
990.
▲
by
Const-me
5y ago
Yes, assuming the input is valid UTF-8. UTF-8 bytes less than 0x80 are only used for the first 128 Unicode codepoints. Characters who need multiple bytes in UTF8 representation encode into bytes with high bits set, i.e. >= 0x80: https:&
More ›