3 ms·
There are so many small C compilers, I never know which one to choose, although TinyCC seems to be the best. To me it allows 2 things: * Use C as a fast script
by jokoon 7y ago
There are so many small C compilers, I never know which one to choose, although TinyCC seems to be the best. To me it allows 2 things:
* Use C as a fast scripting language. This can be useful for game programming, where you don't want to recompile your engine, but you can't tolerate the sluggishness of interpreted languages.
* Use C as a compile target. I would love to build a "pythonic lean C++", without the hard stuff, without template or backward compatibility of C. Just python indenting, strongly typed, maps, set, geometric types, python-like standard functions... I guess that using C as a compile target allows one to avoid the hassle of building a low-level compiler... Not sure though.
- garaetjjte 7y agoTo second point: do you have looked at D?
- jokoon 7y agoD is too high level, is not really pythonic, and the syntax seems to be too distant from C. I just wish C had some nicer things, like a string type, maps, etc. python indentation would also make it readable. D has a lot of difference with C/C++, even if it does things right. C is nice because it's simple and readable. D looks like it's using a lot of new syntax and it looks hard to adapt/learn.