News for hackers. Stuff that matters.
Re:Caddy 0.9 Released with All New Core by spriggan3 on Tuesday July 19, 2016 @12:20PM (#12122617)
What is a JAR loaded at runtime in Java code supposed to do ?
Re:Caddy 0.9 Released with All New Core by pjmlp on Tuesday July 19, 2016 @01:07PM (#12123013)
Well I expect it to work like this:

- Define a Go interface for plugin

- Create a C style shared library with a factory function

- On the application side, load the library and cast the pointer to the plugin interface

- Make sure the Go runtime is compiled as a shared library visible to the application and respective plugins

It is as easy to put a jar into a directory? No, but it is doable.

Re:Caddy 0.9 Released with All New Core by spriggan3 on Tuesday July 19, 2016 @04:13PM (#12124501)
> Create a C style shared library with a factory function

> On the application side, load the library

Show me the code then, I still maintain than what you think is possible isn't. And I don't want to see any C code in your example.

Re:Caddy 0.9 Released with All New Core by pjmlp on Tuesday July 19, 2016 @04:44PM (#12124749)
I might try to do it as a learning exercise of the state of Go tooling, but I have better things with my life than proving things to strangers on the Internet.
Re:Caddy 0.9 Released with All New Core by spriggan3 on Tuesday July 19, 2016 @05:18PM (#12124993)
Sure, and you can make up anything without facts. I have also better things to do that believing a complete stranger which can't source his claims.