Minecart grinders can make quick work of a siege. They are immune to jamming and have unlimited capacity. They are immune to building destroyers, work on trapavoid creatures, and can be made magma safe for easy cleanup. The downside is that they are indiscriminate and kill dwarves just as easily. (Many overseers might not see this as a downside.)
Here's an example. This one that can be placed beside with an entrance hallway, opened selectively, and turned on/off to allow collection of goblinite. The main downside is that sieges tend to break off and flee before all being mangled. It is simple to build, but does require operation of levers to control access and turn the grinders on and off.
Running empty gold minecarts, this layout has hilariously destroyed several sieges. I haven't seen anyone make it through, but a couple Trolls have come close. This one won't stop a clown rush, but beefier ones might.
In this example, enemies enter from the right.
Z: +0
Ramps Track Directions
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
1 1
░░░░░2░3░░░░░ ░░░░░2░3░░░░░
░▲░▲▲░░░▲▲4▲░ ░╔░═║░░░═║4║░
░▲░▲▲░░░▲▲░▲░ ░╝░╝╔░░░╝╔░╔░
░▲4▲▲░░░▲▲░▲░ ░║4║═░░░║═░╝░
░░░░░ ░ ░░░░░ ░░░░░ ░ ░░░░░
░▲░▲▲░░░▲▲4▲░ ░╔░═║░░░═║4║░
░▲░▲▲░░░▲▲░▲░ ░╝░╝╔░░░╝╔░╔░
░▲4▲▲░░░▲▲░▲░ ░║4║═░░░║═░╝░
░░░░░ ░ ░░░░░ ░░░░░ ░ ░░░░░
░▲░▲▲░░░▲▲4▲░ ░╔░═║░░░═║4║░
░▲░▲▲░░░▲▲░▲░ ░╝░╝╔░░░╝╔░╔░
░▲4▲▲░░░▲▲░▲░ ░║4║═░░░║═░╝░
░░░░░ ░░░░░ ░░░░░ ░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
Z: +1
Ramps Track Directions
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░▼▲▲¢░░░░░░░░ ░ ╔╔ ░░░░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░░░░░░░░¢▲▲▼░ ░░░░░░░░ ╝╝ ░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░▼▲▲¢░░░░░░░░ ░ ╔╔ ░░░░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░░░░░░░░¢▲▲▼░ ░░░░░░░░ ╝╝ ░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░▼▲▲¢░░░░░░░░ ░ ╔╔ ░░░░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░░░░░░░░¢▲▲▼░ ░░░░░░░░ ╝╝ ░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
░░░░░░░░░░░░░ ░░░░░░░░░░░░░
Key:
Each numeral is a 1x1 raising bridge:
1: Bridge that blocks incoming enemies and forces them to go into the grinders.
2: Internal access to the grinders. After turning the grinder off, lower this bridge, but raise 1 and 3, to permit safe collection of goblinite.
3: External access to the grinders. Open this and 2, and close bridge 1, to force enemies into the grinders.
4: Normally raised. Lowering this bridge permits the minecarts to leave the grinding area. Raise immediately after.
¢: Hatch. Normally closed. Drop the carts here to safely prime the cart grinders. Open briefly to drop the carts into the grinders.
░: Solid wall
▲: Up ramp
▼: Down ramp
═║╔╝: Track ramp directions.