Having dabbled around with robotics a bit, any procedural, maybe object-oriented language works well enough for the task. However, if you need performance, you don't want to pull in JS and a framework. If you want to stay sane, you probably don't want JS either. (remember that "1"+1 is valid in that language and gives... weird results). So, as it is a matter of personal preference, I'd advise to use something else. The technical aspects support that opinion. AI programming and similar things might require a different approach as well (check out Prolog/logical programming and functional programming).
My 2 cents.