Live data from Hacker News

What's this programming language?

demo.nithinbekal.com

1–10 of 36 posts

Re: What's this programming language?

#2
Impressive that it doesn't just take the best guess; it also informs you of its alternative hypotheses:

http://i.imgur.com/wITwa.png

Update:

Reading your blog post, I see that this is a wrapper around highlight.js, which is doing the language-guessing (including the second-best guess): http://softwaremaniacs.org/wiki/doku.php/highlight.js:api

Re: What's this programming language?

#3

Impressive that it doesn't just take the best guess; it also informs you of its alternative hypotheses: http://i.imgur.com/wITwa.png Update: Reading your blog post, I see that this is a wrapper around highlight.js, which is doing the language-guessing (including the second-best guess): http://softwaremaniacs.org/wiki/doku.php/highlight.js:api

OP here. I can't take credit for that, though. ;-)

It uses the highlight.js API for making the guesses, which provides the 2nd best option as well. :)

Re: What's this programming language?

#5

   int main(int argv, char **argv) {
       return 0;
   }
Doesn't look like CS and can't even be java. Adding a printf changes the top suggestion to perl. Adding an include changes the top suggestion to vala.

The idea to reduce language recognition to syntax highlighting is a nice idea, but doesn't seem to work.

Post reply on HN