Readit News logoReadit News
codespin commented on Static sites with Python, uv, Caddy, and Docker   nkantar.com/blog/2025/08/... · Posted by u/indigodaddy
justinsaccount · a day ago
I don't really have an opinion on using caddy in a container to serve a static site. That's fine, really.. However, the way the container is built is done in the worst possible way:

  # copy all files
  COPY . .

  # install Python with uv
  RUN uv python install 3.13

  # run build process
  RUN uv run --no-dev sus
This adds the entire repository to the first layer, then installs python, then runs the build which I assume will only then install the dependencies. This means that changing any file in the repository invalidates the first layer, triggering uv reinstalling python and all the dependencies again. The correct Dockerfile would be something like

  # install Python with uv
  RUN uv python install 3.13

  # copy info for dependencies
  COPY pyproject.toml uv.lock .

  # Install dependencies
  RUN uv whatever

  # Copy over everything else
  COPY . .

  # run build process
  RUN uv run --no-dev sus

codespin · a day ago
Getting the dockerfile order right is critical due to how docker caching works.

Even if you aren't an expert it is trivial these days to copy/paste it into chatGPT and ask it to optimize or suggest improvements to the dockerfile, it will then explain it to you.

codespin commented on In the long run, LLMs make us dumber   desunit.com/blog/in-the-l... · Posted by u/speckx
codespin · 3 days ago
Just as the engine replaced physical strength, artificial intelligence, through models like large language models, is now replacing cognitive labor and thought.

From the article "Muscles grow by lifting weights" yet we do that now as a hobby and not as a critical job. I'm not sure I want to live in a world where thinking is a gym like activity, however if you go back 200 years it would probably be difficult to explain the situation today to someone living in a world where most people are doing physical labor or using animals to do it.

codespin commented on The Loneliness Epidemic Is a Security Crisis   wired.com/story/lonelines... · Posted by u/lxm
autobodie · 6 months ago
Source? A lot of the investigative reporting I've seen covers women targets. Maybe they just think women make better stories, but women do spend more time on dating apps than men. Women participate differently, but they definitely participate, and women are extremely vulnerable to emotional exploitation.
codespin · 6 months ago
Age is also a factor. From stories I've seen in the news it tends to be much older women. From stories I've heard from friends it is young men.
codespin commented on Show HN: I convert videos to printed flipbooks for living   videotoflip.com/... · Posted by u/momciloo
codespin · 7 months ago
Great idea! It is cool seeing how you took this concept and made it real, end to end. I'm also considering getting a flipbook.
codespin commented on Nvidia announces next-gen RTX 5090 and RTX 5080 GPUs   theverge.com/2025/1/6/243... · Posted by u/somebee
jsheard · 8 months ago
32GB of GDDR7 at 1.8TB/sec for $2000, best of luck to the gamers trying to buy one of those while AI people are buying them by the truckload.

Presumably the pro hardware based on the same silicon will have 64GB, they usually double whatever the gaming cards have.

codespin · 8 months ago
At what point do we stop calling them graphics cards?
codespin commented on Cognitive load is what matters   minds.md/zakirullin/cogni... · Posted by u/zdw
ScotterC · 8 months ago
Looks like a solid post with solid learnings. Apologies for hijacking the thread but I’d really love to have a discussion on how these heuristics of software development change with the likes of Cursor/LLM cyborg coding in the mix.

I’ve done an extensive amount of LLM assisted coding and our heuristics need to change. Synthesis of a design still needs to be low cognitive load - e.g. how data flows between multiple modules - because you need to be able to verify the actual system or that the LLM suggestion matches the intended mental model. However, striving for simplicity inside a method/function matters way less. It’s relatively easy to verify that an LLM generated unit test is working as intended and the complexity of the code within the function doesn’t matter if its scope is sufficiently narrow.

IMO identifying the line between locations where “low cognitive load required” vs “low cognitive load is unnecessary” changes the game of software development and is not often discussed.

codespin · 8 months ago
With LLM generated code (and any code really) the interface between components becomes much more important. It needs to be clearly defined so that it can be tested and avoid implicit features that could go away if it were re-generated.

Only when you know for sure the problem can't be coming through from that component can you stop thinking about it and reduce the cognitive load.

codespin commented on .NET for NES Game Console on 6502 Microprocessors   github.com/jonathanpepper... · Posted by u/mtmk
codespin · a year ago
I love seeing fun little projects like this

Dead Comment

codespin commented on Ask HN: What 1980s/90s-era shareware did you purchase?    · Posted by u/sgbeal
myself248 · 2 years ago
TeleMate - I might still have the original floppies somewhere. I still miss how easy this thing made file transfers; there's simply nothing like it in the modern era.

Commander Keen and Jazz Jackrabbit -- we played the hell out of these and it was only right to register them. Additional levels, whoah!

PKZip 2.04g -- back when software could just be "finished".

mIRC -- I sunk way too many hours of my life into mIRC scripts....

ACDSee 3.x -- Another "there's just nothing like it especially on linux", the fastest JPEG viewer ever to exist. I could crank up my key repeat rate, hold PgDn, and it would blast images into VRAM as fast as the keyboard asked for. Used 4DOS-style Descript.ion files and, to this day, I have a mindboggling amount of photo descriptions trapped in these files. No modern equivalent makes it so easy to tag things right in the filesystem without sucking them into some walled-garden database.

codespin · 2 years ago
Commander Keen was my childhood and then later mIRC scripts were my life. My mind was blown by being able to program something that could interact with real people like mIRC. My love for coding started there.
codespin commented on Why are weather apps still so terrible these days?   theatlantic.com/technolog... · Posted by u/kimnamjoon
flatiron · 2 years ago
Been a fan of https://merrysky.net/ recently
codespin · 2 years ago
I always have a tab open with merrysky. I really like the extra detail they show in the graph of wind/temp/precipitation and the break down of the day.

For Seattle area in particular most weather apps will show the entire week as cloudy and rainy, but there is a lot more to it and merrysky is able to surface that.

u/codespin

KarmaCake day56May 20, 2017View Original