nimpylib
Primes
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nimpylib
-
Why I Use Nim instead of Python for Data Processing
Another nim & python thread that has not been mentioned yet here
https://news.ycombinator.com/item?id=28506531 - project allows creating pythonic bindings for your nim libraries pretty easily, which can be useful if you still want to write most of your toplevel code in python, but leverage nim's speed when it matters.
If you want to make your nim code even more "pythonic" there is a https://github.com/Yardanico/nimpylib, and for calling some python code from nim there is a https://github.com/yglukhov/nimpy
Primes
-
Has anyone solved the prime number problem on SPOJ yet using pure python?
Take a look at Dave Plummerโs Prime Sieve project.
-
Zig wins Dave Plummer's prime sieve benchmark ... but via a problematic metric
There's a dedicated and quite cool website where you can browse the benchmark results: https://github.com/PlummersSoftwareLLC/Primes
- Since when did Python haters spread out everywhere? Maybe DNF5 would be faster because of ditched it, maybe.
- creating a vec takes forever?
-
Python vs. Nodejs vs. Lua
Should look into Software Drag Racing https://github.com/PlummersSoftwareLLC/Primes
- Learning Python was a good decision. Python may have its own shortcomings, but big integers aren't scary anymore ๐๐
-
Being 500x faster than python still means it's 10x slower than C
And here's the github repo.
- Upcomming language to try?
-
Could this code calculating primes be much more optimized?
After a quick glance - using assert is very likely to be slower than passing state/lists/whatever around using arguments.
I clicked on the 1 in the Solution column next to one of the Prolog entries, and it took me to the Github folder for that code and I saved the primes-basic.pl one to my computer and ran it with swipl (SWI version 8.4). It did this:
What are some alternatives?
nimpy - Nim - Python bridge
primesieve - ๐ Fast prime number generator
Mudlet - โ๏ธ A cross-platform, open source, and super fast MUD client with scripting in Lua
PrimesResult - The results of the Dave Plummer's Primes Drag Race
RoaringBitmap - A better compressed bitset in Java: used by Apache Spark, Netflix Atlas, Apache Pinot, Tablesaw, and many others
LMRTFY - Let Me Run That For You: A C++20 Thread Pool Library
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266
pictoprime - Generate prime numbers from pictures!
scikit-bio - scikit-bio: a community-driven Python library for bioinformatics, providing versatile data structures, algorithms and educational resources.
nim-playground-frontend - The front-end for https://play.nim-lang.org
boomer - Zoomer application for Linux