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

Erlang

1.3K
747
+ 1
345
JavaScript

361.5K
274.9K
+ 1
8.1K
Python

245.2K
200.1K
+ 1
6.9K

Erlang vs JavaScript vs Python: What are the differences?

  1. Concurrency Model: Erlang is designed for building highly scalable and fault-tolerant systems with a built-in concurrency model based on lightweight processes that communicate via message passing. JavaScript and Python, on the other hand, use a threading model for concurrency, which can be less efficient and more prone to errors.

  2. Syntax: Erlang has a unique syntax that may appear strange to developers coming from more mainstream languages like JavaScript and Python. It uses pattern matching extensively and omits traditional looping constructs like for and while loops. JavaScript and Python have more conventional syntax that is easier for beginners to grasp.

  3. Type System: Erlang is a dynamically typed language, meaning that variable types are determined at runtime. JavaScript also has dynamic typing, while Python has strong, dynamic typing. This means that Python will throw errors if variable types are not compatible, which can help catch bugs earlier in development.

  4. Error Handling: In Erlang, errors are treated as “failures” and are expected to occur in a distributed system. The language provides constructs like try/catch for handling errors gracefully. JavaScript and Python have similar error-handling mechanisms, but the approach to handling errors in Erlang is more ingrained into the language design.

  5. Standard Library: Erlang comes with a powerful set of tools and libraries for building distributed and fault-tolerant systems out of the box. JavaScript and Python also have extensive standard libraries, but they are more focused on general-purpose programming rather than specific use cases like Erlang.

  6. Community and Support: Erlang has a smaller but dedicated community that is focused on building scalable and fault-tolerant systems. JavaScript and Python have large, diverse communities with a wide range of libraries and resources available for various tasks beyond concurrency and fault-tolerance.

In Summary, Erlang differs from JavaScript and Python in its concurrency model, syntax, type system, error handling, standard library, and community support.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Erlang
Pros of JavaScript
Pros of Python
  • 62
    Real time, distributed applications
  • 62
    Concurrency Support
  • 58
    Fault tolerance
  • 36
    Soft real-time
  • 32
    Open source
  • 22
    Message passing
  • 22
    Functional programming
  • 16
    Immutable data
  • 14
    Works as expected
  • 6
    Facebook chat uses it at backend
  • 5
    Practical
  • 5
    Knowledgeable community
  • 4
    Bullets included
  • 1
    WhatsApp uses it at backend
  • 1.7K
    Can be used on frontend/backend
  • 1.5K
    It's everywhere
  • 1.2K
    Lots of great frameworks
  • 898
    Fast
  • 746
    Light weight
  • 425
    Flexible
  • 392
    You can't get a device today that doesn't run js
  • 286
    Non-blocking i/o
  • 237
    Ubiquitousness
  • 191
    Expressive
  • 55
    Extended functionality to web pages
  • 49
    Relatively easy language
  • 46
    Executed on the client side
  • 30
    Relatively fast to the end user
  • 25
    Pure Javascript
  • 21
    Functional programming
  • 15
    Async
  • 13
    Full-stack
  • 12
    Future Language of The Web
  • 12
    Setup is easy
  • 12
    Its everywhere
  • 11
    Because I love functions
  • 11
    JavaScript is the New PHP
  • 10
    Like it or not, JS is part of the web standard
  • 9
    Easy
  • 9
    Can be used in backend, frontend and DB
  • 9
    Expansive community
  • 9
    Everyone use it
  • 8
    Easy to hire developers
  • 8
    Most Popular Language in the World
  • 8
    For the good parts
  • 8
    Can be used both as frontend and backend as well
  • 8
    No need to use PHP
  • 8
    Powerful
  • 7
    Evolution of C
  • 7
    Its fun and fast
  • 7
    It's fun
  • 7
    Nice
  • 7
    Versitile
  • 7
    Hard not to use
  • 7
    Popularized Class-Less Architecture & Lambdas
  • 7
    Agile, packages simple to use
  • 7
    Supports lambdas and closures
  • 7
    Love-hate relationship
  • 7
    Photoshop has 3 JS runtimes built in
  • 6
    1.6K Can be used on frontend/backend
  • 6
    Client side JS uses the visitors CPU to save Server Res
  • 6
    It let's me use Babel & Typescript
  • 6
    Easy to make something
  • 6
    Can be used on frontend/backend/Mobile/create PRO Ui
  • 5
    Client processing
  • 5
    What to add
  • 5
    Everywhere
  • 5
    Scope manipulation
  • 5
    Function expressions are useful for callbacks
  • 5
    Stockholm Syndrome
  • 5
    Promise relationship
  • 5
    Clojurescript
  • 4
    Only Programming language on browser
  • 4
    Because it is so simple and lightweight
  • 1
    Easy to learn and test
  • 1
    Easy to understand
  • 1
    Not the best
  • 1
    Subskill #4
  • 1
    Hard to learn
  • 1
    Test2
  • 1
    Test
  • 1
    Easy to learn
  • 0
    Hard 彤
  • 1.2K
    Great libraries
  • 963
    Readable code
  • 847
    Beautiful code
  • 788
    Rapid development
  • 691
    Large community
  • 438
    Open source
  • 393
    Elegant
  • 282
    Great community
  • 273
    Object oriented
  • 221
    Dynamic typing
  • 77
    Great standard library
  • 60
    Very fast
  • 55
    Functional programming
  • 50
    Easy to learn
  • 46
    Scientific computing
  • 35
    Great documentation
  • 29
    Productivity
  • 28
    Matlab alternative
  • 28
    Easy to read
  • 24
    Simple is better than complex
  • 20
    It's the way I think
  • 19
    Imperative
  • 18
    Very programmer and non-programmer friendly
  • 18
    Free
  • 17
    Machine learning support
  • 17
    Powerfull language
  • 16
    Fast and simple
  • 14
    Scripting
  • 12
    Explicit is better than implicit
  • 11
    Ease of development
  • 10
    Clear and easy and powerfull
  • 9
    Unlimited power
  • 8
    Import antigravity
  • 8
    It's lean and fun to code
  • 7
    Print "life is short, use python"
  • 7
    Python has great libraries for data processing
  • 6
    High Documented language
  • 6
    I love snakes
  • 6
    Readability counts
  • 6
    Rapid Prototyping
  • 6
    Now is better than never
  • 6
    Although practicality beats purity
  • 6
    Flat is better than nested
  • 6
    Great for tooling
  • 6
    There should be one-- and preferably only one --obvious
  • 6
    Fast coding and good for competitions
  • 5
    Web scraping
  • 5
    Lists, tuples, dictionaries
  • 5
    Great for analytics
  • 4
    Beautiful is better than ugly
  • 4
    Easy to learn and use
  • 4
    Easy to setup and run smooth
  • 4
    Multiple Inheritence
  • 4
    CG industry needs
  • 4
    Socially engaged community
  • 4
    Complex is better than complicated
  • 4
    Plotting
  • 4
    Simple and easy to learn
  • 3
    List comprehensions
  • 3
    Powerful language for AI
  • 3
    Flexible and easy
  • 3
    It is Very easy , simple and will you be love programmi
  • 3
    Many types of collections
  • 3
    If the implementation is easy to explain, it may be a g
  • 3
    If the implementation is hard to explain, it's a bad id
  • 3
    Special cases aren't special enough to break the rules
  • 3
    Pip install everything
  • 3
    No cruft
  • 3
    Generators
  • 3
    Import this
  • 2
    Batteries included
  • 2
    Securit
  • 2
    Can understand easily who are new to programming
  • 2
    Should START with this but not STICK with This
  • 2
    A-to-Z
  • 2
    Because of Netflix
  • 2
    Only one way to do it
  • 2
    Better outcome
  • 2
    Good for hacking
  • 1
    Best friend for NLP
  • 1
    Sexy af
  • 1
    Procedural programming
  • 1
    Automation friendly
  • 1
    Slow
  • 0
    Keep it simple
  • 0
    Powerful
  • 0
    Ni

Sign up to add or upvote prosMake informed product decisions

Cons of Erlang
Cons of JavaScript
Cons of Python
  • 1
    Languange is not popular demand
  • 22
    A constant moving target, too much churn
  • 20
    Horribly inconsistent
  • 15
    Javascript is the New PHP
  • 9
    No ability to monitor memory utilitization
  • 8
    Shows Zero output in case of ANY error
  • 7
    Thinks strange results are better than errors
  • 6
    Can be ugly
  • 3
    No GitHub
  • 2
    Slow
  • 0
    HORRIBLE DOCUMENTS, faulty code, repo has bugs
  • 53
    Still divided between python 2 and python 3
  • 28
    Performance impact
  • 26
    Poor syntax for anonymous functions
  • 22
    GIL
  • 19
    Package management is a mess
  • 14
    Too imperative-oriented
  • 12
    Hard to understand
  • 12
    Dynamic typing
  • 12
    Very slow
  • 8
    Indentations matter a lot
  • 8
    Not everything is expression
  • 7
    Incredibly slow
  • 7
    Explicit self parameter in methods
  • 6
    Requires C functions for dynamic modules
  • 6
    Poor DSL capabilities
  • 6
    No anonymous functions
  • 5
    Fake object-oriented programming
  • 5
    Threading
  • 5
    The "lisp style" whitespaces
  • 5
    Official documentation is unclear.
  • 5
    Hard to obfuscate
  • 5
    Circular import
  • 4
    Lack of Syntax Sugar leads to "the pyramid of doom"
  • 4
    The benevolent-dictator-for-life quit
  • 4
    Not suitable for autocomplete
  • 2
    Meta classes
  • 1
    Training wheels (forced indentation)

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Erlang?

Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems.

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

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

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

What companies use Erlang?
What companies use JavaScript?
What companies use Python?

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

What tools integrate with Erlang?
What tools integrate with JavaScript?
What tools integrate with Python?

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

Blog Posts

Sep 29 2020 at 7:36PM

WorkOS

PythonSlackG Suite+17
6
3160
PythonDockerKubernetes+7
3
1160
May 6 2020 at 6:34AM

Pinterest

JavaScriptC++Varnish+6
5
3490
PythonDockerKubernetes+14
12
2657
JavaScriptGitHubReact+12
5
4205
What are some alternatives to Erlang, JavaScript, and Python?
Elixir
Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.
Haskell
It is a general purpose language that can be used in any domain and use case, it is ideally suited for proprietary business logic and data analysis, fast prototyping and enhancing existing software environments with correct code, performance and scalability.
Golang
Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.
Clojure
Clojure is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system.
Akka
Akka is a toolkit and runtime for building highly concurrent, distributed, and resilient message-driven applications on the JVM.
See all alternatives