| ▲ | tecoholic 2 hours ago |
| 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. |
|
| ▲ | Zanfa 5 minutes ago | parent | next [-] |
| Behold the View.java[0] at 34k lines of human code. IIRC it’s slimmed down a bit these days and used to be more. [0] https://android.googlesource.com/platform/frameworks/base/+/... |
|
| ▲ | Rexxar an hour ago | parent | prev | next [-] |
| 30000 is not that big in very old projects with many contributors. There are always one or two files that no one wants to take the time and responsibility to clean up. And 30000 is not a big number for RAM. The fact that you find it choking is more and of an indication of how bad our tools have become than anything else. For example, until recently the main file for donet runtime GC was more than 50000 lines (it has since been split). |
|
| ▲ | wayvey an hour ago | parent | prev | next [-] |
| I recently saw a ~60k lines / 3mb .cpp file in one vibe coded project (and yes I was a bit horrified) Surprised it works at all but it apparently does. Not really for a human though and even for an LLM it would be more beneficial for it to be split up. |
| |
| ▲ | NewsaHackO an hour ago | parent | next [-] | | This has to be 1) early LLM vibe coding or 2) “hand” vibe codingwhere the user asked the LLM to code sections and stitches them together manually, and the programmer is a novice. The second part I speak from experience; got to ~2k before realizing this is out of the script range and started to break it up. Regardless, it would be almost impossible to get an SOTA LLM agent to ever do this. | | |
| ▲ | applfanboysbgon 33 minutes ago | parent [-] | | It is very possible. Sol Max created a 17k line monolithic file in a prototype not long ago. If I didn't stop it and make it refactor everything it easily would have went to 60k. I think it's the default if you start a new project and don't define the architecture concretely with files and folders beforehand. Models have zero concept of architecture or long-term planning, they just band-aid the fastest immediate solution that gets them the reward. | | |
| ▲ | phoghed a few seconds ago | parent [-] | | I find that specifically when you tell it you’re doing a prototype or POC, it takes that as a license to write huge single files and other shit coding practices. |
|
| |
| ▲ | perching_aix 30 minutes ago | parent | prev [-] | | I have seen 30k line cpp files even a decade ago (World of Warcraft server emulator, gameplay logic of a boss enemy), and was told it is fairly normal in large software (even 100K not being unheard of), so I'm not sure if it's that much of an LLM thing. | | |
|
|
| ▲ | sajithdilshan 35 minutes ago | parent | prev | next [-] |
| The question should be how can they ever let that file grow that big. What kind of engineers were working on that, like I hate seeing any file more than 300-400 lines of code |
| |
| ▲ | dgellow 18 minutes ago | parent [-] | | If well organized the number of lines of code in a file is really irrelevant. 300-400 loc is a tiny file in any professional project. Splitting in a large number of file doesn’t magically make things simpler to manage, in fact you fragment the context by doing that. And very likely end up with unnecessary abstractions | | |
| ▲ | sajithdilshan 11 minutes ago | parent [-] | | I disagree, that makes it more readable, maintainable and testable. Just because everything is in one file doesn’t mean you’ll be able to build the context, you’d forget what was at the start of the file when you get to the bottom of it if it’s like 3k lines |
|
|
|
| ▲ | formerly_proven an hour ago | parent | prev | next [-] |
| > Which human being is working on it If you've ever used that tool you wouldn't ask this question, since it's obviously fully vibecoded. |
|
| ▲ | smitty1e 2 hours ago | parent | prev [-] |
| Was the documentation for each function a full-on essay? |