Re:Show HN: A Rust macro that parses Java-like syntax and ru...
by dleslie on Friday August 10, 2018 @01:44PM
(#17735315)
How well do LSP implementations cope with complex macros like this?
[ Parent
| on HN ]
Re:Show HN: A Rust macro that parses Java-like syntax and ru...
by valarauca1 on Friday August 10, 2018 @03:31PM
(#17736140)
In 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)
Re:Show HN: A Rust macro that parses Java-like syntax and ru...
by jD91mZM2 on Friday August 10, 2018 @03:09PM
(#17735988)
I 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.