Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Simple calculator written in pure HTML (no script) – proof of concept (rawgit.com)
23 points by susam on March 26, 2019 | hide | past | favorite | 6 comments


I love this. Once I realized what was happening, I felt like you had played a great trick on me. I chuckled.


Same. Reminds me of when I was a child playing videogames. I knew that animation was a series of still pictures, so I assumed every possible image the game could show had to be pre-rendered and shown at the right time, which is exactly what's been done here!


Nice.

>only single digits are supported

Semi-random idea, add "A suffusion of yellow ...", replicating Dirk Gently's calculator:

https://www.urbandictionary.com/define.php?term=A%20Suffusio...

There used to be a replica online, but it is unfortunately dead:

http://www.thateden.co.uk/dirk/

https://web.archive.org/web/20180603190031/http://www.thated...

https://web.archive.org/web/20180810204739/http://www.thated...


Very interesting. It reminds me of template metaprogramming in C++ as (assuming you generated this, and didn't write it by hand) the computations were completed at compile time!

https://en.wikipedia.org/wiki/Template_metaprogramming#Compi...


OK, but why?


Primarily for amusement, I believe




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: