<div class="gmail_quote">On 9 April 2012 02:24, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com">newshound2@digitalmars.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 4/8/2012 3:57 PM, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What do you base that statistic on? I'm not arguing that fact, just that I<br>
haven't seen any evidence one way or the other. What causes Go to create<br>
significantly more garbage than D? Are there benchmarks or test cases I should<br>
be aware of on the topic?<br>
</blockquote>
<br></div>
The first ycombinator reference is a person who didn't run out of memory using D. That implies far less pressure on the gc.<br>
<br>
My understanding of Go is that when it does structural conformance, it builds some of the necessary data at runtime on the gc heap.<br>
<br>
Anyhow, D has a lot of facilities for putting things on the stack rather than the heap, immutable data doesn't need to get copied, and slices allow lots of reuse of existing objects.<br>
</blockquote></div><div><br></div>"<span style="font-family:Verdana;font-size:12px;background-color:rgb(246,246,239)">optimized D was slightly faster than Go at almost anything and consumed up to 70% less memory</span>"<div>
Interesting... I don't know enough about Go to reason that finding, I guess I assumed it has most of the same possibilities available to D. (no immutable data? no stack structs? no references/pointers/slices? crazy...)<div>
<br></div><div>The only D program I have significant experience with is VisualD, and it hogs 1-2gb of ram for me under general usage, and eventually crashes, after paging heavily and bringing my computer to a crawl. Not a good sign from the first and only productive D app I've run yet ;)</div>
<div>This seems a lot like his experience with Go... but comparisons aside, D still clearly isn't there yet when it comes to the GC either, and I'm amazed Google thing Go is production ready if that guys findings are true!</div>
</div>