Mastodon Feed: Post

Mastodon Feed

jonny@neuromatch.social ("jonny (nonvenomous)") wrote:

After a couple years of waiting for a project where it makes sense, I'm ~ upskilling ~ by learning to drop my python code down into rust in a non-crappy way by properly learning the language idioms and I gotta say "why didn't I do this before now." It was hard when I was writing old-style python and most of the bad patterns there like lots of indeterminate types and hidden coercions and whatnot, but since ive changed to new-style typed python pretty much everything translates. The borrow checker isn't even hard with a few hundred guess/checks and having compiler feedback in the IDE. Unwrapping stuff and matching stuff also only took a few examples. I love the Into/From coercion stuff.

The python/rust boundary is still something I don't know the optimal way to work thru, but I picked this project to learn because the interface I need to make is the size of a pinhole, with only one well-structured type going in and out.

I still am baby obviously and like all programming languages it will take years to get the subtleties and intuition built up, but ive only been seriously working on this for a week and I am already p much up and going. Trying to do this before I need to look for work again so I can demonstrate I can do the thing everyone wants, high performantz code wrapped in nice and friendly python, and also all the stuff I want to do writing low level raw dog p2p networking routines will require it bc python concurrency can't really do it.

Try 2 stay alive and have a job, and also looking forward to finally doing some fucked up p2p work that doesn't rely on riding on the back of other projects that are all mysteriously dead or cranky.