4 ms·
For a generally usable implementation, libproxy needs to be able to process proxy auto-config (PAC) files, which are small (or not so small) Javascript programs
by fweimer 4y ago
For a generally usable implementation, libproxy needs to be able to process proxy auto-config (PAC) files, which are small (or not so small) Javascript programs. These programs are expected the parse the URL and decide which proxy server to use (or a direct connection). It's not declarative at all.
Therefore, libproxy is not a trivial dependency.
- vokspon 4y agoTrue but curl wouldn't need to implement a particularly optimised JavaScript runtime to handle PAC programs, there would be no point in e.g. bundling V8 or ChakraCore with it.
- mmis1000 4y agoI think quickjs is invented for exact this type of usage. A properly implemented, speed-irrelevant, small runtime for embedded usage. Most pac files are just a few lines and you don't really need a speedy runtime to run it.