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

I like CSS, can we start with JS first instead?


I wonder if anyone's tried to write a language primarily for manipulating the DOM that's less... "quirky" than JavaScript? With WebAssembly being fairly well supported these days I suppose someone with a background in language design could write an interpreter in C for such a domain-specific language and target WASM.

Of course, people would say "what's the point" when JS is a thing and widely supported. I wonder if there'd be a) a compelling improvement in performance and b) a compelling improvement in reliability if we just wholesale replaced it based on lessons learned? I reckon even just keeping JS and eliminating implicit coercions would be a huge improvement (as well as maybe automatic semicolon insertion) and reduce the debugging times considerably.


> I wonder if anyone's tried to write a language primarily for manipulating the DOM that's less... "quirky" than JavaScript?

I don't know about "less quirky", but Microsoft tried with VBScript. Google tried with Dart. Initially, Dart meant to be interpreted by the browser (not transpiled to JS). I'm sure there might have been similar, smaller projects, but Javascript-in-the-browser has momentum that's hard to beat.


WASM cannot access the DOM. Not yet, anyway. I find this ridiculous, but that's the situation.


Does Elm count?




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

Search: