Skip to content

chance to optimize #38

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

Open
dragoncoder047 opened this issue Jan 24, 2025 · 1 comment
Open

chance to optimize #38

dragoncoder047 opened this issue Jan 24, 2025 · 1 comment

Comments

@dragoncoder047
Copy link
Contributor

Don't know how good your optimizer is, but you don't need to implement all of >, <, >=, <= in C. You just need > and == and the rest come from that:

Def < as (> Swap);
Def <= as (Let A; Let B; Or < A B == A B);
Def >= as (<= Swap);

(Did I implement them correctly?)

@StavromulaBeta
Copy link
Collaborator

Oh yeah that'd work, although I doubt it would have any affect on performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants