HNHacker News
TopNewBestAskShowJobs

dezgeg

2,900 karma · joined August 7, 2013

[ my public key: https://keybase.io/dezgeg; my proof: https://keybase.io/dezgeg/sigs/T97m4HN4fIeKVsJzfbIsXEgnHunf6ut9z2hZbtMU3BM ]
submissionscomments
dezgeg··on My First Impressions of Nix
> The solution was to tell nix to disregard the nix store, in order to force the local build.

If this actually led to avx512 being enabled in the package, then that's a bug. Nix builds should not be dependant on the machine doing the compilation, all such autodetection should be disabled via configure flag or patched out.

Then, the right way to enable avx512 would be to pass some 'enable avx512 please' flag to the package's configure flags. Which would then trigger recompilation, without any 'disregard the nix store, in order to force the local build' options.

dezgeg··on First people sickened by Covid-19 were scientists at WIV: US government sources
Yep, can confirm this took me by surprise when working with chinese colleagues in our company. Eg. I would read someone's out-of-message saying "OoO, going to hospital today" and be freaking out. But then they would be just out for couple days sick leave for fever or something. Only after like 3rd time that happening it clicked to me that 'hospital' for them means something completely different than I would have thought.

Whether that is just a misunderstanding of language or actual difference in healthcare system I never thought about.

dezgeg··on I booted Linux 293k times in 21 hours
Many kernel people really are stuck in their ways like that. They don't want to leave their Mutt (e-mail client) at any cost. I recall some are even to this day running using a text console (ie. no X11 or Wayland).
dezgeg··on Barracuda urges replacing, not patching, its email security gateways
Or it could be as simple as that the software update application on the device has been patched to re-add the malware after flashing the software update.
dezgeg··on Show HN: RISC-V core written in 600 lines of C89
Maybe in the early days of C, but with modern compilers doing stuff like keeping variables in only registers, inlining functions, stack cookies, merging non overlapping variables etc. that seems not really worth it. If you want to avoid accidental huge stack usage you can pass flag to gcc/clang to trigger warning when stack usage of a function goes over the specified limit.
dezgeg··on Show HN: RISC-V core written in 600 lines of C89
I've met several people that seriously think that C89 is the peak of programming languages and that C99 just brings misfeatures (like, allowing variable declarations in middle of basic blocks according to them)
dezgeg··on Debian 12 “Bookworm”
The sad truth is the license of non-GPL Linux kernel modules is very rarely cared about nor enforced. There are ton of embedded devices that don't bother with the NVIDIA shim scheme but ship with straight proprietary .ko:s on the device.
dezgeg··on Debian 12 “Bookworm”
How can you ever really be sure that there is no way to change the code running on the hardware, either unintentionally via some exploit, or intentionally via a deliberate backdoor or a debugging interface enabled in production?

As a practical example, I have never heard anyone considering the freedomness of firmware in eMMC flash memory chips. But the talk "eMMC hacking, or: how I fixed long-dead Galaxy S3 phones" from CCC reveals that actually, Samsung eMMC chips have an undocumented debug interface to read/write the RAM of the firmware running on the ARM core inside the eMMC chip.

dezgeg··on Fitting 44% More Data on a C64/1541 Floppy Disk
Here's a demo running on just the drive: https://cdm.link/2021/07/freespin-is-a-demo-made-for-the-com...
dezgeg··on Asahi Linux to Users: Please Stop Using X.org
This is wrong; using floating point (or rather, the vector register set like XMM) is used for example for cryptography. It does have extra cost though (as kernel doesn't normally save FPU/vector regs).
dezgeg··on A Linux kernel without struct buffer_head
It's not quite just disabling compilation of code, but also disables some runtime checks (eg. "else if (iomap_use_buffer_heads(srcmap))" branches will be false at compile time and optimized out). But the difference is probably unmeasurably small.
dezgeg··on Ubuntu stops shipping Flatpak by default
But do you then get Wine that is capable of running 32-bit Windows binaries? Or can Wine do it nowadays without?
dezgeg··on Orange Pi 5 Is a Great and Fast Alternative to the Raspberry Pi 4
In my experience they are very well supported. I think the old USB controller lacks some of the performance optimizations mainly. Not sure how fast the new board versions get support, though.
dezgeg··on What was the point of [ “x$var” = “xval” ]? (2021)
Not to mention this syntax short-circuits, which is usually desirable.
dezgeg··on The floppy disk just won’t die
Well, TDD, which means the base station and the phones take turns transmitting on a single frequency, is still possible in 4G and 5G. How often the switch happens is configurable by the operator and in 4G can range from 1ms for phones and 4ms for base station, to 3 ms for phones and 2 ms for base station. So, just the directional switching shouldn't be the full story (and even though I used to work on base station radio software goes beyond my understanding. Too near the digital processing side, I guess :)
dezgeg··on Better alternatives to git submodules
Android has similar tool called 'repo': https://gerrit.googlesource.com/git-repo . I have seen it used outside Android and I think it's mostly ok (Definitely better than git submodules). My main beef with it is that it's impossible to google anything related to the tool. Some people do seem to hate it though.

I wonder has anybody used this 'west' outside of Zephry?

dezgeg··on Better alternatives to git submodules
For that use case, how often do you want the other repositories to be fixed to some particular hash, however? At least every time I've wanted such multi-clone behaviour I've wanted to have all the repositories on HEAD of some branch, and very rarely some fixed commit.
dezgeg··on Tether elements to each other with CSS anchor positioning
If I remember right, QML used in Qt allows that kind of positioning.
dezgeg··on AMD Zen2 ymm registers rolling back
The RAM on the M1 is soldered to the SoC package, so building a multi-socket system with shared RAM would most likely be impossible.
dezgeg··on How they filmed The Last of Us arcade scene
Great stuff, thanks for posting in HN!
dezgeg··on Reverse-engineering the ModR/M addressing microcode in the Intel 8086 processor
On 6502 some of the undefined opcodes (usually named KIL) put the chip into an state where it no longer executes any instructions and doesn't respond to interrupts either. And such state isn't reachable via documented instructions. Maybe that kind of 'state' was meant?
dezgeg··on Reverse-engineering the ModR/M addressing microcode in the Intel 8086 processor
> People often ask if microcode could be updated on the 8086. Microcode was hardcoded into the ROM, so it could not be changed. This became a big problem for Intel with the famous Pentium floating-point division bug. The Pentium chip turned out to have a bug that resulted in rare but serious errors when dividing.

Do we really know whether fixing the Pentium FDIV bug would have actually been in the reach of microcode patching capabilities? Based on googling the FDIV bug is due to errors in some sort of PLA which presumably couldn't have been patched.

dezgeg··on Hayes command set history: The tech that dialed in a million modems
Hmm, there is a different 'accidental hard drive dialing' story in his autobiography (Just for Fun) - where that happened in Minix and as a result Linus chose to move to Linux full-time:

> But in December, I mistakenly auto-dialed my hard disk instead of my modem. I was trying to auto-dial /dev/tty1, which is the serial line. But by mistake I auto-dialed /dev/hda1, which is the hard disk device. The end result was that I inadvertently overwrote some of the most critical parts of the of the partition where I had Minix. Yes, that meant I couldn’t boot Minix anymore. > > That was the point where I had a decision to make: I could reinstall Minix, or I could bite the bullet and acknowledge that Linux was good enough that I didn’t need Minix. I would write the programs to compile Linux, under itself, and whenever I felt I needed Minix I would just add the desired feature to Linux. It’s a big conceptual step when you drop the original hosting environment and truly make a program self-hosting, so big that I released the new version as 0.10 in late November.

Of course, maybe he did do the same mistake twice :)

dezgeg··on Mercedes-Benz previews its operating system MB.OS
I'd be pretty sure that any company can pay money to Qt Company and have them come and integrate Qt into any kind of weirdo OS whatsover.
dezgeg··on Bug identified after Alaska Airlines planes bump runway while taking off
Someone forgot their 'if err != nil { return err }' check from their microservice call (whenever it happens to be overloaded) and just plowed through with some intermediate weight component being zero?
dezgeg··on Lesser known tricks, quirks and features of C
> you can't change the order of the formatted arguments.

You can with the $ syntax. Never seen it used though. Maybe it isn't very portable.

dezgeg··on Linux's SystemV Filesystem Support Being Orphaned
For filesystems the former. Having test code running in kernel space is relatively uncommon, though some kernel subsystems do that.

"can't even properly test it anymore" almost certainly means not that it is impossible for the maintainer, but more like they have better things to spend their time on.

dezgeg··on I replaced grub with systemd-boot
Because having boot menu for stuff like older kernels, recovery mode, and access to kernel command line is pretty useful.
dezgeg··on Frame pointers vs. DWARF – my verdict
Nice analysis.

It would be interesting to see comparison to Intel LBR.

Also would be nice to know how profiling unwinding is done on Windows (maybe someone knows how to summon Bruce Dawson).

dezgeg··on My review of the C standard library in practice
No. While the compiler can optimize memcpy calls to direct loads/stores for small arguments (when inlining the loads/stores would be smaller than the cost of calling memcpy), for bigger or not statically know sizes it WILL call to memcpy in libc. And in fact it may even emit memcpy calls for things like struct copies.
← PreviousPage 8 of 14Next →