<br><div class="gmail_quote">2011/12/11 Paulo Pinto <span dir="ltr"><<a href="mailto:pjmlp@progtools.org">pjmlp@progtools.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 10.12.2011 21:35, schrieb Andrei Alexandrescu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 12/10/11 2:22 PM, maarten van damme wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Just for fun I<br>
wanted to create a program as little as possible, compiled without<br>
garbage collector/phobos/... and it turned out that compiling without<br>
garbage collector is pretty much impossible (memory leaks all around the<br>
place in druntime). dynamic linking for the d standard library would be<br>
a great new option for a dmd release in the future :).<br>
</blockquote>
<br>
Using D without GC is an interesting direction, and dynamic linking<br>
should be available relatively soon.<br>
<br>
<br>
Andrei<br>
</div></blockquote>
<br>
As a long time beliver in systems programming languages with GC support<br>
(Modula-3, Oberon, Sing#, ...), I think allowing this in D is the wrong direction.<br>
<br>
Sure provinding APIs to control GC behavior makes sense, but not turn it<br>
off, we already have enough languages to do systems programming without GC.<br>
</blockquote></div><br>I was only trying it "for the fun of it", not to be used seriously. D should always have it's GC support built-in and have some functions to control it's behaviour (core.memory). But I think that D, beeing a systems programming language, should also be able to be used without GC. I don't mean phobos to be writtin without a GC in mind but druntime should be compilable with something like a -nogc flag that make it usable without GC.<br>
<br>There are a lot of users out there who think that a GC produces terribly slow programs, big hangs while collecting,... (thank java for that. Right now the java GC has been improved and it's extremely good but the memory stays :p)<br>
Letting them know that D can be run without GC can be a good point. If they don't like it, they can turn it off.<br>