April 05, 2014 Re: TLS for iOS - how to proceed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dan Olson | On 2014-04-05 18:08, Dan Olson wrote: > Do you think having an option to disable TLS in D is not good then? I > would put our warning for each variable that should have been a thread > local. I don't know. But it's open for getting in to problems, like I mentioned in my previous post. > BTW Jacob, I started using DStep to translate some of the iPhone SDK > headers, like CoreFoundation.framework for use in sample iOS apps. Has > anybody already done this and put in in repo somewhere? Actually I have. I have an old repository on dsource [1] which contains bindings for a bunch of Apple frameworks, including CoreFoundation. Although the bindings for the Objective-C frameworks uses a bridge and not D/Objective-C. But the bindings for any C framework should work fine. The bindings are written in D1, they might need some minor modifications to work with D2. I don't want to > be redoing what someone else has done. I am looking forward to when > Objective-C support is in D as I am just using objc_msgSend directly > now. I wonder how much work it will be to get into LDC. > [1] http://www.dsource.org/projects/dstep/browser/dstep -- /Jacob Carlborg |
May 08, 2014 Re: TLS for iOS - how to proceed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | Maybe you will be interested in some of my work here: https://github.com/yglukhov/cocoa.d This is a lightweight dynamic binding to any Obj-C framework. Also it allows "subclassing" obj-c classes. Not for production use yet ;) |
May 08, 2014 Re: TLS for iOS - how to proceed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yuriy | On 2014-05-08 19:32, Yuriy wrote: > Maybe you will be interested in some of my work here: > https://github.com/yglukhov/cocoa.d > This is a lightweight dynamic binding to any Obj-C framework. Also it > allows "subclassing" obj-c classes. > Not for production use yet ;) Actually no. I rather use D/Objective-C [1], [2] which allows D to bind to Objective-C classes and methods with extern (Objective-C), just as with C functions. It's mostly done, it just needs some cleanup and merge the latest changes before I can create a pull request. This way the compiler generates the same code as the Objective-C compiler would, no additional overhead. [1] http://wiki.dlang.org/DIP43 [2] https://github.com/jacob-carlborg/dmd/tree/d-objc -- /Jacob Carlborg |
May 10, 2014 Re: TLS for iOS - how to proceed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Thursday, 8 May 2014 at 18:40:09 UTC, Jacob Carlborg wrote:
> It's mostly done, it just needs some cleanup and merge the latest changes before I can create a pull request.
That's great Jacob, I hope that this will happen soon!
Thanks for all the great job on that side of the language.
---
Paolo
|
May 10, 2014 Re: TLS for iOS - how to proceed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paolo Invernizzi | On 2014-05-10 10:38, Paolo Invernizzi wrote: > That's great Jacob, I hope that this will happen soon! > Thanks for all the great job on that side of the language. Thanks, no problem. You should thank Michel Fortin, he's done most of the work. -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation