Hacker News new | past | comments | ask | show | jobs | submit login
0.1 plus 0.2 (rtfeldman.com)
12 points by rtfeldman 7 months ago | hide | past | favorite | 2 comments



Common Lisp also can answer 0.3, it was the only PL able to do that when I examined all the PLs installed on my PC.


Thanks for a masterfully written article, with an excellent overview of the problem and the language design choice.

It makes sense to have to opt-in to floats for performance in domains like scientific computing or graphics (where silent precision loss matters less). But in all other cases business logic (money etc.) would give you normal arithmetic as you would expect.

It also makes sense to not allow numbers to overflow to the Heap, but rather have the programmer take special care for exceptionally high numbers.

Having no shenanigans between the compiler output and the runtime output is also a sane choice (staying true to predictability / determinism).

All in all, it sounds like good language design choices for a Web Server and Business Applications focused language such as Roc.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: