Pre RFC: Re-implement inline assembly functions in Rust, publish as stand-alone crate

No, I think you’re correct, just wanted to make sure you’ve seen what is there and what it would interface to.

From the Rust perspective, I think it makes sense to do this. From the maintenance perspective however, it is duplication. Not all duplication is necessarily bad, maybe it could be used for cross testing, a bit like compiler output checking by running multiple compilers, but it is definitely something we need to think about.

This has been discussed before (I’ll have a look if I can find it). I think the main outcome of the discussion was that the ideal solution would be to generate inline assembly stubs in both languages from a common source, i.e. to extend the xml description we have so far to cover the ABI, not the API.

That is a bigger job, and maybe we shouldn’t let the perfect stand in the way of any progress at all. To do this extension of the xml description, it’d probably be quite useful to actually have a full implementation for at least two languages.

What do others think about this?

Edit: link to a previous discussion on this.