News for hackers. Stuff that matters.
Re:Caddy – The HTTP/2 Web Server with Automatic HTTPS by st3fan on Wednesday April 25, 2018 @08:56AM (#16921072)
> The developers dislike packaging because it makes “plugins” unavailable

Maybe the plugin support should be fixed then.

Re:Caddy – The HTTP/2 Web Server with Automatic HTTPS by codetrotter on Wednesday April 25, 2018 @09:08AM (#16921164)
Unfortunately they have no good way of doing that yet. Or, at least, they didn’t back when most of that discussion took place.

From a comment in the thread:

> Go is currently really bad at “runtime” plugins. There are only three strategies I know of that may work:

> 1. Launch separate processes for each plugin and use ipc to communicate. Potentially slow, and a lot could go wrong.

> 2. Some kind of cgo based plugin system that runs dynamicly linked go libs and uses a cgo shim on both sides for compatibility. Introduces build complexity and makes cross-compiling harder.

> 3. Some kind of dynamic language interpreter: there are native go javascript and lua interpreters, but using those for plugins seems pretty crazy,

> Until the go authors implement better support for runtime plugins, I think we are stuck with built-time.

Re:Caddy – The HTTP/2 Web Server with Automatic HTTPS by francislavoie on Wednesday April 25, 2018 @09:09AM (#16921172)
This isn't something easily fixed. Go's big selling point (pros and cons included) is that it generates statically compiled binaries. Go plugins are a complicated problem because of that.