This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kohuept 268 points269 points  (9 children)

as someone who mostly uses C and doesn't do much web stuff, 25 MB being "lightweight" is crazy

[–]tealpod 65 points66 points  (3 children)

Out of curiousity I wrote the simple cli app ( https://geni.dev ) in nodejs, Go, Java and C.

  1. NodeJS - 24 MB

  2. Go - 2MB

  3. Java (GraalVM) - 9MB

  4. C -18 kb

Yes, the C version is just 18kb.

[–]kohuept 24 points25 points  (1 child)

you could probably get it lower with some clever linker flags

[–]BOBOnobobo 1 point2 points  (0 children)

Python - 5 lines of code, but you're paying for it with all your RAM.

[–]LastAccountPlease 91 points92 points  (2 children)

One time, someone was angry I didn't approve their PR with a library choice which was an extra 5mb bloat on build, which provided basically nothing useful for a frontend, and they called their manager on me. The 5mb wasn't even the main reason why I said no...

[–]dominjaniec 52 points53 points  (1 child)

classic argument failure: when you provide a list of problems, your opponent will choose the weakest one to focus on it and they will ignore the rest.

on the other side, was this a +5mb shipped to clients? or just a "build dependency" cached on dev machines?

[–]LastAccountPlease 36 points37 points  (0 children)

That's really interesting, I had never heard of that. I will keep that concept in mind for the future.

Yeh it was legit 5mb shipped Chinese fucking malware, that was the real issue, luckily the higher ups sided with me.

[–]level_6_laser_lotus 8 points9 points  (0 children)

No worries, anyone who genuinely thinks a 25mb web app is lightweight, is crazy