Live data from Hacker News

What's That Programming Language?

wtpl.heroku.com

81–90 of 107 posts

Re: What's That Programming Language?

#81

I felt terrible each time I didn't recognise a language I'd used. Makefiles, Delphi and Batch files, to name three.

And I felt sick that I got as high as 25% of them. I think it is better to know just a few of them very well. However the ones I use everyday I got immediately ...

What is interesting is so many languages look like C or Lisp or ML or its variants.

Re: What's That Programming Language?

#82

I thought this was going to be a tool where you paste in some code and it tells you which programming languages it could be written in. It would be interesting to see how much code you need to be able to accurately identify the language.

Besides certain languages with special keywords, the easiest way would be to send it through syntax checkers iteratively. You could probably have generic "C-style" and "common lisp style" types of checks, then you would have to actually look at api commands. The latter method would be rather problematic.

Re: What's That Programming Language?

#83
60/75, awww right :)

Cool app, it's pretty fun despite a few (seeming) bugs here and there. Some languages in there I've never even heard of... guess I'll have to check them out. At the same time, there are a few I can think of that aren't included... room for expansion, I guess.

Re: What's That Programming Language?

#85

Is this in almost-alphabetical order? I have clicked "forfeit" approximately 10 times, and all returned languages were AAABABBBCBCCCCC-esque if you know what I mean?

The culprit:

    Array::shuffle = -> @sort -> 0.5 - Math.random()
was just too damned sexy to pass up, but it's apparently pretty bad at distribution. Running it ten times seems to have helped. : )

Re: What's That Programming Language?

#86

60/75, awww right :) Cool app, it's pretty fun despite a few (seeming) bugs here and there. Some languages in there I've never even heard of... guess I'll have to check them out. At the same time, there are a few I can think of that aren't included... room for expansion, I guess.

The intention, ideally, is to get a system in place that allows for seamlessly adding new languages and "tasks" and open it up.

Re: What's That Programming Language?

#87

I thought this was going to be a tool where you paste in some code and it tells you which programming languages it could be written in. It would be interesting to see how much code you need to be able to accurately identify the language.

Some syntax highlighters, such as highlight.js [0], can do language detection and it works reasonably well with short snippets too.

[0] http://softwaremaniacs.org/soft/highlight/en/

Post reply on HN