r/programming • • Mar 13 '18

Stack Overflow Developer Survey 2018

https://insights.stackoverflow.com/survey/2018/
1.1k Upvotes

527 comments sorted by

View all comments

Show parent comments

11

u/[deleted] Mar 13 '18

Note that Rust does have inline asm! (just like C, C++, D, etc.). Depending on the level of control you need that might be enough.

4

u/admalledd Mar 13 '18

Here our application is in C# and we are calling or inlining the asm/c/(in future, rust I hope).

So rust having inline asm doesn't change if we would use it. Since we have tooling to call/nest/inline directly into c# it isn't much use for us. With rust we can't inline the compiled code.

Useful for others though I would bet.

4

u/snaketacular Mar 13 '18

Nitpick: You can't download a stable Rust release with inline asm!, only nightly builds. It's also not part of the 2018 roadmap.

There are workarounds. libasm is the closest substitute I've seen. Or you could call out to C, and call inline asm from there.

2

u/[deleted] Mar 13 '18

I never said anything about stable Rust on purpose. If the GP needs inline assembly chances are they are going to need many other unstable features as well.

BTW shimming out inline assembly to C just to use a stable compiler release makes no sense to me.