Re:Hackers Were Inside Citrix for Five Months
by arminiusreturns on Wednesday February 19, 2020 @05:20PM
(#22370730)
I like CSS, can we start with JS first instead?
[ Parent
| on HN ]
Re:Hackers Were Inside Citrix for Five Months
by AdmiralGinge on Thursday February 20, 2020 @11:48AM
(#22376375)
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.
Re:Hackers Were Inside Citrix for Five Months
by sangnoir on Thursday February 20, 2020 @12:18PM
(#22376646)
> 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.
Re:Hackers Were Inside Citrix for Five Months
by dreamcompiler on Thursday February 20, 2020 @01:03PM
(#22377061)
WASM cannot access the DOM. Not yet, anyway. I find this ridiculous, but that's the situation.
Re:Hackers Were Inside Citrix for Five Months
by PopeDotNinja on Thursday February 20, 2020 @01:44PM
(#22377461)
Does Elm count?