With MarkLogic 8, it would great to be able to specify tasks as JavaScript in addition to XQuery. I don't know how much surgery this would be; I haven't tested it. Worst case is a parallel rewrite, though I think the orchestration could remain in XQuery and the user-specified task and filter logic could be pluggable with JavaScript. I’ll take a first crack at characterizing the changes and propose something in a pull request.
With MarkLogic 8, it would great to be able to specify tasks as JavaScript in addition to XQuery. I don't know how much surgery this would be; I haven't tested it. Worst case is a parallel rewrite, though I think the orchestration could remain in XQuery and the user-specified task and filter logic could be pluggable with JavaScript. I’ll take a first crack at characterizing the changes and propose something in a pull request.