www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT] Feedback on Cooperative Threading Project

reply Benjamin Ylvisaker <ben.ylvisaker coloradocollege.edu> writes:
I am a grad school acquaintance of Andrei's. I contacted him a 
little while ago asking for feedback on a project that I'm 
working on. He suggested I post it to the D list. So here I am.

The link below is to a draft that is currently under review for 
PLDI 2017. Please do not share it in a way that might get to a 
committee member for that conference.

I am happy to hear any feedback you have, whether it's critical, 
enthusiastic or indifferent.

http://charcoal-lang.org/charcoal_intro_draft.pdf

Thanks,
Ben

ben.ylvisaker coloradocollege.edu
Dec 03 2016
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 04/12/2016 5:54 AM, Benjamin Ylvisaker wrote:
 I am a grad school acquaintance of Andrei's. I contacted him a little
 while ago asking for feedback on a project that I'm working on. He
 suggested I post it to the D list. So here I am.

 The link below is to a draft that is currently under review for PLDI
 2017. Please do not share it in a way that might get to a committee
 member for that conference.

 I am happy to hear any feedback you have, whether it's critical,
 enthusiastic or indifferent.

 http://charcoal-lang.org/charcoal_intro_draft.pdf

 Thanks,
 Ben

 ben.ylvisaker coloradocollege.edu
I would suggest if your ABI requires it to move the callback from last argument to either first or second. Not that I read your paper in much depth. You would get problems with e.g. c's var args with it last.
Dec 03 2016
parent Benjamin Ylvisaker <ben.ylvisaker coloradocollege.edu> writes:
On Sunday, 4 December 2016 at 01:18:45 UTC, rikki cattermole 
wrote:
 On 04/12/2016 5:54 AM, Benjamin Ylvisaker wrote:
 I am a grad school acquaintance of Andrei's. I contacted him a 
 little
 while ago asking for feedback on a project that I'm working 
 on. He
 suggested I post it to the D list. So here I am.

 The link below is to a draft that is currently under review 
 for PLDI
 2017. Please do not share it in a way that might get to a 
 committee
 member for that conference.

 I am happy to hear any feedback you have, whether it's 
 critical,
 enthusiastic or indifferent.

 http://charcoal-lang.org/charcoal_intro_draft.pdf

 Thanks,
 Ben

 ben.ylvisaker coloradocollege.edu
I would suggest if your ABI requires it to move the callback from last argument to either first or second. Not that I read your paper in much depth. You would get problems with e.g. c's var args with it last.
Thanks for the reply. I don't think your comment is applicable to my current implementation. There are no implicit callbacks. The only game I play with arguments is adding an extra one to function pointers in my dialect (and it is the first argument). So if you want to pass a pointer to a dialect function to a plain C function, there has to be some careful handling of that. Ben
Dec 04 2016