Re:Lisp Meta-Programming for C++ Developers: First Macros
by hellofunk on Tuesday May 09, 2017 @03:25PM
(#14303076)
We are talking about the resources of the machine and which of those resources are available during compile time compared to those which are available at runtime.
Re:Lisp Meta-Programming for C++ Developers: First Macros
by ska on Tuesday May 09, 2017 @04:31PM
(#14303548)
Yes, but you start off with an incorrect premise, and it's hard to understand what point you are trying to make.
In a very typical lisp system, for example, exactly the same resources would be available at runtime as your original compile (in fact, the boundary between these two is pretty fuzzy and often might be the same process anyway)
Likewise, C++ typically doesn't have any runtime access to compilers at all, so what resources are available to them or not is a bit moot.
If the point is that you might deploy on a different machine or configuration, well - that's true, but I can't see the relevance.
You might be pointing out some oddities of Clojure, I suppose, but that's not a great model for "typical lisp".
In lisps you very typically have complete access to the compiler, though this is not universal. Resource limits on a running process are a separable issue.