the development SPEED of ruby

with the SAFETY

of STATIC TYPING

Performance. Reloaded.

We also show that with Mio, McNettle (an SDN controller written in Haskell) can scale effectively to 40+ cores, reach a thoroughput of over 20 million new requests per second on a single machine, and hence become the fastest of all existing SDN controllers.[1]

The new IO Manager in GHC 7.8 improves realistic web server throughput by over 6.5x and expected response time by 5.7x with room to grow.[2]

 

Digestive Functors

Form processing has never been better. A library based on Formlets, Digestive Functors enables you to validate and render your forms, including validating straight JSON requests.

<form action="/tweet" method="POST" enctype="application/x-www-form-urlencoded">

    <label for="tweet.username">Username: </label>
    <input type="text" id="tweet.username" name="tweet.username" value="">
    <br>

    <label for="tweet.timestamp">Timestamp: </label>
    <input type="number" min="0" step="1" pattern="\d+" id="tweet.timestamp" name="tweet.timestamp" value="">
    <br>

    <label for="tweet.content">Content: </label>
    <textarea id="tweet.content" name="tweet.content"></textarea>
    <br>

    <input value="Submit" type="submit">
</form>

The Future

As Snap grows, so will this book. Planned chapters include stream processing with io-streams, Streaming JSON, writing your own Snaplets and a deeper look at the availible database Snaplets.

The book comes with multiple projects filled with executable example code, Designed to make it easier to get up and running faster.

The Book Covers:

<
[1,2][pdf] Performance
http://haskell.cs.yale.edu/wp-content/uploads/2013/08/hask035-voellmy.pdf