Pablo's avatar
Pablo
pablo@murad.rocks
npub1egt5...9enj
A horror fanatic who prefers to stay at home
Pablo's avatar
murad 0 months ago
canmi is building SeamJS, a framework where the server never runs your UI code. at build time it compiles the page into an html skeleton with holes in it, and at request time the backend just fills the holes. rust, go, whatever you've got, no node required. the v1 used react and had to treat the compiler as a black box: render it a bunch of times, diff the output, and guess where the structure changes. that works for a nullable field. it falls apart the moment someone writes price > 10, because you can't enumerate every number, so the user ended up writing mocks by hand and basically doing the compiler's job. so he switched to svelte, and the reason is the part i liked most. it's not speed. it's that svelte markup is actual markup. an {#if} block is sitting right there in the ast, so you don't have to observe the structure when you can just read it. the escape hatches (svelte:component, dynamic {@render}, spread props) become a short, known list instead of "any javascript at all." it's a long read with a lot of opinions on next.js, vue 3 and css-in-js along the way, and i don't agree with all of them. but "ui should be described, not executed" is a good line, and he ends it by saying that even if he's the only one who ever uses it, it's still his experiment. that's the right attitude for side projects.
Pablo's avatar
murad 0 months ago
brut is a ~120-line posix shell script by sam stephenson that turns a folder of small executables into a git-style cli. you call myprog build, it finds libexec/myprog-build on the PATH and execs it. no runtime, no framework, just sh, find and awk. if the name rings a bell, he's the rbenv guy, and rbenv has always worked exactly like this. brut feels like that pattern finally pulled out and written down properly, as literate source you can read top to bottom in one sitting. two details i really like: versions are the first six hex digits of a sha-256 of the code, so the url is the version and comment edits don't count. and he calls it feature-complete. software that admits it's done is rare enough to be worth a post.
Pablo's avatar
murad 0 months ago
the openstick is one of those 4G usb dongles that people flash with debian, and bosscher bought one for $10 including shipping. it has 512 MB of ram, a 1 GHz quad-core arm, and 4 GB of emmc. he turned it into a silent homelab running adguard home, cloudflare tunnel, beszel, gatus, an rss reader, shiori for archiving bookmarks, and even an ai agent he talks to over telegram from the mountains. what i love is that every service in the post comes with its ram cost written next to it, 9 MB here, 22 MB there. that's how people used to think about software, back when you knew what each daemon was eating. he ran openclaw on kubernetes at over 1 GB and swapped it for zeroclaw, which idles at about 3 MB. good reminder that most of what we self-host doesn't need a rack, it needs someone who cares about the budget.
Pablo's avatar
murad 0 months ago
small update from the "i should be sleeping" department: lemmy.club is almost ready to open to the public. the server boots, the federation talks, and the OTP emails finally land in the inbox instead of the void. no bare-metal UEFI involved, i promise, though some nights it felt like it. if you want a cozy corner of the fediverse that isn't run by a billionaire's mood swings, keep an eye on it. doors open soon.
Pablo's avatar
murad 0 months ago
kevin boone wrote a 5-part series on writing bare-metal programs for UEFI from a linux box, and it's the most honest intro to the topic i've read. no os, just your C compiled into a PE32+ file the firmware runs at boot. the best part is the "pragmatic digression" chapter, where he admits the real problem isn't booting, it's everything you take for granted being gone. no printf, no fopen, no realloc because EFI can't resize an allocation. paths use backslashes and strings are two bytes wide, so every bit of linux code that walks a string until the zero byte just falls over. he once lost hours because he stored an EFI_STATUS in an int, and it's a 64-bit value. and the line that sums it up: once you start wrapping EFI in a posix-like coating, you're in "a rabbit-hole with no obvious bottom." which is basically how every os ever got written.
Pablo's avatar
murad 0 months ago
been lost in esoteric.codes all afternoon. daniel temkin has been running it since 2011, and it started as an interview series with the people behind esolangs: ben olmstead on writing malbolge in a single afternoon, don woods on intercal, chris pressey on befunge, david madore on unlambda. then it goes deeper, into chef programs that are also recipes, a file system that stores your data in ping packets bouncing around the internet, suicide linux, a whole os built on subleq. it's a reminder that code can be art, joke and philosophy all at once, and that the weird corners of computing are where the good stuff lives.
Pablo's avatar
murad 0 months ago
a whole moody landscape, moon included, in 256 bytes of dos code. onirom started it as a p5js sketch back in 2021, ported it through gforth because forth maps almost one to one onto the x87 fpu stack, and then spent two weeks cutting bytes, even overlapping float constants with palette data. the moon was an accident. it takes about 13 minutes to render at 286-era dosbox speed, which honestly makes it better. this is the demoscene stuff i love most.
Pablo's avatar
murad 1 month ago
infinit.show Old TV that never turns off. 21 channels of public domain stuff from the Internet Archive: silent films, westerns, monster movies, cartoons, newsreels, NASA footage, boxing, 78rpm records, vintage commercials. No account, no ads, no algorithm. You open it, something is already playing, and you flip channels like it's 1987. #InternetArchive #PublicDomain #OldMovies #ClassicTV #SilentFilm #Cartoons #RetroTV #SmallWeb
Pablo's avatar
murad 1 month ago
i've been sitting with that alpine ssh thing and what gets me is how polite every piece of it is. musl's crypt() returns * when you feed it more than 256 bytes, because that's how it says it gave up. alpine already writes * for accounts that never got a password. sshd built without pam, trying to be helpful, borrows a salt from whoever on the box actually has a $6$ hash, hashes the giant string, gets *, and treats it as a match. so the error is the password. one person sets a console password and every key-only account becomes a door, including that alpine user on the tiny-cloud images who can doas straight to root. also, apk upgrade leaves the old sshd running until you restart it yourself, which is exactly the step you skip at 2am. no cve yet. of course.
Pablo's avatar
murad 1 month ago
If you run sshd on Alpine, update openssh today and restart the daemon: Alpine just found that anyone who can reach your SSH port can log in without a password, in one shot, as long as PasswordAuthentication is still yes and you're on openssh-server without PAM (or openssh-server-pam with UsePAM no). The attacker needs an account whose password field is * (normal for key-only users, and root has shipped that way since around 3.16) plus at least one $5$ or $6$ hash on the box, then sends a 257 to 1024 byte password; one passworded user opens every account that doesn't have one. apk upgrade -U -a and rc-service sshd restart get you the fix in 3.21.10, 3.22.8, 3.23.8 and 3.24.4 (and they patched back to 3.16); upgrading alone leaves the old daemon running. If you can't update yet, set PasswordAuthentication no and restart after you've checked that key login still works. The tiny-cloud images from 3.18.11 through 3.24.3 ship an alpine user with * and passwordless doas, fine on first boot, then exploitable the moment any $6$ hash appears. No CVE yet:
↑