February 2012
8 posts
3 tags
Some ways to write function literals in Scala
Just cuz iheardata asked and I can’t find a set of examples I like.
(i: Int) => i + 1
{ (i) => i + 1 } : (Int => Int)
( (i) => i + 1 ) : (Int => Int)
{ i => i + 1 } : (Int => Int)
( i => i + 1 ) : (Int => Int)
{ _ + 1 } : (Int => Int)
( _ + 1 ) : (Int => Int)
(_: Int) + 1
5 tags
Fables of the Reconstruction Part 3: Leibniz saw...
Things were going pretty well with Dispatch reboot (part 1,
part 2) . Using async-http-client as an underlying library
was a breath of fresh air, and having its interfaces available to
client applications is a definite improvement over the conceptual
disconnect that existing versions of Dispatch impose with
HttpComponent. But it wasn’t until I started to riff on the Java
client’s...
4 tags
A panel of professional Scala users the ny-scala meetup
Adding Scala to Your Company's Software Stack
mobocracy:
The ny-scala meetup this Monday will be discussing Scala adoption in a business environment. I’ll be on a panel along with folks from Foursquare, Meetup, Tadpad and The Ladders discussing our various experiences. Hope to see you there. Oh, here is the link as well.
5 tags
Making Meetup: New I/O sometimes better than Old... →
makingmeetup:
We decided to try repackaging an internal service, which was running a servlet container, in a custom built NIO server. Its baseline request load fluctuates with user traffic on the site, but bursts of activity are produced by daemon processes, as shown in this graph of requests per second:
Another chart, and some explanation of what it represents, is found in the original...
3 tags
HeapAudit – JVM Memory Profiler for the Real World →
HeapAudit is a foursquare open source project designed for understanding JVM heap allocations. It is implemented as a Java agent built on top of ASM.
Neat.
4 tags
Fables of the Reconstruction Part 2: Have you...
When I realized the time had come (in part 1) to move on from Dispatch’s
original underlying transport, I knew which ship I would jump to. In
Unfiltered we use Netty for serving HTTP with great success. But
instead of working with the raw Netty interfaces, Dispatch would be
able to benefit from the well regarded async-http-client’s
trailblazing in Java. The client even supports other...
2 tags