Is D right for me?

Walter Bright newshound2 at digitalmars.com
Tue Oct 12 22:17:58 PDT 2010


Denis Koroskin wrote:
> Either way, it needs some language support, because currently TLS 
> implemented on compiler level rather than library level. I proposed this 
> change in past, but no one responded.

Using TLS needs operating system support, and there's special linker support for 
it and the compiler has to generate TLS references in certain ways in order for 
it to work.

There is no such support in OSX for TLS, and it is done manually by the library. 
However, TLS access is 10 times slower than on Linux/Windows.

Without doing TLS in the operating system standard way, you tend to get hosed if 
you link with a shared library/DLL that has TLS.


More information about the Digitalmars-d mailing list