Skip to content
View juliusgeo's full-sized avatar
🤯
🤯

Block or report juliusgeo

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
juliusgeo/README.md

Julius

I love math, rally racing video games, statistics, and number theory (in that order).

Recent projects:

  • a tool that transpiles Python code into expression-only syntax (lambda functions and list comprehensions only), in addition to reflowing that code into ASCII art called Exprify
  • a (somewhat) branchless version of the binary search algorithm that beats the bisect module in terms of speed using C-extensions. See the README for more details:
  • the Gauss Legendre algorithm in Julia to generate 20 million digits of Pi in under 1 minute
  • implemented complete Binary Finite Field Arithmetic in Python using bitwise operators on integers: bff
  • using that arithmetic, I then proved it worked by calculating the Rijdnael S-Box in less than 512 bytes (and it also spells out AES).
  • used Simon Plouffe's 2022 paper on using Bernoulli numbers to generate Pi digits, I made it into the shape of pi itself as well.
  • made a concurrency fuzzer that injects byte-code to opportunistically release the Global Interpreter Lock called Confuzzion
  • made a transpiler from Python to MongoDB Aggregations called PyMongoAgg

Pinned Loading

  1. exprify exprify Public

    Transpile Python code into executable ASCII art by converting to expression-only syntax.

    Python 2

  2. zipyphus zipyphus Public

    Create zip files from scratch in Python

    Python 1

  3. branchless_bisect branchless_bisect Public

    Beating the `bisect` module's implementation using C-extensions.

    C 30 2

  4. rijndael.py rijndael.py
    1
    n=256;q, t, m, e, p, c, f=(range(n),16,lambda x
    2
          ,y,       r=0:m((h:=x   <<1,h^283)[
    3
         h&n!=      0],y>>      1,(r,r    ^x)
    4
        [y&1])if    y else       r,lambda
    5
       a,w= 1,p=n   -2:e(m(a,       a),(w,m
  5. pi_shaped.py pi_shaped.py
    1
    from functools import reduce as red; from math import \
    2
    (factorial as fact, comb);import sys;from decimal import \
    3
          (getcontext as c,Decimal as dc);(a:=range,
    4
           b:=int(sys.                 argv[1]));c\
    5
           ().prec=b;                  ber=lambda\
  6. gauss-legendre.md gauss-legendre.md
    1
    20 million digits of pi in under a minute with Julia
    2
    ====================================================
    3
    
                  
    4
    I recently discovered a relatively obscure algorithm for calculating the digits of pi: https://en.wikipedia.org/wiki/Gauss–Legendre_algorithm.
    5
    Well, at least obscure compared to Chudnovsky's. Wikipedia notes that it is "memory-intensive" but is it really?