Hacker News new | past | comments | ask | show | jobs | submit login
Perfect Programming Language (github.com/todepond)
2 points by quyleanh 70 days ago | hide | past | favorite | 3 comments



> Booleans can be true, false or maybe. […] Technical info: Booleans are stored as one-and-a-half bits.

Most languages would need at least ²log(3) bits. That’s about 1.58496250072, so that cuts more than 5% in storage.

I guess they’re using the fact that most real-life booleans have the value maybe, but don’t see how to implement this.


Repo title: DreamBerd

Discussion in 2023 (736 points, 211 comments) https://news.ycombinator.com/item?id=36183683


As a time traveler myself I'm a big fan of the variable hoisting feature




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: