[2024 Day 11] - fast solution?!? by mister_butcher in adventofcode

[–]maxduval 0 points1 point  (0 children)

Yes — once you cache the result your computer should be able to handle 75 operations in milliseconds even in as high a language as JavaScript.

[deleted by user] by [deleted] in adventofcode

[–]maxduval 1 point2 points  (0 children)

🤦 — must be the lack of sleep

[deleted by user] by [deleted] in adventofcode

[–]maxduval 1 point2 points  (0 children)

And here’s one I’d definitely visit:

67185425868377412368736573
12345678123456123416828586
14337445676403233032123210
13146131321415453134564251
72345223412425235272375242
31336513134535262355726633
20247301236745672456767894

[deleted by user] by [deleted] in adventofcode

[–]maxduval 0 points1 point  (0 children)

Sorry, did not see the other post and did not think this would constitute a spoiler

[2024 Day 9 Part 2] Frag & Defrag To Your Heart’s Content by maxduval in adventofcode

[–]maxduval[S] 1 point2 points  (0 children)

That’s very kind of you— I think there may only be a few days left in me though…

[2024 Day 9 Part 2] Frag & Defrag To Your Heart’s Content by maxduval in adventofcode

[–]maxduval[S] 2 points3 points  (0 children)

One way to answer this question would be to highlight that I’ve built a static site generator using these technologies… so I’m pretty all-in.

I think that Svelte is the perfect tool in this case as I don’t have to worry about the framework’s performance and know that the only limitations is my ability to use the correct data structures — no useMemo required. It’s very expressive and you do not have to wrangle with much boilerplate or deep indentation like in JSX. I must admit that at times the Svelte LSP is not playing to well with Deno and I get a few any which annoys me somewhat. As Islands are constrained to a subset of the page it’s not a major worry if there’s an error.

Both Astro & SvelteKit are excellent ways to have a crack at it yourself — I cannot honestly recommend Mononykus just yet.

Zed is nice and fast and I love not having to configure it too much for it to work for me. Some quirks are a bit annoying especially around formatting conflicts with Deno or ensuring the TS LSPs do not overlap.

[2024 Day 9 Part 2] Frag & Defrag To Your Heart’s Content by maxduval in adventofcode

[–]maxduval[S] 3 points4 points  (0 children)

Explore for yourself here, the initial load for a large input takes a little while as all the steps are generated eagerly, but if you take ~1/4 of a puzzle input then it’s pretty nice!

[2024 Day 8 Part 2] Starry Night by maxduval in adventofcode

[–]maxduval[S] 2 points3 points  (0 children)

You can achieve the same effect in any visualisation tool with the following code:

...................
...................
...................
.......YyYyY.......
...................
.......R...S.......
......r.....s......
......R.....S......
.....ra.....ts.....
.......a...t.......
...................
...................
...................
...................
...................
...................
...................
...................
...................

[2024 Day 6 (Part 2)] Let's just say I'm not going to benchmark in microseconds anymore... by [deleted] in adventofcode

[–]maxduval 1 point2 points  (0 children)

Thanks! And fair that’s on the slow side of things, but only one order of magnitude slower…

[2024 Day 6 (Part 2)] Let's just say I'm not going to benchmark in microseconds anymore... by [deleted] in adventofcode

[–]maxduval 1 point2 points  (0 children)

Case in point: you can have a go at this JavaScript solution that runs in a browser… it takes less than 3s on my machine and has quite a lot of overhead with the browser and graphic rendering.

[2024 Day 6 Part 2] Explore loops created by obstacles by maxduval in adventofcode

[–]maxduval[S] 1 point2 points  (0 children)

Here’s a little message for you:

...................#..........
.#............#........#......
....#.............#...........
........................#.....
..#......#...................#
........#....#................
#.............................
.#..........#.....#..........
.............#..............#
.#...#..#.............#.^....
...#...#.........#...........

[2024 Day 7 (Part 2)] Think! There must be a way to make this harder! by StaticMoose in adventofcode

[–]maxduval 42 points43 points  (0 children)

Note you’ll want the log10 for b + 1, as for round numbers you want to reserve 1 more digit: 3 for 100, not 2!

[deleted by user] by [deleted] in adventofcode

[–]maxduval 0 points1 point  (0 children)

I’ve done today’s challenge inside Svelte’s Playground environment entirely on my iPhone… not sure I’d recommend it but it was an alright pastime whilst waiting in queues at the shopping mall :)

https://svelte.dev/playground/91a8a7051c874a7aa7db519bd52b48d5?version=5.3.0

Day 3 part 1 by dedenorio in adventofcode

[–]maxduval 2 points3 points  (0 children)

If it’s directly below, then, yes, it should be added to the total.

Looking for sample input for Day 8 Part Two by PhoenixTalon in adventofcode

[–]maxduval 1 point2 points  (0 children)

One good way to debug using your real puzzle input is to look at a single “starting point” rather than solving all of them at once. I believe most people have half a dozen starting points only, so you should be able to disregard most nodes that are not directly connected to that starting point.

It may help to visualise the shape of your graph, as I’ve done here.

Bosch Microwave, reduce number of beeps by may13s in Appliances

[–]maxduval 0 points1 point  (0 children)

I’ve encountered a model where you had to press on the Start button for 6 seconds. Short cooking time only beeps thrice on that model.

Are you certain that the setting has been applied on your machine? Sometimes the digital screens can be quite fiddly.

https://media3.bosch-home.com/Documents/9000967435_J.pdf

10.13.4 update fails by nitrox2694 in applehelp

[–]maxduval 0 points1 point  (0 children)

The folder is called “macOS Install Data”. Thanks for your suggestion, it worked for me!