www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DMD-MAC!!

reply BCS <none anon.com> writes:
http://dobbscodetalk.com/index.php?option=com_content&task=view&id=1015&Itemid=
Jan 28 2009
next sibling parent Walter Bright <newshound1 digitalmars.com> writes:
BCS wrote:
 http://dobbscodetalk.com/index.php?option=com_content&task=
iew&id=1015&Itemid= 
On reddit: http://www.reddit.com/r/d_language/comments/7t0tm/porting_d_to_the_mac/
Jan 28 2009
prev sibling next sibling parent John Reimer <terminal.node gmail.com> writes:
Hello BCS,

 http://dobbscodetalk.com/index.php?option=com_content&task=view&id=101
 5&Itemid=
 
This is extremely good news. I may (finally) have to get a mac. :) -JJR
Jan 28 2009
prev sibling next sibling parent reply Michel Fortin <michel.fortin michelf.com> writes:
On 2009-01-28 13:02:22 -0500, BCS <none anon.com> said:

 
 http://dobbscodetalk.com/index.php?option=com_content&task=view&id=1015&Itemid=
Interesting. From the last comment from Walter at the bottom:
 But the Mach-O has no such special sections.
 
 I think I've found a way to do it, but it would be better if the mac 
 was fixed to handle that like other systems do.
I wonder what's that way of doing it. -- Michel Fortin michel.fortin michelf.com http://michelf.com/
Jan 29 2009
next sibling parent reply Jacob Carlborg <doobnet gmail.com> writes:
Michel Fortin wrote:
 On 2009-01-28 13:02:22 -0500, BCS <none anon.com> said:
 
 http://dobbscodetalk.com/index.php?option=com_content&task=
iew&id=1015&Itemid= 
Interesting. From the last comment from Walter at the bottom:
 But the Mach-O has no such special sections.

 I think I've found a way to do it, but it would be better if the mac 
 was fixed to handle that like other systems do.
I wonder what's that way of doing it.
I think that mac can do this using function calls, but I can't find the man page right now.
Jan 29 2009
next sibling parent Jacob Carlborg <doobnet gmail.com> writes:
Jacob Carlborg wrote:
 Michel Fortin wrote:
 On 2009-01-28 13:02:22 -0500, BCS <none anon.com> said:

 http://dobbscodetalk.com/index.php?option=com_content&task=
iew&id=1015&Itemid= 
Interesting. From the last comment from Walter at the bottom:
 But the Mach-O has no such special sections.

 I think I've found a way to do it, but it would be better if the mac 
 was fixed to handle that like other systems do.
I wonder what's that way of doing it.
I think that mac can do this using function calls, but I can't find the man page right now.
Perhaps this: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/Thread.3pm.html
Jan 29 2009
prev sibling parent reply Sean Kelly <sean invisibleduck.org> writes:
Jacob Carlborg wrote:
 Michel Fortin wrote:
 On 2009-01-28 13:02:22 -0500, BCS <none anon.com> said:

 http://dobbscodetalk.com/index.php?option=com_content&task=
iew&id=1015&Itemid= 
Interesting. From the last comment from Walter at the bottom:
 But the Mach-O has no such special sections.

 I think I've found a way to do it, but it would be better if the mac 
 was fixed to handle that like other systems do.
I wonder what's that way of doing it.
I think that mac can do this using function calls, but I can't find the man page right now.
There are pthread calls for TLS which are implemented for OSX. But however it works (I haven't looked into it), it likely isn't as efficient or easy to deal with as the __thread storage class on other OSes. Sean
Jan 29 2009
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Sean Kelly wrote:
 There are pthread calls for TLS which are implemented for OSX.  But 
 however it works (I haven't looked into it), it likely isn't as 
 efficient or easy to deal with as the __thread storage class on other OSes.
It won't be as efficient. But that really doesn't matter at this point - accessing global variables in a tight loop is a bad idea anyway. TLS just has to work. It can be optimized later as OSX improves (which it must, as TLS is going to be a bigger and bigger deal as time goes on).
Jan 29 2009
parent reply Fawzi Mohamed <fmohamed mac.com> writes:
On 2009-01-29 23:19:25 +0100, Walter Bright <newshound1 digitalmars.com> said:

 Sean Kelly wrote:
 There are pthread calls for TLS which are implemented for OSX.  But 
 however it works (I haven't looked into it), it likely isn't as 
 efficient or easy to deal with as the __thread storage class on other 
 OSes.
It won't be as efficient. But that really doesn't matter at this point - accessing global variables in a tight loop is a bad idea anyway. TLS just has to work. It can be optimized later as OSX improves (which it must, as TLS is going to be a bigger and bigger deal as time goes on).
I don't agree so much with this, TLS can be useful is some occasions but should be used very sparingly in my opinion, it should be used mostly for the infrastructure, not by the end user. TSL is an evolution of global variables and still has many of their drawbacks, if possible one should pass the variables explicitly, often with some care, and maybe grouping them into structure it turns out to be easier than one thinks, and the effort costs little typing. There are things where TSL can be very useful, and I use it for example to make the scheduling interface nicer, but I think that with good design those cases are few... Encouraging wide use of TSL is bad in my opinion (not that you are doing it, but one might interpret it like that). Fawzi
Jan 31 2009
parent Walter Bright <newshound1 digitalmars.com> writes:
Fawzi Mohamed wrote:
 Encouraging wide use of TSL is bad in my opinion (not that you are doing 
 it, but one might interpret it like that).
If decent support for TLS is not there, then programmers will use regular global data instead, which comes with a whole raft of threading problems.
Jan 31 2009
prev sibling parent reply Walter Bright <newshound1 digitalmars.com> writes:
Michel Fortin wrote:
 I think I've found a way to do it, but it would be better if the mac 
 was fixed to handle that like other systems do.
I wonder what's that way of doing it.
I plan on doing a brief writeup on it in a future blog if it works.
Jan 29 2009
parent Jacob Carlborg <doob me.com> writes:
I would have been really nice to have that ppc support that got lost now.
Jan 29 2009
prev sibling parent reply Benji Smith <dlanguage benjismith.net> writes:
BCS wrote:
 
 http://dobbscodetalk.com/index.php?option=com_content&task=
iew&id=1015&Itemid= 
Very exciting! Thanks, Walter! Do you know whether OSX releases will be produced for D1, or just D2? I've had my fingers crossed that you were working on this, and I'm very happy to see that the progress is so swift :o) --benji
Feb 03 2009
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Benji Smith wrote:
 Do you know whether OSX releases will be produced for D1, or just D2?
Both.
Feb 03 2009
parent Benji Smith <dlanguage benjismith.net> writes:
Walter Bright wrote:
 Benji Smith wrote:
 Do you know whether OSX releases will be produced for D1, or just D2?
Both.
Sweet. You da man. --b
Feb 04 2009