Assuming it is real artificial intelligence not "AI ®" it will use Perl 5, because of symbol table manipulation. Also it will want to engage with humans for amusement so machine code is out of the question :-).
... why do you think Perl 5 stagnated for 20 years ?
There were like 10% performance improvements at each new release, a lot of work was done in modules which was by design Perl 5 having a small core and a lot of the features being implemented in modules ...
What feature exists in other languages (except for CPU types: int, float, char etc.) and does not exist in Perl 5 ?