11 ms·
I had the impression we already had that discussion with Babel and TypeScript and the conclusion was, transpilers aren't really different from compilers, and we
by k__ 5y ago
I had the impression we already had that discussion with Babel and TypeScript and the conclusion was, transpilers aren't really different from compilers, and we should simply calling them compilers.
I think, the background was the word transpiler was used by compiler creators as a way of gatekeeping.
- naniwaduni 5y agoBest I can tell, it's largely the opposite: "transpiler" is mainly used to sound cool and build hype, traditional compiler folks tend to fall on your side and prefer to call them all "compilers". (The usual term of disparagement in this context is "preprocessor"!)
- k__ 5y agoGood to know! Thanks.
- Zababa 5y agoCompilers and transpilers are the same. The term "optimizing compiler" exists, which probably mean that some are non-optimizing. TypeScript is a great example of that (although it does optimize a few things depending on the target). Babel can be used as a macro system for JS, and macros are compilers.
- chrisseaton 5y ago> I think, the background was the word transpiler was used by compiler creators as a way of gatekeeping. Why do you think that?
- k__ 5y agoThe Babel creator said it.
- chrisseaton 5y agoThat's the Babel creator's opinion. Why's it also yours?
- ModernMech 5y ago> I think, the background was the word transpiler was used by compiler creators as a way of gatekeeping. I dunno anyone who makes compilers who would draw this distinction (I know a lot of people who make compilers). I think it's more used by language warriors who don't understand there really isn't a distinction.