News for hackers. Stuff that matters.
Re:Curl doesn't add libproxy due to its quality issues by fweimer on Sunday October 23, 2022 @09:42AM (#33306939)
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.

Re:Curl doesn't add libproxy due to its quality issues by vokspon on Sunday October 23, 2022 @12:00PM (#33307924)
True 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.
Re:Curl doesn't add libproxy due to its quality issues by mmis1000 on Sunday October 23, 2022 @03:39PM (#33309597)
I 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.