Also, my two geeky pre-teen sons equally like learning Python and French (on Duolingo).
Of course, I learn languages because I'm interested in the culture of the people who speak those languages. In the same way, I learn programming languages to broaden my way of thinking about computing.
What I'd like to add to my previous post is that the effect appears when I do both things under heavy load. Especially the language learning method I have is much more strenuous than what most people use.
Here's what I do: Obviously there are times where I learn the basics of the language and basic vocabulary. The main part of my learning effort, however, consists of watching movies/television.
What makes this so hard, is that I start doing so when I have only a very basic grip on the language, so that I understand very little of the language I'm trying to absorb. While watching, I force myself to actively try and understand/infer as much as I can. By this I mean that I touch my cognitive load limit.
When I'm "fresh", this is realy exhausting. When I mix it with complementary strenuous work (say, designing a numerical algoritm), it causes headaches and slight nausea.
I want to stress that this method I use is not suitable for everybody and I'd really recommend against trying to do it for the first foreign language. The reason I resort to it is that I am more of a speech person than a written text person and I am also somewhat lazy regarding textbook language study.
It might also be useful to note that, while my method takes less learning time than using a book or working with a tandem partner, it requires much more reconvalescence. So my net learning speed might be on par or even slower than the speed of somebody using duolingo or doing an advanced university course.
I speak three languages fluently and a bunch of others to varying degree. I also hold a PhD in Physics. What I've noticed is that my brain manages very well if I have prolonged periods of intense "sciencing" and it also works well if I take some time to learn languages.
However, if I try to do half a day of thinking about algorithms and then half a day of language learning, I will get a headache and slight nausea! Might be that this only happens to me because of some "manufacturing error", but I've tried it repeatedly and it invariably happens.
This has lead me to form the following, highly unproven, high-level working heuristic about the brain: The brain might be just like the rest of our body. You can train to be a weightlifter, or you can train to be a marathon runner. If you do both over the course of your life, you can become good at both, but you'll probably never become the worlds best at any of the two.
If you do intense training on both without a resting period in between, you'll hurt yourself.
So that's my weird theory, for what it's worth.
That said, I think your child has a lot to gain from the broad knowledge he receives. I can tell you from experience that this is the age of interdisciplinarity, and it's a lot of fun.