On Monday, 6 June 2016 at 08:18:20 UTC, Russel Winder wrote:
On Mon, 2016-06-06 at 05:28 +0000, ketmar via Digitalmars-d wrote:
On Monday, 6 June 2016 at 05:13:11 UTC, Daniel Kozak wrote:
> You can still unregister your critical thread from GC.

exactly. that's what i did in my sound engine, and it works like a charm: i can enjoy hiccup-less ogg replaying on the background while the main code enjoys GC.

This should be marketed as a major feature of D: the language with a GC for those situations where you want it, and manual memory management for those cases where you do not want a GC.

Having the GC for the UI is very pleasant, while @nogc time-critical code won't use it.

It think the problem is that the message then become more complicated. GC is easily victim of the "holier-than-thou" fallacy, because evidently less GC is supposed to translate into faster programs. Er... right?

Reply via email to