23.3.11

Why I am on strike


An open letter to my colleagues in the School of Informatics.

Colleagues,

Here are four people to think of when considering whether to join the
UCU strike to preserve our pensions on Thursday 24 March.

Yourself. The changes to pensions are estimated to remove £150K in
value over the lifetime of your pension (presuming the two-tier scheme
stays in place, see below). The most significant changes don't take
effect immediately, but bite over time:
  • Capping cover for inflation. Full cover to 5%, half cover to 15%;
    that is, a 10% increase when inflation is 15% or higher. Recall
    inflation averaged 16% per year between 1974 and 1980: a cut of 6%
    over six years compounds to a 31% reduction, lasting over the
    remaining lifetime of the pension.

  • Altering the index of inflation from RPI to CPI. The former is
    calculated with an arithmetic mean, the latter with a geometric
    mean, which is always less. CPI runs about 0.7% lower than RPI;
    a cut of 0.7% over twenty years compounds to a 13% reduction.

  • Introduction of a two-tier system, with significantly lower
    payouts to new hires (see next point, re: Jill). If this follows
    the course of other two-tier schemes, the upper tier will be
    eliminated in favour of the lower, and old hires will see their
    pension slashed.
Jill, the next lecturer we hire. Old hires who pay into the pension
fund for forty years receive a pension of one-half their final salary;
new hires who do the same receive a pension of one-half their
*average* salary. Basing pensions on average rather than final salary
may be sensible, but to do so with no adjustment in multiplier makes
it appear that employers are using this as an excuse to slip in a
large cut. The changes are estimated to remove £450K in value over
the lifetime of a new hire's pension.

Bill, a student ten years from now. In the long run, our goal is to
keep our Universities strong for students and the country. On the
picket line last Thusday, I saw more students than lecturers.

Me. I saw lecturers cross the picket line on the grounds that they
had an appointment, and did not want to inconvenience the person they
were to meet. If you are one of them, perhaps your politeness would
extend to allowing me to retire with a decent pension.

Thank you for your consideration, -- P

Law of Proverbs

I propose the following Law of Proverbs: for every proverb, there is an equal and opposite proverb. Examples:
  • A stitch in time saves nine./If it ain't broke, don't fix it.
  • In for a penny, in for a pound./Don't throw good money after bad.
  • What the eye doesn't see, the heart doesn't grieve over./Truth will out.
  • Don't throw the baby out with the bathwater./Make a clean sweep of it.What are your favourites?
  • 15.3.11

    Why you should consider a post at NSF

    The NSF is interested in ensuring expertise in programming languages is represented among its program directors, and SIGPLAN is encouraging researchers to apply. This video from an NSF director explains why you should consider a post at NSF.

    4.3.11

    Theory B questions at Stack Exchange


    Stack Exchange is a website for asking and answering technical questions. One part of the web site is set aside for Theoretical Computer Science. It tends to be dominated by topics in "Theory A" (algorithms and complexity), but there is a small, intrepid group attempting to establish it as a venue for topics in "Theory B" (logic, semantics, and programming languages). To encourage further participation, they've assembled a list of some of the interesting questions they've handled. Have a look, and contribute some questions or answers of your own!

    Life-critical wording


    I try to impress upon my students the importance of clear expression. Today's news contains an example where choice of the right word may be life-critical.
    The experts reworded phrases that people found confusing, and then retested them in several sittings, including one-to-one interviews.

    Prof Raynor said "avoid alcoholic drinks" was a good example.

    "Our user tests have shown that the word "avoid" can cause confusion and that some people think it only means they should limit their alcohol intake.

    "This phrase will now be replaced by the instruction: 'do not drink alcohol while taking this medicine', which is far clearer."

    Other recommendations include changing "do not take indigestion remedies at the same time of day as this medicine" to "do not take indigestion remedies two hours before or after you take this medicine".

    Another phrase, "do not stop taking this medicine except on your doctor's advice", becomes "warning: Do not stop taking this medicine unless your doctor tells you to stop."

    16.2.11

    Scientific programming does not compute


    An article in Nature explains why scientists need to pay more attention to basic principles of software engineering.
    As a result, codes may be riddled with tiny errors that do not cause the program to break down, but may drastically change the scientific results that it spits out. One such error tripped up a structural-biology group led by Geoffrey Chang of the Scripps Research Institute in La Jolla, California. In 2006, the team realized that a computer program supplied by another lab had flipped a minus sign, which in turn reversed two columns of input data, causing protein crystal structures that the group had derived to be inverted. Chang says that the other lab provided the code with the best intentions, and "you just trust the code to do the right job". His group was forced to retract five papers published in Science, the Journal of Molecular Biology and Proceedings of the National Academy of Sciences, and now triple checks everything, he says.—Zeeya Mirali, Nature 467:775—777 (2010)
    Spotted by Shriram Krishnamurthi.

    2.2.11

    Causal commutative arrows and their optimization

    Causal commutative arrows and their optimization, by Hai Liu, Eric Cheng, and Paul Hudak, ICFP 2009.

    Extends arrows with two widely used concepts, loop and init. Both concepts arise quite often. Proves a normalisation theorem that reduces any program to a single use of loop, and show that in practice this can yield a speedup of two orders of magnitude. Lovely result!

    As the paper notes in passing, 'loop' is closely related to the concept of 'trace' from category theory. Phil Scott is currently visiting Edinburgh, and I'm hoping he, Jeff Eggers, and I might explore the relation betwixt 'trace' and 'loop'.

    An compelling example of the value of 'loop' and 'init' is the definition of integral:

    integral = loop (arr (\ (v,i) -> i + dt * v) >>> init 0 >>> arr (\ i -> (i,i)))

    This definition is valid for a stream of events, where each event is separated uniformly by time dt. An intriguing question is how to define integral in a similar style when the time between events is not uniform? Or for continuous behaviours rather than discrete events?

    Low floors, low ceilings, and Alice



    Matthias Felleisen just introduced me to the phrase "low floor, low ceiling", which characterises precisely the worry about Kodu I expressed in my previous post: languages with a low overhead when getting started may offer low payback later.

    As an example of this effect, he suggested the following critique of the innovative Alice programming environment: Through the Looking Glass: Teaching CS0 with Alice. (Thanks to Shriram Krishnamurthi for the precise reference.) I don't consider Alice in the same bowdlerized category as Kodu, so I was surprised to see that "low floor, low ceiling" might still apply.

    Meanwhile, Matthias, Shriram, and others offer Teach Scheme/Reach Java as an alternative, offering a curriculum based on widely-used professional programming languages to high school and middle school children. (Addendum: Matthias and Shriram inform me that the TeachScheme website is out of date, and the preferred alternative is Program by Design.)

    Pea vs. Papert; Kodu; Bootstrap


    Logo, and following on from it Scratch, Alice, and Kodu, promotes an implicit claim that in the right environment children can learn programming almost by osmosis, and that absorbing this skill improves other skills, such as planning. These implicit claims were challenged twenty-five years ago by Roy D. Pea, who discovered that school children exposed to Logo could still be confused by recursion after writing recursive programs, and that learning Logo did not improve their planning ability. Here is an overall summary, here is a paper specifically on recursion, and here is Pea's reply to an attack by Papert.

    I found the second paper (Children's mental models of recursive LOGO programs) particularly interesting, as it helps to understand some of the issues my first-year students may face in learning recursion. I'm woefully ignorant of the literature on the psychology of programming, and need to learn more. Thanks to Matthias Felleisen and Emmanuel Schanzer for pointing me at this work.

    What sparked my interest was a keynote on Kodu at POPL, by Matthew MacLaurin of MSR. The laudable goal of Kodu is to permit young children to program video games, as MacLaurin put it, 'to let them know the computer can do anything'. And Kodu can achieve quite spectacular results with very simple programs, but the programming model needs to be very simple to achieve this (a list of condition-action pairs). Because Kodu is so special purpose, I worry that instead of teaching children that 'computer can do anything', it will teach them that 'computers will let you build exactly what they are designed to let you build, and anything else is very difficult'. Pea's studies are orthogonal to this concern, so I'm left wondering whether Kodu will lead to a new generation of programmers or a new generation turned off by computing.

    Meanwhile, Schanzer is running Bootstrap, an outgrowth of TeachScheme. "Bootstrap is a standards-based curriculum for middle-school students, which teaches them to program their own videogames using purely algebraic and geometric concepts." The start-up costs are higher than Kodu, but once started students have the full power of Scheme/Racket at their command. Seems preferable to me, but there may well be room for both in the world. More study needed! Not to mention more resources for getting proper computing (not just ICT) into schools at an early age.

    5.1.11

    Happy 2011!

    Best wishes for the New Year. (Insert traditional Scottish handshake here.) A special thank you to those who sent pointers to things of interest, some of which I reposted here, and to those who posted comments to the blog. Please keep the good stuff coming!

    (Photo by Mike Levad, spotted on Boing Boing.)