pleroma.debian.social

Anjan | @anjan@pleroma.debian.social

Software Freedom Advocate. I try to be helpful. Feel free to message me! ๐Ÿ˜ƒ

Co-maintainer of sxmo: https://sxmo.org

Posts here are my own and not my employers'.

#nobot

@echoechoR not in academia anymore. But I preferred latex while I was in uni. (I still prefer latex if my team knows how to use it)

@richardfontana @craftyguy Crazy how I ran into this bug today, I open up tokodon, and someone is talking about this same issue.

Where do I report this bug? Lol

re: Advent of Code 2022 day 7
Anyways, here is the blog post. It's a good read:
https://dev.to/deciduously/no-more-tears-no-more-knots-arena-allocated-trees-in-rust-44k6

I also posted my solution using rust's indextree library for trees:

https://git.sr.ht/~anjan/advent2022/tree/main/item/day7

I dont think I needed to traverse through the tree 3 times - I probably could of done it in 1-2 traversal(s). I probably shouldve used a reverse lookup hash table but I didnt want to use a spoiler =P

Advent of Code 2022 day 7
I chose to use a tree data structure. I spent yesterday writing my own tree implementation and fighting with the borrow checker in #rust. Then, before going to bed, I looked online to see how others wrote the tree data structure in rust and I found a post that explained how trees are pain in rust. Of course, I see someone else's solution for AOC day 7 in the comments of the post which used a reverse lookup hash table - a much better solution.

@daviwil Thank you! I hope you find the time and give it a try. Im sure you will find some cool ways to extend it =P

@daviwil Hi! I learned alot about emacs from your videos. Thanks!

re: Jami on Sxmo
@stacyharper Thanks! I had some issues with the video call but theyve totally fixed the connectivity issues I was having before.

I hope I find the cause of jami segfaulting.

@andryou Congrats! You helped me get my 3rd dose last year before a flight. I really appreciate the peace of mind you (and the other volunteers) provided me and other Canadians during the pandemic.

re: Advent of code 2022
@cnx ohhhh, the hashmap idea is really good.

Nice. I didnt think of that.

re: Advent of code 2022
Feel free to reply with your solutions or give me constructive criticsm. Im still learning.

I hope the CW for this post is ok.

#rust #rustlang

Advent of code 2022
After finishing yesterday, I spent some time on day 24 of AOC 2021 and I learned alot about rust. I just finished part 2 of day 3 and Im improving. I spent less time today fighting with the borrower.

My solution is here: https://git.sr.ht/~anjan/advent2022/tree/main/item/day3

Before looking at other people's solutions, I think I couldve concatenated and sorted the strings to speed it up. Excited to see how people solved this in one line on reddit :)

@serra Neat! My solutions are here: https://git.sr.ht/~anjan/advent2022 Happy holidays!

re: Advent of Code
@jbauer I solved this problem using your alternative method =P. I used rust and programmed bubble sort from scratch.

I thought of your method but didn't have time to program it. Regardless, it's nice to see a method that uses less memory in action. Looking forward to following your progress during this year's advent of code! Happy holidays

@proycon @JustineSmithies Ya hyprland looks really cool. I was looking for the time to package it for alpine. Today is a good day!

Im learning rustlang with advent of code. Just got my first 2 stars!


I'm the creator and maintainer of , a video game platform for Linux dedicated to preservation.

While I want to keep this account mostly tech focused (, and ), I also post and from and any animal I can find.

@kop316 whoops, I shouldve read the link. Basically there's this app on fdroid that uses a crowdsourced list of problematic numbers and warns you. But, the data is not free =(

https://todo.sr.ht/~mil/sxmo-tickets/270#event-84706

Canada has a huge problem with scam callers and I wanted to implement this in Sxmo.

@kop316 Oh, I meant a link to a list of the problematic numbers the program uses.

@kop316 oh neat! Is the data for this program publicly available under a free license? If so, where can I find the link?

ยป