Guess programming language by „Hello, world“ snippet (helloworldquiz.com) 30 points by krasnoukhov 13y ago ↗ HN
[–] jstanley 13y ago ↗ Scored 2400, was pretty fun.A problem is that some of the languages are indistinguishable. I'm pretty sure the example I saw for Logtalk would be perfectly acceptable Prolog. [–] krasnoukhov 13y ago ↗ Nice! Are you sure that this example is acceptable for Prolog? https://github.com/krasnoukhov/langgame/blob/master/models/v... [–] nine_k 13y ago ↗ Also, it's really hard to choose between Delphi and Pascal (no features specific to Object Pascal are used) and between Nemerle and C# (no Nemerle-specific features seem to be used). [–] tekacs 13y ago ↗ 5700 :)The simple absence of (admittedly optional) semicolons in some cases tipped the balance for me. Keyword capitalisation, too.Still kicking myself over my mistakes, though. :P [–] scottlamb 13y ago ↗ The awk example is valid Perl. $ awk 'BEGIN { print "Hello, world!" }' Hello, world! $ perl -le 'BEGIN { print "Hello, world!" }' Hello, world!
[–] krasnoukhov 13y ago ↗ Nice! Are you sure that this example is acceptable for Prolog? https://github.com/krasnoukhov/langgame/blob/master/models/v...
[–] nine_k 13y ago ↗ Also, it's really hard to choose between Delphi and Pascal (no features specific to Object Pascal are used) and between Nemerle and C# (no Nemerle-specific features seem to be used).
[–] tekacs 13y ago ↗ 5700 :)The simple absence of (admittedly optional) semicolons in some cases tipped the balance for me. Keyword capitalisation, too.Still kicking myself over my mistakes, though. :P
[–] scottlamb 13y ago ↗ The awk example is valid Perl. $ awk 'BEGIN { print "Hello, world!" }' Hello, world! $ perl -le 'BEGIN { print "Hello, world!" }' Hello, world!
[–] wldlyinaccurate 13y ago ↗ Wow, this made me painfully aware of how few languages I know. I hadn't even heard of some of them!
[–] itry 13y ago ↗ Played a couple of times, hoping to see a snippet in "Holy C" by Terry A. Davis, which unfortunatly didnt happen. Apart from that - nice game! [–] krasnoukhov 13y ago ↗ Feel free to send a patch here! https://github.com/krasnoukhov/langgame
[–] mapleoin 13y ago ↗ This is the wrong kind of Chef: https://github.com/krasnoukhov/langgame/blob/master/models/v...Which makes me wonder how they scraped their data... [–] tinco 13y ago ↗ Wrong kind of Chef? What do you mean? Looks like Chef to me.. [–] mapleoin 13y ago ↗ I was expecting something more like this: https://github.com/opscode-cookbooks/apache2/blob/master/rec...http://en.wikipedia.org/wiki/Chef_%28software%29 [–] tinco 13y ago ↗ ah, but that's ruby ;)
[–] tinco 13y ago ↗ Wrong kind of Chef? What do you mean? Looks like Chef to me.. [–] mapleoin 13y ago ↗ I was expecting something more like this: https://github.com/opscode-cookbooks/apache2/blob/master/rec...http://en.wikipedia.org/wiki/Chef_%28software%29 [–] tinco 13y ago ↗ ah, but that's ruby ;)
[–] mapleoin 13y ago ↗ I was expecting something more like this: https://github.com/opscode-cookbooks/apache2/blob/master/rec...http://en.wikipedia.org/wiki/Chef_%28software%29 [–] tinco 13y ago ↗ ah, but that's ruby ;)
[–] bobdvb 13y ago ↗ Broken on the latest Opera for some reason. [–] krasnoukhov 13y ago ↗ Works fine for me on 12.16. Screenshot?
[–] nxn 13y ago ↗ Trying to pick between omgrofl and lolcode with one life left can be likened to deciding which color wire to snip. [–] krasnoukhov 13y ago ↗ BEST :D [–] qbrass 13y ago ↗ They look nothing alike, but I saw the LOLs in Omgrofl and instincively hit the LOLcode button before really looking at the code.
[–] qbrass 13y ago ↗ They look nothing alike, but I saw the LOLs in Omgrofl and instincively hit the LOLcode button before really looking at the code.
[–] Sufon 13y ago ↗ Great game, hadn't heard of some languages! Maybe I will have to read something of them...
20 comments
[ 64.9 ms ] story [ 850 ms ] threadA problem is that some of the languages are indistinguishable. I'm pretty sure the example I saw for Logtalk would be perfectly acceptable Prolog.
The simple absence of (admittedly optional) semicolons in some cases tipped the balance for me. Keyword capitalisation, too.
Still kicking myself over my mistakes, though. :P
Which makes me wonder how they scraped their data...
http://en.wikipedia.org/wiki/Chef_%28software%29