home.social

#aoc2023 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #aoc2023, aggregated by home.social.

  1. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 060: Advent of Code 2023 Wrapup - Part 2

    We finish the remaining days (17-25) in our Advent of Code 2023 Mega Discussion!

    Episode Link: podbean.com/eas/pb-niheh-156de
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  2. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 060: Advent of Code 2023 Wrapup - Part 2

    We finish the remaining days (17-25) in our Advent of Code 2023 Mega Discussion!

    Episode Link: podbean.com/eas/pb-niheh-156de
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  3. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 060: Advent of Code 2023 Wrapup - Part 2

    We finish the remaining days (17-25) in our Advent of Code 2023 Mega Discussion!

    Episode Link: podbean.com/eas/pb-niheh-156de
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  4. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 060: Advent of Code 2023 Wrapup - Part 2

    We finish the remaining days (17-25) in our Advent of Code 2023 Mega Discussion!

    Episode Link: podbean.com/eas/pb-niheh-156de
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  5. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 060: Advent of Code 2023 Wrapup - Part 2

    We finish the remaining days (17-25) in our Advent of Code 2023 Mega Discussion!

    Episode Link: podbean.com/eas/pb-niheh-156de
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  6. @lorddimwit any struct that only consists of comparables (ints, strings, arrays) can be used as map key. And it’s faster than any bytes-converting hash function that I tried in userland (gob, jsoniter). For example, to speed up one of my solutions I converted an []int slice field to a fixed size [32]int field and was able to use the parent struct as map key for a 5x speedboost.

  7. @lorddimwit any struct that only consists of comparables (ints, strings, arrays) can be used as map key. And it’s faster than any bytes-converting hash function that I tried in userland (gob, jsoniter). For example, to speed up one of my #aoc2023 solutions I converted an []int slice field to a fixed size [32]int field and was able to use the parent struct as map key for a 5x speedboost.

  8. @lorddimwit any struct that only consists of comparables (ints, strings, arrays) can be used as map key. And it’s faster than any bytes-converting hash function that I tried in userland (gob, jsoniter). For example, to speed up one of my #aoc2023 solutions I converted an []int slice field to a fixed size [32]int field and was able to use the parent struct as map key for a 5x speedboost.

  9. @lorddimwit any struct that only consists of comparables (ints, strings, arrays) can be used as map key. And it’s faster than any bytes-converting hash function that I tried in userland (gob, jsoniter). For example, to speed up one of my #aoc2023 solutions I converted an []int slice field to a fixed size [32]int field and was able to use the parent struct as map key for a 5x speedboost.

  10. @lorddimwit any struct that only consists of comparables (ints, strings, arrays) can be used as map key. And it’s faster than any bytes-converting hash function that I tried in userland (gob, jsoniter). For example, to speed up one of my #aoc2023 solutions I converted an []int slice field to a fixed size [32]int field and was able to use the parent struct as map key for a 5x speedboost.

  11. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 059: Advent of Code 2023 Wrapup - Part 1

    Matt and Mike and a special guest discuss Advent of Code 2023, Days 11 - 16.

    Episode Link: podbean.com/eas/pb-xevqk-155a5
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  12. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 059: Advent of Code 2023 Wrapup - Part 1

    Matt and Mike and a special guest discuss Advent of Code 2023, Days 11 - 16.

    Episode Link: podbean.com/eas/pb-xevqk-155a5
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  13. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 059: Advent of Code 2023 Wrapup - Part 1

    Matt and Mike and a special guest discuss Advent of Code 2023, Days 11 - 16.

    Episode Link: podbean.com/eas/pb-xevqk-155a5
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  14. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 059: Advent of Code 2023 Wrapup - Part 1

    Matt and Mike and a special guest discuss Advent of Code 2023, Days 11 - 16.

    Episode Link: podbean.com/eas/pb-xevqk-155a5
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  15. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 059: Advent of Code 2023 Wrapup - Part 1

    Matt and Mike and a special guest discuss Advent of Code 2023, Days 11 - 16.

    Episode Link: podbean.com/eas/pb-xevqk-155a5
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #AdventOfCode #aoc #aoc2023

  16. Managed to reduce the exec time for 2023 day 23 part 2 from 513 seconds (~8.5 mins) to a stellar 0.310 seconds. Looking back at my commits these were the biggest leaps:

    - By far the biggest leap: Shrink unique nodes to <= 64, then instead of a map simply use a `uint64` bitmask for boolean lookups (visited or not). Saves a lot of map accesses & assignments
    - Prefer `int` when doing most calculations and comparisons, seems super optimized in the Go runtime

  17. Managed to reduce the exec time for 2023 day 23 part 2 from 513 seconds (~8.5 mins) to a stellar 0.310 seconds. Looking back at my commits these were the biggest leaps:

    - By far the biggest leap: Shrink unique nodes to <= 64, then instead of a map simply use a `uint64` bitmask for boolean lookups (visited or not). Saves a lot of map accesses & assignments
    - Prefer `int` when doing most calculations and comparisons, seems super optimized in the Go runtime

    #go #golang #aoc2023 #goroutines

  18. Managed to reduce the exec time for 2023 day 23 part 2 from 513 seconds (~8.5 mins) to a stellar 0.310 seconds. Looking back at my commits these were the biggest leaps:

    - By far the biggest leap: Shrink unique nodes to <= 64, then instead of a map simply use a `uint64` bitmask for boolean lookups (visited or not). Saves a lot of map accesses & assignments
    - Prefer `int` when doing most calculations and comparisons, seems super optimized in the Go runtime

    #go #golang #aoc2023 #goroutines

  19. Managed to reduce the exec time for 2023 day 23 part 2 from 513 seconds (~8.5 mins) to a stellar 0.310 seconds. Looking back at my commits these were the biggest leaps:

    - By far the biggest leap: Shrink unique nodes to <= 64, then instead of a map simply use a `uint64` bitmask for boolean lookups (visited or not). Saves a lot of map accesses & assignments
    - Prefer `int` when doing most calculations and comparisons, seems super optimized in the Go runtime

    #go #golang #aoc2023 #goroutines

  20. Managed to reduce the exec time for 2023 day 23 part 2 from 513 seconds (~8.5 mins) to a stellar 0.310 seconds. Looking back at my commits these were the biggest leaps:

    - By far the biggest leap: Shrink unique nodes to <= 64, then instead of a map simply use a `uint64` bitmask for boolean lookups (visited or not). Saves a lot of map accesses & assignments
    - Prefer `int` when doing most calculations and comparisons, seems super optimized in the Go runtime

    #go #golang #aoc2023 #goroutines

  21. I finally finished both parts of day 1 of #aoc2023 using #zig 😌

    part two took time until I noticed that my first solution is missing:

    twone

    I see the two, but instead of going on with w, my algorithm went on with the n, thus not seeing the one 😃

    eventually the algorithm got simpler too because in the wrong first version I had to book keep which characters I'm matching right now,

    now everything happens in another nested loop.
    once that exits, it continues with the next character.

  22. That said, running the exact squeezed single-core-optimized algorithm, but for multiple inputs on multiple cores simultaneously with 5 lines of code, feels absolutely awesome! 😎

  23. That said, running the exact squeezed single-core-optimized algorithm, but for multiple inputs on multiple cores simultaneously with 5 lines of code, feels absolutely awesome! 😎

    #golang #go #goroutines #aoc2023

  24. That said, running the exact squeezed single-core-optimized algorithm, but for multiple inputs on multiple cores simultaneously with 5 lines of code, feels absolutely awesome! 😎

    #golang #go #goroutines #aoc2023

  25. That said, running the exact squeezed single-core-optimized algorithm, but for multiple inputs on multiple cores simultaneously with 5 lines of code, feels absolutely awesome! 😎

    #golang #go #goroutines #aoc2023

  26. That said, running the exact squeezed single-core-optimized algorithm, but for multiple inputs on multiple cores simultaneously with 5 lines of code, feels absolutely awesome! 😎

    #golang #go #goroutines #aoc2023

  27. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 058: Advent of Code 2023 - Day 4 to 10

    More discussion about (the now ended) Advent of Code 2023. This time, days 4 through 10.

    Episode Link: podbean.com/eas/pb-af35f-15447
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #aoc #aoc2023 #AdventofCode

  28. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 058: Advent of Code 2023 - Day 4 to 10

    More discussion about (the now ended) Advent of Code 2023. This time, days 4 through 10.

    Episode Link: podbean.com/eas/pb-af35f-15447
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #aoc #aoc2023 #AdventofCode

  29. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 058: Advent of Code 2023 - Day 4 to 10

    More discussion about (the now ended) Advent of Code 2023. This time, days 4 through 10.

    Episode Link: podbean.com/eas/pb-af35f-15447
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #aoc #aoc2023 #AdventofCode

  30. New Hacking the Grepson podcast episode is out!

    Hacking the Grepson 058: Advent of Code 2023 - Day 4 to 10

    More discussion about (the now ended) Advent of Code 2023. This time, days 4 through 10.

    Episode Link: podbean.com/eas/pb-af35f-15447
    Show Feed: feed.podbean.com/hackingthegre
    Show Home: hackingthegrepson.com

    #HackingTheGrepson #podcast #programming #development #aoc #aoc2023 #AdventofCode

  31. As with all #AdventofCode years, I did not finish #aoc2023. Not even close. I _did_ do better than 2022, so that's something.

    I also built a Ruby on #Rails 7 web app to show off my progress, and will be backfilling it with my progress in previous years...eventually.

    aoc.neb.host

  32. As with all #AdventofCode years, I did not finish #aoc2023. Not even close. I _did_ do better than 2022, so that's something.

    I also built a Ruby on #Rails 7 web app to show off my progress, and will be backfilling it with my progress in previous years...eventually.

    aoc.neb.host

  33. As with all #AdventofCode years, I did not finish #aoc2023. Not even close. I _did_ do better than 2022, so that's something.

    I also built a Ruby on #Rails 7 web app to show off my progress, and will be backfilling it with my progress in previous years...eventually.

    aoc.neb.host

  34. As with all #AdventofCode years, I did not finish #aoc2023. Not even close. I _did_ do better than 2022, so that's something.

    I also built a Ruby on #Rails 7 web app to show off my progress, and will be backfilling it with my progress in previous years...eventually.

    aoc.neb.host

  35. I might be a bit behind, but I've finally completed day 3 of 2023 Advent of Code.

    It's slow going, and at times frustrating, because I’m using it as an opportunity to learn a bit of Rust. But at the same time, it is great fun, because I actually feel like I’m slowly getting more comfortable with Rust.

    #AoC2023 #RustLang

  36. I might be a bit behind, but I've finally completed day 3 of 2023 Advent of Code.

    It's slow going, and at times frustrating, because I’m using it as an opportunity to learn a bit of Rust. But at the same time, it is great fun, because I actually feel like I’m slowly getting more comfortable with Rust.

  37. I might be a bit behind, but I've finally completed day 3 of 2023 Advent of Code.

    It's slow going, and at times frustrating, because I’m using it as an opportunity to learn a bit of Rust. But at the same time, it is great fun, because I actually feel like I’m slowly getting more comfortable with Rust.

    #AoC2023 #RustLang

  38. I might be a bit behind, but I've finally completed day 3 of 2023 Advent of Code.

    It's slow going, and at times frustrating, because I’m using it as an opportunity to learn a bit of Rust. But at the same time, it is great fun, because I actually feel like I’m slowly getting more comfortable with Rust.

    #AoC2023 #RustLang

  39. I might be a bit behind, but I've finally completed day 3 of 2023 Advent of Code.

    It's slow going, and at times frustrating, because I’m using it as an opportunity to learn a bit of Rust. But at the same time, it is great fun, because I actually feel like I’m slowly getting more comfortable with Rust.

    #AoC2023 #RustLang

  40. After doing I like to think I know quite well now… I miss ternaries. Although famous, nobody actually uses the go keyword. Pointers are fun, I missed them. Tools for testing and profiling are keys to mastering our craft. I deeply want a sound type system like that of and .

  41. After doing #AoC2023 I like to think I know #Golang quite well now… I miss ternaries. Although famous, nobody actually uses the go keyword. Pointers are fun, I missed them. Tools for testing and profiling are keys to mastering our craft. I deeply want a sound type system like that of #Rust and #TypeScript.

  42. After doing #AoC2023 I like to think I know #Golang quite well now… I miss ternaries. Although famous, nobody actually uses the go keyword. Pointers are fun, I missed them. Tools for testing and profiling are keys to mastering our craft. I deeply want a sound type system like that of #Rust and #TypeScript.

  43. After doing #AoC2023 I like to think I know #Golang quite well now… I miss ternaries. Although famous, nobody actually uses the go keyword. Pointers are fun, I missed them. Tools for testing and profiling are keys to mastering our craft. I deeply want a sound type system like that of #Rust and #TypeScript.

  44. After doing #AoC2023 I like to think I know #Golang quite well now… I miss ternaries. Although famous, nobody actually uses the go keyword. Pointers are fun, I missed them. Tools for testing and profiling are keys to mastering our craft. I deeply want a sound type system like that of #Rust and #TypeScript.

  45. CW: AoC day 24

    Whew, finally got a proper solution for part 2 (ie. not just getting the result from wxMaxima).

    I tried rounding the result – but that got me a number too high by 1 (my solution produced a float ending in .8). Not sure if that’s some numerical precision problem on f64 or the “official” solution uses floor-rounding.

    Anyway, the exercise made me remember some linear algebra and allowed me to learn nalgebra crate basics.

    gitlab.com/silmeth/advent-of-c

    #RustLang #AoC #AdventOfCode #AoC2023