Live data from Hacker News

What's this programming language?

demo.nithinbekal.com

11–20 of 36 posts

Re: What's this programming language?

#11
post #8

It can't understand C. http://i.imgur.com/7hrPE.png

I gave it this and it thought it was Vala: #include int main(int argc, char* argv[]) { return 0; } Haskell is a very weird guess for yours.

Yup, it does a terrible job with the C family of languages. Hardly ever gets that right. And if you type in any random keys, it often identifies it as Haskell. ;-)

It does a decent job with Perl, Python, Ruby, Bash, etc.

Re: What's this programming language?

#12

Earlier quoted context omitted.

I gave it this and it thought it was Vala: #include int main(int argc, char* argv[]) { return 0; } Haskell is a very weird guess for yours.

Yup, it does a terrible job with the C family of languages. Hardly ever gets that right. And if you type in any random keys, it often identifies it as Haskell. ;-) It does a decent job with Perl, Python, Ruby, Bash, etc.

Yeah, it nailed all the Perl I tried, even rather niche stuff.

Re: What's this programming language?

#14
Might mention that it sees Scala as Ruby or Python (ouch!). But I did just type in, "bunch of stuff, some programming stuff" and it thought that was Haskell or Coffeescript. Guess those win awards for literate programming?

Re: What's this programming language?

#17
post #8

It can't understand C. http://i.imgur.com/7hrPE.png

I gave it this and it thought it was Vala: #include int main(int argc, char* argv[]) { return 0; } Haskell is a very weird guess for yours.

It cant even get a "Hello World" C program right.

#include main() { printf("Hello World"); }

Post reply on HN