@dcz@fosstodon.org
@dcz@fosstodon.org avatar

dcz

@dcz@fosstodon.org

Greybeard but revolutionary. 80-char lines are good for museums.

My tech writing (hire me): https://dorotac.eu/
Open bike computer: https://jazda.org
dcz on libera.chat

This profile is from a federated server and may be incomplete. Browse more on the original instance.

dcz, to opensource
@dcz@fosstodon.org avatar

The feeling when 87.5% of the discussion under your contribution is about : unreliable CI and insignificant .

Congrats, the project has created a barrier to entry for anyone who hasn't been into it for years already.

Hint: give everyone a freaking that satisfies your needs and let us move on to actual work, without having to redo the same stuff 8 times. Sheesh.

dcz,
@dcz@fosstodon.org avatar

@deshipu Good code formatting by my definition is that which makes people not have to think about it - that is, automated.

Intention does not need to be reflected in style, but in the code itself, and in comments.

dcz,
@dcz@fosstodon.org avatar

@deshipu If all quality of the code is in the style, does that mean that it doesn't matter what the code actually does? Nope, that's silly and not what you mean. The ultimate quality signal is what the code does, plus documentation.

For example, the GNU C syntax makes my eyes bleed, but it can still be amazing quality.

"What" and "why" are important for understanding. "What" is in the execution of the code. "Why" is in the documentation and naming. What knowledge is conveyed by altering style?

dcz,
@dcz@fosstodon.org avatar

@deshipu If what you care is effort spent writing then sure, but it's not the same as seeking quality.

If I wanted to filter by effort, I'd rather have people write poems as a requirement, because that at least can be fun.
Style is similarly independent of actual quality.

I don't see how it helps understanding any more than comments, despite all the problems with comments.

Can you explain what knowledge can be conveyed with style that gets erased when linting?

dcz,
@dcz@fosstodon.org avatar

@deshipu Well, you mentioned effoet, but effort is not knowledge. Then you repeated "You can convey a lot of knowledge" but you skipped what exactly.

Sorry if you feel ignored, I am genuinely curious.

dcz,
@dcz@fosstodon.org avatar

@deshipu Well, i run it through a test suite, and read it carefully for architectural descriptions, and make sure that naming is fine.

If I have to reverse-engineer it to understand, then I take off quality points.

If I can't read it due to formatting, I guess I'd run it through a linter, but I don't think it would affect my impression of quality. Hence - I can't really imagine what knowledge I'd lose.

dcz,
@dcz@fosstodon.org avatar

@deshipu No, but I don't see how formatting it with a linter would make it less possible to understand. Therefore, style doesn't carry any knowledge.

dcz,
@dcz@fosstodon.org avatar

@deshipu The semantics: actual code, comments and variable names. Those are preserved by the linters I know.

thelinuxcast, to random
@thelinuxcast@fosstodon.org avatar

sshfs is far superior to nfs, imo. It is definitely easier to set up and it doesn't freeze when transferring large files.

dcz,
@dcz@fosstodon.org avatar

@thelinuxcast How do you make it not freeze XD?

It doesn't freeze permanently, but it introduces such lags I have plans for writing a replacement.

dcz,
@dcz@fosstodon.org avatar

@thelinuxcast Not good enough for me, I want to take a look at the contents of other directories while I'm moving stuff around.

I think the SSH protocol is the bottleneck, and I'm surprised that NFS has that problem. Wasn't it running over UDP?

dcz, to Bash
@dcz@fosstodon.org avatar

with which I surprised greybeards at the local hackerspace (which was surprising cause I'm the opposite of a expert):

mv photo{tocheck,supercool}.jpg

is the same as

mv phototocheck.jpg photosupercool.jpg

The shell copies an argument with {,} inside, and each resulting argument has a different part of what's in {}.

rm plan.{md,svg,png,odt}

Have fun!

dcz, to rust
@dcz@fosstodon.org avatar

A part of that doesn't get mentioned but is a ridiculous quality of life boon:

dbg!()

Just #[derive(Debug)] on a struct and print it. Suddenly you get insight into what's going on. Very rarely do you need to write your own print.

Insert a dbg in the middle of anything

let diffi = debug!(diffs).iter();

and you get a message with line number and the name of variable:

[src/lib.rs:192:19] diffs = [16, 86, 11]

Not even has that!

stfn, to random
@stfn@fosstodon.org avatar

With switching from XFCE to KDE, I also switched from X11 to Wayland, and I can't really put my finger on it, but things seem... smoother? There is something different in the way things render

dcz,
@dcz@fosstodon.org avatar

@stfn Wayland is designed to allow proper syncing, so you'll see less tearing and weird split-second states of applications.

jaycruz, to rust
@jaycruz@fosstodon.org avatar

This is a 48 minute long article that's critical of the Rust hype train vs C/C++. The TLDR is that while security is a problem, the Rust vs C choice as the only choice for low-level systems programming is a “non choice”. The author states that Go is a perfectly fine choice. https://medium.com/

#c

dcz,
@dcz@fosstodon.org avatar

@jaycruz I think the article makes a great observation: you always want a memory-safe language rather than C. But that language doesn't always need to be Rust. (The software I'm dealing with right now is in C, but it would not be much better in Rust. It really needs Python.)

Still, Rust's hype train doesn't revolve around the idea that it should replace all C/C++ code, but that it's the closest language which can replace the most low-level use cases of C.

dcz, to ReverseEngineering
@dcz@fosstodon.org avatar

If you like , go ahead and take a look at . It's one of the finest examples of write-only C code bases I've had the displeasure to learn from.

https://dechifro.org/dcraw/dcraw.c

case 274: /* Orientation */
tiff_ifd[ifd].flip = "50132467"[get2() & 7]-'0';

I dig that is now fixing that. And not even because it's in . I can actually follow the code!

https://gitlab.freedesktop.org/libopenraw/libopenraw/-/blob/master/src/panasonic.rs?ref_type=heads#L849

#C

terence, to random
@terence@fosstodon.org avatar

Back to real life with yet another visualisation of the world's submarine cables. Sick of these yet? Too bad. Volcanoes are next, followed by earthquakes over submarine cables, or submarine cables over earthquakes.

#rayshader adventures, an #rstats tale

dcz,
@dcz@fosstodon.org avatar

@terence What projection are you using?

terence, to random
@terence@fosstodon.org avatar

Can't seem to stop so here's earthquakes (> M4.0) of the world, 1923 to 2023. I like how we can see the plates and active fault lines in a compact way.

Have a couple more before I move on so bear with me. 😅

adventures, an tale

dcz,
@dcz@fosstodon.org avatar

@terence This could use some more familiar reference points, like landmass outlines.

kate, to random
@kate@fosstodon.org avatar

deleted_by_author

  • Loading...
  • dcz,
    @dcz@fosstodon.org avatar

    @kate I vaguely recall spending 2 hours worth of internet payments to download 9MB(?) of IE6(?) around 2001.

    You underestimated the speeds, which came to me around 5 years later in a not-so-rich European country.

    Also, you overestimated the speeds, which don't always hold 25 years later in a rich European country. grumble grumble

    deshipu, to random
    @deshipu@fosstodon.org avatar

    deleted_by_author

  • Loading...
  • dcz,
    @dcz@fosstodon.org avatar

    @deshipu Can you give an example?

    I think you can only run old stuff on modern hardware due to unrelenting care of archivists and emulator makers who undo the bit rot when new standards drift away from old ones.

    Running on original hardware is a different matter.

    dcz,
    @dcz@fosstodon.org avatar

    @deshipu Is that an example of a program released 50 years ago, 5, or today?

    Cause if the answer is "yes", it does not support your thesis :P

    Also, try this 50-year-old snippet:

    https://spin0r.wordpress.com/2014/11/21/kr-c/

    power(x, n)
    int x, n;
    {
    ...
    return(p);
    }

    dcz,
    @dcz@fosstodon.org avatar

    @deshipu What you're describing is the incessant effort by archivists to undo bit rot.

    I can't even find any 70's K&R C sources online - they seem to have rotted away completely.

    Meanwhile I'm not aware of any sources from 5 years ago that aren't fixable with at most a small effort.

    I'm honestly not seeing a difference in favor of older code here.

    thelinuxcast, to random
    @thelinuxcast@fosstodon.org avatar

    My only complaint about sshfs, is that it is very slow. I've looked into nfs, and I may try that. I like sshfs because it can all be done without a client/server service running. It's just ssh.

    dcz,
    @dcz@fosstodon.org avatar

    @thelinuxcast NFS has a client/server running, too. But they are completely running in kernel mode.

    SSHFS is slow and hangs on bad networks :/ I kinda want to write a replacement. It's not maintained anyway.

    kdedude, to random
    @kdedude@fosstodon.org avatar

    As a maintainer of a Free Software thingy, one of my peeves is issues-mentioned-somewhere-random and not filed in any downstream (e.g. Debian) or upstream (e.g. Calamares GitHub issues). Spotted in a Telegram channel: wrong timezone assignment when clicking on such-and-such a city. Spotted on Reddit: missing suspend-inhibition.

    Fortunately there's folks who file "proper" issues on behalf of random grousing all over the place.

    dcz,
    @dcz@fosstodon.org avatar

    @kdedude I feel you.

    But I also understand random grousing, based on the number of issues I filed on the tracker that never got a reply.
    These days I take my problems to the place where most people hang out, and that's rarely the bug tracker.

    thelinuxcast, to random
    @thelinuxcast@fosstodon.org avatar

    Does anyone know if there is a way to edit an fstab in a btrfs snapshot? I want to do a rollback, but the fstab in all of my snapshots has a hard drive that I no longer have. I found the file in the snapshot, but cannot edit it. Unsurprisingly, but I wonder if anyone knows of a work around.

    dcz,
    @dcz@fosstodon.org avatar

    @thelinuxcast Make a new read-write subvolume based on the snapshot. Edit the file. Make a new snapshot.

    Optionally remove the old snapshot and rename the new one.

    Keep in mind that an edited snapshot is not a snapshot any longer :P

    bornach, to Vape
    @bornach@fosstodon.org avatar

    Found a really large disposable #vape in the grass. It seems to allow one of 4 flavours to be selected. But it is still a single-use device. There is no USB-C port for recharging the battery.
    #ewaste #ecigarrette

    Single use disposable vape about the size of a hair spray can and coloured orange brown, with a choice of 4 flavours. You select the flavour by rotating the base and the mouth piece.

    dcz,
    @dcz@fosstodon.org avatar

    @bornach Those are amazingly simple devices.

    I recommend picking up this junk, the cadmium in the battery really should not be released into the wild.

    Double points for keeping the battery, they are usually not even discharged and can be used for projects.

    Triple points for lobbying to ban the sale of single-use batteries.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • mdbf
  • osvaldo12
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • cubers
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • anitta
  • Durango
  • everett
  • ethstaker
  • cisconetworking
  • Leos
  • provamag3
  • modclub
  • ngwrru68w68
  • tacticalgear
  • tester
  • megavids
  • normalnudes
  • lostlight
  • All magazines