63 likes
·
105 reads
4 comments
the blog provides a good introduction to domain-specific compilers and their benefits for web development
Near the top you state that JavaScript is a general purpose language (which I agree with) and then later you list it as a domain specific language. This seems like a contradiction?
JavaScript is also used for web dev. So, to design compiler for web domain, we have to consider javascript too. By the way, thanks for pointing out.
Actually according ECMAScript Specification, even though JavaScript is referred as a web scripting language it can be used in multiple domains. But when we speak about JavaScript in browser (as mentioned in the later part of the blog) it actually means the combination of two things: the language itself and DOM API where we would consider it as a DSL. Hope it helps!