Kotlin vs Objective-C

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Kotlin
Kotlin

1.8K
1.2K
+ 1
256
Objective-C
Objective-C

4.4K
2.2K
+ 1
490
Add tool

Kotlin vs Objective-C: What are the differences?

Kotlin: Statically typed Programming Language targeting JVM and JavaScript. Kotlin is a statically typed programming language for the JVM, Android and the browser, 100% interoperable with Java; Objective-C: The primary programming language you use when writing software for OS X and iOS. Objective-C is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax, primitive types, and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding, deferring many responsibilities until runtime.

Kotlin and Objective-C belong to "Languages" category of the tech stack.

"Interoperable with Java" is the primary reason why developers consider Kotlin over the competitors, whereas "Ios" was stated as the key factor in picking Objective-C.

Kotlin is an open source tool with 28.3K GitHub stars and 3.28K GitHub forks. Here's a link to Kotlin's open source repository on GitHub.

According to the StackShare community, Objective-C has a broader approval, being mentioned in 851 company stacks & 363 developers stacks; compared to Kotlin, which is listed in 268 company stacks and 208 developer stacks.

- No public GitHub repository available -

What is Kotlin?

Kotlin is a statically typed programming language for the JVM, Android and the browser, 100% interoperable with Java

What is Objective-C?

Objective-C is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax, primitive types, and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding, deferring many responsibilities until runtime.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Kotlin?
Why do developers choose Objective-C?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Kotlin?
    What companies use Objective-C?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Kotlin?
    What tools integrate with Objective-C?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Kotlin and Objective-C?
    Scala
    Scala is an acronym for “Scalable Language”. This means that Scala grows with you. You can play with it by typing one-line expressions and observing the results. But you can also rely on it for large mission critical systems, as many companies, including Twitter, LinkedIn, or Intel do. To some, Scala feels like a scripting language. Its syntax is concise and low ceremony; its types get out of the way because the compiler can infer them.
    Swift
    Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.
    Java
    Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
    Groovy
    Groovy builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk. It makes modern programming features available to Java developers with almost-zero learning curve.
    Python
    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
    See all alternatives
    Decisions about Kotlin and Objective-C
    StackShare Editors
    StackShare Editors
    Angular
    Angular
    jQuery
    jQuery
    Objective-C
    Objective-C
    Swift
    Swift
    Go
    Go
    Ruby
    Ruby
    Java
    Java
    React
    React
    Python
    Python
    Node.js
    Node.js
    Rails
    Rails

    By mid-2015, around the time of the Series E, the Digital department at WeWork had grown to more than 40 people to support the company’s growing product needs.

    By then, they’d migrated the main website off of WordPress to Ruby on Rails, and a combination React, Angular, and jQuery, though there were efforts to move entirely to React for the front-end.

    The backend was structured around a microservices architecture built partially in Node.js, along with a combination of Ruby, Python, Bash, and Go. Swift/Objective-C and Java powered the mobile apps.

    These technologies power the listings on the website, as well as various internal tools, like community manager dashboards as well as RFID hardware for access management.

    See more
    StackShare Editors
    StackShare Editors
    Objective-C
    Objective-C
    Gradle
    Gradle
    Swift
    Swift
    Java
    Java

    At the heart of Uber’s mobile app development are four primary apps: Android rider, Android driver, iOS rider, and iOS driver. Android developers build in Java, iOS in Objective C and Swift. Engineers across both platforms land code into a monolithic code base that ships each week.

    They use some third-party libraries, but often build their own, since “Many open source libraries available are general-purpose, which can create binary bloat. For mobile engineering, every kilobyte matters.”

    On Android, the build system is Gradle. For the UI, Butter Knife binds views and callbacks to fields and methods via annotation processing, and Picasso provides image loading.

    As for iOS, all of the code lives in a monorepo built with Buck. For crash detection, KSCrash reports crashes to the internal reporting framework.

    See more
    StackShare Editors
    StackShare Editors
    Kotlin
    Kotlin
    gRPC
    gRPC
    Go
    Go
    Ruby
    Ruby

    As the WeWork footprint continued to expand, in mid-2018 the team began to explore the next generation of identity management to handle the global scale of the business.

    The team decided to vet three languages for building microservices: Go, Kotlin, and Ruby. They compared the three by building a component of an identity system in each, and assessing the performance apples-to-apples.

    After building out the systems and load testing each one, the team decided to implement the new system in Go for a few reasons. In addition to better performance under heavy loads, Go, according to the team, is a simpler language that will constrain developers to simpler code. Additionally, the development lifecycle is simpler with Go, since “there is little difference between running a service directly on a dev machine, to running it in a container, to running clustered instances of the service.”

    In the implementation, they the Go grpc framework to handle various common infrastructure patterns, resulting in “in a clean common server pattern that we can reuse across our microservices.”

    See more
    Conor Myhrvold
    Conor Myhrvold
    Tech Brand Mgr, Office of CTO at Uber · | 8 upvotes · 420.7K views
    atUber TechnologiesUber Technologies
    RIBs
    RIBs
    Swift
    Swift
    Objective-C
    Objective-C

    Excerpts from how we developed (and subsequently open sourced) Uber's cross-platform mobile architecture framework, RIBs , going from Objective-C to Swift in the process for iOS: https://github.com/uber/RIBs

    Uber’s new application architecture (RIBs) extensively uses protocols to keep its various components decoupled and testable. We used this architecture for the first time in our new rider application and moved our primary language from Objective-C to Swift. Since Swift is a very static language, unit testing became problematic. Dynamic languages have good frameworks to build test mocks, stubs, or stand-ins by dynamically creating or modifying existing concrete classes.

    Needless to say, we were not very excited about the additional complexity of manually writing and maintaining mock implementations for each of our thousands of protocols.

    The information required to generate mock classes already exists in the Swift protocol. For Uber’s use case, we set out to create tooling that would let engineers automatically generate test mocks for any protocol they wanted by simply annotating them.

    The iOS codebase for our rider application alone incorporates around 1,500 of these generated mocks. Without our code generation tool, all of these would have to be written and maintained by hand, which would have made testing much more time-intensive. Auto-generated mocks have contributed a lot to the unit test coverage that we have today.

    We built these code generation tools ourselves for a number of reasons, including that there weren’t many open source tools available at the time we started our effort. Today, there are some great open source tools to generate resource accessors, like SwiftGen. And Sourcery can help you with generic code generation needs:

    https://eng.uber.com/code-generation/ https://eng.uber.com/driver-app-ribs-architecture/

    (GitHub : https://github.com/uber/RIBs )

    See more
    StackShare Editors
    StackShare Editors
    Apache Thrift
    Apache Thrift
    Kotlin
    Kotlin
    Presto
    Presto
    HHVM (HipHop Virtual Machine)
    HHVM (HipHop Virtual Machine)
    gRPC
    gRPC
    Kubernetes
    Kubernetes
    Apache Spark
    Apache Spark
    Airflow
    Airflow
    Terraform
    Terraform
    Hadoop
    Hadoop
    Swift
    Swift
    Hack
    Hack
    Memcached
    Memcached
    Consul
    Consul
    Chef
    Chef
    Prometheus
    Prometheus

    Since the beginning, Cal Henderson has been the CTO of Slack. Earlier this year, he commented on a Quora question summarizing their current stack.

    Apps
    • Web: a mix of JavaScript/ES6 and React.
    • Desktop: And Electron to ship it as a desktop application.
    • Android: a mix of Java and Kotlin.
    • iOS: written in a mix of Objective C and Swift.
    Backend
    • The core application and the API written in PHP/Hack that runs on HHVM.
    • The data is stored in MySQL using Vitess.
    • Caching is done using Memcached and MCRouter.
    • The search service takes help from SolrCloud, with various Java services.
    • The messaging system uses WebSockets with many services in Java and Go.
    • Load balancing is done using HAproxy with Consul for configuration.
    • Most services talk to each other over gRPC,
    • Some Thrift and JSON-over-HTTP
    • Voice and video calling service was built in Elixir.
    Data warehouse
    • Built using open source tools including Presto, Spark, Airflow, Hadoop and Kafka.
    Etc
    See more
    Interest over time
    Reviews of Kotlin and Objective-C
    No reviews found
    How developers use Kotlin and Objective-C
    Avatar of Instacart
    Instacart uses Objective-CObjective-C

    Basically, the trajectory was we had our iOS app, which started out native, right? It started as a native app, and then we realized you have to go through a review process and it’s slow, and at a very early stage, it made sense for us to make it a wrapped web view. Basically, the app would open, and it would be a web view inside of it that we could iterate on quickly and change very rapidly and not have to wait for app store view process to change it. It wasn’t totally a native experience, but it was as actually a pretty good experience and lasted for a very long time and was up until recently the foundation of our current mobile web experience, which is different from our app situation. So for a long time, basically, our app store iOS Instacart app was a wrapped web view of just our store, a condensed version of our store, which meant that we could add things. We could change sales. We could change the formatting. We could change the UI really fast and not have to worry about the app store review process.

    This all changed about a year ago, I would like to say, at which point it became a totally native app. We felt comfortable enough with the product and all the features that we made it a native experience and made it a fully featured app.

    Avatar of Refractal
    Refractal uses Objective-CObjective-C

    While the majority of our stack is now using Swift, we still love Objective-C in many cases, especially low-level software manipulation, where it's just easier. It doesn't hurt that a lot of iOS/OS X Libraries out there are written in it either.

    Avatar of SmartLogic
    SmartLogic uses Objective-CObjective-C

    We like to go native with iOS development, and Objective-C has been the only game in town until recent introduction of Swift. We're keeping an eye on Swift, but we aren't giving up on the [old way:to do:things]!

    Avatar of Philtard
    Philtard uses KotlinKotlin

    Even though still a young language, it feels so at home sitting in the springboot frame and works with vaadin just great. And in itself it has like all the best parts of java, scala, python mixed into one.

    Avatar of DailySMSCollection
    DailySMSCollection uses Objective-CObjective-C
    Avatar of fileee GmbH
    fileee GmbH uses KotlinKotlin

    We use Kotlin both in our Android App and increasingly in our polyglot backend services.

    Avatar of Promethean TV
    Promethean TV uses Objective-CObjective-C

    PrometheanTV provides SDKs for IOS devices including support for the Objective-C language.

    Avatar of claudiofus
    claudiofus uses KotlinKotlin

    Statically typed programming language for modern multiplatform applications.

    Avatar of Cirrus Labs
    Cirrus Labs uses KotlinKotlin

    All 20+ micro-services that power Cirrus CI are written in Kotlin.

    Avatar of movix
    movix uses KotlinKotlin

    Unit tests, backend with Spring Boot

    How much does Kotlin cost?
    How much does Objective-C cost?
    Pricing unavailable
    Pricing unavailable