top | item 46383252

(no title)

rubenvanwyk | 2 months ago

How is Comptime different from default AOT compilation? I assume it can work with third-party libraries that AOT don’t work with yet?

discuss

order

andix|2 months ago

It's a code generator that runs during compile time. It's a source generator that adds some generated code files to the project. So it runs way before AOT or JIT. Once AOT/JIT run, Comptime is already invisible to them, they only see the generated code from Comptime.

betaporter|2 months ago

I believe this is like `constexpr` for C#.