Re: OpenCL bindings

2013-03-21 Thread Jacob Carlborg
On 2013-03-21 04:37, Mike Parker wrote: Because some time ago DMD started shipping with '--export-dynamic' in the config file on Linux to (AFAIK) facilitate generation of exception stack traces. I was using straight function pointers at the time and, as a result, no one could use Derelict on

Re: OpenCL bindings

2013-03-20 Thread Mike Parker
On Tuesday, 19 March 2013 at 15:03:11 UTC, Lemonfiend wrote: I see. That's a larger project than I'd hoped. Considering I've never created a binding before, is there some kind of tutorial/recommended reading available? There's a page at dlang.org[1], and I have a series of 5 blog posts

Re: OpenCL bindings

2013-03-20 Thread Andrea Fontana
On Wednesday, 20 March 2013 at 08:13:45 UTC, Mike Parker wrote: On Tuesday, 19 March 2013 at 15:03:11 UTC, Lemonfiend wrote: I see. That's a larger project than I'd hoped. Considering I've never created a binding before, is there some kind of tutorial/recommended reading available?

Re: OpenCL bindings

2013-03-20 Thread Jacob Carlborg
On 2013-03-20 12:09, Andrea Fontana wrote: You're missing dstep. Using dstep I converted some c-libraries in short time. It's quite easy to use and usually just some minor modification are needed to adjust auto-generated d interface. I was just about to suggest to use dstep. I'm glad to see

Re: OpenCL bindings

2013-03-20 Thread Mike Parker
On Wednesday, 20 March 2013 at 12:43:13 UTC, Jacob Carlborg wrote: On 2013-03-20 12:09, Andrea Fontana wrote: You're missing dstep. Using dstep I converted some c-libraries in short time. It's quite easy to use and usually just some minor modification are needed to adjust auto-generated d

Re: OpenCL bindings

2013-03-20 Thread Andrea Fontana
On Wednesday, 20 March 2013 at 12:43:13 UTC, Jacob Carlborg wrote: On 2013-03-20 12:09, Andrea Fontana wrote: You're missing dstep. Using dstep I converted some c-libraries in short time. It's quite easy to use and usually just some minor modification are needed to adjust auto-generated d

Re: OpenCL bindings

2013-03-20 Thread Jacob Carlborg
On 2013-03-20 14:25, Mike Parker wrote: Can dstep output function declarations as aliased function pointers in the format I use in Derelict? I guess I could make an option for that. -- /Jacob Carlborg

Re: OpenCL bindings

2013-03-20 Thread Jacob Carlborg
On 2013-03-20 14:59, Andrea Fontana wrote: *Very* useful. I hope it will be updated with some small changes (like anonymous struct alias replacement and d keyword replacement) :) It should already to D keyword replacement, if not, please report an issue with a test case:

Re: OpenCL bindings

2013-03-20 Thread Jacob Carlborg
On 2013-03-20 14:25, Mike Parker wrote: Can dstep output function declarations as aliased function pointers in the format I use in Derelict? BTW, why does it uses aliases and not declare a function pointer directly? -- /Jacob Carlborg

Re: OpenCL bindings

2013-03-20 Thread Andrea Fontana
On Wednesday, 20 March 2013 at 19:10:28 UTC, Jacob Carlborg wrote: On 2013-03-20 14:59, Andrea Fontana wrote: *Very* useful. I hope it will be updated with some small changes (like anonymous struct alias replacement and d keyword replacement) :) It should already to D keyword replacement,

Re: OpenCL bindings

2013-03-20 Thread Jacob Carlborg
On 2013-03-20 22:02, Andrea Fontana wrote: Maybe I have a old (binary) version for linux. For example params named out are not replaced with something else (f.e. _out) I checked the history and see that I added a fixed for this for function parameters just after the release. I'm pretty sure

Re: OpenCL bindings

2013-03-20 Thread Mike Parker
On Wednesday, 20 March 2013 at 19:54:42 UTC, Jacob Carlborg wrote: On 2013-03-20 14:25, Mike Parker wrote: Can dstep output function declarations as aliased function pointers in the format I use in Derelict? BTW, why does it uses aliases and not declare a function pointer directly?

OpenCL bindings

2013-03-19 Thread Lemonfiend
Hi, I'm interested in updating the existing OpenCL bindings (https://github.com/Trass3r/cl4d) so they work with Derelict3, but have never undertaken such a task. I'm not sure where/how to begin. Does anyone have any advice? :)

Re: OpenCL bindings

2013-03-19 Thread Mike Parker
On Tuesday, 19 March 2013 at 14:55:10 UTC, Mike Parker wrote: This is actually something I've wanted to get around to for a long time. I'm busier than ever these days so I can't take it on right now for sure. If you do decide to get busy on it, drop by the Derelict forums[1] if you need any

Re: OpenCL bindings

2013-03-19 Thread Mike Parker
On Tuesday, 19 March 2013 at 14:30:19 UTC, Lemonfiend wrote: Hi, I'm interested in updating the existing OpenCL bindings (https://github.com/Trass3r/cl4d) so they work with Derelict3, but have never undertaken such a task. I'm not sure where/how to begin. Does anyone have any advice

Re: OpenCL bindings

2013-03-19 Thread Lemonfiend
On Tuesday, 19 March 2013 at 14:55:10 UTC, Mike Parker wrote: On Tuesday, 19 March 2013 at 14:30:19 UTC, Lemonfiend wrote: Hi, I'm interested in updating the existing OpenCL bindings (https://github.com/Trass3r/cl4d) so they work with Derelict3, but have never undertaken such a task. I'm