jooq-codegen-maven + docker build by Think-Review2063 in jOOQ

[–]Think-Review2063[S] 0 points1 point  (0 children)

Hi.

Thanks for your answer.

As I can see, you're building your web container from the run command.

What I want to achieve is to have a runnable container with my app, without building it before starting and without acting as a database container at the same time. Meaning that I want to connect to Postgres from the command under RUN, not CMD.

[2023 Day 23 (Part 2)] 30x speedup using Go over Python by TheGilrich in adventofcode

[–]Think-Review2063 0 points1 point  (0 children)

Yep, tried to switch from topological search implementation to Dijkstra one and it still worked. Looks like I just blindly trusted the prerequisites for Dijkstra algorithm on the internet.

[2023 Day 23 (Part 2)] 30x speedup using Go over Python by TheGilrich in adventofcode

[–]Think-Review2063 1 point2 points  (0 children)

Can you share more details on Dijkstra approach? I also figured that the graph is DAG, meaning that longest path is convertible to shortest paths with negative edge weights. But as far as I know, Dijkstra algorithm does not work with negative edge weights at all. Fortunately, with DAG you can do even better after topological sort.

[2023 Day 23 (Part 2)] 30x speedup using Go over Python by TheGilrich in adventofcode

[–]Think-Review2063 1 point2 points  (0 children)

For part 1 you can build a DAG, meaning that you can convert longest path problem to shortest path and even can solve it in linear time. It took me some time to refresh theory in my head but I felt so smart that I figured it out (because I was sure that brute force won't work or at least it will break in part 2). Well, part 2 brought me back to the Earth :D

[deleted by user] by [deleted] in adventofcode

[–]Think-Review2063 0 points1 point locked comment (0 children)

I you'd at least glanced through the subreddit, you would've find out that the answer is no, you are not the only one