Viewing profile — listeria
listeria
HN member- Joined
- Thu, Sep 14, 2023, 4:06 PM UTC
- HN karma
- 65
- Public activity
- 54 items
- HN profile
- View on Hacker News ↗
About listeria
No profile information was provided.
Recent public activity
-
comment
Comment #48732669
killing a process which is using SQLite shouldn't corrupt the database, same as pulling the plug.
-
comment
Comment #48688729
When I first found out about bit fields in C, I was left wondering what the order of bits was in a byte, eventually I convinced myself it doesn't matter, since the byte is the smal…
-
comment
Comment #48435235
(1) fails for negative numbers (2) fails for (x % 32 in [1, 2]) due to UB (3) fails for x == 2 (4) crashes for x == 0 (5) is the same polynomial, only factorized (6) always returns…
-
comment
Comment #47975080
This reminds me of two excellent articles[1][2] by Paul Khuong, in which he talks about using size-specialized binary search for power-of-two sized arrays (special-casing the first…
-
comment
Comment #47270705
Apparently there was some talk a few years ago about adding the project to the python standard library[1] and the maintainer seems really[2] interested[3] in that. But I don't thin…
-
comment
Comment #47233870
Have you tried bringing it up with HR? If you explain why you try to avoid her while she's wearing them, they might ask her to stop wearing them to work. Meta's own guidelines[1] s…
-
comment
Comment #47181681
But the definition of economically active differs between the two: Finland includes people from ages 15-89, while in Spain you need to be 16 or older. And judging from what I read …
-
comment
Comment #46969707
If you look at the solar radiation spectrum chart in the section "Why isn’t the sky violet?", you can see that sunlight is not evenly distributed along the visible spectrum--it emi…
-
comment
Comment #46924522
Global aliases are a zsh feature and not avaliable in bash. So if you want: openssl ,v to expand to... openssl --version readline seems like the way to go. Then again most of the e…
-
comment
Comment #46756387
and risk having them interpret it as a declaration of war?
-
comment
Comment #46745197
may I introduce you to the nodiscard attribute[1]? enum (class)? [[nodiscard]] Error { Ok, NoMem, ... }; [1]: https://en.cppreference.com/w/cpp/language/attributes/nodisc...
-
comment
Comment #46650163
Firefox will read it if it exists[1]. You could use the /usr/lib/firefox/distribution directory (or whatever the installation directory may be), but that may be overwritten by an u…
-
comment
Comment #46376603
> The books were translated years ago anyway. Translated books lack the nuance or tone of the originals, which you would be missing out of, and most of the time you don't even real…
-
comment
Comment #45992980
sh: 1: [[: not found
-
comment
Comment #45773765
That's all well and good, except the README clearly states: > rústico (Spanish for Rust) which is plain wrong.
-
comment
Comment #45772673
I was immediately put off by the Spanish version when I saw it was called "rústico", which does not translate to rust at all, it means rustic. The Spanish word for rust would be "ó…
-
comment
Comment #45761555
you can see at the top of the page it says: STATUS AS AT : 30-10-2025 09:16:00 EDT and the date of the signature says 25 Oct 2025.
-
comment
Comment #45761200
full list of signatories: https://treaties.un.org/Pages/ViewDetails.aspx?src=TREATY&mt...
-
comment
Comment #45760893
in the b=2 case, you get: 1 / 1 = 1 = b - 1 1 % 1 = 0 = b - 2 they are the other way around, see for example the b=3 case: 21 (base 3) = 7 12 (base 3) = 5 7 / 5 = 1 = b - 2 7 % 5 =…
-
comment
Comment #45569489
Maybe it should be called "lest"? As in a less/most replacement written in rust. Although it does divert from the theme of more/less/most.
-
comment
Comment #45492013
> I wonder if an LLM would be up to the job of writing the assembly code from this? I could see a compiler doing that.
-
comment
Comment #45237036
presumably the derivation would involve a cryptographically secure, non-reversible function so as to not compromise the secret should one of them be leaked.
-
comment
Comment #45104367
It's actually seconds since epoch, not milliseconds. Here's a small program to verify it: date -u --date='2038-01-19T03:14:08' +%s | perl -ne 'printf "%#x\n", $_' It is also mentio…
-
comment
Comment #44997094
It's called struct embedding, there an article about it in Go by Example if you're interested: https://gobyexample.com/struct-embedding
-
comment
Comment #44996875
something like this would do it: package main import ( "sync" "time" ) type WaitGroup struct { sync.WaitGroup } func (wg *WaitGroup) Go(fn func()) { wg.Add(1) go func() { defer wg.…