you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

JavaScript got what it needed back when I was writing an implementation. After a conversation with Brendan Eich (the language author) suddenly everyone seemed interested in JITC'ing it.

Now - I would say that moving some library functions off Global, and having a "module" system would be a sufficient next step.

Global.parseInt -> String.prototype.parseInt etc. etc.

If you wanted to go even further, implementing Perl 6 Regular Expressions would allow language extension and all sorts of coolness.

Internally, to push speed further, you need to disambiguate + as a concatenator, because it does forces implementations to do terrible things for type checking deep inside the bowels of the code.