Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 29, 2012, 02:38 PM   #1
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Trying to break the Java habit

I've been a long-time Java coder. I'm looking to transition away from Java, though, as I've found it to be less than satisfactory for what I use it for. I'm finding it hard to decide which language to use instead... I've whittled the numerous choices down to C (or its derivatives, like Objective-C, C++ and D) or Python. The stumbling block that's hindering me from making a final decision easily is one of compilers - I intend to develop open-source stuff primarily, so I'd prefer a compiler with a license compatible with the stuff I develop. Both C and Python have such a compiler - heck, the whole toolchain is compatible from the get-go. However... I'm also going cross-platform (OS X, Windows, Linux), which is where things get a bit dicey. Targeting OS X and Windows, without Linux, would be easier; as would OS X and Linux (there things are a LOT simpler). It's trying to juggle all 3 that is giving me grief. Here's the crux of the problem: Python's more mature on Windows, but slower. C is less mature on Windows (MinGW and MinGW-w64), but faster. For the curious, I've been a Java game developer ever since I started writing programs for PCs rather than graphing calculators, and I intend to continue writing games, but also have an interest in creating utility programs.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old May 30, 2012, 05:47 PM   #2
Mikey7c8
macrumors regular
 
Join Date: Sep 2009
Location: Montreal, Canada
Yeah, Java really does make things harder than they need to be these days.

Not sure what the solution is for someone that works in games / crossplatorm, though without doing any research whatsoever I'd be looking at a JS/WebGL type solution. Might be worth a look in

Personally, I'm trying to move towards a Scala based workflow as heaps nicer to code in and runs on the jvm, but I'm not sure that that would really help you in the space you're in.

FWIW, I'd choose python over C any day of the week
Mikey7c8 is offline   0 Reply With Quote
Old May 31, 2012, 12:03 AM   #3
wrldwzrd89
Thread Starter
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by Mikey7c8 View Post
Yeah, Java really does make things harder than they need to be these days.

Not sure what the solution is for someone that works in games / crossplatorm, though without doing any research whatsoever I'd be looking at a JS/WebGL type solution. Might be worth a look in

Personally, I'm trying to move towards a Scala based workflow as heaps nicer to code in and runs on the jvm, but I'm not sure that that would really help you in the space you're in.

FWIW, I'd choose python over C any day of the week
That's what I was leaning towards - Python. Thanks, your input is appreciated.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Jun 2, 2012, 06:44 PM   #4
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by wrldwzrd89 View Post
Here's the crux of the problem: Python's more mature on Windows, but slower. C is less mature on Windows (MinGW and MinGW-w64), but faster.
I wouldn't say C is less mature on Windows. Most people tend to use Visual C++ for their C or C++ programming on Windows. I'm aware of the fact that it is not an open source tool chain but the express version is free and is a suitable compiler to target for open source software. The primary disadvantage of Visual C++ is that it only supports C89 so if you are planning on using any C99 or C11 features you'll be out of luck. It's support of modern C++ is much better though.

Quote:
Originally Posted by wrldwzrd89 View Post
That's what I was leaning towards - Python. Thanks, your input is appreciated.
Python is an awesome language. I love it. Another advantage is that you can write Python modules in C or C++ for speed and then use them in your Python programs. Best of both worlds . Read up on the Python C API here: http://docs.python.org/c-api/index.html
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Jun 3, 2012, 03:39 AM   #5
wrldwzrd89
Thread Starter
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Quote:
Originally Posted by Cromulent View Post
I wouldn't say C is less mature on Windows. Most people tend to use Visual C++ for their C or C++ programming on Windows. I'm aware of the fact that it is not an open source tool chain but the express version is free and is a suitable compiler to target for open source software. The primary disadvantage of Visual C++ is that it only supports C89 so if you are planning on using any C99 or C11 features you'll be out of luck. It's support of modern C++ is much better though.
Neither the express edition nor the ultimate edition with strings attached that I got from school are really suitable for my purposes, alas.
Quote:
Originally Posted by Cromulent View Post
Python is an awesome language. I love it. Another advantage is that you can write Python modules in C or C++ for speed and then use them in your Python programs. Best of both worlds . Read up on the Python C API here: http://docs.python.org/c-api/index.html
Thanks for the link, I'll definitely look into it later!
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC