1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions
comment 1y ago · link · parent
* You can get away with const title = lines.match(/# (.+)/)[1] and avoid frontmatter.
* My blogs never have so many posts they need pagination or tags, or categories, or sorting.
* JSX turns out to be a great vanilla server side string builder if you use a questionable hack like https://immaculata.dev/guides/enabling-jsx.html
* GH Pages with arbitrary build steps instead of (sigh) Jekyll is really easy now with things like https://immaculata.dev/guides/using-gh-pages.html
* highlight.js is still basically the king of super easy code syntax highlight by adding literally three lines to your HTML (shiki is cool but slooooow)
comment 1y ago · link · parent
Two more questions if you find some spare time:
3. Why does it use tty for interrupts instead of directly calling int 10?
4. How does this even print to the screen or use a tty in the first place? Is it just something inherent in bios api?
comment 1y ago · link · parent
1. I just saw how str_print is implemented. It's so short even though it's asm. Is this why nul-terminated strings were so popular and became the default in C? Would pascal strings be much longer/uglier/harder in asm?
2. Why is str_print repeated in multiple files? How would you do code sharing in asm? I assume str_print is currently not "static" and you'd have to make it so via linking or something, and then be able to get its address using an asm macro or something?
876.
Where Are All the Engineers?(90s.dev ↗)
1 points · by 90s_dev · 1y ago · discuss
comment 1y ago · link · parent
Funny you make that analogy. I remember back when the two contending C alternatives were Zig and Nim, with Nim being syntactically almost a Python clone.
It seems Nim has gone the way of Crystal (Ruby version of Nim) and is just kind of there but mostly forgotten and doomed to be abandoned unless it finds a niche.
> What sets Zig apart is compile-time
I see this claim a lot, but I'm not sure. I think it's the fact that Zig is more or less still C syntax and semantics, just... fixed. The way it does comptime does seem better than how other languages do it, but I haven't actually used it, much less for long enough to judge it properly.
comment 1y ago · link · parent
Yes! This is what all my projects are geared towards restoring. The big one is not quite ready to announce yet, but I am very proud of it, and extremely excited to release it, to solve exactly that: it makes engineering fun again!
comment 1y ago · link · parent
> many become miserable because they got mired in their identity sexual and otherwise
I think one factor is that we're always looking for a balance between doing what we want and doing what's right. When they're not the same in someone's conscience, they look for external approval that what they want isn't wrong or bad or harmful, so they can keep doing it. Especially sexually.
There's also virtue signalling as a way to get social credit, which is also usually geared towards getting something that you want, but with it either being not justified or not earned.
comment 1y ago · link · parent
Wait, what? Doesn't the Ship of Thesseus apply to our character just as much as to our body? And if so, doesn't that make it a philosophical question, and absolutely not scientific, as character is immaterial?
881.
3 points · by 90s_dev · 1y ago · discuss
comment 1y ago · link · parent
Are now? I mentioned Thomas More to show that this exact same thing happened 500 years ago. The whole point of the movie A Man For All Seasons is to show that this is always how it has been throughout human history, and that only a few people stand out as putting the truth higher than their own interests, such as Thomas More and Joan of Arc, which deeply impress even non-religious people like Robert Bolt and Mark Twain.
comment 1y ago · link · parent
886.
Ask HN: Is there a list of projects that will *not* adopt AI?
18 points · by 90s_dev · 1y ago · 5 comments
comment 1y ago · link · parent
On the note of programming not being fun anymore, that's exactly why I'm making my secret project that I hope to release very very soon, maybe in a week or so. I want to make programming fun again, in a similar way that pico8 did, but x100.
comment 1y ago · link · parent
The hard part of maintaining a config is that there's no such thing as cost-free usage, it always takes a mental toll to change a config, to learn a new config, to remember which configs are in use and what they do, to backup configs, or at least to setup and maintain a config-auto-backup flow.
By far, the easiest mental model is just learning how everything works out of the box, and getting used to it. Then again, sometimes what people want is to do things the hard way for its own sake. That's probably part of why I kept going back to C over and over for so many years.
comment 1y ago · link · parent
I've learned to use default configurations pretty much everywhere. It's far too much of a hassle to maintain customizations, so it's easiest to just not care. The exception is my ~50 lines of VS Code settings I have sync'd in a mysterious file somewhere that I've never seen, presumably on github's servers, but not anywhere I can see?
comment 1y ago · link · parent
For fonts, I just went with a simple raster bitmap font and pixel grid storage format. Creating these limitations makes it easier for me and for developers and artists. I choose 320x180 because it fits the 16:9 perfectly, which would make full screen ideal on most monitors.
comment 1y ago · link · parent
comment 1y ago · link · parent
After my 30 years of writing GUIs, I'm now convinced that this is the wrong place to draw a dividing line.
Instead, we should be isolating intent. This is what Composites do in my project. I'm so excited to announce it next week!
comment 1y ago · link · parent
[1] https://90s.dev/