3 ms·
There's Apportable for Android (http://www.apportable.com http://www.apportable.com), which—I'm guessing—likely uses Cocotron under the hood: http://www.cocotro
by aaronbrethorst 13y ago
There's Apportable for Android (http://www.apportable.com http://www.apportable.com), which—I'm guessing—likely uses Cocotron under the hood: http://www.cocotron.org http://www.cocotron.org
But, in general, not very. Objective-C compilers certainly exist for Windows and Linux, but aren't worth much without Apple's frameworks.
- conradev 13y agoApportable does use Cocotron, but they also stitch in various other open source libraries that are found in the iOS runtime (libdispatch, CommonCrypto, etc): http://www.apportable.com/open_source http://www.apportable.com/open_source
- aaronbrethorst 13y agointeresting, thanks for the link!
- bitwize 13y agoSpeak for yourself. I do game dev in objc, with my own framework, and find it infinitely more useful than c++ even without the apple toolkits.
- networked 13y agoInteresting. Could you expand a bit on the main advantages of Obj-C over C++ in your use case?
- bitwize 13y agoIt's just easier to work with when you have to do things like iterate over dozens of game objects, each of which may or may not have certain properties or methods. Delegation is also a lot easier. So is FFI in some cases; the runtime exposes C functions for querying and even creating and updating classes. In fact, inside the (relatively tiny) ObjC runtime is a complete, COM-like object model that's less of a pain in the butt to use than COM, which is why ObjC was so central to NeXT's software-componentry plans in the good old days (WebObjects, etc.). Obviously you don't want to have any method calls on code paths that need to be super fast, but I'm not afraid of using straight C for those. It's a 2D engine; and from the profiling I've done, drawing and updating the screen still dominates the CPU time used, and it works fast enough even on many, many years old hardware, so I'm not worried about performance.