Compile-to-web PLs come in three flavours (increasing difficulty of adoption):
JS-like: different syntax/semantics, existing JS tooling: Typescript, CS
Separate world: builds own toolchain: Elm, Purescript
Separate platform: includes own runtime/needs FFI: ScalaJS, Pyjamas
Related Posts
tree-sitter is adding a notion of reserved keywords, as it previously treated keywords as contextual: https://github.com/tree-sitter/tree-sitter/pull/1635
Includes a fun example of using `if` as a name in JS!
If I created a brand new programming language today, I'd be very tempted to write a bootstrap compiler in JS.
This would make it much easier to provide web playgrounds for people to write small programs and play with the language.
I'm fascinated to learn that some distros are including the whole HTML manual in the package!
It seems like a nice thing for users, but I was initially surprised to see JS in the package.
https://archlinux.org/packages/community/x86_64/difftastic/