12 ms·
The .NET runtime GC is a 47k C++ file. https://github.com/dotnet/runtime/blob/main/src/coreclr/gc/gc.cpp https://github.com/dotnet/runtime/blob/main/src/corecl
by m1ckey 4y ago
The .NET runtime GC is a 47k C++ file.
https://github.com/dotnet/runtime/blob/main/src/coreclr/gc/gc.cpp https://github.com/dotnet/runtime/blob/main/src/coreclr/gc/g...
- TimTheTinker 4y agoSomeone please tell me this is transpiled from a separate project.
- phyrex 4y agoIf I remember correctly it was in fact written in Common Lisp; the output was originally that file but it may have been modified since. You can probably google the truth with those breadcrumbs :)
- liversage 4y agoIt's originally written in LISP and this is why it's a single C++ file. However, I believe that it's now being maintained in its C++ form.
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- rahimiali 4y agoPython's main interpreter loop is a single 4k line function. https://github.com/python/cpython/blob/main/Python/ceval.c#L1586 https://github.com/python/cpython/blob/main/Python/ceval.c#L...