Get Advice Icon

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

Erlang
Erlang

412
342
+ 1
250
Grain
Grain

2
8
+ 1
0
Add tool

Erlang vs Grain: What are the differences?

Erlang: A programming language used to build massively scalable soft real-time systems with requirements on high availability. 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; Grain: A strongly-typed functional programming language. Grain is a strongly-typed functional programming language built for the modern web. Unlike other languages used on the web today (like TypeScript or Elm), Grain doesn鈥檛 compile into JavaScript. Grain complies all the way down to WebAssembly, and is supported by a tiny JavaScript runtime to give Grain access to web features that WebAssembly doesn鈥檛 yet support.

Erlang and Grain can be categorized as "Languages" tools.

Erlang and Grain are both open source tools. It seems that Erlang with 7.74K GitHub stars and 2.1K forks on GitHub has more adoption than Grain with 1.21K GitHub stars and 21 GitHub forks.

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 Grain?

Grain is a strongly-typed functional programming language built for the modern web. Unlike other languages used on the web today (like TypeScript or Elm), Grain doesn鈥檛 compile into JavaScript. Grain complies all the way down to WebAssembly, and is supported by a tiny JavaScript runtime to give Grain access to web features that WebAssembly doesn鈥檛 yet support.
Get Advice Icon

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

Why do developers choose Erlang?
Why do developers choose Grain?
    Be the first to leave a pro

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

      Be the first to leave a con
        Be the first to leave a con
        What companies use Erlang?
        What companies use Grain?
          No companies found

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

          What tools integrate with Erlang?
          What tools integrate with Grain?
            No integrations found

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

            What are some alternatives to Erlang and Grain?
            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
            Go
            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.
            OCaml
            It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters,
            See all alternatives
            Decisions about Erlang and Grain
            StackShare Editors
            StackShare Editors
            Erlang
            Erlang
            Elixir
            Elixir
            Consul
            Consul

            Postmates built a tool called Bazaar that helps onboard new partners and handles several routine tasks, like nightly emails to merchants alerting them about items that are out of stock.

            Since they ran Bazaar across multiple instances, the team needed to avoid sending multiple emails to their partners by obtaining lock across multiple hosts. To solve their challenge, they created and open sourced ConsulMutEx, and an Elixir module for acquiring and releasing locks with Consul and other backends.

            It works with Consul鈥檚 KV store, as well as other backends, including ets, Erlang鈥檚 in-memory database.

            See more
            Sebastian G臋bski
            Sebastian G臋bski
            CTO at Shedul/Fresha | 7 upvotes 38.5K views
            atFresha EngineeringFresha Engineering
            AppSignal
            AppSignal
            Hex
            Hex
            Credo
            Credo
            Erlang
            Erlang
            Phoenix Framework
            Phoenix Framework
            Elixir
            Elixir

            Another major decision was to adopt Elixir and Phoenix Framework - the DX (Developer eXperience) is pretty similar to what we know from RoR, but this tech is running on the top of rock-solid Erlang platform which is powering planet-scale telecom solutions for 20+ years. So we're getting pretty much the best from both worlds: minimum friction & smart conventions that eliminate the excessive boilerplate AND highly concurrent EVM (Erlang's Virtual Machine) that makes all the scalability problems vanish. The transition was very smooth - none of Ruby developers we had decided to leave because of Elixir. What is more, we kept recruiting Ruby developers w/o any requirement regarding Elixir proficiency & we still were able to educate them internally in almost no time. Obviously Elixir comes with some more tools in the stack: Credo , Hex , AppSignal (required to properly monitor BEAM apps).

            See more
            Interest over time
            Reviews of Erlang and Grain
            No reviews found
            How developers use Erlang and Grain
            Avatar of Analytical Informatics
            Analytical Informatics uses ErlangErlang

            The central business logic and ETL engine is written in Erlang.

            Avatar of Mathias Vonende
            Mathias Vonende uses ErlangErlang

            Very nice programming language, used for backend integration.

            Avatar of Ryan Jennings
            Ryan Jennings uses ErlangErlang

            foundation VM for phoenix framework

            Avatar of Software Joint
            Software Joint uses ErlangErlang

            Cowboy web server serves content

            Avatar of KongHack Inc.
            KongHack Inc. uses ErlangErlang

            Custom plugins for ejabberd

            How much does Erlang cost?
            How much does Grain cost?
            Pricing unavailable
            Pricing unavailable
            News about Erlang
            More news
            News about Grain
            More news