Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
conradludgate
· 5y ago · 0 comments
If you want to utilise this data oriented approach in rust, check out soa-derive[0]. SoA stands for struct of array, rather than the conventional array of struct.
[0]:
https://crates.io/crates/soa_derive
Comments
[–]
teh_matt
5y ago
I hacked up something similar (
https://gitlab.com/mbryant/functiontrace/-/blob/master/src/p...
) a while ago. Your variant looks much more useful!
[–]
conradludgate
OP
5y ago
Yeah I'm a big fan of proc-macros. If utilised well, it can do some really great things
[–]
d0tnet
5y ago
This is amazing!