Hacker Newsnew | past | comments | ask | show | jobs | submit | mwiedmann's commentslogin

The .js file is over 10,000 lines of code. How did it get so bloated from your 450 lines of code?


It includes imported libraries, primarily regl[1] which is 8228 lines long.

[1]: https://github.com/mikolalysenko/regl/blob/gh-pages/dist/reg...


I didn't spend much time optimising the size. I thought it loaded fast enough for me. But maybe it doesn't load as fast on a slow connection...


It's probably a bundled JS file containing all of his dependencies.


Node


While the tooling uses Node, the bloat comes from the bundle which includes canvas-fit, regl, and gl-mat4.


Since when do libraries used in your code classify as 'bloat'?


My family and I thought the book was fantastic, but one thing I wanted to say is how cool the the author is (Ernest Cline). We went to a book signing at Flyleaf Books in Chapel Hill, NC. Ernest spoke and gave a presentation for about 90 mins. He was very funny, had a bunch of great stories, and really engaged with all the kids as well. Warren Robinett (the creator of Adventure on the Atari 2600) is friends with Ernest and lives in Chapel Hill so he came to the event as well and spoke a bit. Another great guy. I was just totally blown away by how engaging Ernest was and how much extra effort he put in with the kids in the audience. You really get the feeling that he is super excited about whatever he is doing. His enthusiasm was contagious. Anyway, thought I'd share this. It does make me really root for the guy now.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: