techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

#adventofcode

1 post1 participant0 posts today

Parser combinators in #Haskell are like the cool kids at school 🎓, effortlessly solving Advent of Code problems while #regexes are stuck in detention 🚫. Who knew regexes were still a thing in 2025? 😂 In Haskell, we leave those relics to flounder in the past while we flex our combinator muscles 💪.
entropicthoughts.com/parser-co #ParserCombinators #AdventOfCode #FutureCoding #Flexibility #HackerNews #ngated

entropicthoughts.comParser Combinators Beat Regexes
Continued thread

Ale že mě tak to AOC dostane sem netušil. První den (pouze part 1) absolutně jsem nepřišel na to jak vyřešit druhou část… Den 6 jsem zvládl obě části (euforie) a pocit naděje.

Den 14.. po chvilce jsem to vzdal, hledám jiný úkol, tomu taky moc nerozumím… euforie je pryč. Deprese.

Zítra prostě musím nějak udělat 12. den!

Nicméně jsem fakt takový tupec? Nebo je to normál?😩

#AdventOfCode, #Python, #Junior

I just completed day 1 of 2024, I know, I'm late to the party but I am learning so thought I would learn better if I did something with it.

I will be uploading my solutions to github as I go forward, And I will probably be using multiple languages to solve the puzzles, to get better practice with different langs and also compare them.

github.com/alirezaalavi87/adve

GitHubGitHub - alirezaalavi87/advent-of-code: my solutions for solving advent-of-code puzzles. The solutions might be impemented in various languages.my solutions for solving advent-of-code puzzles. The solutions might be impemented in various languages. - alirezaalavi87/advent-of-code

At last night’s @mug meeting we looked at a lot of different solutions to #adventofcode day 1 in many different languages. Two that were very interesting to me were #Zig and #haskell. The way these two languages worked was really quite fascinating. After seeing real code in these two languages, I can tell they are not for me; but they were interesting and illuminating nonetheless.

There was a solution entirely in #SQL. Another in #vim9script. Another in #swiftlang #swift (I don’t think that one’s in the repo yet). I wrote several implementations myself. The one I felt most proud of is #Python with the core written in #rustlang #rust tied together with #PyO3. The one I felt was maybe the best tool for the job was entirely based on #pandas. As I said in a previous post, I tried to solve it in #polars, but the API exposed by Polars at least as far as I could tell, made it no better than simple lists in Python. I need to get deeper knowledge here.

The repo lives here: github.com/MichiganUnixUserGro.

Not sure exactly when we will discuss this, but the problems are from the 2024 Advent of Code - MichiganUnixUserGroup/MUG-2025-03-11-Advent-of-Code
GitHubGitHub - MichiganUnixUserGroup/MUG-2025-03-11-Advent-of-Code: Not sure exactly when we will discuss this, but the problems are from the 2024 Advent of CodeNot sure exactly when we will discuss this, but the problems are from the 2024 Advent of Code - MichiganUnixUserGroup/MUG-2025-03-11-Advent-of-Code

I solved a small problem trying to do it using only #pandas (it was #adventofcode day 1). I know Pandas pretty well. The solution to both parts together turned out to be very short.

Tried to do the same thing in #polars. Way harder. Didn’t get to leverage DataFrames. Basically just used Series and they were just glorified lists. This was my first experience with Polars. So my ignorance was certainly a factor. But wow. Pandas just did the job better. I’m sure Polars is still growing. I really want to like it!

I just completed all 25 days of Advent of Code 2024! #AdventOfCode #python adventofcode.com/

I returned to Day 21 Part 2 last week, finally got the 'shape' of the problem but failed to solve it again. Yesterday I restarted from my Part 1 solution and after some toe-stubbing it finally works! (silly mistakes are more obvious the next day)

AOC has been great for levelling up my Python skills and reminding me this is fun...sometimes. 😂

Thank you @ericwastl !

src:
github.com/adw99/advent-of-cod

adventofcode.comAdvent of Code 2024

New instance, new introduction!
I'm a late (mostly self) diagnosed autistic in recovery from autistic burnout. In spring 2024 I left a career at Apple Retail and have been finding myself since. I'm deeply passionate about and experienced with Apple tech. I also love Sci-Fi and Fantasy, mostly TV and movies these days. I'm a gamer, mostly playing on Mac, iPad, and Switch. I was once a software engineer and still pursue it as a hobby, mostly developing small projects for the Apple ecosystem in Swift.

Casually working through #AdventOfCode 2019 and reached a problem that has a natural solution involving affine transformations in modular arithmetic so in 40 lines of code (including pretty printing) I implemented a fairly complete system in #JuliaLang.

Truly a joy to work with 😺