-
Notifications
You must be signed in to change notification settings - Fork 3
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
Kotlin benches #4
base: main
Are you sure you want to change the base?
Conversation
d-plaindoux
commented
Oct 17, 2022
•
edited
Loading
edited
- Math lib transpiration to Kotlin
- Test done and correct
- Benchmarks done
- README and conclusion
|
||
fun lte(a: t): (t) -> Boolean | ||
|
||
fun gt(a: t): (t) -> Boolean = { b -> lt(b)(a) } |
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 don't know much about Kotlin, but seems like there is no support for currying, should this be written in un-curried style (tupled params lt(a, b)
) ?
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.
Of course. And at the same time, I can check whether the inlining can be specified.
Is it okay for |
} | ||
} | ||
|
||
fun sinus(a: t, n: Int): t = sinus_symmetry(one, a, n) |
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.
Shouldn't n
be BigInteger
?
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's right.