Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by amelius on Wednesday February 10, 2016 @07:11PM
(#11077279)
Why not use a python->x86 compiler followed by a x86->asm.js compiler?
[ Parent
| on HN ]
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by constexpr on Wednesday February 10, 2016 @08:58PM
(#11077755)
I don't know much about the project but I have a lot of experience with asm.js. Using asm.js has many drawbacks and should only be used if the tradeoffs are acceptable. Some of the large issues:
- A bad debugging experience (no segfaults on null, local variables are numbers instead of strings or objects, function pointer calls are super confusing)
- Much more difficult to interoperate with external JavaScript libraries
- Massive code bloat (you have to reinvent everything like arrays, strings, maps, regexes, memory management, etc. instead of just using the browser's built-in implementations)