sigmoid.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A social space for people researching, working with, or just interested in AI!

Server stats:

608
active users

#adventofcode

1 post1 participant0 posts today

Good introduction from entropicthoughts.com/parser-co:

> They were surprised, however, that there seems to be a lack of community cohesion around regex libraries in Haskell.
> We generally don’t use regexes in Haskell. We use parser combinators instead, because they are almost always better. In other languages, it would be considered overkill to write a full parser when a simple regex can do the same thing. In Haskell, writing a parser is no big deal.


#parser #haskell #adventofcode

entropicthoughts.comParser Combinators Beat Regexes

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.

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 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.

SaturdayMP Show 63: Advent of Code 2024 Day 12 (Part 3 - Solved!)

youtu.be/jOh7NLj7BxI

In this episode I finish the Advent of Code 2024 Day 12 problem! I also figured out how to do parameterized tests in Python. Any constructive feedback on my solution? How would you have solved it differently?

Part 2: youtu.be/p9bSVRxkGlk

Advent of Code 2024: adventofcode.com/2024

Found this video useful? Then help others find it by liking, subscribing, sharing, and sponsoring:

github.com/sponsors/saturdaymp

Have question you want answered in a future video? A question I should ask you? Pair on a problem? Constructive feedback? Comment, DM me, or send an email to ask@saturdaymp.com.