ListenableFuture vs CompletableFuture – a comparison

In my previous blog post I wrote about how Google Guava’s ListenableFuture is an improvement over Java 6’s Future class. But Java 8 ships with a CompletableFuture class that brings much of the same benefits into the standard Java API. The below code example (again with inline comments) shows how to use CompletableFuture to implement…… Continue reading ListenableFuture vs CompletableFuture – a comparison

How is Google Guava ListenableFuture better than Java Future?

Google Guava’s concurrency classes provide some advantages over using Java’s default classes. Guava’s Futures offer the following benefits: You can add “listeners” to the result of a Future’s success or failure, instead of explicitly checking for the return of the Future.get(), handling exceptions and so onYou can chain multiple asynchronous pieces of code together using…… Continue reading How is Google Guava ListenableFuture better than Java Future?

Lessons learnt building data pipelines — 1

It has been a few years since I embarked on what was then trendily called “data engineering”. That title — and the associated work — was an outgrowth of a tendency for computing systems to accumulate vastly more data than used to be the case before, and more importantly, try to extract business value by sifting through it. Nowadays…… Continue reading Lessons learnt building data pipelines — 1

NIPS 2017 is exciting even if you don’t work in AI

I found out about the just concluded NIPS 2017 conference through a mention on my Twitter timeline. I’d heard this was a premier venue for presenting research in artificial intelligence, so I clicked through to the #NIPS2017 hashtag. The superlatives being thrown around to describe this year’s edition of the event roused me enough to…… Continue reading NIPS 2017 is exciting even if you don’t work in AI

An unbeatable perk of the Bay Area: its meetups and conferences

One unbeatable perk of living in the San Francisco Bay Area is the sheer number and variety of technical events you get to attend and the novelty of the ideas you get exposed to at such events. Whether it is a new framework or programming language, or an entirely new way of thinking about problems,…… Continue reading An unbeatable perk of the Bay Area: its meetups and conferences