3 ms·
>How can you normalize the fact that different languages are appropriate for different domains? There's nothing that makes Javascript especially appropriate fo
by coldtea 9y ago
>How can you normalize the fact that different languages are appropriate for different domains?
There's nothing that makes Javascript especially appropriate for web apps, except for the fact that it's bundled as the default and only language on web browsers.
So there's always that. Such accidents of history play more important role on what ecosystem and thus perceived suitability a language has, than the language's own merits.
Judged purely on language merits, Smalltalk would have made an excellent language for web apps and more over JS.
- ianbicking 9y agoTake Smalltalk, throw away the image, or go over further and throw away the standard library (it's important that JavaScript never really had one), and what would you have? Take the database away from MUMPS and it's not even MUMPS. Languages and runtimes can't be separated, because you can't just transplant a language to a different runtime and maintain the same experience.
- coldtea 9y ago>Take Smalltalk, throw away the image, or go over further and throw away the standard library (it's important that JavaScript never really had one), and what would you have? Still a damn fine language. That said, I don't think it's necessary to drop the standard library to make Smalltalk a web language, nor that it's "important that JavaScript never really had one". It would have been much better if it came with a better "batteries" for all basic stuff (parsing urls, string manipulation, making requests, etc) from the start. Ditto for the image -- one could very easily have web images, in fact that's part of what WASM would eventually achieve.