Just A Summary

Piers Cawley Practices Punditry

Metaprogramming == Programming 14

Posted by Piers Cawley Sun, 20 May 2007 11:21:00 GMT

While I’m tilting a windmills, I should just like to tell all those people who bang on about ‘metaprogramming’.

It’s all just programming.

That is all.

Domain Agnostic Languages 13

Posted by Piers Cawley Sat, 19 May 2007 18:52:00 GMT

Windmill tilting time again I’m afraid. Blame chromatic and David A. Black.

What is it that characterizes domain specific languages? Before you trot out something like “Programs written in them read like domain experts talk”, take a look at some examples of code written in domain specific languages:

<pre> /(?ms)"((?>[^\\"]+)?(?>\\.[^\\"]*)*)/ </pre>

<pre> S3 R$* $: < $1 > R$+ < $* > < $2 > R< $* > $+ < $1 > R<> $@ < @ > R< $+ > $: $1 R@ $+ , $+ @ $1 : $2 R@ $+ : $+ $@ <@ $1> : $2 R$+ @ $+ $: $1 <@ $2> R$+ < $+ @ $+ > $1 $2 <@ $3> R$+ <@ $+ > $@ $1 <@ $2> </pre>

<pre> >gi|2501594|sp|Q57997|Y577_METJA PROTEIN MJ0577 MSVMYKKILYPTDFSETAEIALKHVKAFKTLKAEEVILLHVIDEREIKKRDIFSLLLGVAGLNKSVEEFE NELKNKLTEEAKNKMENIKKELEDVGFKVKDIIVVGIPHEEIVKIAEDEGVDIIIMGSHGKTNLKEILLG SVTENVIKKSNKPVLVVKRKNS </pre>

If you’re reading this on the front page, try and work out what the ones you recognise do before you dip below the fold…



Just A Summary