156 ms·
> And yes, I know as a C# developer sitting on top of hundreds of megabytes of runtime, I'm "part of the problem". This should be a solvable problem, IMO. I m
by TeMPOraL 9y ago
> And yes, I know as a C# developer sitting on top of hundreds of megabytes of runtime, I'm "part of the problem".
This should be a solvable problem, IMO.
I mean, C/C++ apps are not inherently tiny - they sit on top of a large runtime too, but one that usually comes with the OS. What makes Python or Lisp apps (in binary form) multi-megabyte by default is that they can't depend on users having the runtime installed, unlike C/C++ apps. JVM managed to cross that gap too - most users, at some point, will install a JRE, which allows .jar files to be small.
I wonder why generalized solution for managing programming language runtimes OS/user-side didn't materialize.
- makapuf 9y agoPython runtime also uses that same C runtime so it's not as if you can replace one with another. Besides, stripped static binaries in C or even C++ can be relatively small. JRE is not installed by default on many desktops, let alone embedded.
- astrobe_ 9y agoYou are deeply confused. What makes managed/VM based languages big is that those runtimes are general purpose, and therefore have to embark what most people need. A C/C++ app embarks (mostly) only what's necessary. I can compile a hello world for bare metal, replace puts with a routine that sends the characters to the serial output, add the necessary UART initializations, and the final program will still be a bunch of order of magnitudes smaller that a Python install. The comparison is unfair of course, but it proves one thing: no multimegabyte runtime in C.