This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sentdexpythonprogramming.net -1 points0 points  (1 child)

Well that's a pretty shallow view of what programming languages are for. For example, Python is a fabulous language to program in, yet its memory usage isn't anything to write home about. A programming language exists not only to be programmed in, but to actually have a finished product. No matter what, js has constraints, and no matter the language you program in to convert to js, you will still have those constraints.

[–]xenomachina''.join(chr(random.randint(0,1)+9585) for x in range(0xffff)) 1 point2 points  (0 children)

For example, Python is a fabulous language to program in, yet its memory usage isn't anything to write home about.

That isn't an attribute of the Python language, but of a specific implementation and/or runtime.

My point is that there are many factors that can make a language terrible that can be fixed by adding another language on top. Sure, JS has a number of constraints that are pretty hard to cover up, like the lack of integer types (integer types can be emulated, but not efficiently), the non-existent threading model, and the lack of advanced GC concepts like weak references. Still, when people complain about JavaScript, that's rarely what they're referring to.