top | item 46215157 (no title) throw_a_grenade | 2 months ago Also you can't do self-referential strutcs.Double-linked lists are also pain to implement, and they're are heavily used in kernel. discuss order hn newest K0nserv|2 months ago > Also you can't do self-referential strutcs.You mean in safe rust? You can definitely do self-referential structs with unsafe and Pin to make a safe API. Heck every future generated by the compiler relies on this. menaerus|2 months ago [deleted] baq|2 months ago Don’t spread FUD, you can check some example code yourself.https://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/l... load replies (2) unknown|2 months ago [deleted]
K0nserv|2 months ago > Also you can't do self-referential strutcs.You mean in safe rust? You can definitely do self-referential structs with unsafe and Pin to make a safe API. Heck every future generated by the compiler relies on this.
menaerus|2 months ago [deleted] baq|2 months ago Don’t spread FUD, you can check some example code yourself.https://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/l... load replies (2) unknown|2 months ago [deleted]
baq|2 months ago Don’t spread FUD, you can check some example code yourself.https://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/l... load replies (2)
K0nserv|2 months ago
You mean in safe rust? You can definitely do self-referential structs with unsafe and Pin to make a safe API. Heck every future generated by the compiler relies on this.
menaerus|2 months ago
[deleted]
baq|2 months ago
https://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/l...
unknown|2 months ago
[deleted]