Cellphone languages ... why?

Discussion about everything. New games, 3d math, development tips...
Post Reply
JoshM
Posts: 28
Joined: Thu Apr 30, 2009 9:00 pm
Location: Salt Lake City, Utah

Cellphone languages ... why?

Post by JoshM »

Does anyone have good insight for why i-phone doesn't mainly use c, but objective c and android doesn't mainly use java, but primarily is based on an sdk?

These issues tend to frustrate me when trying to write cross platform code. It just seems silly that when a new phone comes out, there is some language to learn that ends up being a pain to use.

JoshM
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

The reason that the iPhone uses Objective-C is due to the fact of legacy. The Mac uses Obj-C, and the iPhone OS is basically an extension of the Mac OS. At least you only have to use Obj-C to interface with the iPhone specific libraries, the rest can be in C/C++.
TheQuestion = 2B || !2B
JoshM
Posts: 28
Joined: Thu Apr 30, 2009 9:00 pm
Location: Salt Lake City, Utah

Post by JoshM »

I didn't know that the mac uses objective c. :P
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

I think that Apple took over NeXT (who did a lot for Obj-C) some years ago. We are doing a lot of stuff in Obj-C where I work, and when you get used to it it's OK. Can also be developed for Windows (guess what - our main OS ;) ) using the gcc.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Post Reply