Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Const-me
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
271.
▲
by
Const-me
2y ago
Here in Montenegro I go to a nearby green market, “zelena pijaca” in our language, and similar stuff is usually available. Often more expensive than the ones from Netherlands but still, commercially available without black market. However,
272.
▲
by
Const-me
2y ago
> Would be nice if there was some kind of way around that I’m using Windows and compile with Visual Studio. That debugger visualization file https://github.com/cdcseacave/Visual-Studio-Visualizers/blob... make
273.
▲
by
Const-me
2y ago
Tangentially related, a few tips about offline debugging on Windows: http://const.me/articles/windbg/windbg-intro.pdf Not a silver bullet but still, being able to collect and analyze user-mode crash dumps is somet
274.
▲
by
Const-me
2y ago
> Cryptography is every download you ever do in a browser, bitlocker or equivalent encrypted disk access For IO bandwidth-bound heavy lifting these things typically use AES algorithm. The hardware support for that algorithm is widely ava
275.
▲
by
Const-me
2y ago
I don’t believe many people encode or especially decode video with CPU-running codes. Modern GPUs include hardware accelerators for popular video codecs, these are typically way more power efficient than even AVX-512 software implementation
276.
▲
by
Const-me
2y ago
It depends on the product and the market. I’ve been shipping software that requires AVX2 and FMA3 because it is a professional CAM/CAE application. Our users typically don’t use sub-$100 Intel processors like Pentium and Celeron. The k
277.
▲
by
Const-me
2y ago
I have had mixed experiences with using depth pre-pass. When I tried it a few times, I didn’t see any significant performance improvements on midrange to high end desktop GPUs. I'm not entirely sure why, but I suspect it was due to ear
278.
▲
by
Const-me
2y ago
You could have spend that time learning something which is actually useful and helps finding interesting jobs. For example, GPU programming or SIMD intrinsics. What annoys me about rust is the complexity just for the sake of it, lots of pai
279.
▲
by
Const-me
2y ago
> Nvidia can make things arbitrarily difficult both technically and legally Pretty sure APIs are not copyrightable, e.g. https://www.law.cornell.edu/supremecourt/text/18-956 > against the license agreement o
280.
▲
by
Const-me
2y ago
> definitely does on intel, but uops.info doesn't show memory uops for AMD Indeed, but it reveals something else interesting. On Zen2 and Zen3 processors, the throughput of vpmovsxbd ymm, [...] is more than twice as efficient compar
281.
▲
by
Const-me
2y ago
> creating a global constant array Note you can keep int8_t elements in that array, and sign extend bytes into int32_t while loading. The _mm_loadu_si64 / _mm256_cvtepi8_epi32 combo should compile into a single vpmovsxbd instruction
282.
▲
by
Const-me
2y ago
I’ve learned WPF long ago, and I no longer remember how specifically I did that. Still, that introduction seems pretty good at the first sight: https://wpf-tutorial.com/ Learning is easy, it’s very user friendly and IDE sup
283.
▲
by
Const-me
2y ago
> Can you elaborate on why? The language is only supported in a single compiler, and is specific to Windows. The language is based on both C++ and .NET runtimes, and when I used it (admittedly, it was many years ago) I didn’t like the us
284.
▲
by
Const-me
2y ago
UWP was designed primarily for Windows phones, usability on desktops suffers. And it requires windows store, you can’t just ship an installer .exe WinUI seems to be copy-pasted from UWP, same usability issues on desktops. Unlike UWP, it’s a
285.
▲
by
Const-me
2y ago
Here’s an example of a modern laptop with replaceable battery, disk and RAM: https://www.hp.com/us-en/shop/pdp/hp-zbook-firefly-14-inch-g...
286.
▲
by
Const-me
2y ago
For requirements like that, I typically write WPF C# frontend, combined with C++ backend. Compared to ImGui, in WPF you’ll get a GUI designer, styling which allows easy dark mode, data bindings, data templates, animations, IDE support like
287.
▲
by
Const-me
2y ago
> Linux kernel has an incredibly strong userspace API stability guarantee These guarantees are not that strong, unfortunately. For example, API between kernel-mode and user-mode halves of the GPU driver is unstable. To have 3D accelerate
288.
▲
by
Const-me
2y ago
In Montenegro, McDonald’s has failed back in 2003, albeit at a small scale. McDonald’s also failed in Macedonia in 2013, this time the scale was non-trivial, 7 restaurants. We have a similar traditional dish in this region, IMO better than
289.
▲
by
Const-me
2y ago
When I needed to create texture atlases I copy-paste from Mikko Mononen. Here’s a C++ port of his C version: https://github.com/Const-me/nanovg/blob/master/src/FontStash...
290.
▲
by
Const-me
2y ago
> a lot of systems (especially ARM Mali based ones) only providing OpenGL ES drivers And sometimes minor hardware revision of these Mali GPUs change the internal API between user mode and kernel mode halves of these Linux GLES drivers. T
291.
▲
by
Const-me
2y ago
Here’s some of the Windows things which have these ACLs applied, except obvious ones i.e. files and sockets. • Disk volumes and physical disks • Pipes • Registry keys • Processes and threads • Inter-process synchronization primitives like m
292.
▲
by
Const-me
2y ago
Linux XRender is functionally similar to Windows DirectComposition Linux does not have anything similar to Direct2D, despite it’s technically possible to make it. Here’s a proof of concept for ARMv7 Debian (Raspberry Pi4), on top of GLES 3.
293.
▲
by
Const-me
2y ago
> consider SDL/Pango/Cairo the counterparts for DWrite/DDraw I’m not sure Cairo is comparable to Direct2D, the ecosystem is too different. On Windows, Direct3D 11.0 is guaranteed to be available. Even on computers without
294.
▲
by
Const-me
2y ago
NT kernel is IMO pretty good. Here’s a few points. ABI for device drivers allows to add support for new hardware without recompiling the kernel. First-class support for multithreading, Vista even added thread pool to the userland API. Effic
295.
▲
by
Const-me
2y ago
Another example is select() API, it’s still in use but the limitations are no longer adequate. Another example is ioctl() API for communicating with device drivers. It technically works, but marshaling huge APIs like V4L2 or DRM through a s
296.
▲
by
Const-me
2y ago
Forbush effect, in geophysics, an occasional decrease in the intensity of cosmic rays as observed on Earth, attributed to magnetic effects produced by solar flares, which are disturbances on the Sun https://www.britannica.com
297.
▲
by
Const-me
2y ago
Yeah, .NET Core 2.1. The target device was Raspberry Pi 4 running Debian Linux. The code uses many structs defined by Mpeg4, MKV, and V4L2 kernel API. However, my C# code doesn’t do much work during playback. It loads slices of bytes from t
298.
▲
by
Const-me
2y ago
That’s a large library with tons of C++ which implement much more than just a video player. See readme on the main page of that repository. The video player in the VrmacVideo subfolder consumes Linux kernel APIs like libc, V4L2 and ALSA. It
299.
▲
by
Const-me
2y ago
> most libraries use the hell out of it Most libraries used in a typical LoB or web apps — yeah, probably. However, in performance-critical C# LINQ ain’t even applicable because Span<T> and ReadOnlySpan<T> collections don’t i
300.
▲
by
Const-me
2y ago
> if you want to write something that is GC-less, you're on your own GC allocations only harm performance when they happen often. It’s totally fine to allocate stuff on managed heap on startup, initialization, re-initialization, or
More ›