Re:Performance Improvements in .NET 7
by pjmlp on Wednesday August 31, 2022 @04:44PM
(#32668107)
Go has reflection, and you can make use of compile time reflection on Rust via the macros infrastructure.
[ Parent
| on HN ]
Re:Performance Improvements in .NET 7
by carlhjerpe on Wednesday August 31, 2022 @04:52PM
(#32668200)
Does that cover all mentioned usecases though? They're discussing source generation in this thread, not even close to the same thing (for certain usecases)
Kind of, you can use the parsing package for that, alongside the //go:generate infrastructure.
Or you can use Go reflection package and generate the source code from it.
Of if wanting to do something like Assembly.Emit, generate the machine code directly with a little help from unsafe and syscall packages.
Depends pretty much on the actual use case.