logoalt Hacker News

munchlerlast Sunday at 5:34 PM1 replyview on HN

I’m not familiar with Scala’s macro system, but it seems like a big takeaway here is: Be careful with code that invokes the compiler (JIT) at runtime. That seems like it’s asking for trouble.


Replies

dtechlast Sunday at 6:34 PM

Macro's are compile time, there is no runtime codegen.

The problem was overly-frequent inlining generating enormous expressions, causing a lot JIT phase and slow execution.

show 2 replies