4 ms·
How well do LSP implementations cope with complex macros like this?
by dleslie 8y ago
How well do LSP implementations cope with complex macros like this?
- jD91mZM2 8y agoI think that I actually managed to get the language server to take 100% CPU once, I think it was stuck recursing. Don't want to dig deeper because I had to REISUB my computer, heh. But other than that one very rare time it works pretty well. Can't always show you the most useful things, because sometimes it depends on invocation and line number but it's doing well with syntax errors.
- valarauca1 8y agoIn short they don’t, neither does the compiler. I wrote a rather large macro to auto-generate a Java-Ops parser. The I spent the next 4 days re-writing it so I didn’t have to give the Rust compiler 4GiB of stack just to compile. Deeply recursive structures (boardering on 1mil+ recursion depth gets rough)
- dmead 8y agothis is the wrong way to do translation problems in lisp.