On Sunday, 27 March 2016 at 11:38:15 UTC, Guillaume Piolat wrote:
On Sunday, 27 March 2016 at 03:28:31 UTC, bitwise wrote:
I was hoping to have some more people weigh in with their
experience with plugins, whether or not they're expected to be
multi-threaded, thread-safe, etc.. I think the current design
is fragile, and given the limited usage of D shared libraries
atm, I think it's a good time to come up with something a bit
more solid/predictable.
Using OSX shared libraries with both DMD and LDC for plugins,
I'm trying to avoid all TLS, with LDC the only TLS I have is
cached Obj-C selectors (pointers) which do not have
constructors IIRC.
A real concern is then that Phobos would use TLS internally.
Apart from that I don't really have an opinion.
Ok, thanks!
Phobos should be linked statically even when it's a shared
library, so it should still have all static ctors called properly.
Bit