r/cpp • u/_bijan_ • Apr 07 '26
Can your AI rewrite your code in assembly?
https://lemire.me/blog/2026/04/05/can-your-ai-rewrite-your-code-in-assembly/
3
Upvotes
r/cpp • u/_bijan_ • Apr 07 '26
View all comments
Show parent comment
-3
u/SoSKatan Apr 08 '26
Uh dude this is your second confidently incorrect comment that you’ve made within minutes.
C# perf loss is directly related to its JIT. JIT’s by nature dont have as many optimization opportunities AND its limited on compile time. With cpp it’s fine if it takes a 20 seconds to optimize a single unit, because it’s a one time cost.
The cost benefit ratio of different optimizations are different for JIT’s compared to one time compilers.
So JIT’s tend to be far less aggressive, and slower runtime performance as a result.
Now I’m going to wait for your next dumb confidently incorrect comment to come in.