Readit News logoReadit News
dezgeg commented on In-Memory Filesystems in Rust   andre.arko.net/2025/08/18... · Posted by u/ingve
maxbond · a day ago
A Rust-specific danger is that, if you don't explicitly sync a file before dropping it, any errors from syncing are ignored. So if you care about atomicity, call eg `File::sync_all()`.
dezgeg · a day ago
Is that really rust-specific? I would be really surprised if any other languages do fsync() in their destructor either
dezgeg commented on Building the Rust Compiler with GCC   fractalfir.github.io/gene... · Posted by u/todsacerdoti
jcranmer · 2 months ago
I have a LD_PRELOAD library that hooks SIGSEGV into spawning gdb on the process using the best guess for the process's terminal (which currently isn't very smart because I haven't yet needed to debug processes that do a lot of stdio redirection).
dezgeg · 2 months ago
Do you have this publicly available? Sounds useful!
dezgeg commented on Baba Is Eval   fi-le.net/baba/... · Posted by u/fi-le
dezgeg · 2 months ago
Cool, it's something I've been trying also. Here are my attempts: https://www.youtube.com/watch?v=JZ4-YUuCVNo&list=PL8C_UWcLmv...
dezgeg commented on Air India flight to London crashes in Ahmedabad with more than 240 onboard   theguardian.com/world/liv... · Posted by u/Gud
ajross · 2 months ago
I don't think there's ever been a double-bird-strike incident, though. And what dual engine failures I can think of are due to failure of a shared system (e.g. fuel exhaustion, c.f. Gimli Glider).

[Edit: yeah, yeah, forgot the Tom Hanks movie, sue me. I do wish folks would respond to the much more important point below, which isn't invalidated by a single data point though.]

Constructing solutions for multiple-mode failures like this is a bad engineering smell. Almost always the solution isn't actually helping anything, and often makes things worse in whatever metric you're looking at. In the example here, having four engines makes the chances of total thrust loss lower, but it doubles the chance of a single engine failure. And the literature is filled with incidents of theoretically-survivable single engine failures that led to hull loss as a proximate cause (generally by confusing or panicking the crew).

dezgeg · 2 months ago
The Jeju Air crash from late 2024 (still under investigation) also had birds go in both engines.
dezgeg commented on Rsync's defaults are not always enough   rachelbythebay.com/w/2025... · Posted by u/rcarmo
dezgeg · 3 months ago
I wish checksumming filesystems had some interface to expose the internal checksums. Maybe it wouldn't be useful for rsync though as filesystems should have the freedom to pick the best algorithm (so filesystem checksum of a file on different machines would be allowed to differ e.g. if filesystem block size was different). But so that e.g. git and build systems could use it to tell 'these 2 files under a same directory tree are definitely identical'.
dezgeg commented on How reliable are MicroSD cards?   old.reddit.com/r/raspberr... · Posted by u/edent
imtringued · 3 months ago
SD and microSD cards are designed to be used in battery powered devices. SBCs are not battery powered. If anything, they are microSD card torture devices.

Basically 99% of the time, card corruption has nothing to do with the microSD card in question and more to do with the quality of your power supply.

dezgeg · 3 months ago
Do you have any concrete evidence of the type of power supply being the culprit?

My personal feeling is the write patterns of Linux distros and filesystems are way more punishing to the card when compared to write patterns done other use cases. For example most writes done by digital cameras are fairly big and sequential, and done on FAT/exFAT where there is no journalling.

dezgeg commented on Precision Clock Mk IV   mitxela.com/projects/prec... · Posted by u/ahlCVA
offmycloud · 3 months ago
Yes, on newer networks, the 5G NR System Information Block 9 (SIB9) provides UTC time.
dezgeg · 3 months ago
However, it seems that extra SIBs aren't necessarily broadcast but may be available on demand... and it wasn't clear to me whether making a on-demand SIB request can be done without SIM card.
dezgeg commented on Negotiating PoE+ Power in the Pre‑Boot Environment   roderickkhan.com/posts/20... · Posted by u/pietrushnic
minetest2048 · 3 months ago
Related problem is single-board computers that relies on USB-PD for power. USB-PD sources requires the sink to do power delivery negotiation within 5 seconds, or it will cut its power or do funny things. Because USB-PD negotiation is handled in Linux, by the time Linux boots it will be too late, and power supply will cut the power, so it will be stuck in a boot loop: https://www.spinics.net/lists/linux-usb/msg239175.html

They way they're trying to solve it is very similar to this article, by doing the USB-PD negotiation during U-boot bootloader stage:

- https://gitlab.collabora.com/hardware-enablement/rockchip-35...

- https://lore.kernel.org/u-boot/20241015152719.88678-1-sebast...

dezgeg · 3 months ago
Yecchh, 5000+ lines! USB-PD is truly cursed...
dezgeg commented on The Ingredients of a Productive Monorepo   blog.swgillespie.me/posts... · Posted by u/mifydev
bluGill · 3 months ago
If a single language is an option you are a small project that is not facing the problems people on large projects are facing. A monorepo will be easy for you without read the article and the lessons learned.

Come back when you have millions of lines of code, written over decades by hundreds (or thousands) of full time developers.

dezgeg · 3 months ago
What a weird take, "millions of lines of code, written over decades" applies to quite many C (or C++) codebases where using a high-level language is not a possibility (and companies that do have such codebases are pretty conservative and don't even talk about Rust no matter how great fit it would be).
dezgeg commented on The Ingredients of a Productive Monorepo   blog.swgillespie.me/posts... · Posted by u/mifydev
zelphirkalt · 3 months ago
You could also use git submodules in an overarching separate repo, if you want to lock down a set of versions. It doesn't even have to affect the submodule repos in any way. That would simplify branches in the single repos and enable teams to work independently on each repo. Then you only deploy from the overarching repo's main branch for example, where you have to create PRs for merging into the main branch and get it reviewed and approved.
dezgeg · 3 months ago
That's not a nice workflow from pipelines/CI point of view.

Let's take for example a service 'foobar' that depends on in-house library 'libfoo'. And now you need to add a feature to foobar that needs some changes to libfoo at same time (and for extra fun let's say those changes will break some other users of libfoo). Of course during development you want to run pipelines for both libfoo and foobar.

In such 'super module' system it gets pretty annoying to push changes for testing in CI when every change to either libfoo or foobar needs to be followed by a commit to the super repo.

In a monorepo that's just another Tuesday.

u/dezgeg

KarmaCake day2759August 7, 2013
About
[ my public key: https://keybase.io/dezgeg; my proof: https://keybase.io/dezgeg/sigs/T97m4HN4fIeKVsJzfbIsXEgnHunf6ut9z2hZbtMU3BM ]
View Original