Re:Loyal Opposition to Const, Private, Freeze, Non-Configura...
by william42 on Wednesday November 02, 2011 @07:17PM
(#3189382)
Because, all else being equal, writing your code in one language is better than writing your code in two languages.
Re:Loyal Opposition to Const, Private, Freeze, Non-Configura...
by chromatic on Wednesday November 02, 2011 @08:36PM
(#3189592)
Why not allow for C extensions to Javascript...
Because that's a terrible, stop-gap optimization strategy. You can't JIT over the FFI boundary without some heroic API, and distributing compiled/compilable code is quite a hassle.
An example of this would be Cython for Python, which lets you get to C speed within 1 to 5% slow down due to interfacing with Python, and it has you write in a Pythonic dialect of C/C++.