Weird programming stuff

A collection of 2 posts

1 min read

Python TCO

This is just the Python version of It's horrible, and I love it. (I also did a pseudo-match "expression") class TCO: pass class Ret(TCO): def __init__(self, value): self.v = value class Rec(TCO): def __init__(self, *args): self.v = args def tco(f): def

Read more
2 min read

Fast fib on Rust (kinda)

UPDATE: So, I'm just stupid. I was doing x2 operations. So that was it. Code updated. Still slower tho, but there is an older commit with a huge amount of unsafe-Rust that is faster. Sooo, I'm just trying to calculate fib(10_000_000) as fast as posible. BUT THERE

Read more