4 ms·
I wonder if there could be a mechanism for reporting such cases. " So and So issue detected. If you believe this is not a bug, send this Snippet or A ST as a
by solarengineer 7y ago
I wonder if there could be a mechanism for reporting such cases.
" So and So issue detected. If you believe this is not a bug, send this Snippet or A ST as a bug report (If you want, we can do this automatically for you!)"
And also "We've detected so and so issue. Please see our wiki <link to specific issue> for an explanation on what may have triggered this, and for ideas on how to rewrite such code"
- dmitrygr 7y ago"doubly linked list detected, this language does not support such constructs without 'unsafe' keyword being used to wrap it"
- ZirconiumX 7y agoWhich is why you implement a doubly linked list using data indices in a Vec<Node>. The resulting data structure is fully safe and resembles an ECS.
- dmitrygr 7y agoAnd features an extra level of indirection for your CPU's dcache prefetch predictor to trip over
- deleted 7y ago[deleted]
- hexane360 7y agohttps://play.rust-lang.org/?gist=c3db81ec94bf231b721ef483f58deb35 https://play.rust-lang.org/?gist=c3db81ec94bf231b721ef483f58...