Though the security concerns of allowing arbitrary load_extension calls in sqlite are obvious, we think that allowing javascript user defined functions in sqlite (especially aggregate ones) will be an extremely valuable feature coming at relatively low dev cost. Eventually allowing virtual table implementations in javascript will open the door for exposing various apis uniformly through sql (where it makes sense of course)
