HNHacker News
TopNewBestAskShowJobs

lights0123

2,054 karma · joined May 27, 2020

he/him

https://lights0123.com/

github.com/lights0123/

submissionscomments
lights0123··on Wonnx real-time webcam image classication using WebGPU
Rust includes source file and line information in many error messages for easier debugging—it's not looking for anything at that path.
lights0123··on SpaceX just achieved speed of 17Mb/s from satellite to stock Android phone
Starlink is using 5G, a cellular tower protocol. The only other option would be WiFi which can not do long distance, at least without both ends being designed for it (which a cellphone is not).
lights0123··on Thanks FedEx, this is why we keep getting phished
Right—they're saying it would be easy for a scammer to "prove legitimacy" by showing those first four, given that they're public.
lights0123··on Show HN: Real-time image generation with SDXL Lightning
A temporary URL that represents a buffer in JS: https://developer.mozilla.org/en-US/docs/Web/API/URL/createO...
lights0123··on I turned my ThinkPad into a programmable USB device
I was recently pleasantly surprised by a Linux utility that can list all UEFI variables stored in Hii and change them: https://github.com/linuxboot/uefisettings/

Obviously can't bypass security settings like this laptop has, but it's useful for a few settings in my case.

lights0123··on Making my bookshelves clickable
It is certainly odd that they didn't use them, especially since image maps are mentioned at the beginning of the article.
lights0123··on Recording and visualising the 20k system calls it takes to "import seaborn"
At the other extreme, checkpointing the whole process once all imports have been resolved and restoring it for every execution can be used for frequently-run tools: https://github.com/albertz/python-preloaded
lights0123··on Variable Fonts
Take a look at the GRAD parameter under Roboto Flex on the post's page—it seems to do what you're talking about.
lights0123··on Making Rust binaries smaller by default
You are aware that the stdlib is linked with --as-needed which tells the linker to not include unused code, right? The entire stdlib is not included in Rust binaries unless you use the entire stdlib. However, as this article shows, that does not apply to debug info.
lights0123··on Performance Analysis of Python's Dict() and {}

    {name, age}
does the same in modern JS, assigning the variable to the key with the same name.
lights0123··on Reading QR codes without a computer
In reality,

- Apple's barcode reader

- Google's ML Kit

- and ZXing, probably behind most third party QR code scanning apps

covers most QR code readers that users will actually use, so testing them is fairly easy.

lights0123··on I'm sorry but I cannot fulfill this request it goes against OpenAI use policy
"a testament to our unwavering commitment to printing excellence" is almost certainly a GPT output—I get this self-praise often when trying to use ChatGPT 4 for marketing text.
lights0123··on Apple tells EU it has five different App Stores, not just one
Unless it's changed recently, it's just a right-click and then Open on the app. Older versions let you select radio box in the Security tab in the settings app to allow all apps.
lights0123··on I made an app that runs Mistral 7B 0.2 LLM locally on iPhone Pros
Could dual boot Windows or Linux
lights0123··on What should we know about APFS special files?
Moving forward, GNU coreutils 9.0, released September 2021, automatically uses reflinks when available. I still have several Ubuntu 20.04 systems that don't have that though, so your way is necessary for a bit.
lights0123··on Why my print didn't output before a segmentation fault
Correct, since unless the program is compiled with -nostdlib, the compiler can assume you're using its printf implementation which does not alter code flow (such as by exit(), longjmp, or exceptions in C++)
lights0123··on Ask HN: How does Google Widevine work under the hood?
Widevine L3 is implemented in software and typically allows screen recording—and media providers only allow a lower bandwidth as a result. My guess is that the first browser used a form of DRM that uses hardware decryption. This probably wasn't Widevine unless you're using ChromeOS or Android (in which case it would be L1, the more trusted version)—it'd likely be Fairplay on Apple browsers or PlayReady on MS Edge (I'm not sure if 3rd party browsers on these platforms use them instead of Widevine software decryption). These do decryption in GPU hardware, then promptly re-encrypts it to send to a trusted monitor. There's no opportunity for screen capture to read the framebuffer. If you did use Brave with a plugin, I believe it would use software DRM that allows recording.
lights0123··on Resetting the timer in my toothbrush
It didn't mention that the toothbrush failed to keep vibrating, just that the toothbrush head lost its function as a writable NFC tag.
lights0123··on Xmas.c (1988)
Real GCC or Apple’s clang symlinked to gcc?
lights0123··on Ask HN: What's your "it's not stupid if it works" story?
I'm not familiar with C++ rules (the linked answer seems very suspect to me, their argument being "if you change the struct, the struct changes!"), but they could absolutely just be declaring them as extern "C" to use C's layout rules.
lights0123··on DoorDash apparently using client side source of truth
DashPass doesn't use in-app purchases, they do their own billing.
lights0123··on The mysterious second parameter to the x86 ENTER instruction
> the Linux kernel for example doesn't use any floating point or vector instructions

it doesn't use them by default, but code that needs the FPU can call kernel_fpu_begin() to save those registers if needed. https://yarchive.net/comp/linux/kernel_fp.html One big user is the AMD graphics driver: https://lore.kernel.org/amd-gfx/ee26b06b-f1a0-5a8f-388c-13c1...

lights0123··on PCSX2 Disables Wayland Support
There is no de-facto Wayland software like there is the X.org server. Wayland is just a protocol—KDE and GNOME (through Mutter) both implement it. The author is saying that KDE did so better than GNOME.
lights0123··on Sqids – Generate short unique IDs from numbers
The *encoding* changes. The decoding stays consistent:

> Decoding IDs will usually produce some kind of numeric output, but that doesn't necessarily mean that the ID is canonical. To check that the ID is valid, you can re-encode decoded numbers and check that the ID matches.

The reason this is not done automatically is that if the default blocklist changes in the future, we don't want to automatically invalidate the ID that has been generated in the past and might now be matching a new blocklist word.

lights0123··on What has changed in CPU cores in M3 chips?
There is no web standard to list what codecs are hardware accelerated—good for fingerprinting resistance, bad for battery.
lights0123··on I tested four NVMe SSDs from four vendors – half lose FLUSH'd data on power loss (2022)
I would expect the world's second largest DRAM manufacturer to have trustworthy memory products.
lights0123··on Windows is now an app for iPhones, iPads, Macs, and PCs
That's an x86 emulator with all the performance and battery penalties that entails, and not even full JIT like Rosetta would provide.
lights0123··on Reptar
The article mentions

> This fact is sometimes useful; compilers can use redundant prefixes to pad a single instruction to a desirable alignment boundary.

so I imagine that could happen under the right optimization mode.

lights0123··on Rust – Faster compilation with the parallel front-end in nightly
Because it uses the jobserver protocol which Cargo initializes to the number of cores by default, I'd imagine you could set the new flag to some unreasonably high number (e.g. 10000) and it should limit usage to free cores.
lights0123··on macOS Sonoma Boot Failures
I did enjoy my Dell touchscreen-supported firmware setup when there was a menu 15 items long and an incredibly slow mouse speed.
← PreviousPage 4 of 20Next →