Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nh2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
511.
▲
by
nh2
5y ago
GTK can be statically linked. Example executable: https://github.com/nh2/static-haskell-nix/releases/tag/c-sta... It lost this ability temporarily when switching to Meson, but I fixed it in GTK3 and GTK4
512.
▲
by
nh2
5y ago
For anyone considering contributing to tools and distros that support static linking, check out my StackOverflow answer "Static linking is back on the rise" [1]. [1] https://stackoverflow.com/questions/3430400
513.
▲
Corrupt Signal DB issue crashing App and losing data
(github.com)
119 points
by
nh2
6y ago
|
75 comments
514.
▲
by
nh2
6y ago
The docs [1] and this [2] suggest that you'll probably observe inconsistent results. WAL mode supports it ("reading and writing can proceed concurrently"), but "does not work over a network filesystem" like SSHFS [3
515.
▲
by
nh2
6y ago
> Are there limits to the number of files a directory can hold? Yes, depending on the file system. For example, ext4 with default settings uses 32-bit hashes. Upon the first collision, you can no longer add more files to the directory (E
516.
▲
by
nh2
6y ago
Note that using SQLite over SSHFS is dangerous if you're not the only user of the DB, because SSHFS does not support file locking. According to: https://www.fossil-scm.org/forum/forumpost/8749496886 > Ther
517.
▲
by
nh2
6y ago
To a French speaker, the car "Audi e-tron" may also sound weird, given that étron means "turd". Yet it is marketed that way. Perhaps people start to make piece with the fact that some words come from other languages, and
518.
▲
by
nh2
6y ago
The downvotes of the parent are unjustified; the license's own text literally says: > The Business Source License (this document, or the "License") is not an Open Source license. https://github.com/zerotier
519.
▲
by
nh2
6y ago
This looks like the much older Tinc VPN ( https://www.tinc-vpn.org ), but in Rust. It would be great to have a comparison between the two. I've been using Tinc for many years; it's been working quite well, but about once
520.
▲
by
nh2
6y ago
> stack overflows in Haskell often arise when Do you have some examples for this happening? I have seen extremely few stack overflows in Haskell since I convinced GHC to default to infinite stack size 7 years ago [1]. [1]: https:/&
521.
▲
by
nh2
6y ago
Last time I benchmarked C++ compilation on SSDs vs HDDS (compiling the PCL project on Linux which took around 45 minutes), SSD didn't help in a noticeable fashion. I believe that this makes sense: In a typical C++ project like that whi
522.
▲
by
nh2
6y ago
I got some cynical thoughts reading this well-done summary: > There are few active developers and no continuing funders. Like most open-source projects. > There is no continuous integration Like Signal. > Bugs, feature requests, an
523.
▲
by
nh2
6y ago
Nice! When we chose a time tracker for consulting, having a paid option that is also open source would have been a major pro point (so we can rely on it not disappearing, and being able to fix blocking issues ourselves). You mentioned here
524.
▲
by
nh2
6y ago
If you require SSH features (e.g. port forwarding) or want to continue using your terminal's native scroll functionality, here's another alternative that a friend and I devised: https://mazzo.li/posts/autoscre
525.
▲
by
nh2
6y ago
Regarding authenticity, from the TechCrunch article about this: > The networking company quickly followed its email with a post on its community pages confirming that the email was authentic, after several complained that the email sent
526.
▲
by
nh2
6y ago
There are some reasonably good metrics available at Repology: Pretty picture: https://repology.org/repositories/graphs Numbers for the X axis: https://repology.org/repositories/statistics/tota
527.
▲
by
nh2
6y ago
Does this answer my question? Naturally I'm not talking about the "if nothing goes wrong case", but the power failure case, and thus obviously you shouldn't omit the fsyncs. > fsync can silently fail I don't thin
528.
▲
by
nh2
6y ago
That is also the most important part to me. But I don't understand it. It says: > I was also (incorrectly) assuming that renaming a file after having fsynced the contents is a valid mechanism Where does anyone say that this doesn&#x
529.
▲
by
nh2
6y ago
Open source code tends to have a long lifetime. I've contributed almost 10k hours to 100s of projects in the last 10 years, and most of them are still alive and have only grown in adoption. (Also it would suck if all that time went int
530.
▲
by
nh2
6y ago
> The last thing you want is unattended-upgrades silently restarting services I don't buy this argument: It makes an arbitrary distinction between software in which the fix is reflected, and software where it isn't. For example
531.
▲
by
nh2
6y ago
> a fix to openssl or libc [..] automatically fixes that bug in the major package as well. For a static binary, Debian has to notice the change Because this argument is often made, I think it's worth pointing out: Just shipping a fi
532.
▲
by
nh2
6y ago
That makes sense, thanks!
533.
▲
by
nh2
6y ago
Ah, I see, you were referring to saving `setsockopt()`, not data-carrying syscalls. Yes that makes sense. But I guess that in most cases where you have control over the `sendmsg()`'s calls flags, you'd also have control over its b
534.
▲
by
nh2
6y ago
How does MSG_MORE save syscalls, given that it's a flag you pass to syscalls? Do you mean "save packets"?
535.
▲
by
nh2
6y ago
For those wondering "so, so how do I do it right?": I was in that situation 4 years ago and did a short write up on it: https://gist.github.com/nh2/9def4bcf32891a336485 It explains how to avoid the 40ms delay
536.
▲
by
nh2
6y ago
Also useful: https://blog.httrack.com/blog/2013/11/15/everything-you-alwa...
537.
▲
by
nh2
6y ago
It's silly that this is being downvoted. Of course POSIX doesn't "require that filesystems not get completely corrupted in the event of a system crash", in the same way that it doesn't require that your RAM isn'
538.
▲
by
nh2
6y ago
Programs that care about durability should use `openat(int dirfd, char *pathname, ...)` to get an FD on the file after after getting an FD on the parent dir anyway, instead of using `/path/to/dir/file` style paths, beca
539.
▲
by
nh2
6y ago
On your first point, why is it necessary to switch IPs when switching between cell tower? Doesn't the cell ISP manage the IP anyway, thus making it easy to keep it from one tower to the next? On your second point, it's configurabl
540.
▲
by
nh2
6y ago
Last weekend my ThinkPad running ZFS on Linux on a Samsung non-power-loss-protected consumer SSD lost various files when it ran out of power (including the entire Thunderbird profile because its SQLite DB was corrupted). I'm planning t
More ›