▲ | hnlmorg 3 days ago | |
> The things all being described are way beyond non trivial to solve, and they'd need to be solved for every language. Except it already is a solved problem. If languages compile to a common byte code then you just need one tool. You already see examples of this with things like the IR assembly produced by LLVM, various Microsoft languages that compile to CLR, and the different languages that target JVM. There are also already common ways to create reusable parsing rules like LSP for IDEs and treesitter. In fact there are already grep-like utilities that are based on treesitter. So it’s not only very possible to create language agnostic, reusable, tools; but these tools already exist and being used by a great many developers. The problem raised in the article is that we just don’t push these concepts hard enough these days. Instead relying on outdated concepts of what source code should look like. > Grep works great For LF-separated lists it does. But if it worked great for structured content then we wouldn’t be having this conversation to begin with. |