by antipurist · 3y ago · 0 comments
Another route to consider when implementing a DSL, is to make an embedded one (e.g. like Terraform or Pulumi have, even both at the same time). That doesn't resolve all the tooling problems since there is still a compile step, but might provide a more integrated experience, although at the cost of brevity.
When you breakpoint in C, you breakpoint in assembly and find your C location from the debug information for example.
You don't have to. Just generate sourcemaps and you'll be able to set breakpoints in your own language even when targeting JS.
If anything that makes JS an even better target since you can leverage tooling.