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

Eta

39
12
+ 1
0
Swift

19.8K
13.1K
+ 1
1.3K
Add tool

Eta vs Swift: What are the differences?

# Introduction
In this markdown, we will compare the key differences between Eta and Swift.

1. **Language Paradigm**: Eta is a functional programming language that is based on Haskell, while Swift is a multi-paradigm language that supports both functional and object-oriented programming.
2. **Platform Support**: Eta is mainly used for building applications on the Java Virtual Machine (JVM), whereas Swift is primarily used for iOS, macOS, watchOS, and tvOS development.
3. **Syntax**: Eta's syntax is more closely aligned with Haskell, utilizing lazy evaluation and strong static typing, whereas Swift has a more familiar C-based syntax with added features like optionals and generics.
4. **Memory Management**: Eta relies on the garbage collection system for memory management, while Swift uses Automatic Reference Counting (ARC) to manage memory.
5. **Community Support**: Swift has a larger and more active community due to its association with Apple and its popularity among iOS developers, whereas Eta has a smaller community focused on functional programming enthusiasts.
6. **Development Tools**: Swift has extensive tooling support provided by Apple through Xcode, enabling developers to build and debug applications efficiently, while Eta has limited tooling support in comparison.

In Summary, Eta and Swift differ in their language paradigm, platform support, syntax, memory management approach, community size, and development tool availability.
Advice on Eta and Swift
Needs advice
on
JavaScriptJavaScriptReactReact
and
SwiftSwift

Hey guys, I learned the basics (OOP, data structures & some algorithms) with Python, but now I want to learn iOS development. I am considering to learn Swift, but I am afraid how the native mobile development will die out because of the cross-platform frameworks and reviews. My idea is to learn web development first and then learn React Native, and after all of that, finally Swift. What do you think about this roadmap? Should I just learn Swift first due to the pros of the native apps?

See more
Replies (7)
Recommends
on
SwiftSwift

Native apps are not going to die. Especially not Swift because now Swift can be used to develop cross platform macOS and iOS apps due to the new macs having M1 chips.

See more

The decision comes down to your goals and needs.

If you want to be able to create any kind of iOS app, simple or complex, learn Swift. It's indispensable if you're building specialised apps like video editing, augmented reality, machine learning or anything that uses iOS-specific APIs such as App Clips.

But if you just want to create apps that make HTTP requests and display static content such as text or basic video and music, React Native would do just fine, and you can publish the same code to Android. This is a no-brainer choice if you're on a low budget.

And if you know both, you can use both in the same app. You can add React Native screens or components inside a Swift app.

See more
Noel Broda
Founder, CEO, CTO at NoFilter · | 4 upvotes · 74.3K views

"Should I just learn Swift first due to the pros of the native apps?". React Native builds Native Apps. Technologies like ionic does NOT build native apps, but React Native does it.

Learning Swift seems to be a really bad idea from my point of view. Learning JavaScript is all what you need. Why? Because then Frontend, Backend, and Mobile Dev, is simple, because it's all JavaScript.

See more
Recommends
on
SwiftSwift

I would suggest to bet more on Swift! I have developed act in React and Javascript in the past and played around with Swift a little... the performances of native code vs Javascript are way too slow compared to swift native app!

Now even more than ever M1 chip will give a boost, but if it gives a boost to JS it will give a boost also to native apps. I would seriously consider Swift more than Javascript, React or even Electron!

See more
Recommends
on
SwiftSwift

If asking about employment opportunities, native will never die out. There will always be opportunity for work in native mobile applications. There are also many advantages of using native over cross platform such as always having access to the latest APIs and developer libraries that may not be available to cross-platform without some native development involved or can wait until someone develops a bridge for you.

If you are asking about what you should develop with first? It really depends. React-Native is great for building proto-types or basic MVP application that doesn't require any of the latest and greatest features Apple has to offer at the moment. But if you're asking what to learn? I would say native will always give you a larger advantage as it will give you a good foundation in mobile development and provide you access to the latest native libraries. It is also a useful skill that can give you an edge in cross-platform mobile like react-native because you will most definitely encounter a situation where you will have to go down to the to native side to extend functionality or utilize APIs that are not yet out of the box.

See more
Carlos Iglesias
Recommends

Mobile Native Development Apps will never die. Cross Plataform like React Native only exists to save time and costs for startups mainly, which is extraordinary, and indispensable often of course. But when the App get popular enough, it will probably will move to Native Development. Several improvements.

See more
Recommends
on
JavaScriptJavaScriptReactReact

Less than 20% of the market is IOS, the rest is Android. Any developer must produce for Android and maybe support IOS. If you prototype on IOS you have to restart again for Android. React and JavaScript will run on IOS.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Eta
Pros of Swift
    Be the first to leave a pro
    • 259
      Ios
    • 180
      Elegant
    • 126
      Not Objective-C
    • 107
      Backed by apple
    • 93
      Type inference
    • 61
      Generics
    • 54
      Playgrounds
    • 49
      Semicolon free
    • 38
      OSX
    • 36
      Tuples offer compound variables
    • 24
      Clean Syntax
    • 24
      Easy to learn
    • 22
      Open Source
    • 21
      Beautiful Code
    • 20
      Functional
    • 12
      Dynamic
    • 12
      Linux
    • 11
      Protocol-oriented programming
    • 10
      Promotes safe, readable code
    • 9
      No S-l-o-w JVM
    • 8
      Explicit optionals
    • 7
      Storyboard designer
    • 6
      Optionals
    • 6
      Type safety
    • 5
      Super addicting language, great people, open, elegant
    • 5
      Best UI concept
    • 4
      Its friendly
    • 4
      Highly Readable codes
    • 4
      Fail-safe
    • 4
      Powerful
    • 4
      Faster and looks better
    • 4
      Swift is faster than Objective-C
    • 4
      Feels like a better C++
    • 3
      Easy to learn and work
    • 3
      Much more fun
    • 3
      Protocol extensions
    • 3
      Native
    • 3
      Its fun and damn fast
    • 3
      Strong Type safety
    • 3
      Easy to Maintain
    • 2
      Protocol as type
    • 2
      All Cons C# and Java Swift Already has
    • 2
      Esay
    • 2
      MacOS
    • 2
      Type Safe
    • 2
      Protocol oriented programming
    • 1
      Can interface with C easily
    • 1
      Actually don't have to own a mac
    • 1
      Free from Memory Leak
    • 1
      Swift is easier to understand for non-iOS developers.
    • 1
      Numbers with underbar
    • 1
      Optional chain
    • 1
      Great for Multi-Threaded Programming
    • 1
      Runs Python 8 times faster
    • 1
      Objec

    Sign up to add or upvote prosMake informed product decisions

    Cons of Eta
    Cons of Swift
      Be the first to leave a con
      • 5
        Must own a mac
      • 2
        Memory leaks are not uncommon
      • 1
        Very irritatingly picky about things that’s
      • 1
        Complicated process for exporting modules
      • 1
        Its classes compile to roughly 300 lines of assembly
      • 1
        Is a lot more effort than lua to make simple functions
      • 0
        Overly complex options makes it easy to create bad code

      Sign up to add or upvote consMake informed product decisions

      What is Eta?

      The Eta programming language is a dialect of Haskell which runs on the JVM.

      What is 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.

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

      What companies use Eta?
      What companies use Swift?
      See which teams inside your own company are using Eta or Swift.
      Sign up for StackShare EnterpriseLearn More

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

      What tools integrate with Eta?
      What tools integrate with Swift?

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

      Blog Posts

      What are some alternatives to Eta and Swift?
      JavaScript
      JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
      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.
      HTML5
      HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
      PHP
      Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
      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!
      See all alternatives