How to compile a Direct2D linkable shader in Visual Studio

Effect shader linking is a Direct2D optimization that links multiple shaders together so that they can be rendered in a single pass. If you’re writing custom shaders, you want to ensure that they are linking compatible in order to take advantage of this optimization. The official documentation explains how to author and compile such effects,Continue reading “How to compile a Direct2D linkable shader in Visual Studio”

SimpleStream: a simpler way to use Java 8 Streams

When Java 8 came out last year, it finally introduced lambdas, a much-awaited language feature, and along with it, a new way to manipulate data in the form of streams. While streams make it significantly easier to perform aggregate operations on collections, common tasks still involve boilerplate code that could easily be eliminated. For example:Continue reading “SimpleStream: a simpler way to use Java 8 Streams”

Quick Implement plugin for Eclipse

If you use Eclipse for Java development, you’re probably familiar with the magic Ctrl+1 hotkey that provides all sorts of context-sensitive suggestions. One of the actions missing from the standard Java IDE is to quickly implement an interface when the cursor is hovering over its declaration. I tend to do this quite often, so I endedContinue reading “Quick Implement plugin for Eclipse”