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

GNU Bash

1.3K
707
+ 1
8
Haskell

1.4K
1.2K
+ 1
527
Add tool

GNU Bash vs Haskell: What are the differences?

Developers describe GNU Bash as "Functional improvements over sh for both programming and interactive use". The Bourne Again SHell is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. On the other hand, Haskell is detailed as "An advanced purely-functional programming language". .

GNU Bash can be classified as a tool in the "Shells" category, while Haskell is grouped under "Languages".

According to the StackShare community, GNU Bash has a broader approval, being mentioned in 40 company stacks & 73 developers stacks; compared to Haskell, which is listed in 33 company stacks and 47 developer stacks.

Decisions about GNU Bash and Haskell
Justin Dorfman
Open Source Program Manager at Reblaze · | 1 upvote · 79.7K views

If you have a file (demo.txt) that has 3 columns:

Column-1    Column-2    Column-3
Row-1a      Row-2a      Row-3a         
Row-1b      Row-2b      Row-3b
Row-1c      Row-2c      Row-3c
Row-1d      Row-2d      Row-3d
Row-1e      Row-2e      Row-3e

and you want to only view the first column of the file in your CLI, run the following:

awk {'print $1'} demo.txt

Column-1
Row-1a
Row-1b
Row-1c
Row-1d
Row-1e

If you want to print the second column of demo.txt, just replace $1 with $2

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of GNU Bash
Pros of Haskell
  • 3
    Customizable
  • 3
    Powerful scripting language
  • 2
    Widely adopted
  • 0
    Cross platform
  • 90
    Purely-functional programming
  • 66
    Statically typed
  • 59
    Type-safe
  • 39
    Open source
  • 38
    Great community
  • 31
    Built-in concurrency
  • 30
    Built-in parallelism
  • 30
    Composable
  • 24
    Referentially transparent
  • 20
    Generics
  • 15
    Type inference
  • 15
    Intellectual satisfaction
  • 12
    If it compiles, it's correct
  • 8
    Flexible
  • 8
    Monads
  • 5
    Great type system
  • 4
    Proposition testing with QuickCheck
  • 4
    One of the most powerful languages *(see blub paradox)*
  • 4
    Purely-functional Programming
  • 3
    Highly expressive, type-safe, fast development time
  • 3
    Pattern matching and completeness checking
  • 3
    Great maintainability of the code
  • 3
    Fun
  • 3
    Reliable
  • 2
    Best in class thinking tool
  • 2
    Kind system
  • 2
    Better type-safe than sorry
  • 2
    Type classes
  • 1
    Predictable
  • 1
    Orthogonality

Sign up to add or upvote prosMake informed product decisions

Cons of GNU Bash
Cons of Haskell
  • 1
    Too Slow
  • 9
    Too much distraction in language extensions
  • 8
    Error messages can be very confusing
  • 5
    Libraries have poor documentation
  • 3
    No good ABI
  • 3
    No best practices
  • 2
    Poor packaging for apps written in it for Linux distros
  • 2
    Sometimes performance is unpredictable
  • 1
    Slow compilation
  • 1
    Monads are hard to understand

Sign up to add or upvote consMake informed product decisions

What is GNU Bash?

The Bourne Again SHell is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.

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

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

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

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

What tools integrate with GNU Bash?
What tools integrate with Haskell?

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

What are some alternatives to GNU Bash and Haskell?
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