4 ms·
Nicely explains why I find Android's use of Java as the lingua franca utterly perplexing. GC has no place on a low-power interactive platform.
by Pxtl 13y ago
Nicely explains why I find Android's use of Java as the lingua franca utterly perplexing. GC has no place on a low-power interactive platform.
- Apocryphon 13y agoMaybe it's a trade-off to make developer adoption easy.
- sjmulder 13y agoI’m not sure what alternatives they had. Of the top 10 languages on GitHub (https://github.com/languages https://github.com/languages), only C and C++ do not have garbage collection. Those are quite a different beast from Java of Objective-C. There’s a selection bias here but I struggle to come up with a popular non-GC, compiled language that operates on the same sort of level as Java or Objective-C.
- Aqwis 13y agoPython's GC can be turned off.
- Pxtl 13y agoIsn't python's GC reference-counted and deterministic anyways?
- Roboprog 13y agoHow about Pascal/Modula or FreePascal? It's almost as easy as Java (certainly less error prone as C), and almost as fast as C. Alas, I went to college in a time when they still taught Pascal, but then phased it out for C, which was more widely available on multiple platforms by the late 80s.
- eonil 13y agoActually exactly opposite happen on game developers.
- rsynnott 13y agoWhen Android was being designed, though, did people really think high-performance games on mobile were going to be a big deal? Remember, at the time, Apple didn't have apps, and the first Android phones had almost no built-in storage (and no native code for third party developers; the NDK wasn't added until 1.5). It seems fairly clear that the nature of the mobile games market that emerged caught both Apple and Google by surprise.
- otterley 13y agoIt wasn't a surprise to Apple; they demoed a game the day they announced the iOS SDK: http://youtu.be/Qs4gCwlBkWo?t=2m41s http://youtu.be/Qs4gCwlBkWo?t=2m41s
- rsynnott 13y agoWell, really, they had very limited options. If they wanted a high-level non-GC language... well, they could have gone with Objective C, I suppose...