5 ms·
Apple releases a series of books with hundreds of pages and hours of video using Swift, and Google releases a one page Google Doc proposing to use Go. And then
by danielrakh 12y ago
Apple releases a series of books with hundreds of pages and hours of video using Swift, and Google releases a one page Google Doc proposing to use Go. And then people wonder why Apple is able to attract so many developers to their platform...
- Gigablah 12y agoHint: it's not due to the documentation.
- deleted 12y ago[deleted]
- mahyarm 12y agoApple had a 3 or 4 year lead time, Go was a project to make better servers.
- rdtsc 12y agoAs someone else already said, this should not be Go it should be Dart. Go in this case is seen sort of an in-between C and Java. But Go is not really as fast as C as much as we want it to be. So I don't know. Maybe it will be useful for something already written in Go to be ported. But I would rather see Dart succeed as a higher level-than java development language (both on Android and on the Web). Years back I hoped Python would do that (being Guido was at Google and all). But as he confessed there was a minor political struggle internally over it and Guido lost. Not too long after he left Google.
- oscargrouch 12y agoI used to think like you too.. but after Jobs/Apple launched the iPhone the trend for jitted languages, as popularized by Java in the nineties is going down.. Because of the phones and batteries, AOT languages are more valued and even ordinary jitted languages are getting a AOT compiler.. ART for Java and even .Net So Dart would need to have a AOT compiler first to make it more appealing to mobile phones.. also i think a lot of apps would not like to be distributed in source code form.. So langs like Go now are on the rise.. its funny how technology trends change over the decades... not while ago it was all about dinamic languages..
- stcredzero 12y agoIt has always been about language features, abstraction power, and maximized interactivity. Exactly how one achieves these isn't the main point.
- oscargrouch 12y agoIts all about influential people in tech, managing popular platforms deciding what technology to use for their platforms.. Eg. Basic, Javascript, Objetive-C As i dont think people actually conciously choose to write in those languages because of its features.. thats why we have so many people grumpy about those technologies.. Languages that we choose because of better features, pretty often loose in popularity and adoption.. Sometimes those languages have some heroic comunity efforts and a vibrant community that can make it stand.. but this is pretty rare.. Python, Ruby(because of Rails) It has almost the same mechanics of the fashion industry.. Some influential people decide what we gonna wear on the next 5 years.. We can use our "hobby language" of choice, because its our own decision.. but in the end of the day.. we have to mantain and work in code on those languages missing the "features, abstraction power and maximized interactivity" we love so much
- stcredzero 12y agoAs i dont think people actually conciously choose to write in those languages because of its features Incorrect, or at least badly lacking historical context and perspective. Basic: interactive. (Primitive REPL.) Javascript: it was there. If it wasn't there, everywhere but influential people just wrote about it then it would have languished. Also, it is interactive. Objective-C: has a lot of very good OO which was heavily influenced by Smalltalk. It is precisely the OO excellence that it was known for and which engendered fierce love for it in certain circles. Remember also that these languages have been around for a long time, on hardware far less powerful than what we have today or even had a decade ago. The youngest of these languages is Javascript by far, and it is almost 20 tears old! For their day, they were advanced with respect to the programming mainstream by at least one measure. (In the Apple II days, BASIC was there, and it was interactive, and that was enough.) I'm not saying these were the best available. But there is more to it than just fashion and influence/hype. (Otherwise we'd all just be using Java in the browser and for app servers.) Also: Ruby was a hobby language once upon a time.
- xkarga00 12y agoI never understood why everyone whines about Go's speed. The language, although stable, has a lot of potential into becoming much faster and performant. In every new version you can find speed-ups into different parts of it. I really don't worry about performance in Go. The Go team are very conscious about it and i am glad the bulk of development has been focused on things under the hood rather than adding features.
- deleted 12y ago[deleted]
- oscargrouch 12y agoGo is more of a community driven technology.. more in the unix way style, i think google endorse it, but unlike Swift, i think they dont have a marketing department, official budget and the like.. so i think the comparison is pretty unfair
- zak_mc_kracken 12y ago> And then people wonder why Apple is able to attract so many developers to their platform... There are quite a few more Android developers than iOS ones, not sure what point you are trying to make. Go will probably have zero impact on Android but Java has certainly been instrumental to Android's success.
- sgarman 12y agoI have been dying to find an Android dev who has at least written a real app but I'm overflowing with iOS devs. Any advice where to find these guys?
- bitpew 12y agoMay I ask where you are located? Around here (Central Europe, Austria) it's the other way around. It's a little bit harder to find good Android jobs than iOS jobs. Maybe because Java has always been one of the more popular languages here and the amount of Android devs is just higher than the number of iOS devs.
- cageface 12y agoIt's the same here in SE Asia. I suspect that's because most people don't have the money to buy a Mac for iOS development but already have a PC of some kind and often a cheaper Android phone. Also, most university graduates here already know Java so they can start writing apps without having to first learn an exotic new language.
- nezza-_- 12y agoIn Germany it's a PITA to find good Android developers... Good iOS developers on every corner but even average Android developers are hard to find. We also overall experienced a much slower development workflow with Android.
- izacus 12y agoInteresting, since at our teams we haven't found significantly slower dev times on Android in comparison to iOS. Usually Android devs lose time on compatibility issues, while iOS devs take more time with UI/UX design. But I agree, finding a good Android developer here in central europe is rather hard. Also finding a good Android job is rather hard - payment offers are usually atrociously bad.
- cromwellian 12y agoSwift has been in development since 2010 in secret. This is the price you pay for open source, you get to see things in an immature state which evolve over time.
- kyrra 12y agoAgreed. And to add, Swift is designed and marketed as an osx and iOS language. Golang still mainly targets CLI tools or server programs. If you look at how Go progresses, some of the devs on the team seem to be able to choose the feature they will work on and move it forward. This seems to be the effort of one man getting this initially working. If it pans out, they may throw more resources at it.
- millstone 12y agoAnd Go was started in 2007! http://golang.org/doc/faq#history http://golang.org/doc/faq#history It's got nothing to do with open source. Instead it reflects the different approaches taken by Apple and Google. Apple designs something new, tries hard to get it right the first time, and commits to it completely. Swift is the way to write for Apple's platforms, period. It's appropriate for a "social media application, all the way up to a high-performance 3D game." There's no doubt that Swift is meant to succeed Objective-C. Google experiments more, sees what sticks. Go, Dart, Dalvik, v8, NaCl... You sure have lots of choices, but the relationships between these technologies is unclear, and has the character of uncoordinated teams working in isolation.
- izacus 12y agoGo was also never made to be used in context of Android - even more it doesn't even have dynamic linking capability and was explicitly made to generate completely static binaries for server deployments. Which is not compatible (at least not without some serious hacking) with an OS which has full API written in Java an requires JNI interface and boxing of every interaction for every API call. While Go is a feasible replacement for C/C++ for native parts of Android applications (which are just normal Linux .so libraries linked against bionic) it would be a terrible fit for main application language without a full rewrite of most of the operating system (note that ART is certainly NOT a magic bullet here!). Note here that native (NDK) code has practically NO access to Android OS APIs (only APIs available are bitmap manipulation, OpenGL, OpenAL and limited sensors access). It's staggering just how many misconceptions and lack of understanding of Android structure is there in those "Go for Android" threads. For us Android devs pretty much three points would improve the Android development experience: 1.) Add Java 8 language feature support to ART/Dalvik runtime. This would clean up code immensely, especially in so concurrency and callback heavy use-case as a mobile app is. 2.) Clean up Android APIs and fix broken implementations. Add modern block/callback based APIs to replace listener-heavy code. Perhaps look at RxJava design patterns for core Android APIs as well. 3.) Improve tooling. Not the code editors (IDEA/AS with Maven or Gradle are decent enough), but the profiling tools, hiearchy viewer, tracing tools and other tooling which wasn't touched in years and are SORELY needed for good app development. Figuring out why a certain animation stutters right now requires stitching together several partially working tools with poor documentation. Note that NONE of those issues would be improved by adding Go as a language to interact with Android and would just cause additional issues on Go/Java boundaries.
- higherpurpose 12y agoIt's pretty obvious they've just now considered adding Go to Android, and have just begun working on it. I'd like to think it's in part because of my constant pestering on HN about Google supporting Go in Android.
- kisielk 12y agoYou're comparing apples to automobiles. The documentation and video accompanying the Swift announcement was the official promotional materials and guides. The document linked here is a development proposal sent by a developer to the golang-dev mailing list outlining his intentions to work on a feature for the next release.
- ahoge 12y agoGo also has documentation. Also, Go has a spec. Swift doesn't. That's a pretty big deal, don't you think? Android is fairly open. You can run whatever you want on that platform. If you want to use LuaJIT, no one can stop you. Also, this isn't "Google". It's one guy working for Google. He's on the Go team. He wants to make Go a viable option for games on Android. If you like Go, this is a good thing.
- pjmlp 12y agoSwift has a spec. Just go to Apple developers documentation.
- ahoge 12y agoI can't find a language specification anywhere. Can you give me a link? go language spec hit #1: http://golang.org/ref/spec http://golang.org/ref/spec dart language spec hit #1: https://www.dartlang.org/docs/spec/ https://www.dartlang.org/docs/spec/ java language spec hit #1: http://docs.oracle.com/javase/specs/ http://docs.oracle.com/javase/specs/ For Swift, I can only find guides and references.
- pjmlp 12y agoAt one click distance for any Mac developer: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AboutTheLanguageReference.html#//apple_ref/doc/uid/TP40014097-CH29-XID_453 https://developer.apple.com/library/prerelease/ios/documenta...
- ahoge 12y agoFrom the very first paragraph: "The grammar described here is intended to help you understand the language in more detail, rather than to allow you to directly implement a parser or compiler." A language specification is for people who want to implement a parser/compiler/VM/etc. It's something you need if you want to standardize it (e.g. TC39 [ECMAScript] and TC52 [Dart]). A language specification is also generally clearly labeled as such. http://en.wikipedia.org/wiki/Programming_language_specification http://en.wikipedia.org/wiki/Programming_language_specificat... PHP, for example, doesn't have one.