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(1):
Look up the architecture of Catalyst + Tungsten
Doing so is a feature of high-end VM runtimes like the state of the art JVMs or JS runtimes.
Scala 3's macros support staged compilation, so you can have macros which create code in later stages at runtime.
https://docs.scala-lang.org/scala3/reference/metaprogramming...