Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Javascript is kinda messy. So many things needed to get stuff working right. Uglyfy, browserify, babel.

Will there ever be an alternative language that can allow me to just: write, compile, run in browser?



I assume your comment is sarcastic, because Javascript is obviously the only language which you can just write and immediately run.


...if you don't work in any company with a convoluted build process that includes transpiling (which is nearly all of them).


You should check out this framework.

http://vanilla-js.com/

Batteries included and ready to go.


All of those only intend to reduce file size or improve backwards compatibility; you don't need those, it just makes things faster and work in a wider range of browsers (notably IE 8 and co).


Unlikely. Unless we were to discard support for all old browsers and all new browsers update automatically and support the same features across devices and OS.



Those things aren't needed to get javascript to work properly, most such "hacks" are necessary because of the DOM, proprietary standards and the ridiculous variety of devices web content needs to be displayed on. Even if you had an alternative language, those problems would still remain.



Dart?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: