[Off-Topic] John Carmack's point of view on GC and languages like JavaScript
Johan
j at j.nl
Wed Aug 10 08:44:09 UTC 2022
On Monday, 8 August 2022 at 15:25:40 UTC, Paul Backus wrote:
>
> This is possible using the `GC` API in `core.memory`:
>
> ```d
> {
> import core.memory: GC;
>
> GC.disable();
> scope(exit) GC.enable();
>
> foreach (...)
> // hot code goes here
> }
> ```
>
> ```d
> void load_assets()
> {
> import core.memory: GC;
>
> // allocate, load stuff, etc..
> GC.collect();
> }
> ```
I'll join this week's coffee corner talk about GC.
At ASML, Julia is now used on (part of) the machine. The machine
is a time critical production system (you all want more chips
right? ;), and GC was apparently one of the main concerns. They
solved it using the manual `GC.disable` / `GC.collect` approach.
https://pretalx.com/juliacon-2022/talk/GUQBSE/
I work on hardware at ASML and am not involved with software
development for the scanner; so I do not know any details but
found it quite interesting to see that Julia is used in this way.
-Johan
More information about the Digitalmars-d
mailing list