@Mara@hachyderm.io damn! And I've been calling unsafe core::arch functions without a lincense for years now. Hope the Rust police won't cite me...
Remote
Posts
Replying to
@Mara@hachyderm.io
Open post
Replying to
@evacide@hachyderm.io
@evacide@hachyderm.io @glennf@zeppelin.flights stating the obvious needs more friends.
0
0
0
0
Open post
Replying to
@ghostwriter@phpc.social
@ghostwriter@phpc.social is it though? I'm seeing far more small abstractions than borrow checker appeasing misuse.
1
0
0
0
Open post
Replying to
@428@mas.to
@428@mas.to if you built in debug mode, you may have happened upon a stack overflow because the compiler didn't elide an on-stack initialization that was later to be moved to the heap. Otherwise there may be some unsafe code that fails to uphold some invariant.
Can you cargo miri run? It will be very slow, but might find UB on your active code path.
0
0
0
0
Open post
In a recent screenshot from @blyxyas@tech.lgbt I saw that a rustc lint took a lot of allocations. So I found out why and removed those. The PR was finally merged into nightly.
13
0
4
0
Open post
Replying to
@david_chisnall@infosec.exchange
@david_chisnall there are some experimental electrified roads in Germany (with cables overhead), but just a kilometer. I happen to regularly drive on one near Frankfurt. As far as I know, the whole thing is already switched off though.
1
0
0
0
Open post
Replying to
@DocBohn@techhub.social
@DocBohn@techhub.social @az@scorpinc.social it's a bad idea to open windows in space...
30
0
1
0
Open post
Replying to
@lholten@hachyderm.io
@lholten@hachyderm.io missing an "it depends" option for the senior devs here...
Kidding aside, I would make it dependent on whether the user should care about the trait or the type. E.g. if the trait is just used internally, I'd put its impls together with the definition, unless the file would get too big.
0
0
0
0
Open post
Replying to
@grumpygamer__dup_20078@mastodon.gamedev.place
@grumpygamer@mastodon.gamedev.place that's a pretty unkind thing to say...
...against typical idiots.
0
0
0
0
Open post
Replying to
@cactusdualcore@mastodon.social
@cactusdualcore@mastodon.social Rust uses a macro though.
0
0
0
0
Open post
Replying to
@rustinparis@mastodon.social
@rustinparis@mastodon.social I have suggested a talk. If that one doesn't fit, I could do other talks. How would I go at adding more suggestions?
0
0
0
0
Open post
Replying to
@bruces@mastodon.social
@bruces@mastodon.social I hate to be pedantic but wouldn't it be 1/355.0249975 light-years?
0
0
0
0
Open post
Replying to
@jakub_neruda@techhub.social
@jakub_neruda@techhub.social @Mara@hachyderm.io I agree that logic bugs are a problem even in Rust – although in my experience they are easy to find. i use assertions liberally, so if the data flow fails to fit my mental model, I will get a panic with useful information.
Conversely, memory bugs may be masked by the allocator (depending on the system) or only ever become visible in uncommon circumstances. Running ASAN is great practice, but even that will only check all the code paths that have been taken during the test run with the given data. Tools can usually only detect the presence of bugs, not their absence.
0
1
0
0
Open post
Replying to
@jakub_neruda@techhub.social
@jakub_neruda@techhub.social @Mara@hachyderm.io That makes me worry about the memory errors you didn't encounter.
3
1
0
0
Open post
Replying to
@jakub_neruda@techhub.social
@jakub_neruda@techhub.social @Mara@hachyderm.io so what does "rarely an issue" entail? What tools do you run? What practices do you follow to avoid things like e.g. iterator invalidation?
1
1
0
0
Open post
Replying to
@Mara@hachyderm.io
@Mara@hachyderm.io I'm sure they've already solved it in those modern C++ code bases that I keep hearing about (but lamentably haven't had a chance to see yet).
17
1
1
0
Remote instance
hachyderm.io
Open on original server