Skip to content
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

Benchmark/nbody #21

Merged
merged 7 commits into from
Dec 4, 2023
Merged

Benchmark/nbody #21

merged 7 commits into from
Dec 4, 2023

Conversation

IR0NSIGHT
Copy link
Owner

No description provided.

@IR0NSIGHT
Copy link
Owner Author

fixes #9

@IR0NSIGHT IR0NSIGHT mentioned this pull request Nov 27, 2023
Closed
Copy link
Contributor

@phischu phischu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

def offsetMomentum(px: Double, py: Double, pz: Double, body: Body) = {
Body(
body.x, body.y, body.z,
0.0 -(px / SOLAR_MASS),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a definition def neg(x: Double): Double to the standard library. Likewise for the bitshift operations you've added in another benchmark. Perhaps you could make a pull request on the effekt repo?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

src/nbody.effekt Outdated Show resolved Hide resolved
@IR0NSIGHT IR0NSIGHT marked this pull request as ready for review December 4, 2023 14:25
@IR0NSIGHT IR0NSIGHT merged commit 46af95d into master Dec 4, 2023
0 of 2 checks passed
@IR0NSIGHT IR0NSIGHT deleted the benchmark/nbody branch January 15, 2024 13:16
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

Successfully merging this pull request may close these issues.

2 participants