Re:Facebook is using D in production starting today
by Pxtl on Friday October 11, 2013 @07:47AM
(#6532491)
It is, but the standard library uses it so you have to avoid them if you want no GC.
[ Parent
| on HN ]
Re:Facebook is using D in production starting today
by CountHackulus on Friday October 11, 2013 @08:09AM
(#6532570)
That's changing. The standard library is almost entire GC-free now.
Re:Facebook is using D in production starting today
by he_the_great on Friday October 11, 2013 @12:17PM
(#6534056)
That's a little adventurous. std.algorithm is known to only have one function which allocates.
The rest of Phobos is being looked at, but to this point I don't think it has been combed thoroughly enough to say "almost entire."
Re:Facebook is using D in production starting today
by jmdavisProg on Friday October 11, 2013 @03:45PM
(#6535488)
Yeah. The "almost entire" applies to std.algorithm. How much allocation goes on elsewhere depends on what module you're talking about. Some definitely avoid it, whereas others definitely require it. That will be (and has been) changing though. The main thing is probably going to be making much heavier use of output ranges rather than automatically allocating arrays/strings. We'll get there though, because there's clearly a lot of interest in doing so, and there's no fundamental reason why we can't.
Re:Facebook is using D in production starting today
by eco on Friday October 11, 2013 @12:23PM
(#6534105)
I'm not sure where you got that idea but that's not true. The standard library make heavy usage of the GC. There is talk of implementing ARC to replace or supplement the GC and the standard library will most likely soon start using output ranges to avoid forced GC allocations in many cases but that hasn't happened yet.