Live data from Hacker News

Spark

github.com

41–50 of 100 posts

Re: Spark

#41
post #39

Earlier quoted context omitted.

That ^ is why HN needs a LOL button :) http://img819.imageshack.us/img819/264/hnlol.png (edit) Ah, the downvoting frenzy! 4601 karma points to go. Bring it on, fellow HNers. Don't forget to quote the guidelines and to lecture me too as no bashing is complete without showing some smug superiority with a hint of righteousness.

I was about to upvote compensate you before I read your edit.

Well. When I posted the above comment, its parent was lingering at the very bottom of the page. Then it quickly floated to the top, and after that mine got as quickly downvoted into oblivion. Interesting dynamic in itself.

Right now the karma counter keeps oscillating around 4600... which makes me regret that I didn't say it was 4701 :)

Re: Spark

#43

I'm curious: is there a reason U+2584 LOWER HALF BLOCK is missing from the character set, which otherwise contains the progression from U+2581 to U+2587? Edit: U+2588 seems like an obvious candidate as well.

No idea. Here they are for everyone's use:

ticks = " ▁▂▃▄▅▆▇█"

I've included SPACE as well. That's an obvious missing one.

Re: Spark

#44
post #2

Ah, as inspired by Edward ttyfte.

That ^ is why HN needs a LOL button :) http://img819.imageshack.us/img819/264/hnlol.png (edit) Ah, the downvoting frenzy! 4601 karma points to go. Bring it on, fellow HNers. Don't forget to quote the guidelines and to lecture me too as no bashing is complete without showing some smug superiority with a hint of righteousness.

i upvoted you because HN is a dry humorless clone of /r/programming.

Re: Spark

#46
post #28

Just did a Haskell version of spark. It supports in 9 lines of code (exclude comment + empty line) Double instead of just Int. Negative numbers. https://github.com/Mgccl/mgccl-haskell/blob/master/random/sp...

Same features. 4 SLoC of Ruby :) https://gist.github.com/1367091

'floor' on last line should be changed to 'round'.

  ▁▁▁▁▁▁▂▂▂▂▂▂▃▃▃▃▃▃▅▅▅▅▅▅▆▆▆▆▆▆▇ = floor
  ▁▁▁▂▂▂▂▂▂▃▃▃▃▃▃▅▅▅▅▅▅▆▆▆▆▆▆▇▇▇▇ = round

Re: Spark

#47

Earlier quoted context omitted.

Same features. 4 SLoC of Ruby :) https://gist.github.com/1367091

'floor' on last line should be changed to 'round'. ▁▁▁▁▁▁▂▂▂▂▂▂▃▃▃▃▃▃▅▅▅▅▅▅▆▆▆▆▆▆▇ = floor ▁▁▁▂▂▂▂▂▂▃▃▃▃▃▃▅▅▅▅▅▅▆▆▆▆▆▆▇▇▇▇ = round

Thanks! Much better.

Re: Spark

#48
post #13

What would be really interesting is finding out which decent programming fonts can show block elements. I mean, beyond the DejaVu Sans Mono fiasco.

You'll have difficulty on Windows if you use PuTTY, since it doesn't do font substitution.

Re: Spark

#49

Sparklines are cool. This is just a bar graph and not nearly as useful.

So, because you can't deviate below the x axis this is really that much less useful?

This also doesn't meet the high resolution part of Tufte's definition ("a small intense, simple, word-sized graphic with typographic resolution"[1]).

[1]: http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0...

Re: Spark

#50
post #28

Just did a Haskell version of spark. It supports in 9 lines of code (exclude comment + empty line) Double instead of just Int. Negative numbers. https://github.com/Mgccl/mgccl-haskell/blob/master/random/sp...

And here's a PowerShell version. (Use PowerShell ISE as PowerShell normal prompt doesn't support unicode).

http://pastie.org/2867807

[edit: updated, careless variable rename, thanks jcromartie]

Post reply on HN