In TypeScript, it’s often useful to define interfaces or complex (structured) types whose properties (or keys) may only be values of a previously defined enum
Continue readingCategory: Dynamic scripting
Universal getter for plain JS objects.
Many times in JavaScript we have to reach deep into objects to access fields that could possibly not be there at all; for example let’s
Continue readingQuickly filtering large lists of texts.
Recently, I had to make a mock-up of a filtering function (something I need for a project I work on) so I can show-case it
Continue readingJS classes for the masses.
Following on an older post of mine, I decided to write a new article about an(other) implementation of OOP Classes in JavaScript. This is something
Continue readingLua-TTyrant: a TokyoTyrant binding for Lua.
Some time ago I started a small project to implement a C-to-Lua binding of the TokyoTyrant library, called “lua-ttyrant“. A few days ago, while working
Continue readingA simple(r) approach for class-based OOP in JavaScript.
Like others before me, I found JavaScript’s prototype-based OOP support – while very powerful – quite cumbersome in some situations where I needed a certain
Continue readingCommand-line option parser in JavaScript.
Here’s a small but very effective command-line option parser written in JavaScript (uses NodeJs). You can get the up-to-date source code at http://gist.github.com/982499. I wrote
Continue readingCase study: fixed number of iterations with LPeg
Words seem to fail to describe just how awesome LPeg is. Designed as a Lua implementation of the PEG concept, it is a true programming
Continue readingLua2C, an updated version
I know I have been “missing in action” lately but I am working furiously, and I seem to have too little time for my blog
Continue reading