6 ms·
1. Android is the largest mobile platform on the planet. 2. It's been around for a decade now, but has only supported development with Java and C++. 3. The mo
by StevePerkins 9y ago
1. Android is the largest mobile platform on the planet.
2. It's been around for a decade now, but has only supported development with Java and C++.
3. The most recent version of Java supported comes from 2011. And full C++ support is only recent.
4. Few people (if any) really like these options.
5. This week Google announced that Kotlin is the next "official" language with first-class support.
6. A temporary wave of stories appear on HN.
Are you new here? I'm sure that next week it'll go back to the usual threads about Rust or Haskell, or someone will start a retro fad around Algol-68 or something.
- pjmlp 9y agoWhat?! C++ might be a 2nd class citizen in SDK tooling, but it is supported since Android 1.5 and C++14 is fully supported. How is that very recent? EDIT: The NDK was actually released with v1.5 (2009), the v2.3 was when STL and exceptions support were added hence my error.
- _pmf_ 9y agoMaybe the OP meant using C++ without at least a Application dispatcher/container object written in Java. This has only been possible with the introduction of NativeActivity (which you don't need to derive from, but only refer to via the Manifest).
- pjmlp 9y agoThe NativeActivity class was introduced in Android 2.3, released in December 2010, almost 7 years ago!
- krona 9y agoHistorically the Android platform provided only a very minimal C++ runtime support library, with no RTTI or C++ exceptions.
- pjmlp 9y agoSTL and exceptions are available since Android NDK Revision 5, released in December 2010, alongside Android 2.3. https://developer.android.com/ndk/downloads/revision_history.html https://developer.android.com/ndk/downloads/revision_history... How can it be historically, when the features are available since almost 7 years?
- IanDrake 9y agoYou can write android apps in c# or JavaScript too. I'm not sure if you consider them "supported" but they both have pretty advanced tooling for the purpose.
- kevingadd 9y agoThe C# tooling is good but it's partially closed-source and sold by a vendor (Xamarin). On that basis I don't think it really 'counts'. JS does, at least, since there are many ways to ship JS-based Android apps for free.
- Maarten88 9y agoXamarin got bought by Microsoft, and they opened almost everything from Xamarin, except Xamarin Studio which got rebranded as Visual Studio for Mac.
- StevePerkins 9y agoIf you write a C# app with Xamarin and have problems, then it's Xamarin's support problem. If you write a JavaScript app with Qt (I assume?), then it's Qt's support problem. Now, if you write an app with Kotlin, then it's Google's support problem. I can see how that would change the game for a lot of shops.
- eng_monkey 9y ago> Are you new here? I'm sure that next week it'll go back to the usual threads about Rust or Haskell, or someone will start a retro fad around Algol-68 or something. I just do not get how the disconnected list of events you provided justify the promotion of Kotlin we have seen this week. But hey, you might even be on the payroll.
- frogfuzion 9y agoI doubt it's being paid promoted, but I don't think your cynicism is unreasonable. It is pretty obvious that the big tech companies maintain a presence on this board and attempt influence through human and automated measures.
- StevePerkins 9y agoYeah. Those nefarious Elm and Nim cartels, using Russian hackers to push their #fakenews to the top of HN every other week. (I feel like I'm living through a bad acid trip)
- Varriount 9y agoEh, neither Nim nor Elm are backed by huge companies. You'll want to look at Rust and Swift for that. ;) Seriously though, speaking as a contributor to Nim, I can confidently say no-one in the Nim community organizes massive multi-post promotion campaigns like this. The only submissions that come from the core developers are the announcements for new language versions, and (unfortunately) none of the community members seem particularly inclined to regularly submit links to libraries/blog posts either. I'm sure Elm developers do the same thing - it's the only way for such projects to actually gain recognition among other communities.
- wtetzner 9y ago> You'll want to look at Rust and Swift for that. ;) Is Mozilla a "huge company"?
- 9y ago
- mirages 9y agoI wished we could auto filter HN with certain keywords
- Arnt 9y agohnapp.com
- PaulHoule 9y agoReal programmers stick to algol 60!
- romanovcode 9y agoNo man, next week the threads will be: Why I moved from Go (Or whatever was the FOTM) to Kotlin.
- jerf 9y agoThat will be a short article, though: "Because Go doesn't really work on Android. In fact, I don't even know what I was thinking. Seriously. Why'd I do that?" (Yes, I know you can run Go code on Android but last I knew that's almost exactly literally what it is; you can run Go code on Android, but it has next to no integration with the rest of Android, just a very basic binding to things that are very cross-platform: https://godoc.org/golang.org/x/mobile/app https://godoc.org/golang.org/x/mobile/app)
- romanovcode 9y agoIt's not about android. People will start using Kotlin everywhere. Remember Swift hypetrain a year or so ago? I do. People even made web frameworks with it.
- pryelluw 9y ago7. Oracle can't sue Google over Kotlin.
- khana 9y agoPrecisely.
- dafrankenstein2 9y agocorrect
- blackorzar 9y agoWhat if Oracle buys Jetbrains? :)