8
votes
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
For the past 11 months my hobby project has basically been developing tools to play Tetris™ really fast. I should probably measure how fast, but it's really fast.
There's a web interface as a little toy that uses the library.
This has been such a cool project — it's got colors, it's got Coding and Algorithms, I learned a lot about multicore programming and vectorization and Rust's type system, I rented a machine with 96 cores, I expanded the state of the art for this problem domain a little bit, and I wrote my own concurrent hash map. And best of all, it's all in service of an actual specific question I have, so I'll know when I'm done!
I intend to write a series of technical blog posts about this, because I think it's really interesting, but I'm holding out until I've actually done some research work. The tools are pretty much done, now I need to use them.
Not my kind of Tetris, but colour me interested nonetheless. There's several Tetris discord(*) (I know at least 2 that are SRS centric), I hope you'll find what you're looking for.
(*) I'm sad that there so much useful info buried into difficult to parse discord chats
I've been hacking on a method for measuring the similarity of phonemic transcriptions using simhashing (a variety of locality sensitive hash or LSH). The idea is to compare the bitwise-similarity of the simhashes of pairs of 2D matrices formed by stacking phonemic feature vectors from the PHOIBLE project's phonological inventories. I have a Jupyter notebook here that shows the progress (you can see the ranked pairs by similarity in the last output cell at the bottom). LSH is nice for this kind of pairwise comparison because there are tricks you can use to avoid running comparisons on the exhaustive set of pairwise combinations by sorting the LHS integer values and bitwise rotating them through every bit position and then only comparing adjacent pairs in those sorted lists.
There's also a CLI to play with the parameters on a small toy dataset:
There are some false positives, but it's neat to see this data-driven, linguistically grounded, information-theoretic approach somewhat work.
I'm getting comfortable writing Emacs-lisp. So I decided to start using it for whatever purposes I used to write shell scripts. Turns out Emacs-lisp is great as scripting language. All the text-munging comes built it, is (subjectively) nicer to write than Python (no significant whitespace!) and due to usage pattern, pulling external dependencies is much more straightforward. Compared to shell it is just more ergonomic.
I am also getting close to MVP on my static site generator using org-mode+org-publish and might just make it public soon (TM).
Writing a bunch of Elixir NIFs (Native Integrated Functions) at work in Rust, and getting severely annoyed with Rustler's quirks and documentation.
Working on an ActivityPub client that I hope makes it trivial for folks to run their own. Tumbler meets Geocities like thing. Mostly it's just to let me play with libsodium
I wrote a rofi datepicker. It's a tool that seems kind of obvious, and it's something I've been wanting for a while, but after some searching I hadn't quite found what I'm looking for, so I wrote it myself.
There are other rofi calendars, but AFAICT from their documentation they are mostly meant to just view the months in a calendar and don't have datepicking functionality.
There is one rofi project called naivecalendar I'm aware of that has date-picking functionality, but it's a full-blown scheduling application with some kind of extra styling system built on top of rofi's themes, which is more complexity than I want in a datepicker.
There is also the
dialog --calendar
widget which I've been using up until now, but as a TUI it looks kinda ugly and out of place alongside i3/rofi/blezz.Writing this was a good excuse to learn rofi's script mode, which is something I had been wanting to do anyway. So it's been a fun couple of days refining this tool.