HNHacker News
TopNewBestAskShowJobs

ablu

14 karma · joined November 4, 2018

https://ablu.org/
submissionscomments
ablu··on FP techniques that will help you write better JavaScript
I think `for element of list` nowadays starts to become a realistic choice (without a transpiler) for that: https://caniuse.com/?search=for...of
ablu··on 93% of Paint Splatters Are Valid Perl Programs (2019)
The "future work" section of the paper covers the smearing part! The authors acknowledge that it is unknown whether the results translate to smeared paint.
ablu··on Using Google Analytics without GDPR consent
Additionally you are now doing an additional request to Cloudflare, which probably requires you to link to their privacy policy for that service?
ablu··on Writing to the Framebuffer (2018)
My understanding was that fbdev is deprecated (but I was unable to find good info on this) and that one should use dumb buffers (https://manpages.debian.org/testing/libdrm-dev/drm-memory.7....) for this simple stuff / somewhat portable software rendering. At least Qt allows to do this for embedded devices without hardware rendering.
ablu··on Rust: Dropping heavy things in another thread can make your code 10000x faster
Even ignoring the shared_ptr abuse, at least for allocating and freeing many small objects Java would most probably be (a lot?) faster than non-optimized allocations and frees in native binaries. But in my case it was legacy code running on an embedded device.
ablu··on Rust: Dropping heavy things in another thread can make your code 10000x faster
A while ago I stumbled over a proposal to move a shared pointer (this was C++ code) to a thread in order to trigger the freeing of a legacy data structure there (the multi-thousand delete calls caused the watchdog of the main thread to fail). However, keeping the shared pointer reference in the main thread for too long resulted in the possibility that the "clean-up" thread ran while the main thread still had a hold on the shared pointer... Resulting in a low chance of the "clean-up" thread doing nothing and the main thread still locking up. People here got taught to use shared pointers to prevent memory management errors, but it can really cause a lot of unexpected non-determinism when used blindly.