Tootfinder

Opt-in global Mastodon full text search. Join the index!

@jamesthebard@social.linux.pizza
2026-09-30 03:45:21

Hell yeah, finished up the GPT-side of the Zig driveinfo program. JSON output looks exactly like it's supposed to, and now to move the allocator back into the struct which will clean up stuff as well. I'll deal with the MBR-side tomorrow, but pretty happy to have figured this out.
#programming #zig

The `jsonStringify` code opened in VSCodium for the `GPTHeader`...and it even works!
@crell@phpc.social
2026-07-29 18:19:19

I like people I can vibe with. Not machines to vibe at.
#Programming #AI #LLM

@frankel@mastodon.top
2026-09-18 17:15:39

On #learning #programming in an age of #LLMs

@aral@mastodon.ar.al
2026-08-23 21:05:31

The ternary operator is all fun and games until you end up with a branch coverage drop without a line number for the culprit (because one of the branches is covered).
#dev #programming #JavaScript…

@stev3yd@social.linux.pizza
2026-09-30 15:47:00

A Winamp skin was not part of the original scope, but I talked to the board (myself) and decided it was a must-have. I also learned you can't shrink a PWA's window below 500px wide, so I got black borders, but hey, it's there when I'm feeling nostalgic.
It really whips the llama's ass
#programming

mini music player using the winamp skin
@frankel@mastodon.top
2026-09-23 09:15:23

Arguing about arguments
#programming

@crell@phpc.social
2026-07-26 16:35:52

I hate dealing with file permissions. *HATE*.
#Programming #PHP

@crell@phpc.social
2026-09-24 16:33:06

The existence of both *.yml and *.yaml is a blight upon the tech industry, and whoever is responsible for this travesty should be shunned from the field forever.
#Rant #Programming

@michabbb@social.vivaldi.net
2026-08-24 10:32:27

🧠 The "A" in #AI can also stand for "Apathy": more #developers are losing joy in their craft as AI-driven development reshapes the job — a reminder to managers that developer happiness pays off beyond the next quarter

@jamesthebard@social.linux.pizza
2026-08-22 16:22:14

Sometimes, you just need a nice standard-sized unsigned integer of exactly 48 bits...also, I think I hate UUIDs.
#zig #programming

The source code in VSCodium showing the `convertToUUID` function which breaks up a 16 byte array into five fields, byte-swaps the last two fields, then puts them together into a string.
@stargazer@woof.tech
2026-08-28 16:36:05

Якщо type definition каже, що експорт є, а рантайм кидає в помилку
---
The requested module 'jsonwebtoken' does not provide an export named 'JsonWebTokenError'
---
...не довіряй definition.
Lesson learned.
Everybody lies. Навіть такі базові NPM-пакети, як jsonwebtoken.
#IT #programming

@crell@phpc.social
2026-07-26 00:34:46

Code that was working and passing all tests, untouched for weeks, now failing tests on the exact same computer, exact same checkout, exact same commit.
This is the bane of my existence. And no, Grand Theft Autocomplete will not fix this. (It will probably make it worse.)
#Programming #AI

@stev3yd@social.linux.pizza
2026-09-26 15:17:58

Created a music organizer/downloader using beet, navidrome and slskd. I was doing meta tag edits manually through CLI and that was such a pain. Especially album art. Now I can easily find albums I am missing by checking MusicBrainz via api and sending that album (or just songs) to slskd all through a GUI. Fun project.
#programming

music organizer GUI
@crell@phpc.social
2026-09-23 16:10:40

Weeks of coding can save you hours of planning.
Weeks of speculating can save you hours of coding.
As in all things, balance.
#Programming

@jamesthebard@social.linux.pizza
2026-08-21 19:52:31

So, seems I have a new job lined up finally as I've signed the tentative offer letter. Also, still working with Zig and made progress with grabbing information from the Linux `sys` tree for sector/logical block sizes. Been a busy yet awesome day.
#zig #programming

A screenshot of four functions that work together to get the LB/sector size and overall block device size in Zig.  Even better, it doesn't leak memory...
@crell@phpc.social
2026-09-28 23:16:28

Running Docker such that files in the container mount end up owned by the current host user is what I want 100% of the time. Absolutely 100%.
So why is it always pulling teeth to make it work, and it's different for every bloody container image? WTAF?
This is why I hate Docker.
#Docker #Programming

@pre@boing.world
2026-09-24 19:13:35

RE: #ai #programming

@crell@phpc.social
2026-08-21 20:13:20

Good documentation is a gift you give yourself in a month.
#Programming #PHP

@frankel@mastodon.top
2026-08-14 09:06:26

What's the best #programminglanguage for #codingagents?
danluu.com/pl-tokens/

@jamesthebard@social.linux.pizza
2026-08-13 20:48:39

The Zig journey continues, things get a bit cleaner and we're now parsing the primary partition entries in the MBR. Very nice...
#programming #zig

A screenshot of neovim with the primary partition parse code written in Zig.
@crell@phpc.social
2026-08-21 18:31:40

TFW you realize you already wrote a tool to solve the problem you're working on, but you totally forgot about it so used 50 workarounds that your tool exists to already solve for you...
#Programming #PHP

@jamesthebard@social.linux.pizza
2026-08-14 18:27:07

More progress. I've got the entire MBR processing finished up with a ton of cleanup. Processing the extended partition entries is always fun, but after a fixing a few dumb mistakes everything is parsing out correctly. Even better: no memory leaks.
#zig #programming

Source code in VSCodium showing part of the MBR partition processing section.  The bottom pane shows the current partition struct output from the run against a test file with 3 primary and 4 extended partitions.
@crell@phpc.social
2026-09-18 17:13:33

I was today years old when I learned that Dockerfiles support heredoc-like syntax, and I am furious at every tutorial and presenter that has used a dozen lines with \ instead of that.
#Docker #Programming

@crell@phpc.social
2026-08-17 18:49:34

Please, don't let yourself be in this video.
#Programming

@jamesthebard@social.linux.pizza
2026-08-14 00:03:42

Holy crap, I have to be missing something with respect to HashMap construction...I officially have all of the `try put` statements...lol. It does work though, and now the primary MBR partitions have appropriate partition type descriptions.
#zig #programming

ALL OF THE MBR PARTITION TYPE KEY/VALUE PAIRS in Zig.
@pre@boing.world
2026-09-17 18:35:32
Content warning: Slop coding to machine language

Hearing people suggest that clanker AI programming bots should directly produce machine code rather than output human-readable languages like Python or Rust or C.
Which is of course a terrible idea.
These languages exist to make it easier write safe and efficient code, that's maintainable and editable and doesn't allow out of bounds memory pointing or leaks or whatever else.
Writing in machine language would be worse for the AI for the same reasons. It would make fore more unmaintainable, buggy, crashy, unmodular code.
The web is filled with training data written in those languages and pretty much no training data at all on how to write functions in 68000 or z80 or whatever.
You could build some training data by compiling all that high level language and training instead on the results of that.
But then you're just trying to get the buggy, lossy, neural network to learn to compile the high level code into machine language. Which it will do much worse than an actual compiler already written.
Pointless silly idea people.
#ai #programming

@jamesthebard@social.linux.pizza
2026-08-12 20:30:11

Moar progress, will probably move this into the struct along with MBR reconstruction from the struct. This might actually end up doing a bit of `fdisk` stuff...
#zig #programming #mbr

MBR breakdown in Zig via `neovim`.
@crell@phpc.social
2026-09-14 15:07:30

Every time I brainstorm/daydream on how I'd design an ideal type system... I eventually end up with Rust.
It's kind of annoying, really.
#Rust #Programming #Types

@jamesthebard@social.linux.pizza
2026-08-12 03:49:19

So, after some consideration I decided to break out the block device reading operations out into its own module. Also, the returned data is now in a struct with a `.deinit` method that will handle cleanups. It might be more complicated than necessary, but it's clean.
#zig #programming

A screenshot of the new `dataops` module showing the buffer struct along with the `getData` function.  It even compiles!
@jamesthebard@social.linux.pizza
2026-08-23 18:14:23

Nothing like converting slices of `u8`s to `u16`s. The GPT partition names are all `UTF16LE` which makes things interesting...however, that part is done and scraping GPT information is working as expected.
#zig #gpt

A function to convert slices of `u8`s to `u16`s or basically any that is a multiple of `u8`s.  Even better, it actually works.
@jamesthebard@social.linux.pizza
2026-08-09 15:18:56

So, after searching far and wide on the internet I have managed to open a file from a command-line argument and read 10 bytes from it using Zig v0.16. I was not expecting it to be quite this complicated.
#programming #zig

A screenshot of the Zig source code that I wrote running in Neovim that opens a file and reads 10 bytes from a file then prints it to a screen.
@crell@phpc.social
2026-07-07 17:56:04

Do the simplest thing that will work, except for when you need to do the most robust and forward-thinking thing that will work.
Determining when to do which, that's the rub.
#Programming

@jamesthebard@social.linux.pizza
2026-07-20 17:32:52

Things I've learned today:
- Valgrind does not support AVX512 instructions. That was an adventure because I was writing purposefully bad code at the time...
- However, changed strategies and used `clang` with the `fsanitize=address,undefined` option which seems to work perfectly fine.
#clang

A screenshot of Neovim with the source code that was compiled, and the output of the binary using the clang sanitize options of address and undefined.
@stargazer@woof.tech
2026-08-18 12:00:43

Вибирайте свою ЦА.
---
Pick your target audience wisely.
#IT #programming #kek #meme

A screenshot of a tweet from Mappers [@]CarolMaps, dated Jan 12, featuring the text "IMPORTANT". The main image is a photograph of an open book page being held by a thumb, containing various printed instructions.
A red hand-drawn circle surrounds the sentence: "You may fascinate a woman by showing her your git branches." A green arrow points from this circled text toward a dark graphical element labeled "GRAPH" containing orange and blue interconnected nodes.
@crell@phpc.social
2026-08-19 16:19:16

Programmatic database resets
#PHP #Programming

@crell@phpc.social
2026-09-15 01:02:09

SQLite for Everything
joecode.com/2026-08-19-sqlite3/
We have so many remarkable tools that we avoid using because something else has a shiner marketing budget. (Though SQLite's type system is pretty mediocre.)

@crell@phpc.social
2026-08-10 18:23:33

The perils of under-engineering:
#PHP #Programming

@crell@phpc.social
2026-07-07 17:56:04

Do the simplest thing that will work, except for when you need to do the most robust and forward-thinking thing that will work.
Determining when to do which, that's the rub.
#Programming

@crell@phpc.social
2026-08-17 18:48:51

I mean, this is fair and accurate for all languages mentioned...
#Programming #PHP #CPP #Javascript