Recent submissions

Comment · 2 months ago
The article also mentions that typestates can be cumbersome:

> Typestate improves code faultlessness and testability, but comes at the cost of more boilerplate code and can degrade readability.

I have noticed this in my own code. `Ticket` with an internal variable tracking the state makes using it simpler. I just have to store one object in my struct `struct MyData { ticket: Ticket }` and call `ticket` methods in the correct order.

Typestate `Ticket<T>` is not as simple. I have to wrap it in my own enum: `enum TicketState { Ticket1(Ticket<Func1Done>), Ticket2(Ticket<Func2Done>), }` to store in my struct: `struct MyData { ticket: TicketState }`. Then every time I call `ticket` methods, I must extract the correct variant value first. That degrades readability and creates extra run-time cost.

Comment · 2 months ago
Comment · 2 months ago
The Blitz Github page says: "Blitz is currently in a pre-alpha state." .. "we would not yet recommend building apps with it."

Is it a good idea to already build something on top of Blitz?

Comment · 5 months ago
Comment · 6 months ago
Comment · 6 months ago
Comment · 6 months ago
Comment · 8 months ago
Comment · 8 months ago
Comment · 1 year ago
Debian Trixie drops 32-bit x86 support. Ubuntu dropped 32-bit support already earlier, which meant that lightweight Lubuntu and Xubuntu don't support it either. It's sad to see old hardware support getting dropped like that. They are still good machines as servers and desktop terminals.

Are there any good Linux distros left with 32-bit x86 support? Do I have to switch to NetBSD?

Comment · 1 year ago
Comment · 1 year ago
I have been using lima to run Linux VMs on macOS. This new Apple tool looks very similar and I might replace lima with it.
Comment · 1 year ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton