4 ms·
> proc macros. The support crates for these (syn and quote) take maybe 10s to compile Common Lisp user here. What's up with Rust where macros take 10s to compi
by fmakunbound 6y ago
> proc macros. The support crates for these (syn and quote) take maybe 10s to compile
Common Lisp user here. What's up with Rust where macros take 10s to compile? I'm keen on seeing macros in other languages, but that's kinda brutal from a usability perspective.
- IshKebab 6y agoIt takes 10s to compile the crate that defines the macros, it doesn't take 10s to evaluate them. And the reason they're so slow to compile is because they're compiled to native code, and you aren't given a parser, just a list of tokens, so basically all of them depend on some extra parsing crates.
- fmakunbound 6y ago> It takes 10s to compile the crate that defines the macros Brutal. > they're so slow to compile is because they're compiled to native code I guess that applies just to Rust
- diragon 6y agoCompiling Common Lisp took 10 seconds or more as well back when it was last used. ;-)