-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexx Roche
committed
Jul 24, 2024
1 parent
b112055
commit 75ff8de
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# pom | ||
Phases Of Moon - calculate when the next Full Moon will be | ||
|
||
I have been using https://metacpan.org/pod/Astro::MoonPhase | ||
since 2007 in a small perl wrapper called pom. | ||
|
||
I thought that I should port it to Rust and this is my | ||
first attempt. It was surprisingly easy. I expect that it | ||
might be possible to automate porting many perl modules | ||
to Rust. | ||
|
||
# performance | ||
```txt | ||
perl> time pom # ver. 0.2 | ||
real 0m0.022s | ||
user 0m0.022s | ||
sys 0m0.000s | ||
rust> time pom # ver. 0.3 | ||
real 0m0.002s | ||
user 0m0.002s | ||
sys 0m0.001s | ||
``` |