> 140

Posts Tagged ‘programming’

No Timetravel In Haskell

In English, Programming on April 16, 2012 at 3:15 am

Not to bore you with long forewords, I’ll just state that traveling to the future is trivial. Just freeze yourself or preserve your state some other way, wake up the same at a later point in time et voilà, timetravel. It’s so easy I actually did it with the leftovers from last nights dinner. And if you managed to duplicate yourself earlier somehow, you could even greet your older self. No paradox involved. Every monad can do that.

But traveling back in time (as I showed above, the only “proper” form of timetravel) is a completely different game. Read the rest of this entry »

Contravariant Traits in Scala or “Help Rahul”

In English, Programming on November 15, 2010 at 9:48 pm

Today I posted a little tweet expressing my happiness about mastering contravariants in scala. Rahul contacted me asking for a little blog post about this (1, 2).

So here is my modest attempt to tell the world about contravariants.
Edit: and it’s “a little bit” longer than I thought it would be 😉

If you’re Rahul then this is specially for you.
If you’re not Rahul but interested in contravariants in scala, regard yourself as Rahul and this is specially for you.
Read the rest of this entry »