GPL v3 Thoughts

At 10am Eastern (3pm GMT) tomorrow, The Free Software Foundation is going to unveil the first draft of version 3 of the GPL. I thought it would be profitable to have a think about version 2, while my mind was still unbiased by knowing their suggested improvements.

Tweaks To The Existing Text

Section 2 a) (“You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change”) is the most widely-ignored piece of the GPL, and for good reason – such notices would be a pain in the rear to maintain, and having changelogs inside files messes up your source control. What was the original purpose of this clause? Is it necessary any longer?

Section 2 c) (that the program must print a licence banner on startup if its an interactive command-line program) is anachronistic. One merely needs to say that users of the program must be made aware of their rights.

With regard to the two above, licences should require results rather than specify methods to achieve them. That will make them much better suited to withstanding the progress of time.

The last paragraph of section 3), which says that ‘equivalent access to copy’ is sufficient to fulfil the requirement to distribute source, should also allow a similar scheme when distributing via other methods than download. I.e. you should be able to buy GPLed binaries on CD, and optionally request the source CDs at no extra charge if you also want them. Potentially, in this world of cheap bandwidth and cheap CD-Rs, the principle of equivalent access could replace the “written offer” provisions.

Potential Change: Requiring Source for Web Applications

Some have argued that source distribution should be required for GPLed applications one uses with a web browser and a network, as well as those one uses by downloading and installing them. If this ties into the already-existing legal concept of public performance of a work, and merely states that source code need be made available in an equivalent manner to if you had distributed the binaries to the user, this would be OK. If it forces particular abilities on the software, like the Affero GPL does (download over HTTP), this would be bad and non-free, as the software would then have an “invariant section”.

Potential Change: Patent Defence Clauses

Some have suggested a form of mutual defence clause, where suing someone for patent infringement in GPLed software terminates your right to distribute all GPLed software. I personally would like to see that, but I suspect it might split the community. Companies like Sun and IBM would be faced with either giving up their rights to sue authors of GPLed works for patent violations, or giving up their right to distribute GPLed code. One would hope they’d choose the former… There are more mild forms of anti-patent clause which might cause less friction. I don’t know what the FSF will go for.

Potential Change: Requiring ‘Trusted Computing’ Keys

Some embedded GPLed software can’t be modified in practice because the binaries need to be signed, and the hardware checks the signature. Section 3) needs beefing up to make it more clear that you need copies of everything which allows you to use a modified binary in place of the original binary. And that means Trusted Computing or DRM encryption keys.

Various Debian people have also put forward their views.

Nichtenblinkenlights

If you are lying in bed at night, with the room lights off, how many different lights on how many different pieces of electronic or electric equipment can you see?

Here’s my list:

  • ADSL router: 6 green lights
  • Wireless access point: 3 green lights
  • Monitor standby: 1 yellow light
  • Charging phone: 1 red light
  • Laptop battery light: 1 green light
  • Printer: 2 green lights
  • Music player, charging: 1 blue light
  • Music player charger: 1 red light
  • 3-way socket: 1 orange light
  • Subwoofer: 1 green light
  • Clock radio: red LED numbers (don’t count) + 1 red alarm light

Total: 11 devices, 19 lights. I guess it helps that my computer lives in my bedroom, and that it’s the communications hub of the house. Can you beat that?

Open News Archive in Open Formats?

The BBC has released 80 news clips under their not-quite-free UK-only licence as the Open News Archive (from Slashdot). The three formats available are Windows Media Player, Quicktime and MPEG-1.

Are any of these three formats playable on my Ubuntu system without breaking UK law (either patent or copyright)? Totem, by default, doesn’t seem to be able to play the Quicktime or the MPEG files.

Maybe Dirac isn’t ready for prime time yet, but the Theora bitstream format has been frozen since alpha 3, so they could have provided it in that…

Why “Hacking for Christ”?

I’ve written a long-overdue answer to a question I occasionally get asked, either by email or in blog comments – why is this blog called “Hacking for Christ”? It might be useful reading for anyone who is bemused, intrigued or confused by any part of the title (even the word “for”).

Decent Editor Wanted

For a long time I’ve used NEdit as my editor. It has a number of annoying quirks, but it’s just about usable. Having just upgraded my desktop to Ubuntu, and found that NEdit compiled with LessTif has even more bugs, and looks really ugly (and I can’t work out in which file to put the X resources given in the beautification tutorial) I’m thinking about a replacement.

Given the general usefulness of editors, and the fact that everyone and his mother seems to have written one, you would have thought it would be quite easy to find one which meets my simple requirements. They are:

  • Currently maintained (i.e. not abandonware)
  • X application, decent-looking
  • Good syntax highlighting
  • Supports, or can be made to support, the key bindings embedded in my brain like Ctrl-C for Copy, Ctrl-V for paste, Tab to indent selection.
  • No vi-like modes. Modal interfaces are bad.
  • Supports standard Perl regexps in the search/replace box

Here’s what I’ve tried, and why I’ve rejected them:

  • nedit:
    • Looks like a dog in Ubuntu
    • Copy and paste to other applications doesn’t work properly
  • gedit:
    • No regular expressions
    • No key rebinding
  • SciTE:
    • Doesn’t support proper regexps
    • Spews pango errors into the console I launched it from (really irritating)
    • Doesn’t notice when files have changed on disk

XEmacs is, I suppose, a possibility, but I’d need to spend an age converting its 1970s keybindings into what the rest of the world uses today. There are some good editors for KDE, but I’d rather not load all the KDE libs on my GNOME desktop just to get an editor. I suspect Eclipse would probably be far too heavyweight.

Anyone got any other ideas, or know anything I’ve missed about some of the above? If you comment, please let me know what editor you are using even if it doesn’t fit my requirements.

How Sad…

I just signed up for an account on Frappr, which is a service which allows you to create a map of the geolocation of your friends or other communities. There’s a Mozilla community; do sign up and join in.

Having added myself to that, I clicked on “Gervase Markham’s Frappr” at the top of the page. I was presented with a page that had a map of Europe on one side, bare apart from a solitary blue pin stuck in London, and a big heading on the right side which said: “Currently you do not have any friends.”

LOL! They could at least have said “…friends registered on Frappr”!

Old DVD Drives Wanted

The Windows Vista team are going to stop supporting “old” DVD drives. By “old”, they mean the ones which have no hardware region checking and so can be made multi-region simply by applying software hacks. The main reason for this, apparently, is that they don’t have very many working drives like that any more.

Clearly, this has nothing to do with the entertainment industry trying to get more of a lock on world trade in DVDs. So, I call on everyone who’s got a pre-2000 machine sitting around with a DVD drive they don’t use to remove it, package it up and send it to The Windows Vista DVD Hardware Support Testing Department, Microsoft Corporation, One Microsoft Way, Redmond, WA, 98052-6399, USA. I’m sure that, if we all did that, they’d keep supporting our hardware. Right? :-)

Resource Exhaustion Tools

I’m trying to test a normal Windows desktop GUI app, and want to see how it performs in CPU-starved/low memory/low disk space conditions. I’ve been looking around for test tools which will eat all the CPU or memory at the press of a button, or fill your disk up in a nicely reversible way, but I can’t find any. It would be nice if it also allowed you to easily simulate a network disconnect, either from all machines or a defined subset. All the “QA software” I can find seems to be entire testing frameworks, or is for web app load testing.

Does anyone know of utilities which do roughly what I want? I would hope that many QA departments test their software in such conditions, and so other people will have encountered this problem before me…

Phishing With Screwtape

A new article of mine is available at Times Online. This one’s a two-parter; entitled “Phishing with Screwtape” (with apologies to C. S. Lewis), it is a couple of emails from an old hand at phishing to a new apprentice. Part 1 and Part 2.

Gerv is away. Any evidence to the contrary is merely illusion.