Platform independent languages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 10 years ago .

I was searching a bit for another platform independent language like Java.
Are there other P.I. languages? Thanks

asked Apr 9, 2010 at 12:35 Martijn Courteaux Martijn Courteaux 68.5k 47 47 gold badges 200 200 silver badges 292 292 bronze badges Every scripting language should be platform independent. Commented Apr 9, 2010 at 12:36 @Martijn Congrats for starting so young. Wish you all the best. Commented Apr 9, 2010 at 12:40 @Christy: Thank you! I'm programming already for three years. Commented Apr 9, 2010 at 12:52

I think you didn't mean "platform independant language" but languages for platform independant runtime environments. C for example is considered platform independent, but a C programm for Windows will run on unix only in rare cases.

Commented Apr 9, 2010 at 12:56

@deamon, the folks at LLVM would disagree with you: "C and C++ are inherently platform-dependent languages."

Commented Dec 12, 2016 at 22:54

11 Answers 11

Platform independent isn't a perfectly well defined term. It can mean different things to different people. For example, some people have said that C is PI, others would say it isn't. Sometimes, people go to a lot of trouble to make C code work with configure(1) so that it can compile on lots of different platforms. Does that mean that one can write platform-independent-C, but not all C is platform independent?

Perhaps Java (+other software that runs on JVM) is considered PI because they define a platform, and it's up to different machines to implement that platform. But they don't always do it properly - for example, some JVMs (particularly early ones) have bugs that others (on other platforms) don't. And of course you can write non-pure java that links to native code - certainly not platform independent.

Several answers have suggested that scripting languages are platform independent. Tell that to people who write javascript and want it to work on IE6, IE7, FF, Chrome, Safari, etc!

So it's really up to you to say more about what you mean by "Platform Independent", or why you're asking.