Hacker News new | ask | show | jobs
by m1ckey 1533 days ago
The .NET runtime GC is a 47k C++ file.

https://github.com/dotnet/runtime/blob/main/src/coreclr/gc/g...

2 comments

Someone please tell me this is transpiled from a separate project.
It'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.
If 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 :)
Python's main interpreter loop is a single 4k line function.

https://github.com/python/cpython/blob/main/Python/ceval.c#L...