mamg22's Avatar

mamg22

@mamg22.bsky.social

Software engineer | Python & Web.

27 Followers  |  203 Following  |  28 Posts  |  Joined: 31.10.2024
Posts Following

Posts by mamg22 (@mamg22.bsky.social)

This is such a cool tool. I would've spent hours on this thing if I had had it when I was a kid.

I'm still gonna spend a while playing around with this on my pho... *ahem* nintendo DS and original cartridge, of course.

14.05.2025 16:17 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Related guess: Ran out of inodes?

22.03.2025 12:51 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Meme captioned "When the editor throws me to the edge of the world again", showing a person smoking, visibly annoyed, and a screenshot of TM unlimiter's editor camera settings.

Meme captioned "When the editor throws me to the edge of the world again", showing a person smoking, visibly annoyed, and a screenshot of TM unlimiter's editor camera settings.

This happens to me so often it is not even funny anymore.

05.02.2025 14:58 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Toyota Corolla - English Subtitles
YouTube video by Stuntman 104 Toyota Corolla - English Subtitles

A few years ago I was made aware of this fantastic, old Toyota commercial that ran in my country. Ever since then, it pops up in my mind every once in a while. And now it will too on yours. ;-)

www.youtube.com/watch?v=JmSE...

02.02.2025 04:36 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

It seems a Trackmania player found out about your game haha ๐Ÿ˜†

16.01.2025 16:15 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

modern santa activities

24.12.2024 12:01 โ€” ๐Ÿ‘ 281    ๐Ÿ” 45    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

I completely fell into the trap of keeping the order on the final stone list, which made me rewrite my whole solution to not use an array and eventually run out of memory. I was sure part 2 was just going to increase the iteration count, but still wanted to keep the order just in case ๐Ÿคก

12.12.2024 03:43 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 11 - Advent of Code 2024

I just completed "Plutonian Pebbles" - Day 11 - Advent of Code 2024 adventofcode.com/2024/day/11

github.com/mamg22/adven...

Fun challenge today, quite nice to think about and find optimizations for.

#AdventOfCode #rustlang

12.12.2024 03:43 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Contained myself from implementing the trail finding algorithm using recursion and used an iterative approach instead. ๐Ÿ˜

10.12.2024 21:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 10 - Advent of Code 2024

I just completed "Hoof It" - Day 10 - Advent of Code 2024 adventofcode.com/2024/day/10

github.com/mamg22/adven...

Fun problem for today, thought it would be hard and require pathfinding, but ended up being a piece of cake; got both parts in one-shot each.

#AdventOfCode #rustlang

10.12.2024 21:59 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Part 2 was exactly what I was expecting with the contiguous block defrag, liked it more than part 1.

10.12.2024 19:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 9 - Advent of Code 2024

I just completed "Disk Fragmenter" - Day 9 - Advent of Code 2024 adventofcode.com/2024/day/9

github.com/mamg22/adven...

Interesting problem, though my solution is quite messy; I would've liked to come up with a cleaner solution, but couldn't figure it out easily, oh well.

#AdventOfCode #rustlang

10.12.2024 19:21 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Didn't need any optimization, it pretty much runs instantly. I was expecting part 2 to come up with some area or coverage calculation, but the actual problem was nice too.

09.12.2024 01:08 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 8 - Advent of Code 2024

I just completed "Resonant Collinearity" - Day 8 - Advent of Code 2024 adventofcode.com/2024/day/8

Quite an easy one today, very enjoyable.

github.com/mamg22/adven...

#AdventOfCode #rustlang

09.12.2024 01:08 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

It's not the fastest, but it's alright with 5 second runtime on release mode. The bottleneck seems to be the huge amount of `chain()` calls, as reported by `perf`, but couldn't figure out a good optimization without rewriting the whole thing again.

github.com/mamg22/adven...

08.12.2024 15:38 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 7 - Advent of Code 2024

I just completed "Bridge Repair" - Day 7 - Advent of Code 2024 adventofcode.com/2024/day/7

Another pretty fun problem with the right difficulty. My solution is inspired by my python solutions last year, using iterator chaining recursively.

#AdventOfCode #rustlang

08.12.2024 15:38 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

My solution bruteforces part 2 with a slightly optimized path function, but with a cargo release build it just needed 5 seconds on the 2010 netbook I'm running the code in.

07.12.2024 00:41 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 6 - Advent of Code 2024

I just completed "Guard Gallivant" - Day 6 - Advent of Code 2024 adventofcode.com/2024/day/6

Another fun challenge today. Some of the data structures I prepared previously came really handy today. Overall, not a complicated problem.

github.com/mamg22/adven...

#AdventOfCode #rustlang

07.12.2024 00:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Part 2 was surprisingly easy to do, even did it in one shot ๐Ÿ˜. The standard sort_by function did most of the magic.

github.com/mamg22/adven...

05.12.2024 23:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 5 - Advent of Code 2024

I just completed "Print Queue" - Day 5 - Advent of Code 2024 adventofcode.com/2024/day/5

This one was very fun. The description does make it seem complicated, but paying close attention to the examples helps a lot in figuring out the algorithm.

#AdventOfCode #rustlang

05.12.2024 23:06 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Code: github.com/mamg22/adven...

Also learned that you can't easily implement a generic TryFrom. Tried to make a `TryFrom<Vector2d<T>> for Vector2d<U>`, but the compiler didn't allow it; so I just made it a separate `impl` function instead.

05.12.2024 17:09 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 4 - Advent of Code 2024

I just completed "Ceres Search" - Day 4 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/4

Interesting challenge. I took the time to setup some common datatypes I needed, and probably going to need in future challenges. Overall, not too difficult of a problem.

05.12.2024 17:09 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Nice! Interesting approach with that state machine parser. Also appreciate how clean and detailed your code is.

Took a quick peek at your previous solutions, the usage of async there seems intriguing, I might give it a deeper look later ๐Ÿ˜

04.12.2024 02:44 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
mamg22 (@mamg22@vivaldi.net) 81 Posts, 153 Following, 3 Followers ยท

I did AoC 2023 on Python, which wasn't an issue for the most part, but a few problems just presented huge performance issues either by memory or cpu usage. I have the log of my experience during last year on mastodon, as well as code links.

social.vivaldi.net/@mamg22

03.12.2024 22:42 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
GitHub - mamg22/advent-of-code-2024: Advent of Code 2024 in Rust Advent of Code 2024 in Rust. Contribute to mamg22/advent-of-code-2024 development by creating an account on GitHub.

So far it has been enjoyable, let's see how the upcoming problems step up the difficulty; at least performance shouldn't be an issue for me this year.

github.com/mamg22/adven...

03.12.2024 22:42 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
GitHub - mamg22/advent-of-code-2024: Advent of Code 2024 in Rust Advent of Code 2024 in Rust. Contribute to mamg22/advent-of-code-2024 development by creating an account on GitHub.

Alright, another year, another new edition of Advent of Code. This year I'm doing it in Rust, a language I've been looking forward to learning more about. I'm posting my solutions on GitHub.

#AdventOfCode #rustlang

03.12.2024 22:42 โ€” ๐Ÿ‘ 7    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

2/2
Though there's multiple `.or(Err(source))?` calls I have in my main parser function, which I would like to know a better or idiomatic way to handle it. I'd really appreciate a tip on that part of the code.

github.com/mamg22/adven...

#rustlang
#AdventOfCode

03.12.2024 22:34 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 3 - Advent of Code 2024

1/2
I just completed "Mull It Over" - Day 3 - Advent of Code 2024 adventofcode.com/2024/day/3

Quite fun this one. Built a parser combinator based solution, of which I haven't written one before, really liked the end result.

#rustlang #AdventOfCode

03.12.2024 22:34 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Berlin International Gaming's trackmania Logitech skin. Mostly black with subtle cyan and white highlights.

Berlin International Gaming's trackmania Logitech skin. Mostly black with subtle cyan and white highlights.

BIG's Logitech G Skin is my favorite. The design is very slick, with the subtle highlights that make it an absolute banger.

19.11.2024 21:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Fun fact: In the word 'City', both 'i' and 'y' are silent.

17.11.2024 16:22 โ€” ๐Ÿ‘ 1    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0