Microcodes
by Pall Thayer
Microcodes are very small code-based artworks. Each one is a fully contained work of art. On this page you can see contributed modifications of the original Microcodes that can be seen here.

Original code:

Enter your name (will be displayed):

Here you can enter extra info, such as warnings if the code can cause damage:

Enter code (must be complete and runnable):

WAR has NO value
18. November 2009
#!/usr/bin/perl
use constant WAR;
print WAR;
Pall Thayer
#!/usr/bin/perl
while(WAR){die;}
James Morris
War is Private, The Fight is Pure
#!/bin/bash
#---------------------------------------------
# WAR IS PRIVATE, THE FIGHT IS PURE!
#
# a BASH/C++ microcode by James W. Morris.
#                   http://www.jwm-art.net
# * note: this microcode requires BASH and
#   the gnu C++ compiler, g++ *
#
# for more about microcodes, see:
#           http://pallit.lhi.is/microcodes
#---------------------------------------------


# create our C++ file, called warclass.cc
# the contents of the file are between the
# two EOFs

cat > warclass.cc <<EOF
class war
{
    war();
    virtual ~war();
    virtual void fight() = 0;
};

int main()
{
    war mywar;
    return 0;
}
EOF

echo
echo War is Private, The Fight is Pure
echo =================================
echo
echo The following is C++ code:
echo
echo "---------8<-----------------"
echo

cat warclass.cc

echo
echo "---------8<-----------------"
echo
echo "Compiling:"
echo
g++ warclass.cc
echo
echo "---------8<-----------------"
echo
echo As you can see:
echo
echo War is Private, The Fight is Pure
echo =================================
echo
James W. Morris
War is Private, The Fight is Pure (terse version)
#!/bin/bash

cat > warclass.cc <<EOF
class war
{
    war();
    virtual ~war();
    virtual void fight() = 0;
};

int main()
{
    war mywar;
    return 0;
}
EOF

cat -n warclass.cc
g++ warclass.cc

back to Microcodes