News for hackers. Stuff that matters.
Re:C meeting is over. C23 added: by dig1 on Saturday February 19, 2022 @07:13AM (#30396546)
Depending on transpiler (compilers that will compile to C), you can get near representation in C (rarely) or something completely different (frequently). In Scheme/LISP world (where transpilers were popular for a while), even a simple expression like "(+ 1 1)" will rarely give you something like: "int a = 1 + 1;". I've seen these things would produce dozen of lines of various boxing/unboxing calls, type checks and GC protection marks. If the compiler is really aggressive, it will just put "2" as a constant.

I think that the only benefit of "compiling to C" was reusing existing compilers, not tooling around it. Also, debugging that code is a nightmare unless you are intimate with transpiler internals.

Re:C meeting is over. C23 added: by sys_64738 on Saturday February 19, 2022 @08:00AM (#30396836)
A compiler that translates to another language used to be called a translator.
Re:C meeting is over. C23 added: by zabzonk on Saturday February 19, 2022 @11:13AM (#30398155)
All compilers covert programs in one language (say C) into another, (say assembler or machine code), and they are called compilers. The whole transpiler thing is a bit bogus, but a C compiler has never IME been called a translator.