hal9001

@hal9001@lemmy.world

Hey Folks!

I’ve escaped Reddit and fled to the fediverse (and trying really hard to not look back).

My interests are all over with a small subset being:

  • Programming Language Design
  • Rust
  • Clojure
  • Game Dev
  • Cooking
  • Baking (especially bread)
  • Gaming

This profile is from a federated server and may be incomplete. Browse more on the original instance.

hal9001,

This one was a high school flashback. Ended up using the quadratic formula to find the root of the curve.

clojure solution

hal9001,

Ranges are always pesky. Lots of off by one errors when I was pulling this one together. It was also the first day I caved and broke out atoms

clojure solution

hal9001,

That got me! Ended up with some very very big numbers

hal9001,

My clojure solution

Ran into a couple gottchas today. Didn’t notice the tabular data at first. It got me twice, once on the numbers and then again on the card number (which I guess I didn’t actually need to use)

The second gottcha was missing that in the second part it is the number of matching numbers not the score that I needed to use. My first attempt was a very very very big number

hal9001,

My clojure solution

That was a fun one to parse. Needed to leak some mutability into my code using the raw Java Matcher as there wasn’t another way to get the indexes of the matches in the string. Luckily it’s contained within a fn so not too bad :D

hal9001,

Here is my clojure solution

Back to a more typical difficulty today ❄️

hal9001,

My clojure solution

Part 2 was unexpected. Was not expecting that level of wrinkle on day 1 for sure.

I saw a few things that were guessing we might have a lot more of these sorts of twists to help throw off the AI solutions 🤷‍♂️

hal9001,

Always happy to help someone join team crab! Let me know if you have any questions. Rust and clojure are my two go to languages for AoC

hal9001,

That’s a great one!!

hal9001,

Uiua sounds super interesting. I remember day 19 last year being very finicky.

I’m the same way I want to solve the problem and not have to also solve the problem of writing in a new language.

Here is my day 19 in clojure (not sure of that helps at all)

hal9001,

Running on my computer part 1 takes ~850ms and part 2 takes ~1300ms

hal9001,

If you are interested I wrote an AoC helper last year for clojure. github.com/jjcomer/aoc-helper

I started with the idea of using babashka for everything, but I ran into some namespace issues.

hal9001,

Exactly this. Technical literacy in zoomers and Gen next is going to be worse than boomers.

Everything is fast and all the details of the technology are hidden from them

That being said I’m sure they will use technology in mind blowing ways. But have not idea how it works.

hal9001,

It sure is! No commercial yeast is added

hal9001,

Not too much effort. Check my profile I posted my process the other day! The lines are from the proofing baskets.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines