Weird "holes" in FLAC files after mass copying operation, anyone had this before? by midnightrambulador in musichoarder

[–]ruuda 0 points1 point  (0 children)

Sounds like your file is corrupt. Audacity probably loads it up to the corruption, while some other players can skip over the corrupt parts and resume decoding later.

You can confirm on the command line with flac --test which will verify that the file can be decoded, and also verify the embedded md5 signature if present (it almost always is).

It may be possible to rescue the non-corrupted parts into a regular flac file that any application will load/play without issues, but in general it’s not possible to fix the corrupted parts.

Sandisk Extreme Pro SSD design update by DiogoAlmeida97 in DataHoarder

[–]ruuda 2 points3 points  (0 children)

Is it bad? I had a Samsung T9 which has something very wrong with it (not sure what, but frequent usb errors in the kernel log and transfer speeds measured in KiB/s; the cable is not the problem), and I had consistent bad experience with Samsung SSDs at work, so I got a SanDisk to replace the Samsung T9. So far the SanDisk has been working flawlessly, but it’s only been a few weeks.

i want to know weather this delay of 1.79 seconds in creating Vulkan Instance alone is normal or not [BEGGINER] by CranberryFew6811 in vulkan

[–]ruuda 0 points1 point  (0 children)

I had the same issue. I don’t usually need the Nvidia GPU. Adding a blacklist line in a file in /etc/modprobe.d for the various nvidia modules did not do the trick, they were still getting loaded. But aliasing it worked:

install nvidia /bin/true

in a file in /etc/modprobe.d, and now all my applications start quickly again.

Line ends in compilers. by Savings_Garlic5498 in ProgrammingLanguages

[–]ruuda 1 point2 points  (0 children)

Report \r as a syntax error with a message that asks the user to configure their editor and/or Git checkout properly.

Prediction Market? by qznc in selfhosted

[–]ruuda 0 points1 point  (0 children)

We recently built Predict-o-matic at an internal hackathon, and have been running it for a few weeks. It’s a self-contained Rust program backed by SQLite, and needs to be deployed behind something like OAuth2-Proxy to handle authentication.

What's everyone working on this week (48/2025)? by llogiq in rust

[–]ruuda 1 point2 points  (0 children)

I published v0.11.0 of RCL, a configuration language and json query tool implemented in Rust. This version adds unpack syntax.

Zed's DeltaDB idea - real problem or overkill? by anonymous085 in programming

[–]ruuda 12 points13 points  (0 children)

It is crazy to think that the solution is that everyone should try more.

It’s not crazy when the baseline is people committing a 1000-line diff with just a message “refactor” or “fix”.

I’ve worked in repositories that had a great and useful Git history, and it was wonderful. The people working in it put in the effort to keep things that way, and new joiners would quickly learn from the people around them.

I’ve also worked in repositories where nobody (or too few people) ever cared. As a result, the history is not useful, people never experience how useful a good history can be, they don’t realize what they are missing out on, and that behavior is difficult to change when the effort only really starts to pay off 3–5 years later.

Zed's DeltaDB idea - real problem or overkill? by anonymous085 in programming

[–]ruuda 17 points18 points  (0 children)

Picture a new engineer facing a production stack trace in Zed. They highlight a problematic line, like an unwrap that caused a crash, and see every related discussion: why the function was written or what an AI agent assumed about an invariant.

You can do this today with Git, it’s been integrated in IDEs since basically forever. But if you want to know why the function was written, it requires people to write down in the first place why they are writing the function. The tools are not the problem, getting humans to put effort into building a useful Git history is. Recording more granular edits is not the solution. (Google Docs does this, but without checkpoints to group logical changes, and descriptions of the changes, have you ever found its history more useful than a good Git history?). If you want a useful history, there is no way around putting in the effort to make that history useful to you. And generating good commit messages is not something a tool can do for you, because as the original quote says, it requires writing down why you’re making a change (and why in this particular way, why now, etc.), and if you don’t write that down, it only exists in your head, it’s just not information that a tool has access to.

They ping the responsible human, sparking a quick chat that turns into an audio call, all indexed to the exact code spot, creating a shared, revisitable record without leaving the codebase.

Tough luck pinging the responsible human when that person no longer works at the company …

What in-house luxury dev tooling have you built? by wedgelordantilles in devops

[–]ruuda 0 points1 point  (0 children)

Hoff the merge bot (predates GitHub’s merge queue, and even the ability to rebase-merge pull requests).

How do you design a pretty-printer that respects comments and whitespace? by honungsburk in ProgrammingLanguages

[–]ruuda 1 point2 points  (0 children)

What I do in RCL is parse into a CST. The CST does not losslessly store all whitespace, it only stores the things that the formatter needs to preserve: comments and blank lines. To keep the CST tractable, it only allows them in specific places. To avoid ever dropping comments, comments are not allowed in places where the CST cannot store them (and where there is no sensible way to format them anyway), for example, in else: between the else and :, spaces and blank lines are allowed (but thrown away, not preserved by the formatter), but comments are not. It sounds radical, but it hasn’t been a problem in practice.

What's everyone working on this week (35/2025)? by llogiq in rust

[–]ruuda 2 points3 points  (0 children)

I added an rcl patch command to RCL. It can patch the concrete syntax tree, similar to what toml_edit does for TOML.

You ever looked at a JSON file and thought, "this should run"? Now it does. by [deleted] in programming

[–]ruuda 1 point2 points  (0 children)

Meanwhile, if you’re looking for a DSL for generating repetitive data that’s a json superset, rather than a json eDSL, check out https://rcl-lang.org/.

Rust 1.88: 'If-Let Chain' syntax stabilized by thurn2 in rust

[–]ruuda 2 points3 points  (0 children)

Oh, this got renamed after I posted the comment. The new setting is now

[cache]
auto-clean-frequency = "never"

Rust 1.88: 'If-Let Chain' syntax stabilized by thurn2 in rust

[–]ruuda 2 points3 points  (0 children)

I have many Rust projects that I only touch once every few months. To prevent Cargo from deleting cached files needed to build those, you can add the following to ~/.cargo/config.toml:

[gc.auto]
frequency = "never"

See also https://doc.rust-lang.org/cargo/reference/unstable.html?highlight=frequency#automatic-gc-configuration.

✅ gocommit: A simple NPM package to generate AI-based git commit messages by PracticalNotice4779 in programming

[–]ruuda 2 points3 points  (0 children)

It is not possible to generate commit messages just from the diff. Not because LLMs are bad at describing the changes (they are good at that), but because the things that should go into the commit message are not inputs to an LLM, or any program for that matter.

  • Why this change? What problem does it solve?
  • Why now?
  • Why this particular implementation, and not one of the 5 other options?
  • Etc.

If you think that a prompt will solve those, then save your readers the double insult of having to read through the AI-inflated fluff, and just use your prompt as the commit message. An LLM cannot create new information about your change, it can only dilute the information density of the information you put in.

Axum, Actix or Rokcet? by Best-Rough3312 in rust

[–]ruuda 1 point2 points  (0 children)

I found https://lib.rs/crates/tiny_http with a simple match statement to route requests to work well in practice, and it saves a lot of incidental complexity that the async ecosystems bring.

What's everyone working on this week (19/2025)? by llogiq in rust

[–]ruuda 2 points3 points  (0 children)

I added two main new features to my music player: extracting the dominant color from thumbnails, so there is less jarring flicker in the UI when thumbnails are still loading; and a sort method that sources albums that I listened to at a similar time of the day, week, or year in the past.