1
$\begingroup$

I wonder if we can use Natural Language Processing (NLP) to process programming code: Given a piece of code, can we

  1. Translate it to human language to understand what it does? The input could be a function definition(normally lack of documentation) in Python and the output could be the documentation for that function.
  2. Compile or translate it to another programming language? Compile Python code to C or machine code, or translate C code to Python code?
$\endgroup$

1 Answer 1

1
$\begingroup$

Yes, and that is the ambition of the Decoder project (H2020 funded in Europe). Analyzing with NLP techniques the comments in e.g. C or C++ source code (of open source projects, and perhaps their git logs).

I even happen to be on the photo.

My dream is to try similar things, in a few years, in RefPerSys. You could join that project, BTW.

$\endgroup$
1
  • $\begingroup$ I just discovered that we are neighbors :) $\endgroup$
    – LMD
    Commented Sep 10, 2020 at 19:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .