logoalt Hacker News

landl0rdtoday at 6:40 PM3 repliesview on HN

AOT is a little fussy in real-world usage particularly for things like reflection. You can probably force it to work but it may make your code much uglier.

Span<T> is more important for performance TBH JIT warmup isn't a huge issue for a long-running process


Replies

CharlieDigitaltoday at 6:44 PM

    > ...but it may make your code much uglier
Flip side is that if you use more source generation, it may end up making the code more terse/"prettier" where it matters and avoid the reflection hit.

AI agents seem fairly good at generating source generators so there doesn't seem to be a reason to not use them.

sebazzztoday at 7:15 PM

With UnsafeAccessor you can often avoid reflection.

orpheatoday at 7:31 PM

What's fussy about AOT and reflection?

show 1 reply