Guess programming language by „Hello, world“ snippet (helloworldquiz.com) 30 points by krasnoukhov 12y ago ↗ HN
[–] jstanley 12y 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 12y ago ↗ Nice! Are you sure that this example is acceptable for Prolog? https://github.com/krasnoukhov/langgame/blob/master/models/v... [–] nine_k 12y 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 12y 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 12y ago ↗ The awk example is valid Perl. $ awk 'BEGIN { print "Hello, world!" }' Hello, world! $ perl -le 'BEGIN { print "Hello, world!" }' Hello, world!
[–] krasnoukhov 12y ago ↗ Nice! Are you sure that this example is acceptable for Prolog? https://github.com/krasnoukhov/langgame/blob/master/models/v...
[–] nine_k 12y 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 12y 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 12y ago ↗ The awk example is valid Perl. $ awk 'BEGIN { print "Hello, world!" }' Hello, world! $ perl -le 'BEGIN { print "Hello, world!" }' Hello, world!
[–] wldlyinaccurate 12y ago ↗ Wow, this made me painfully aware of how few languages I know. I hadn't even heard of some of them!
[–] itry 12y 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 12y ago ↗ Feel free to send a patch here! https://github.com/krasnoukhov/langgame
[–] mapleoin 12y 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 12y ago ↗ Wrong kind of Chef? What do you mean? Looks like Chef to me.. [–] mapleoin 12y 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 12y ago ↗ ah, but that's ruby ;)
[–] tinco 12y ago ↗ Wrong kind of Chef? What do you mean? Looks like Chef to me.. [–] mapleoin 12y 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 12y ago ↗ ah, but that's ruby ;)
[–] mapleoin 12y 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 12y ago ↗ ah, but that's ruby ;)
[–] bobdvb 12y ago ↗ Broken on the latest Opera for some reason. [–] krasnoukhov 12y ago ↗ Works fine for me on 12.16. Screenshot?
[–] nxn 12y ago ↗ Trying to pick between omgrofl and lolcode with one life left can be likened to deciding which color wire to snip. [–] krasnoukhov 12y ago ↗ BEST :D [–] qbrass 12y 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 12y 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 12y ago ↗ Great game, hadn't heard of some languages! Maybe I will have to read something of them...
20 comments
[ 4.3 ms ] story [ 63.5 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