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
Feb 27th
4 notes
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...
Feb 20th
3 notes
4 tags
WatchWatch
A panel of professional Scala users the ny-scala meetup
Feb 15th
3 notes
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.
Feb 13th
28 notes
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...
Feb 8th
7 notes
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.
Feb 6th
6 notes
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...
Feb 4th
2 notes
2 tags
Feb 3rd
4 notes