You are not signed in. Sign in.
$$\int_{0}^{\pi}sin x dx$$

The first thing I try to do when learning a new language is to code-up a version of Conway's Game of Life. It's a good way of getting familiar with syntax and how a language handles some core elements like data-structures, flow control and graphics. I've done it now in Scheme, Python, Java, C++, even Haskell. (The latter being an interesting but ultimately masochistic exercise. Perhaps bf should be the next stop.) Python's still my goto language (geddit?) but I've got to say I have never found this exercise so easy and intuitive as I just did with my new-found Löve.

Löve is a 2d game engine for the Lua scripting language. It provides hooks for the key processes of graphical applications like loading, updating, event handling and drawing, and some great libraries for handling other common tasks. And the developers and community appear to have quite the cute sense of humour.

I've not coded in Lua before but I am getting to like its clean, clean syntax and minimalist approach. There aren't a million types and structures with their own rules to learn about. In fact there's really only one structure, the table, which is something like a Python dictionary. Functions in Lua are first-class objects so you can stick them in a table along with other stuff if you like it OO-ey. And it does tail-call elimination for when you want to get recursive.

You should definitely check out Löve if you like that sort of thing. If you're curious, you can find my life implementation here. Now I'm off to start prototyping that killer app. (Hint: it involves cats. And aliens.)

I have a great idea for a new game-show. We get a bunch of stupid yet blameless people and we stick them in a box. Then we poke them with sticks until they start crying. "That's barbaric," you say. "Nobody will watch that." Ah, but that's the clever part. We make it so kitsch that everyone will get to tell themselves they're watching ironically.

I think I live in a society that actually constitutes a finely honed machine for detecting our every urge, whether it be for acquisition or for rebellion, for productivity or idleness, and instantly selling back to us its own sanitised version. "What did you do during the war, when capitalism was stealing our dreams and sterilising them for profit?" Oh, I wrote a strongly worded yet ultimately impotent blog post.

Tag cloud:

Outbound links: