5 Min Read January 25, 2017

Parsing Simple Grammars in Scala With parboiled2

parboiled2 is a Macro-Based PEG Parser Generator written in Scala. It has become our preferred tool for creating parsers for simple grammars. It offers a fairly simple syntax for creating parsers and boasts significantly better performance over Scala Combinators. To illustrate its use, we will use this post to build a parser for a simplified […]

4 Min Read November 23, 2016

Ramping up on Finch: Avoiding Common Gotchas

While we have been using Scala for awhile at Threat Stack, we haven’t been overly satisfied with the HTTP servers that we have used. So a few months ago, we audited a number of options and ultimately decided to try out Finch. We chose Finch for its readable and idiomatic API for constructing HTTP endpoints, […]

8 Min Read October 4, 2016

Useful Scala Compiler Options, Part 3: Linting

In my previous two posts on Scala Compiler options, we saw a number that can improve your experience developing Scala. In this post I want to focus on one option in particular: -Xlint.If you thought the other options made your life better, this one will improve it by leaps and bounds.

5 Min Read August 26, 2016

Useful Scala Compiler Options Part 2: Advanced Language Features

Scala offers a number of advanced language features that are disabled by default. If you try to use any of them, the compiler will generate a warning informing you of their usage. There are a number of reasons that you might want to enable features (or keep them disabled). In this post, we will explore […]

6 Min Read August 9, 2016

Useful Scala Compiler Options for Better Scala Development: Part 1

At Threat Stack, we like to leverage our tools to the fullest. Since we use Scala, it only makes sense for us to always be looking into ways of getting the most out of the Scala Compiler to enhance our productivity. And, as it turns out, the Scala Compiler offers a number of features that makes […]