Get Advice Icon

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

AWK

559
49
+ 1
0
Scala

11K
7.8K
+ 1
1.5K
Add tool

AWK vs Scala: What are the differences?

What is AWK? A language for text processing, data extraction and reporting. A data-driven scripting language consisting of a set of actions to be taken against streams of textual data – either run directly on files or used as part of a pipeline – for purposes of extracting or transforming text, such as producing formatted reports.

What is Scala? A pure-bred object-oriented language that runs on the JVM. 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.

AWK and Scala belong to "Languages" category of the tech stack.

AWK and Scala are both open source tools. Scala with 11.9K GitHub stars and 2.76K forks on GitHub appears to be more popular than AWK with 206 GitHub stars and 41 GitHub forks.

According to the StackShare community, Scala has a broader approval, being mentioned in 557 company stacks & 1895 developers stacks; compared to AWK, which is listed in 3 company stacks and 7 developer stacks.

Advice on AWK and Scala
Needs advice
on
GolangGolangNode.jsNode.js
and
ScalaScala

Finding the best server-side tool for building a personal information organizer that focuses on performance, simplicity, and scalability.

performance and scalability get a prototype going fast by keeping codebase simple find hosting that is affordable and scales well (Java/Scala-based ones might not be affordable)

See more
Replies (1)
David Annez
VP Product at loveholidays · | 5 upvotes · 317.8K views
Recommends
on
Node.jsNode.js
at

I've picked Node.js here but honestly it's a toss up between that and Go around this. It really depends on your background and skillset around "get something going fast" for one of these languages. Based on not knowing that I've suggested Node because it can be easier to prototype quickly and built right is performant enough. The scaffolding provided around Node.js services (Koa, Restify, NestJS) means you can get up and running pretty easily. It's important to note that the tooling surrounding this is good also, such as tracing, metrics et al (important when you're building production ready services).

You'll get more scalability and perf from go, but balancing them out I would say that you'll get pretty far with a well built Node.JS service (our entire site with over 1.5k requests/m scales easily and holds it's own with 4 pods in production.

Without knowing the scale you are building for and the systems you are using around it it's hard to say for certain this is the right route.

See more
Decisions about AWK and Scala

We needed to incorporate Big Data Framework for data stream analysis, specifically Apache Spark / Apache Storm. The three options of languages were most suitable for the job - Python, Java, Scala.

The winner was Python for the top of the class, high-performance data analysis libraries (NumPy, Pandas) written in C, quick learning curve, quick prototyping allowance, and a great connection with other future tools for machine learning as Tensorflow.

The whole code was shorter & more readable which made it easier to develop and maintain.

See more
Justin Dorfman
Open Source Program Manager at Reblaze · | 1 upvote · 91.6K 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
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of AWK
Pros of Scala
    Be the first to leave a pro
    • 188
      Static typing
    • 178
      Pattern-matching
    • 175
      Jvm
    • 172
      Scala is fun
    • 138
      Types
    • 95
      Concurrency
    • 88
      Actor library
    • 86
      Solve functional problems
    • 81
      Open source
    • 80
      Solve concurrency in a safer way
    • 44
      Functional
    • 24
      Fast
    • 23
      Generics
    • 18
      It makes me a better engineer
    • 17
      Syntactic sugar
    • 13
      Scalable
    • 10
      First-class functions
    • 10
      Type safety
    • 9
      Interactive REPL
    • 8
      Expressive
    • 7
      SBT
    • 6
      Case classes
    • 6
      Implicit parameters
    • 4
      Rapid and Safe Development using Functional Programming
    • 4
      JVM, OOP and Functional programming, and static typing
    • 4
      Object-oriented
    • 4
      Used by Twitter
    • 3
      Functional Proframming
    • 2
      Spark
    • 2
      Beautiful Code
    • 2
      Safety
    • 2
      Growing Community
    • 1
      DSL
    • 1
      Rich Static Types System and great Concurrency support
    • 1
      Naturally enforce high code quality
    • 1
      Akka Streams
    • 1
      Akka
    • 1
      Reactive Streams
    • 1
      Easy embedded DSLs
    • 1
      Mill build tool
    • 0
      Freedom to choose the right tools for a job

    Sign up to add or upvote prosMake informed product decisions

    Cons of AWK
    Cons of Scala
      Be the first to leave a con
      • 11
        Slow compilation time
      • 7
        Multiple ropes and styles to hang your self
      • 6
        Too few developers available
      • 4
        Complicated subtyping
      • 2
        My coworkers using scala are racist against other stuff

      Sign up to add or upvote consMake informed product decisions

      368
      33K
      2.8K
      11.9K
      112.4K

      What is AWK?

      A data-driven scripting language consisting of a set of actions to be taken against streams of textual data – either run directly on files or used as part of a pipeline – for purposes of extracting or transforming text, such as producing formatted reports.

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

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

      What companies use AWK?
      What companies use Scala?
      Manage your open source components, licenses, and vulnerabilities
      Learn More

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

      What tools integrate with AWK?
      What tools integrate with Scala?

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

      Blog Posts

      Aug 28 2019 at 3:10AM

      Segment

      PythonJavaAmazon S3+16
      7
      2674
      DockerAmazon EC2Scala+8
      6
      2795
      What are some alternatives to AWK and Scala?
      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.
      Perl
      Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.
      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.
      Node.js
      Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
      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.
      See all alternatives