Re:Etoile: a GNUStep-based Linux GUI written in Objective-C
by conradev on Wednesday January 01, 2014 @08:47PM
(#6997743)
Apportable does use Cocotron, but they also stitch in various other open source libraries that are found in the iOS runtime (libdispatch, CommonCrypto, etc):
Re:Etoile: a GNUStep-based Linux GUI written in Objective-C
by aaronbrethorst on Wednesday January 01, 2014 @09:02PM
(#6997783)
interesting, thanks for the link!
Re:Etoile: a GNUStep-based Linux GUI written in Objective-C
by bitwize on Wednesday January 01, 2014 @10:34PM
(#6998050)
Speak 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.
Re:Etoile: a GNUStep-based Linux GUI written in Objective-C
by networked on Thursday January 02, 2014 @07:12AM
(#6999248)
Interesting. Could you expand a bit on the main advantages of Obj-C over C++ in your use case?
Re:Etoile: a GNUStep-based Linux GUI written in Objective-C
by bitwize on Thursday January 02, 2014 @04:19PM
(#7002377)
It'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.
But, in general, not very. Objective-C compilers certainly exist for Windows and Linux, but aren't worth much without Apple's frameworks.