4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions
comment 4y ago · link · parent
In my particular country, a major chunk of the public budget goes towards paying fines to EU for use of coal, all while our government periodically passes bills allowing it to borrow more money from the central bank, increasing inflation. Negotiations with neighbouring autocratic countries can be pretty tough, when they can threaten us and rest of Europe, which is going to put pressure, with stopping energy transmission. Energy shortages in some parts of the country were a regular occurrence for decades, even before the current political problems.
Lack of nuclear plants does nothing to prevent a nuclear war, while it harms us on many very tangible levels.
comment 4y ago · link · parent
Also, romantic scenes all look the same, completely generic. They're basically copy-pasted between movies. They're so flat and devoid of any genuine feeling I end up hitting the right arrow to skip them entirely.
Usually I don't have those issues with older movies (and movies of a couple selected directors still making good movies to this day).
comment 4y ago · link · parent
But over the years, movies kept disappearing from Netflix and at this point anything I may want to watch is typically not available on Netflix, so I cancelled my subscription. I'm probably going to switch to Amazon Prime, since it appears to have the best offer in terms of content.
comment 4y ago · link · parent
> - Increasing the size of the UPD packet above 512 bytes via the Extension Mechanism for DNS (EDNS)
> - Switching the protocol from UDP to TCP
> Alpine Linux, or rather musl libc, doesn’t support either of those options.
It still seems weird to me that such details are decided by libc. My reflex idea when designing a system would be to put DNS functionality in a system service, while libraries would only query the service, without troubling themselves with system caches, TCP vs UDP etc. Then possibly the service could be even swapped for another with a compatible interface, but making different decisions, without perturbing the applications. It sounds like systemd-resolved is a move in that direction, but I still don't understand why putting all that in libc, essentially making all applications perform their own independent DNS work, was the original choice.
comment 4y ago · link · parent
Of course, it's inevitable that some people won't appreciate other's time and attention, but that's probably unsolvable.
comment 4y ago · link · parent
Self-taught programmers on the other hand more often have the intrinsic curiosity and motivation to learn those topics. Also diving deep into topics is their strength, since the uni counterparts often know the names of concepts, but after a while it's quite clear that this knowledge of names is rarely coupled with familiarity with the topics they represent. I'm sure just knowing the names of things gets you far when you want to pass an exam, but for actual work it's scarcely different from knowing nothing at all. As Feynman said, there's a big difference between knowing the name of something and knowing something.
Now, those are just generalizations from experience. I've also met plenty of counterexamples in both groups.
comment 4y ago · link · parent
comment 4y ago · link · parent
I'm not going to buy any subscriptions. And luckily I don't need to, since the classic funding model in this space still brings better apps.
comment 4y ago · link · parent
comment 4y ago · link · parent
There are many reasons why linear history is important. Rather than saying that "you shouldn't want to do that", I'd prefer it if the tools people use were fixed to better serve the things people actually want to do.
A merge would only make sure that I don't need to resolve the same conflict multiple times. It wouldn't result in the conflicts not being generated in the first place, or them being saner. The only difference in conflict resolution between rebasing and merging is that the sides are flipped (what's shown on left in rebase, is on the right in merge, and vice-versa). Which doesn't address the second issue I listed: conflicts are not only repeated, but the conflicts themselves are pretty crazy. In my example, often-times C would never even touch files which were detected as having conflicting changes with A or B. It was pretty absurd that I would have a 3-line change in C, several hundred-line changes in A and B, yet the biggest conflicts would be triggered when rebasing C on top of B, and those would be in files C did not touch. Other times diffs in conflicts would have most of the lines added and removed actually identical, with only a couple in the middle different. Why would git mark them as conflicting, is beyond me. And then there was the issue of git not detecting conflicts, when it should have, instead merging changes in a way that broke source code. None of those issues is better handled by merging than by rebasing. Most of them however have pretty good solutions in a patch-based version control system, as opposed to snapshot-based like git (conflicts in files which weren't changed? not going to happen). An even better solution would be binary formats with domain-specific merge logic, like the one in KeePassXC.
comment 4y ago · link · parent
From what I've read, Pijul should fix at least the problem of needing to resolve the same conflicts multiple times over and over again. However, I feel that version control focused on text breaks, because the merging algorithm doesn't know anything about the semantics of what's represented in text. So yes, I'd say that version control in more areas would be nice, but one based on binary formats understood by version control. One glimpse of that may be KeePassXC, which can merge password databases and has never done it wrong in my experience.
comment 4y ago · link · parent
comment 4y ago · link · parent
Additionally, the fork()+exec() idiom practically forces OS designers into a corner where they simply have to implement Copy-on-Write for virtual memory pages, or otherwise the whole userspace using this idiom is going to be terribly slow. Without the fork()+exec() idiom you don't need CoW to be efficient.
comment 4y ago · link · parent
1165.
Enum Variant Types(github.com ↗)
3 points · by yakubin · 4y ago · 1 comment
comment 4y ago · link · parent
Search and tagging are not contradictory to cataloguing. They're complementary.
It's also not true that old media didn't have any search facilities. Old technical books would each have an index of keywords at the end. That's search, just analog and requiring a bit more work from the publisher. This index didn't make the table of contents redundant.
comment 4y ago · link · parent
Also, the data you wrote to a file before the rename may not have been flushed completely to cold storage. Rename doesn't change here anything. The data may still be served from the disk controller's cache.
The rename trick is mostly useful for "committing" long operations, which even on the high level are not atomic. But it has nothing to do with flushing.
Also, renaming a file is a filesystem-level operation. From the POV of a disk, it looks the same as any other write. So if you can't make sure that normal writes are flushed, you can't make sure that renames are flushed.
Another note: rename(2) used not to be even atomic wrt power loss on ext4 (which was later fixed), so it's not guaranteed. POSIX itself only guarantees atomicity wrt other filesystem operations. Atomicity against power loss is a distinct checkbox. You need to check your specific filesystem.
comment 4y ago · link · parent
For my own coding, I usually don't use the internet anyway. I browser offline documentation of the stuff I use, vendor all my libraries (i.e. building doesn't require internet access), so maybe I'm going to try disconnecting my computer during those sessions. That's of course not counting coding at work, due to the tyranny of Slack.
comment 4y ago · link · parent