DEV Community

Discussion on: Why is Go so Damn Popular Among Developers

Collapse
 
nikolaykhodov profile image
Nikolay Khodov • Edited

GopherJS doesn't compile but rather transpile.

Transpilation doesn't bring run-time safety and may sometimes generate inconsistent code which can't be debugged w/o deep node.js knowledge.

I also think you can't enjoy all power and performance given by goroutines. The JS runtime is different from what you're used to.

I would think twice to use GopherJS. The other alternative is to really compile into WebAssembly modules with exposed APIs that give you the run-time safety, predictability, portability. node.js natively supports WASM modules.