Proxy auto-configuration (PAC) files contain javascript which resolves destination hosts into proxy configuration. Clearly I could use an embedded javascript engine and provide the objects that PAC files require, but that seems like a lot of work just to resolve a proxy -- I would much rather just have a library to do it.
I'm interested in answers for any language, but especially C++ and Python.