Live data from Hacker News

A 220b spreadsheet app in HTML/JS

xem.github.io

11–20 of 105 posts

Re: A 220b spreadsheet app in HTML/JS

#11
post #3

Why

If it is like many other such projects, just to say they did it.

Why climb Everest? Why play a video game on the hardest setting? Why learn to write Hello World in the top 100 programming languages?

I can't say I wrote a spreadsheet in 220b. They can.

Maybe the question is, "Why not?" It is Hacker News, after all.

Re: A 220b spreadsheet app in HTML/JS

#12

Yet our browsers blow the page up to 100 or 1000 times that.

Probably you should first consider that our browsers contain a fully capable programming system which this golfed program abuses as an expression evaluator. :-) By comparison, this C program [1] (hints are at [2]) is a stripped down spreadsheet program for X, and it only has an RPN evaluator (probably to make a room for graphing features?).

[1] http://www.ioccc.org/2000/jarijyrki.c

[2] http://www.ioccc.org/2000/jarijyrki.hint

Re: A 220b spreadsheet app in HTML/JS

#15

=1;alert("Hi")

Or try to put circular references.

    A1: 0
    A2: =A1+5
    A1: =A2*3
If you click on other cells, the values keep increasing. Otherwise, it eventually gives NaN. If you change the steps and first initialize A2, then it converges to NaN immediately.

Re: A 220b spreadsheet app in HTML/JS

#18
Hello World,

I'm xem, author of this mini app, but standing on the shoulders of giants:

it's inspired by http://aem1k.com/sheet/

which was inspired by http://jsfiddle.net/ondras/hYfN3/

Cheers to all the JS codegolf team who teached me this noble art and continue to learn new tricks everyday with me!

You can find a list of all our mini apps here: https://gist.github.com/xem/206db44adbdd09bac424

Post reply on HN