HNHacker News
TopNewBestAskShowJobs

heinrich5991

2,000 karma · joined January 11, 2014

submissionscomments
heinrich5991··on Pipe Viewer – A Unix Utility You Should Know About
There's also `progress` which works for tools mainly operating on a single file, but unlike `pv`, you don't have to start the tool differently. It'd e.g. work nicely for the `gzip` example. Just call `progress` on a different terminal while `gzip` is running.
heinrich5991··on JSON for Classic C++
What are "ThomPike* macros"?
heinrich5991··on C++ proposal: There are exactly 8 bits in a byte
> If you use i32, it looks like you care.

In Rust, that's not really the case. `i32` is the go-to integer type.

`isize` on the other hand would look really weird in code — it's an almost unused integer type. I also prefer having integers that don't depend on the machine I'm running them on.

heinrich5991··on C++ proposal: There are exactly 8 bits in a byte
Actually, if you don't care about the size of your small number, use `i32`. If it's a big number, use `i64`.

`isize`/`usize` should only be used for memory-related quantities — that's why they renamed from `int`/`uint`.

heinrich5991··on C++ proposal: There are exactly 8 bits in a byte
Permalink (press 'y' anywhere on GitHub): https://github.com/torvalds/linux/blob/4d939780b70592e0f4bc6....
heinrich5991··on US weighs Google break-up in landmark antitrust case
https://archive.is/DPtgt
heinrich5991··on A subtle change to the iPhone’s contact-sharing permissions
Almost. You need a workaround for chatting with new numbers and can't add anyone to groups.
heinrich5991··on Examples of Great URL Design (2023)
Even worse:

    /issues/
    /issues/:id
    /pulls/
    /pulls/:author
    /pull/:id
heinrich5991··on Null-Restricted and Nullable Types
> Also the above will not compile.

It compiled for me (after changing NULL to nullptr).

> Because compilers can actually detect if you set a pointer to nullptr and then use it.

Apparently it didn't.

> Here, you didn't use it so maybe the compiler won't complain. But in the general case yes it will complain.

That's incorrect, there's a use of the nullptr.

> You call some unsafe code that directly interacts with memory.

I don't see something explicitly declared as unsafe from the source code alone. It looks like a normal pointer dereference to me.

heinrich5991··on Using Rust to corrode insane Python run-times (2021)
It's used in Firefox. See e.g. the infobox of https://en.wikipedia.org/w/index.php?title=Firefox&oldid=123....
heinrich5991··on What "consent" looks like for the DEA and TSA
https://archive.is/yQhw3
heinrich5991··on Pi calculation world record with over 202T digits
18 including the leading 3.
heinrich5991··on I'm funding Ladybird because I can't fund Firefox
AFAIK most of modern web browser vulnerabilities come from JavaScript engines.
heinrich5991··on I'm funding Ladybird because I can't fund Firefox
This diagram should be zero-aligned at the very least.
heinrich5991··on ICANN's list of abandoned vanity TLDs
It actually seems to be only .desi. Or does it? For .wed, I see a document titled "Final Determination by ICANN to Not Transition Operation of the gTLD (19 May 2021)", but it says that "ICANN org will proceed to make arrangements towards a transition of the .wed TLD to a successor Registry Operator following the Registry Transition Process with a Request for Proposals."
heinrich5991··on Modern-day spying: sometimes old technology is more secure
https://archive.is/G9g7P
heinrich5991··on Ball: A ball that lives in your dock
Permalink (press 'y' anywhere on github): https://github.com/nate-parrott/ball/blob/609f3bdba21b6a6a59...
heinrich5991··on ASHA for Linux
Why is the Bluetooth LE Audio protocol problematic?
heinrich5991··on Self-Serve Dashboards
I guess BI stands for https://en.wikipedia.org/wiki/Business_intelligence?
heinrich5991··on ARM torpedoes Windows on ARM: Demands destruction of all PCs with Snapdragon X
They helpfully send the whole article before asking you to enable tracking cookies. You can e.g. use reader mode to read the article. This mostly seems like an oversight on their part though.

Archive link: https://archive.is/kGByU.

heinrich5991··on ARM torpedoes Windows on ARM: Demands destruction of all PCs with Snapdragon X
Orginal article, submission link is machine-translated by the publisher: https://www.heise.de/news/ARM-will-Verkauf-aller-neuen-PCs-m....
heinrich5991··on Apple unveils 'Passwords' manager app at WWDC 2024
You can use vaultwarden for self-hosting: https://github.com/dani-garcia/vaultwarden/. It's easier than the official server.
heinrich5991··on Apple unveils 'Passwords' manager app at WWDC 2024
Bitwarden

+ cross-platform

+ free as in beer

+ free and open-source software

Can't really comment on convenience, I moved from LastPass, but it has worked well for me.

heinrich5991··on Libtree: Ldd as a tree saying why a library is found or not
C++, Nim, Rust, Zig would probably work as well.
heinrich5991··on How to chop off bytes of an UTF-8 string to fit into a small slot and look nice
No need to go to the kernel API to create filenames that are invalid UTF-16. The Win32 API will happily let you do it.
heinrich5991··on Re: Why Host Emacs Packages on GitHub? (Microsoft vs Freedom)
The grandparent does not present a dichotomy, let alone a false one. It says that when you are not using email patches, the network effect of the platform (like Gitea which you present as if it was explicitly excluded by the grandparent) is important.
heinrich5991··on The greatest bug I never fixed (2010)
A checksum is usually intended not to match if the checksum itself is corrupted.
heinrich5991··on gh-116167: Allow disabling the GIL
Concurrency with rayon in Rust isn't pain, I'd say. It's basically hidden away from the user.
heinrich5991··on Bypassing Safari 17's advanced audio fingerprinting protection
sin(x) is platform-dependent.
heinrich5991··on Generating transparent images using Stable Diffusion XL
Working link: https://github.com/layerdiffusion/sd-forge-layerdiffusion/as....
← PreviousPage 2 of 18Next →