Varun Ramesh's Blog

#java


No More Primitives - What Python and Java Get Wrong

March 14th

Many languages distinguish between primitives on the stack and objects on the heap. Others only have objects, and thus require primitives to aways be boxed. It turns out you can get the best of both worlds.

Composable, Programmatic Animations for Games

September 4th

This post describes a method for creating animations in games programmatically, while still retaining composability.

Unifying Dynamic Type Tests and Type Refinement

September 3rd

Some typecheckers understand dynamic type tests, thus avoiding downcasting.

Automatically Promoting Constructor Parameters to Fields

March 30th

When writing object-oriented code, you frequently want a constructor that takes in values and assigns them to object fields. Some languages reduce the repetition required for this.