Live data from Hacker News

What's That Programming Language?

wtpl.heroku.com

51–60 of 107 posts

Re: What's That Programming Language?

#51
post #35

Ah I hit a bug where the page didnt redraw, I thought they were making a joke saying all languages are the same u__u; Languages never saw before : seed7, whenever. Happy to see my friend COBOL too.

I got it too, the same code for 5 languages I've never heard about, one after another. I felt ignorant, until it told me it's also valid racket :). int main(){ for(int i = 99; i > 0; i--){ write(i + " bottles of beer on the wall, " + i + " bottles of beer.\n"); write("Take one down and pass it around, " + (i-1) + " bottles of beer on the wall.\n\n"); } write("No more bottles of beer on the wall, no more bottles of be…

lol, but Racket being so DSL friendly I would have doubted myself.

My 5 bugged languages were : scala, groovy, Dart, they're all not too unrelated.

Re: What's That Programming Language?

#53
post #48

Earlier quoted context omitted.

Author here. Sorry for nipping your adventure short, but I caught sight of how fast the logs were scrolling, noted the HN referrer, and decided it'd probably be best to stop requesting the next code block from the server and just store everything client-side. With almost 10k uniques in ~16 hours, I imagine I've gone well over the 750 free dyno hours with this one. Oops...

Awesome work, either way! Very impressive collection of language samples. It would make great post to tell us how you put this together, especially where these code samples were from and anything else of interest. Kudos!

How I wish I could say I speak 70+ programming languages, but alas, they're all from Rosetta Code.[1] I would like to show a variety of "tasks", as the site calls them, but scraping seems like it would be a pain, so I went with the most interesting problem with a solid number of samples. As for the architecture, it's pretty much just a Ruby hash from language to code, and then a bit of CoffeeScript to glue everything together.

[1] http://rosettacode.org/wiki/99_Bottles_of_Beer

Re: What's That Programming Language?

#56
post #35

Earlier quoted context omitted.

I got it too, the same code for 5 languages I've never heard about, one after another. I felt ignorant, until it told me it's also valid racket :). int main(){ for(int i = 99; i > 0; i--){ write(i + " bottles of beer on the wall, " + i + " bottles of beer.\n"); write("Take one down and pass it around, " + (i-1) + " bottles of beer on the wall.\n\n"); } write("No more bottles of beer on the wall, no more bottles of be…

lol, but Racket being so DSL friendly I would have doubted myself. My 5 bugged languages were : scala, groovy, Dart, they're all not too unrelated.

Well, if you

    #define write(x) {};
it's even valid C :)
Post reply on HN