ioctl
Prolog in JavaScript.
Here we collect the accumulated library functions of the previous versions.
This prolog is enhanced with the JavaScript callout capability though a rudimentary external/3 call; see the arithmetic functions for examples.
These days the kids are all about the licenses. I typically get a request or two every year from a keen undergrad who wants to turn this into something interesting. Consider this code to be under a two-clause (non-advertising) BSD-style license.
Having said that... I'm always interested to hear what people are up to with this, so if you feel keen or want a natter, drop me a line: logic@ioctl.org. I think that ideas are more important than kudos, but if you want to credit then I won't blush (and I'm sure my employer at the time I wrote this, the University of Bristol, wouldn't mind you mentioning them).
Good luck!