Re:Near Future of Programming Languages [pdf]
by flavio81 on Tuesday October 31, 2017 @12:29AM
(#15591084)
>You can transpile ClojureScript, Elm, Reason, PureScript and many other languages to it. Yet -- surprise! It is still in use. Do you honestly think this is just inertia?
No, it isn't inertia -- one important reason is that creating a transpiler to JS invariably ends up with a crippled (feature-restricted), slower version of the original language (Clojure, etc.)
Thus the hope placed in Webassembly.
Re:Near Future of Programming Languages [pdf]
by lhnz on Tuesday October 31, 2017 @04:45AM
(#15591770)
People aren't choosing between those languages based on performance or avoiding any due to missing features. I've never heard of anybody doing that.
People generally choose languages due to assumptions about their hiring pool.
Re:Near Future of Programming Languages [pdf]
by marcosdumay on Tuesday October 31, 2017 @10:00AM
(#15593257)
If people only choose languages based on popularity, how do you imagine any language ever becomes popular?
Re:Near Future of Programming Languages [pdf]
by lhnz on Tuesday October 31, 2017 @10:55AM
(#15593659)
My point is that those transpiled languages aren't that stymied. You can use them without a lot of problems, and they're being left on the bench for reasons other than their feature set.
Companies generally choose JavaScript because there are lots of developers to choose from, it runs everywhere and the ecosystem is huge.
Engineers choose something like PureScript as it's not a 'blub' language and people think that by choosing it they will be able to hire (or be seen as) "math geniuses". I'm sure the feature set is important, but it's not enough to unseat a language with the previously described properties.
In fact, the normal stereotype of JavaScript developers as people constantly chasing new technologies and libraries is actually true, but what you are claiming is the exact opposite: "people feeling empowered without learning anything new". People are empowered and learning new things because there is a low barrier to doing so and this is exciting.
Have you actually written modern JavaScript code? I personally think it's more expressive than both Python and Ruby, and certainly much more so than Java. As it stands JavaScript doesn't have a monopoly on the browser. You can transpile ClojureScript, Elm, Reason, PureScript and many other languages to it. Yet -- surprise! It is still in use. Do you honestly think this is just inertia? I'd argue that it's investment in the platform itself and particularly 'innovation in maneuverability' (number of environments, speed of prototyping, backward compatible code, ease of hiring) which keeps developers using the platform.In my opinion, the existence of NPM and a broad range of environments that you can run your code on will likely mean that JavaScript would still be a productive environment even if the web was to die.