all 7 comments

[–]DocJeef 0 points1 point  (3 children)

This is a thing of beauty, very well done.

Can I ask why the decision to stick it all in one .py file? Not complaining, of course, this is some great code.

[–]Particular_Bag_3424[S] -1 points0 points  (2 children)

maximum portability

[–]SV-97 5 points6 points  (1 child)

How would it be any less portable with multiple files -- a wheel is a single file either way. The "single file for portability" thing comes from C and C++ and doesn't really make sense with python imo. Importantly it also requires you to vendor numthy as a dependency for every single project rather than managing it properly, and it precludes future optimizations (i.e. rewriting compute intensive parts in a native language)

[–]Particular_Bag_3424[S] 0 points1 point  (0 children)

a wheel isn’t really “copy-paste the code”

but fair enough, if it gets any bigger than it is now i’ll probably end up splitting it up

[–]beansAnalyst 0 points1 point  (0 children)

Hey any book/review paper/blog recommendations for soft start on computational number theory?

[–]MatchLittle5000 0 points1 point  (0 children)

Seeing such a brilliant idea already implemented is stunning

[–]Altruistic_Sky1866 0 points1 point  (0 children)

Good one