dudect icon indicating copy to clipboard operation
dudect copied to clipboard

make dudect more portable?

Open oreparaz opened this issue 2 years ago • 9 comments

We could make dudect more portable and support other architectures, like ARM. @dfaranha wrote a port to ARM here https://github.com/dfaranha/dudect-arm that we could integrate. I think ARM would be the first target.

oreparaz avatar Jan 12 '24 20:01 oreparaz

It's fairly easy to add this support, we follow the recipe from https://github.com/itzmeanjan/criterion-cycles-per-byte/blob/a270a49652eabf5be9366866613f905f604a18ba/src/lib.rs#L61-L74. It's on my todo list.

itzmeanjan avatar Jan 13 '24 08:01 itzmeanjan

@itzmeanjan awesome to hear that! Looking forward to your contribution :)

oreparaz avatar Jan 15 '24 18:01 oreparaz

Let me know if I should try rebasing and sending a PR with the diffs from my fork. :)

dfaranha avatar Jan 15 '24 20:01 dfaranha

Ah that would be wonderful! Thank you! I believe it'd be mainly a matter of integrating https://github.com/oreparaz/dudect/commit/d708aca8542ac608ea2a2b178468288fbdeac300#diff-22b09f555b924f80b50f3449369c7edb176b83494871b9cc133164c080e91c18 .

@itzmeanjan previously expressed interest in this. @itzmeanjan : are you still interested in this? We can take @dfaranha 's code as starting point.

BTW happy to see you here Diego :)

oreparaz avatar Jan 15 '24 23:01 oreparaz

I'll send a PR tomorrow @oreparaz.

itzmeanjan avatar Jan 18 '24 18:01 itzmeanjan

I'll send a PR tomorrow @oreparaz.

I'm sorry that I've not yet sent a PR :(. It might take some time.

In the mean time, @dfaranha feel free to send PR. I'll be more than happy to review.

itzmeanjan avatar Jan 23 '24 19:01 itzmeanjan

I tried rebasing with latest HEAD, but my fork is too old and there are lots of conflicts.

I also do not have an ARM device ready to test right now, but will have one in a couple of weeks!

dfaranha avatar Jan 24 '24 22:01 dfaranha

I also do not have an ARM device ready to test right now, but will have one in a couple of weeks!

No worries @dfaranha.

I just sent a PR https://github.com/oreparaz/dudect/pull/36. I've tested it on multiple targets, it seems to behave ok. I'll continue testing more. cc @oreparaz

itzmeanjan avatar Jan 25 '24 19:01 itzmeanjan

No worries @dfaranha ! Thanks for that.

@itzmeanjan : your PR looks great! I have a bunch of testing to do with that PR but from a code review it looks awesome! let's talk in the PR

oreparaz avatar Jan 25 '24 23:01 oreparaz