Re:Is Nim a Transpiler?
by naniwaduni on Wednesday October 20, 2021 @10:55AM
(#28931390)
Best 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"!)
Good to know! Thanks.
Re:Is Nim a Transpiler?
by ModernMech on Wednesday October 20, 2021 @10:51AM
(#28931338)
> 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.
Compilers 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.
Re:Is Nim a Transpiler?
by chrisseaton on Wednesday October 20, 2021 @10:49AM
(#28931309)
> I think, the background was the word transpiler was used by compiler creators as a way of gatekeeping.
Why do you think that?
The Babel creator said it.
Re:Is Nim a Transpiler?
by chrisseaton on Wednesday October 20, 2021 @11:01AM
(#28931453)
That's the Babel creator's opinion. Why's it also yours?
I think, the background was the word transpiler was used by compiler creators as a way of gatekeeping.