3 ms·
Closest I've come to really embracing that kind of thing is https://github.com/serprex/pythonaes/tree/master/aespython https://github.com/serprex/pythonaes/tree
by __s 9y ago
Closest I've come to really embracing that kind of thing is https://github.com/serprex/pythonaes/tree/master/aespython https://github.com/serprex/pythonaes/tree/master/aespython
NB it really is faster
edit: nvm, Crumb is way more that kind of thing: https://github.com/serprex/Crumb/blob/master/C3.py https://github.com/serprex/Crumb/blob/master/C3.py
I forgot I concocted that little devil
- proaralyst 9y agoAre you expecting that code to be maintainable? It looks like it's been run through a minifier...
- __s 9y agoNope, haven't had to maintain it in years. I did have to port it to Python3 which was a pain & grew it by ~30 bytes. The minifier was myself. It could actually be tighter but I optimized it for gzipability since I put it through a build tool to produce https://github.com/serprex/Crumb/blob/master/Crumb.py https://github.com/serprex/Crumb/blob/master/Crumb.py I even did a C version https://github.com/serprex/Crumb/blob/master/Crumb.c https://github.com/serprex/Crumb/blob/master/Crumb.c which is a pretty boring implementation besides while(p>q?(j=d==b?:i*q/p,i++<p):(i=c==a?:j*p/q,j++<q))