News for hackers. Stuff that matters.
Re:Comptime – C# meta-programming with compile-time code gen... by andix on Thursday December 25, 2025 @09:32AM (#46384624)
AOT requires a lot of fiddling around, and might break the application unexpectedly, with very weird errors. It is mostly targeted to Blazor (WASM) and for serverless functions.

The default runtime and JIT are fine for most use cases.

Re:Comptime – C# meta-programming with compile-time code gen... by orphea on Thursday December 25, 2025 @10:44AM (#46385042)

  > AOT requires a lot of fiddling around, and might break the application unexpectedly, with very weird errors.
It hasn't been my experience. Native AOT does come with some limitations [1][2], but nothing awful. Mostly it's that you can't generate code at runtime and you have to tame the code trimmer. Just don't ignore code analysis warnings and you should be good.

  > It is mostly targeted to Blazor (WASM) and for serverless functions.
Making your CLIs start fast is also a huge use case.

[1]: https://learn.microsoft.com/en-us/dotnet/core/deploying/nati...

[2]: https://learn.microsoft.com/en-us/dotnet/core/deploying/trim...

Re:Comptime – C# meta-programming with compile-time code gen... by actionfromafar on Friday December 26, 2025 @05:09PM (#46396845)
C# AOT may sometimes require fiddling around, but in my experience a lot less fiddling around than what my alternative used to be, which was to use C++.