Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLaurence Bowe
6,222 PointsWhich language is best for my desktop application to run on Mac and Microsoft?
Hi, Just wondering because I was going to make a desktop application in swift but then I realised that would only be compatible with Mac, Is python cross platform or java etc. THANKS A-L-O-T!!! IN ADVANCE :)
2 Answers
Greg Kitchin
31,522 PointsJava works on what is known as a virtual machine. Basically, your code will run on any computer that has the virtual machine installed on it, whether it be a mac or Windows PC.
I'm not sure about Python. A quick google says it comes pre-installed on Mac OS X, but whether code written on a PC will run on it, is something I don't know.
Josh Page
1,928 PointsHi, from looking at the tasks you have completed thus might be worth looking into. https://github.com/naetech/nightrain it allows you to build native apps for mac and windows in html, css, js (and php).
Patrick Cooney
12,216 PointsNo... Just, no. If you won't listen to me, listen to Zuck. Facebook's biggest mistake was betting on HTML5
Laurence Bowe
6,222 PointsTHANKS TO EVERYONE SO QUICK AND RELIABLE IT REALLY HELPED ME AND IM NOW GONNA START LEARNING PYTHON THANKS EVERYONE AGAIN!!! :)
Patrick Cooney
12,216 PointsPatrick Cooney
12,216 PointsPython will work on any platform but it's interpreted which, depending on the app being written, means it could be quite slow as compared to something like Java. As mentioned Java runs on a virtual machine. It gets compiled down to what is called byte code. The byte code then gets turned into machine code (CPU instructions) on-the-fly by the VM. Byte code is a mid-level instruction. It's going to be faster than interpreted languages but slower than native languages. This is because the native stuff compiles to machine specific code before it is ever run.
Laurence Bowe
6,222 PointsLaurence Bowe
6,222 PointsTHANKS TO EVERYONE SO QUICK AND RELIABLE IT REALLY HELPED ME AND IM NOW GONNA START LEARNING PYTHON THANKS EVERYONE AGAIN!!! :)