-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: switch to Rust #131
Conversation
Bindings tests need to be fixed to include Rust. They're failing because Cargo isn't present. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No further comments for now. Good work :)
I'll check more in-depth later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this and the macro for tidying up, I'll move to performance analysis. If you'd like to do some of your own in the meantime at the machine code level, I'd recommend using Godbolt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'll be enough to go on with for now.
Since This will also work for any other type that implements macro_rules! many_eq {
($x:expr, $y:expr $(,$rest:expr)*) => {
$x == $y && many_eq!($y $(,$rest)*)
};
($x:expr) => { true };
} |
728db83
to
e328b6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I equally dislike myself for not mentioning this sooner. Although, fortunately, it's probably the easiest change I've pointed out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after that final nitpick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Barring this I have no idea about the production code but I trust Nyte reviewed that. I also have no idea how to version and publish it so that will be on your shoulders.
node-version: 16 | ||
check-latest: true | ||
cache: yarn | ||
architecture: ${{ matrix.settings.architecture }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved without reply
strategy: | ||
fail-fast: false | ||
matrix: | ||
settings: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved without resolution. This still applies.
package.json
Outdated
"build:debug": "napi build --platform --js index.cjs --pipe \"prettier -w\"", | ||
"update": "yarn upgrade-interactive", | ||
"prepublishOnly": "napi prepublish -t npm", | ||
"prepare": "husky install .github/husky", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"prepare": "husky install .github/husky", | |
"postinstall": "husky install .github/husky", | |
"postpack": "pinst --enable" |
Status on this? |
There are TODOs left to do before merging, and I'm sadly too busy for that at the moment :/ |
If there's anything you want me to do, let me know. I'm moving into student accommodation soon so I'll be mostly free until the 23rd. |
3b23a2d
to
d633a06
Compare
8ad2726
to
7ccb5c8
Compare
Co-Authored-By: Tyler J Russell <[email protected]>
Pending to fix tests and write tests for Rust's side of things