Objective-C (a superset of
C and an object-oriented language), I can create an object called a
UIWebView. There is a method for this object called
loadHTMLString: in which I can load actual
HTML into the
html is really a programming language... so that's debatable haha)
You can also do things like embed
C (and other languages): https://docs.python.org/2/extending/embedding.html
This isn't too difficult, with any language you can use other languages inside it if you try hard enough.
The challenge here is to see how many languages you can cram into 1 functioning program in under 500 bytes. https://mothereff.in/byte-counter
The program can do literally any task, it just has to work. The languages all have to work together, so you can't have 2 languages running one task, and 3 other languages running a completely different task. So whatever your "task" may be (you decide), there should only be 1 task, and all
n languages should work on just that 1 task in your 1 program.
Your score is the number of languages you used. Whoever uses the most languages at once gets a cookie.
Since this is a popularity contest I will be accepting the answer with the most up-votes.
•Ray asked, "Just to clarify, you're looking for a program that uses multiple languages to accomplish different parts of a single task, as opposed to a polyglot that is a valid program in multiple languages?" Answer, "Yes".
•DanielM. asked, "does Regex count?" Answer, "Yes, I personally WOULD count it. Again, this is a popularity contest, so it really is up to the voters to determine. HTML is not considered a programming language by some, but it has been successfully used in an answer already that has seen quite a few upvotes. (Also, Stack-overflow does define Regex as a programming language if that helps you make your decision to use it or not: https://stackoverflow.com/tags/regex/info)