3 ms·
> Do you really think the compiler needs glfw or freetype to function? It's for the graphics library to build things like the tetris.v example. Do you ship the
by kingkong2022 7y ago
> Do you really think the compiler needs glfw or freetype to function? It's for the graphics library to build things like the tetris.v example.
Do you ship the compiler with those libraries that require those packages? If yes, then the compiler is not 400kb. The compiler nowadays never means only the compiler executable, it means the complete environment it ships with.
- amedvednikov 7y agoThe V compiler is the program that builds source in V. It has zero dependencies, and that's the claim. The modules can have gigabytes of dependencies, this doesn't make the compiler depend on them.
- kingkong2022 7y agolol. Why don't you also subtract the size of the stdlib from that. Or have you already done it. I assume the compiler does not require the stdlib to build an empty V file? Then congrats you just reduced the size of the compiler some more.
- amedvednikov 7y agoWhere am I subtracting it?
- kingkong2022 7y agoYeah you don't. You never added the size of the dependencies (like clang) to the size of the compiler. And thats what I am saying. You don't even need to add the size of your stdlib. A compiler does not include the stdlib as per your definition . So your compiler is actually much less than 400kb.
- amedvednikov 7y agoPlease list these "dependencies" other than the C compiler that's needed to bootstrap the language anyway. I'll wait.
- kingkong2022 7y ago> other than the C compiler On windows, clang is about 100 mb download and it further requires msvc install which is around 1 gb download if you only download the build tools. That in itself is a fucking 1.1 gb dependency.