3 ms·
> transpiler just typically means it goes from one language i could write, to another i could write. What possible compiler target couldn't you write? Compiler
by randomdata 2y ago
> transpiler just typically means it goes from one language i could write, to another i could write.
What possible compiler target couldn't you write? Compilers are not exactly magic.
- unshavedyak 2y agoFair, by "could write" i meant one intended for humans to write. Ie i would not say LLVM bytecode is intended for humans to write by hand. Can they? Sure. The difference (to the parent comment) in my eyes is that the target language is the thing intended for humans, not the target output itself. As another commenter points out, transpiled code is often not intended for humans, even if the language is.
- randomdata 2y agoMachine code is intended to be written by humans. That was the only way to program computers at one point in time. Given a machine code target, would you say it is product of transpilation or compilation?
- unshavedyak 2y agoI would stand by my original statement, as i don't consider that "intended" or common by modern day standards. Humans hand wrote binary for a while too hah. If it's not clear, these are just my opinions. Not an attempt at an objective fact or anything.
- randomdata 2y ago> Humans hand wrote binary for a while too hah. Like, as in flipping toggle switches? Isn't that just an input device? They were still producing machine code from that switching.