Bystroushaak's blog / English section / Weekly updates / Weekly update 2019/09/22; The bug was finally fixed

Weekly update 2019/09/22; The bug was finally fixed

I've been sick whole week, so I didn't do much. I've spent Monday, Tuesday and Wednesday in bed on home office and I still feel tired and weak even after a week.

tinySelf progress

I've closed several issues:

And most importantly, I've finally fixed the bug. In the end, the fix was really simple; I just had to update function that caches the results so that it would always visit scope_parent. First I converted the .scope_parent to property in 9c7601a but then I've noticed that although it works, it has huge performance penalty, so I've rewritten it in e30501e to just two lines of code, which have almost no performance cost.

Other than this bugfix, I've also updated the code to latest pypy version, which has my pull request merged. This allowed me to slightly simplify the code in primitive files.

I also began the transition to typed docstrings, using the google style. This allows IDE to figure out data types where it normally couldn't, so it is more useful in checking all kind of bugs and offering autocomplete. I can't use stuff like mypy, because the code is written for 2.7, because whole rpython toolkit is for 2.7. Not that I mind much, because I think that mypy is mostly step in the wrong direction and I consider the docstring approach much cleaner.

Other programming

I've created a project to port some of my longer articles to epub. It should grab the πŸ“‚Series about Self and spit out correct ebook.

The reason, I've decided to follow this approach of creating complicated makefile-like transformer script, is that I want to be able to make changes in the text and add fixes and updates just by editing the blog in the wiki and it would be really annoying to backport all the changes to the epub as well.

Book report

I've been sick and unable to really focus on anything hard. I've read just a several pages from the Moldable tools, several pages from Effective pycharm and then I've picked up book number twelve in the Honor Harrington series called in czech HonoΕ™ina mise (Mission of Honor).

Harrington series is kind of comfort food but in form of books for me. I read it when I want something simple and easy, where the good guys win at the end. But it is quite good hard-scifi space opera, that I wouldn't mind suggesting to a friend.

Self improvements

3D modeling

It may sound absurd, but inspired by anime, I've begun to learn Blender. I was watching anime called New game!, where the main protagonist starts in a company making a game by learning basics of the 3D modeling. I've become curious and begun to watch tutorials on the youtube and instantly fell in love.

I've done some stuff in Blender back when I was at college (2008-2011), but I never got much far. Some basic shapes, some rendering, but mostly I remember confusion and profound sense that I have no idea what I am doing.

Now there is this new release of Blender 2.8, and it has much more user-friendly interface, so I decided to watch some tutorials and ordered a book (and decided to cancel the order when I've read the reviews) and I feel generally optimistic about the whole thing.

This requires further explanation; I've given up drawing. I always felt that my blogs would be much better if I could just add little illustrations, but I've been profoundly unable to do so. I've tried everything; hand drawing, drawing by brush. I've tried vector drawing, I bought a graphical tablet in hopes that it will get better. It didn't. I've bought an iPad with Apple pencil and some software, and still, I just simply couldn't. The gap between what I want and what I can do is too big.

There are psychological barriers in my mind, but also my thinking is not really visual. I have a problem to hold an image in my mind, and also a problem with perspective and colors. I don't really understand how they work and why and how they can be used to mimic real world. One day, I realized that I won't put in the 10 000 hours to be good, or at least good enough for me. I would love to be able to express myself through pictures, but I can't.

3D modeling totally slipped out of my mind. And now when I look at it, I feel hope; it is infinitely editable, more like sculpting than drawing. You don't use colors directly, but textures and materials and lights. I feel like I can make it work, and I know that I could do it ten years ago, so I hope I will be able to do some low poly illustrations in the future.

Random stuff

I've moved my main Syncthing shared directory out of the VPS, which freed me 6 gigabytes of disk space. I am using extremely cheap VPS from Forpsi (something like $1.2/month for 20GB diskspace and 1GB RAM), and I was fighting for free space lately.

I still need to migrate the VPS to newer version of the OS and also ideally to other cheap VPS with more disk space, but this bought me some time.

Did you know that Twitter has a Tweetdeck?

It is much faster and customizable, although the design is still shitty. Who think these noodles are cool? The most basic customization that worked in any kind of software since the 90's is to just grab the slider and make some column wider. And this pinacle of the webdesign can't even do that.

There was actually great discussion under the post "Accidentally ended up here, what is this strange and wonderful place?" that was sent to the /r/cyberDeck.

Yes, my English is probably horrible, but this kind of blog post doesn't qualify for (paid) grammar corrections yet (there is stuff with higher precedence in queue). If you want to change this, subscribe to my patreon.

Relevant discussion

Become a Patron