↑ Best viewed this side up ↑
Dmitry Leskov

TIL That Layered Coffee Drinks Make Themsleves

I used to think that making a layered coffee drink takes as much care as pouring a layered cocktail. Got a glass mug the other day and discovered that the process is pretty simple.

Opening My First Ever Donations Season

"Start donating to the authors of free and open source programs that I am using" was one of my failed New Year resolutions on multiple occasions. It is not anymore, and I hope this post will inspire you to follow suit.

The Finite Laziness of Scala Streams

The official Haskell wiki discusses literally dozens of ways to produce a list of prime numbers, but the one that caught my attention the other day is not listed there. Its centerpiece is a fold of a recursively defined infinite list of infinite lists (lists are lazy in Haskell). In this post, I’ve documented my attempt to rewrite it in Scala using streams.

How I Would Have Price Positioned JetBrains Toolbox

Now that my previous post on the topic has got so much attention from Reddit users, as a software engineer turned marketer I feel obliged to follow up.

Read the rest of this entry »

What Microsoft Got Right That JetBrains Didn’t

Blog postsrants, angry tweets, comment threads hundreds of items long — the user community has unleashed quite some emotion onto JetBrains after the company’s decision to change the pricing model for its desktop products to 100% subscription-based. The news seems to have made the day for Eclipse guys, and at least one other commercial IDE vendor, though.

Read the rest of this entry »

Scala Stream Hygiene III: Scalaz EphemeralStream Fills Quite A Canyon

Scalaz, an open-source pure functional programming library for Scala, provides the EphemeralStream class that does not exhibit the memory leak issues inherent to the standard scala Stream. However, it carries its own set of problems: memory overheads, performance penalties, and application disk footprint increase.

Scala Stream Hygiene II: HotSpot Kicks In

Infinite Scala streams should be marked “not for production use”, even though you can get away with breaking most of the rules listed in Part I.

Scala Stream Hygiene I: Avoiding Memory Leaks

The standard Scala Stream class is essentially a lazy List with memoization. However, memoization is undesirable when defining infinite data structures. It is possible to avoid memoization of streams by following a set of five rules, described in this first post in a 3-part series.

Updated AddFLACs to Extract Track Metadata From Pathnames

Match your FLAC files pathnames against a regular expression, then refer to capture groups when specifying iTunes field values.

Retrieving a Web Site for Offline View Using Wget

is not so straightforward in today’s age of CDNs, widgets, and font embedded services.

« Older Entries |