News for hackers. Stuff that matters.
Re:Is Nim a Transpiler? by ptx on Wednesday October 20, 2021 @11:09AM (#28931573)
> What Jetbrains calls Kotlin -> JavaScript, is "transpilation"

What about the new beta Kotlin/JS compiler that does Kotlin -> frontend IR -> backend IR -> JavaScript?

Re:Is Nim a Transpiler? by gavinray on Wednesday October 20, 2021 @01:04PM (#28933114)
Oh man, good food for thought.

I guess... "Compilation of Kotlin, then emittance of JS"?

Because I believe this uses the shared "FIR" IR that the JVM/Native backends use right?

This is why the whole argument/topic is so subjective/pedantic haha.

Re:Is Nim a Transpiler? by ptx on Wednesday October 20, 2021 @04:20PM (#28935913)
Yup, the backend IR is shared between JVM, JS (beta) and Native. The new frontend IR, I realize on second thought, will come later[1] with the K2 compiler frontend.

The old Kotlin/JS compiler is definitely closer than the new one to what might be called transpiler.

[1] https://blog.jetbrains.com/kotlin/2021/10/the-road-to-the-k2...