A 8 or 10 tile long or so (6-wide) part of my entrance hall which was covered in checkerboard-patterned hatches over a 10-z-level drop directly above the processing department, where each color of the checkerboard was linked to a different output of a repeater, resulting in the two colors of hatches alternately closing and opening. At any given time there would APPEAR to be a path across the hatches for the invading goblins, only to have the hatches open (and the others close) while the goblins were trying to cross, dropping the goblins to their doom.
It was called the Hand of Armok, and it consumed massive amounts of goblins, delivering them infallibly to the processing department, where they shattered into their component parts. The metal items were melted down, the non-metal equipment and clothing were dumped in magma, and the body parts decayed miasmalessly in open air down to bones and skulls, which were then turned into bone bolts and totems by the craftsdwarves.
Not a single goblin dropped by it survived (although some that I manually pitted elsewhere did, interestingly, even though the Hand of Armok dropped a lot more - several hundred, probably, it killed something like 70% of the participants in every siege, before the rest retreated).
How did I keep the dwarves from running across it, you ask? Simple. I had channeled out the entire entrance hall's ceiling all the way back past the Hand of Armok, all the way to the trade depot, so that it was "outdoors", and when the goblins invaded, I set the "dwarves can't go outside" option, and they entrance-danced deep inside next to the trade depot, where they were quite safe inside the fort. Then I flipped the lever which turned on the Hand of Armok's repeater, and the mayhem began. To the goblins, there still appeared to be a path across it at any given time.
The one problem with it was that it used a primitive repeater design, one of the first (might have been the first, I don't remember - I seem to have originated the name, at any rate). It only had one pump, and the two pressure plates did not output signals that were precisely opposite in timing (
http://mkv25.net/dfma/movie-281-repeaterinaction from Jan 3 2008 shows an early repeater of mine, although the Hand of Armok was completed by Dec 24 2007, and had a working - if unreliable - repeater by then).