Skip to content

Conversation

@c252
Copy link
Member

@c252 c252 commented Aug 18, 2018

monte carlo integration in nim.

@Gathros Gathros added the Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.) label Aug 19, 2018
Copy link
Member

@jiegillet jiegillet left a comment

Choose a reason for hiding this comment

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

Nothing to change, this code is quite nice :)

const radius: float = 1
var count: int = 0

for i in 0 .. < samples:
Copy link
Member

Choose a reason for hiding this comment

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

This notation is very clean, I like Nim :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah a cool thing about nim is that it is incredibly flexible, you can compile it to c, c++, or javascript. Because of this you can use any existing libraries for c or c++ or javascript.

Copy link
Member

Choose a reason for hiding this comment

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

That's awesome! Thanks for the info and for adding nim to the AAA :)

@jiegillet jiegillet merged commit 7b92b39 into algorithm-archivists:master Aug 20, 2018
@c252 c252 deleted the montecarlo_integration_in_nim branch August 20, 2018 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants