Avatar scuti

Formerly at scuti@teknik.io.

My software projects are now hosted on NotABug/scuti by Peers Community. The programming languages I generally use are C, C++, Python, Lua, and Ada.

J'étudie la lang française.

I also have a basic understanding of Lojban.

8 notes

Tags

#lojban(9) #francais(4) #minetest(5) #bookmark(8) #surf(5) #programming(8) #__pages__(5) #leetcode(2)

Pages

[no pages]

This is a commit from the repo for my guestbook script. I had told myself that this is a remarkable example.

https://notabug.org/scuti/sitescripts/commit/c67575291b49074fcd80d05a03bcb6bdf0d878ec#diff-48aeb99446addbe345f69f4fa5883ca587d0e81R108

I wrote it late at night; I was tired; I was frustrated; it didn't work as I intended; and I was constantly hitting the Up Arrow key in my terminal. It was more confusing than it had to be, and I took a break. Just because I took a break, I was able to write a much simpler version of the function (right above).

#programming

The first time I had to update my code because of how the compiler updated:

https://www.gnu.org/software/gcc/gcc-11/porting_to.html#header-dep-changes

#programming

Last week, I updated reflex2q3. The update is only because a major version of GCC introduced header dependency changes. That means someone using GCC 11 or greater could not compile my code without making minor changes to the preprocessor directives.

Currently, the issue is resolved on a branch, so the project will be seeing a patch release.

What I have noticed about Ada programming tutorials on the web are trivial type definitions that are making things harder to understand than needs to be.

A basic example like "How to read in a file" should have understandable types like strings and should not leave the reader guessing what "Banana" or "Orange" really are.

https://archive.is/https://riptutorial.com/ada/example/28406/open-and-read-from-stream-file

For self-reference, I wrote the following:

https://notabug.org/scuti/00-adaprogramming/src/master/src/ref_readfile.adb

#programming

cppia: a little experiment with libtorrent and peertube.

https://notabug.org/scuti/cppia

https://ideas.joinpeertube.org/posts/26/allow-third-parties-to-contribute-bandwidth

#programming

The extent it works is that it can download videos from peertube using the bittorrent protocol, but it can not contribute bandwidth towards the peertube player.

Before, the problem used to be noncompatibility between webtorrent and bittorrent. (As popular as doing everything in a web browser is, I don't see myself keeping browser tabs open to seed torrents.)

But now the problem is that the peertube player uses something else for its hls player.

[microblog.py]