Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
listeria
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
listeria
20d ago
Depends on how the CacheEntry is stored, it's probably stored in a slice of &[CacheEntry] which precludes storing the record data alongside it as the size of each entry must be fixed.
2.
▲
by
listeria
1mo ago
Well, if you're already using qsort_r, what's the point of using nested functions, if you can have a context pointer with the target? And if you're not using qsort_r, but reaching for _Thread_local, the target can be _Thread_
3.
▲
by
listeria
3mo ago
killing a process which is using SQLite shouldn't corrupt the database, same as pulling the plug.
4.
▲
by
listeria
3mo ago
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 smallest I/O unit, and lived with the fact that castin
5.
▲
by
listeria
3mo ago
(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 0 (7) is the same polynomail reordered But this works for a
6.
▲
by
listeria
5mo ago
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 iteration for other sizes). He uses conditional moves and d
7.
▲
by
listeria
7mo ago
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 think the standard library maintainers would want to incorp
8.
▲
by
listeria
7mo ago
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] say that you should "Power off in private spac
9.
▲
by
listeria
7mo ago
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 the rise in unemployment in Finland is attributed to more pe
10.
▲
by
listeria
7mo ago
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 emit more blue than red, and at sea level it's c
11.
▲
by
listeria
7mo ago
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 examples OP gave are usually available as short o
12.
▲
by
listeria
8mo ago
and risk having them interpret it as a declaration of war?
13.
▲
by
listeria
8mo ago
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...
14.
▲
by
listeria
8mo ago
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 update. There doesn't seem to be any
15.
▲
by
listeria
9mo ago
> 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 realise.
16.
▲
by
listeria
10mo ago
sh: 1: [[: not found
17.
▲
by
listeria
11mo ago
That's all well and good, except the README clearly states: > rústico (Spanish for Rust) which is plain wrong.
18.
▲
by
listeria
11mo ago
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 "óxido".
19.
▲
by
listeria
11mo ago
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.
20.
▲
by
listeria
11mo ago
full list of signatories: https://treaties.un.org/Pages/ViewDetails.aspx?src=TREATY&mt...
21.
▲
by
listeria
11mo ago
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 = 2 = b - 1
22.
▲
by
listeria
11mo ago
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.
23.
▲
by
listeria
1y ago
> 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.
24.
▲
by
listeria
1y ago
presumably the derivation would involve a cryptographically secure, non-reversible function so as to not compromise the secret should one of them be leaked.
25.
▲
by
listeria
1y ago
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 mentioned in perldo
26.
▲
by
listeria
1y ago
It's called struct embedding, there an article about it in Go by Example if you're interested: https://gobyexample.com/struct-embedding
27.
▲
by
listeria
1y ago
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() {
28.
▲
by
listeria
1y ago
They link to an old article [1] that was featured in HN [2] somewhat recently, in which there's a workaround for older standards with regards to typeof. [1]: https://danielchasehooper.com/posts/typechecked-generic-
29.
▲
by
listeria
1y ago
They mention using this as the backing array for a power-of-two-sized hash table, but I don't think it would be very useful considering that the hash table won't provide stable pointers, given that you would need to rehash every e
30.
▲
by
listeria
1y ago
From TFA > This page is a riff on Patrick Collison's list of /fast projects. Maybe as a HN post, but the blog is in response to https://patrickcollison.com/fast
More ›