A D vs. Rust example

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Oct 26 19:00:31 UTC 2022


On Wednesday, 26 October 2022 at 18:33:24 UTC, Paulo Pinto wrote:
> There is nothing more real time that weapons targeting and 
> guiding systems, where a couple of ms means the wrong guys die, 
> what is a frame dropped in a browser compared with a big hole 
> where it wasn't supposed to be one.

Apples and oranges.

Browser applications generate a lot of garbage, there are many 
things going on in the background as browsers are high level 
development environments. There is no way you can use a 
freeze-the-world GC as the primary collection mechanism and be 
competitive. And most likely not using Go's GC either.

Not to mention that the memory consumption nearly doubles when 
you start to rely on the GC.

If writing a heavy "realtime" runtime using a run-of-the-mill GC 
was competitive, then people would do it to save money.



More information about the Digitalmars-d mailing list