IssueRaiser

Javascript has several disadvantages that make it less than ideal as a general compilation target.

Javascript has several disadvantages that make it less than ideal as a general compilation target. * Javascript is verbose because it's plain text and was 'optimised' for human readability, rather than machine-parsability. That means parsing Javascript is expensive, too expensive for high-performance applications. * Javascript's being a dynamically typed language means a single JavaScript variable may at different times represent a number, a string, or a fragment of HTML. Likewise, JS allows us radically to modify the behaviour of even built-in objects such as arrays. All this prevents the Javascript JIT compiler to optimise as aggressively as we'd like. * Javascript currently doesn't provide viable concurrency which makes translating languages that do a problem.

Posted by mafribe on Jun 22, 2015, 7:20 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.6,000 issues0 comments

pricing (Software)

Javascript has several disadvantages that make it less than ideal as a general compilation target.

mafribeJun 22, 2015, 7:20 AM

Javascript has several disadvantages that make it less than ideal as a general compilation target. * Javascript is verbose because it's plain text and was 'optimised' for human readability, rather than machine-parsability. That means parsing Javascript is expensive, too expensive for high-performance applications. * Javascript's being a dynamically typed language means a single JavaScript variable may at different times represent a number, a string, or a fragment of HTML. Likewise, JS allows us radically to modify the behaviour of even built-in objects such as arrays. All this prevents the Javascript JIT compiler to optimise as aggressively as we'd like. * Javascript currently doesn't provide viable concurrency which makes translating languages that do a problem.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue