Y
Hacker News
new
|
ask
|
show
|
jobs
by
mwiedmann
3781 days ago
The .js file is over 10,000 lines of code. How did it get so bloated from your 450 lines of code?
4 comments
evan_
3781 days ago
It includes imported libraries, primarily regl[1] which is 8228 lines long.
[1]:
https://github.com/mikolalysenko/regl/blob/gh-pages/dist/reg...
link
erkaman
3781 days ago
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...
link
eshyong
3781 days ago
It's probably a bundled JS file containing all of his dependencies.
link
robotmlg
3781 days ago
Node
link
klodolph
3781 days ago
While the tooling uses Node, the bloat comes from the bundle which includes canvas-fit, regl, and gl-mat4.
link
whostolemyhat
3780 days ago
Since when do libraries used in your code classify as 'bloat'?
link
[1]: https://github.com/mikolalysenko/regl/blob/gh-pages/dist/reg...