The Shoes of the Fisherman's Wife Are Some Jive-Ass Slippers

tpot (at) frungy . org

rss

2007
Months
Sep

Sun, 30 Sep 2007

No Worrie's

posted at: 08:26 | path: /humour | permanent link to this entry

Tue, 08 May 2007

SCons Builder for Ragel

Here's a SCons builder for the Ragel State Machine Compiler, based on the one for SWIG included in the SCons distribution.

#            tastes like -*- python -*-

"""Tool-specific initialisation for ragel."""

import SCons.Util
import SCons.Tool
import SCons.Action

def generate(env):

    c_file, cxx_file = SCons.Tool.createCFileBuilders(env)
    c_file.suffix['.rl'] = '.c'

    c_file.add_action('.rl', SCons.Action.Action('$RAGELCOM', '$RAGELCOMSTR'))

    env['RAGEL'] = 'ragel'
    env['RAGELFLAGS'] = SCons.Util.CLVar('')

    env['RLCODEGEN'] = 'rlcodegen'
    env['RLCODEGENFLAGS'] = SCons.Util.CLVar('')

    env['RAGELCOM'] = \
        '$RAGEL $RAGELFLAGS $SOURCE | $RLCODEGEN $RLCODEGENFLAGS -o $TARGET'

def exists(env):
    return env.Detect(['ragel', 'rlcodegen'])

posted at: 22:59 | path: /software/scons | permanent link to this entry

Wed, 02 May 2007

How to patch and rebuild a RPM package

Here's a nice tutorial on how to make a patch to a program distributed as a SRPM file. I would also recommend installing ccache and maybe distcc as finding and fixing bugs in a RPM build usually involves compiling the same source files over and over again.

posted at: 13:51 | path: /software | permanent link to this entry

Mon, 26 Mar 2007

The Geekiest Place to Hang Out

The Provably-Secure Mutual Authentication and Key Establishment Protocols Lounge.

posted at: 20:41 | path: /humour | permanent link to this entry

Mon, 12 Feb 2007

Sheep Jigsaw

posted at: 09:18 | path: /photos | permanent link to this entry

Fri, 05 Jan 2007

Another Stevey Blog Rant About Emacs

Here. It's quite long and complicated. I wish I had time to write that much stuff about Emacs. Anyway, some choice quotes about whether you should learn Emacs Lisp:

"First, recognize that Emacs Lisp isn't going anywhere. Emacs is not going to magically become programmable in Python or Ruby or JavaScript or Perl overnight ... [Emacs Lisp] will never be obsolete knowledge. You might as well start learning it now, and reap the benefits now."

On Lisp syntax:

"If you do it enough, eventually you'll enjoy programming in Emacs-Lisp, no matter how much you hate it initially ... you'll initially dislike Emacs-Lisp's syntax; it's virtually guaranteed. Fortunately, it doesn't really have much in the way of syntax; almost everything follows the exact same s-expression form. So you should get past the syntax pretty quickly, and in a few weeks you'll start liking it just fine.
Kind of reminds me of people who dislike using tabs as syntax when writing Python code for the first time. I'm poking around with Ruby at the moment and having to put end everywhere is actually pretty annoying.

I've done some bits and pieces of Emacs Lisp programming over the years and it is quite seductive, for lack of a better word. I think that's the nature of functional programming though once you really get in to it.

posted at: 12:06 | path: /software/emacs | permanent link to this entry

Tue, 02 Jan 2007

Everything You Ever Wanted To Know About Autotools

And then some. Here is a funky autotools tutorial that clocks in at 557 pages.

posted at: 15:07 | path: /software | permanent link to this entry