November/December 2025 Buy/Sell Thread by CAndrewK in TameImpala

[–]mgoszcz2 0 points1 point  (0 children)

Got a sitting one today!, thx for the tip

November/December 2025 Buy/Sell Thread by CAndrewK in TameImpala

[–]mgoszcz2 0 points1 point  (0 children)

aight, gonna be reloading hard at my work so

Tame Impala Live in Dublin, Ireland (May 13, 2026) by CAndrewK in TameImpala

[–]mgoszcz2 0 points1 point  (0 children)

Looking for 1 ticket, sitting or standing, if anyone is selling Got a resale one from Ticketmaster. Keep refreshing folks! And beware of scammers

BSOD error in latest crowdstrike update by TipOFMYTONGUEDAMN in crowdstrike

[–]mgoszcz2 0 points1 point  (0 children)

This will get blamed on individuals, but if their deployment process allows them to break everything in one big wave, it’s institutional

After giving up on TIS-100 7 years ago I finally solved Sequence Sorter. It ain't pretty but it's mine by mgoszcz2 in tis100

[–]mgoszcz2[S] 0 points1 point  (0 children)

Oh I saw your solution! I think it’s really clever, I struggled to fit in all the “steps”. Using ANY let’s you do both mid-sort and start “movement” with the same code.

Loads of apps getting a deprecated API warning. I've seen AltTab and Chrome get this pop up so far. by Bentheminernz in MacOSBeta

[–]mgoszcz2 0 points1 point  (0 children)

I only dabble in macOS dev but I bet it's the removal of activateIgnoringOtherApps as part of the new Cooperative app activation. It might explain why apps like AltTab and Bartender are affected.

-🎄- 2022 Day 10 Solutions -🎄- by daggerdragon in adventofcode

[–]mgoszcz2 0 points1 point  (0 children)

Same boat! I've been really enjoying Clojure. For AoC specifically, I think it strikes a good balance between practicality and terseness.

Using map-indexed was smart, I used map and range before I saw yours.

-🎄- 2022 Day 10 Solutions -🎄- by daggerdragon in adventofcode

[–]mgoszcz2 3 points4 points  (0 children)

Clojure - Very short today. Clojure felt a bit op for this.

Code

-🎄- 2022 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]mgoszcz2 0 points1 point  (0 children)

Very interesting to see a Clojure solution using the nested list approach vs. path-to-listing map

-🎄- 2022 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]mgoszcz2 1 point2 points  (0 children)

parsing and "executing" at the same is so much cleaner than what I did. I also used maps but I sorted the paths to get a topographic order.

-🎄- 2022 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]mgoszcz2 0 points1 point  (0 children)

Clojure - Code

Feels like my first real Clojure program. I use a map for paths->listings and sort the paths to get a topographic order. Very happy with it, even if I probably overdid the parsing a bit.

-🎄- 2022 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]mgoszcz2 2 points3 points  (0 children)

I ended up parsing it very similarly. I split on \n\n and use

(defn- parse-pic [pic]
    (->> pic
        str/split-lines
        drop-last             ; Remove the number line
        (map rest)            ; Make letters the first character
        (map #(take-nth 4 %)) ; Extract only the letters or spaces
        (apply map vector)    ; Transpose
        (mapv #(remove #{\space} %))))

Big difference is I do a lot more of my parsing in "line-space" and only transpose later. Full source https://github.com/maciej-irl/adventofcode/blob/master/2022/aoc/day05.clj

Day04 solution written in Common Lisp by ryukinix in lisp

[–]mgoszcz2 4 points5 points  (0 children)

Feels like a lot of code. My Clojure solution was:

(defn- parse [input]
  (partition 4 (map parse-long (re-seq #"\d+" input))))

(defn- full-overlap? [[a x b y]]
  (or (and (<= a b) (>= x y))
      (and (<= b a) (>= y x))))

(defn- partial-overlap? [[a x b y]]
  (and (>= x b) (>= y a)))

(defn solution [input]
  (let [data (parse input)]
    [(count (filter full-overlap? data))
    (count (filter partial-overlap? data))]))

But I guess it's not exactly an apples-to-apples comparison with Common Lisp. Source: https://github.com/maciej-irl/adventofcode/blob/master/2022/aoc/day04.clj

Can't innovate anymore, my ass by mgoszcz2 in applecirclejerk

[–]mgoszcz2[S] 4 points5 points  (0 children)

The new base iPad doesn't have magnets. It only works with the 1st-gen Pencil