by tecoholic · 2mo ago · 0 comments
One of the thorniest conversions was the session.ts file, which was over 30,000 lines of TypeScript that touched all aspects of the runtime.
This can’t be real. Single file with 30K lines? Which human being is working on it and how much RAM does it take for a code editor to load that with full symbol tree? I am genuinely curious. Is this common? I think most files I come across stretch to maybe 2-3k lines max.For example, until recently the main file for donet runtime GC was more than 50000 lines (it has since been split).
[0] https://android.googlesource.com/platform/frameworks/base/+/...
I’ve also read that a first version of the file came from a Common Lisp to C++ code generation step: <https://news.ycombinator.com/item?id=23295041>
If you've ever used that tool you wouldn't ask this question, since it's obviously fully vibecoded.