HNHacker News
TopNewBestAskShowJobs

varyherb

89 karma · joined September 12, 2020

submissionscomments
varyherb··on Code and Let Live
Does anyone know of similar solutions that can be self-hosted? (without a 12 service stack like Daytona [1])

[1] https://www.daytona.io/docs/en/oss-deployment/

varyherb··on Project Euler
Project Euler spurred my love for math and programming when I was 15. I got through the first few with pencil and paper and then quickly realized I was going to need to learn how to program. Got started with Java (in Eclipse) and then moved on to Python. I feel like it completely changed the trajectory of my life.
varyherb··on Claude Sonnet 4 now supports 1M tokens of context
Yup! Claude Code has a lot of undocumented configuration. Once I saw the beta header value in their docs [1], I tried to see in their source code if there was anyway to specify this flag via env var config. Their source code is already on your computer, just gotta dig through the minified JS :) Try:

`cat $(which claude) | grep ANTHROPIC_BETAS`

Sibling comment's approach with the other (documented) env var works too.

[1] https://docs.anthropic.com/en/docs/build-with-claude/context...

varyherb··on Claude Sonnet 4 now supports 1M tokens of context
I believe this can be configured in Claude Code via the following environment variable:

ANTHROPIC_BETAS="context-1m-2025-08-07" claude

varyherb··on Show HN: My LLM CLI tool can run tools now, from Python code or plugins
I was running into this too until I started upgrading with

llm install -U llm

instead of

uv tool upgrade llm

(the latter of which is recommended by simonw in the original post)

varyherb··on Show HN: Lander, a lunar lander style web game
Same

  Just shy of a good landing
  Score: 78.3 point landing
  Speed: 5.5mph
  Angle: 0.3°
  Time: 577 seconds
  Flips: 206
  Max speed: 302.4mph
  Max height: 12012ft
  Engine used: 69 times
  Boosters used: 89 times
varyherb··on What went down on Wikipedia after Queen Elizabeth II's death was announced
Perhaps some internet sarcasm is going over my head, but the lyrics are by Samuel Francis Smith. Its melody is the same as that of "God Save the Queen/King."
varyherb··on Replit.com (YC W18) raises $80M Series B
Where did you find the valuation figure? Or do you just mean the size of the new investment?
varyherb··on The Bay Area Crime Wave
This is a gross oversimplification of the author's detailed (if a bit editorialized) analysis. The author actually acknowledges, and later expounds upon, the apparent incongruity you mentioned:

> I look at communities like Detroit and I understand why the youth there resort to crime, but what the hell is the matter with the Bay Area? Arguably the wealthiest metropolitan area in the United States. A place with too many jobs and not enough people to fill them.

varyherb··on Lessons learned from sharding Postgres at Notion
Not to mention 1, 2, and 6 :)

7! = 5040 shows up as well in the OEIS sequence. Buuut, 8! = 40320 does not...too many useless 2's in the prime factorization?

varyherb··on Lessons learned from sharding Postgres at Notion
Are you at all concerned about the selection of the workspace ID as the partition key? With every workspace on a single partition, couldn't a high-throughput workspace create a "hot" partition that will negatively impact other workspaces on that partition?

At the cost of potentially introducing more cross-partition queries, you might benefit from splitting up high-throughput workspaces. See strategy in https://d0.awsstatic.com/whitepapers/Multi_Tenant_SaaS_Stora..., pages 17-20.

varyherb··on Can progressives be convinced that genetics matters?
"In the past, I have made no secret of my disdain for Chef Gusteau's famous motto: Anyone can cook. But I realize, only now do I truly understand what he meant. Not everyone can become a great artist, but a great artist can come from anywhere." [1]

[1] https://en.wikipedia.org/wiki/Ratatouille_(film)

varyherb··on Conspiracy: In Theory and Practice
Ed? Do you know him?
varyherb··on Play online chess with a real chess board
A prime example of the confusion that arises when the Oxford comma is omitted
varyherb··on My first Z80 assembly language program
> I was 9 years old and I wanted to write amazing games...After four years of writing games in BASIC language, I felt like I was stopped by the slowness inherent to an interpreted language.

Wasn't sure I was reading this correctly, so I navigated to the About Me page:

> Born in 1978, I started programming at age 5 in BASIC, learnt assembly language by age 9

varyherb··on The bottlenecks which could constrain emission cuts
https://archive.is/kVD8q
varyherb··on [dead]
This was published in conjunction with an alternate take: https://www.economist.com/by-invitation/2021/05/24/john-mcwh.... Worth reading both.
varyherb··on The anus is an evolutionary marvel
When I think about the digestive tract, I wonder—is the human body topologically equivalent to a torus?
varyherb··on Offline Algorithms in Low-Frequency Trading
Genuine question, does this strike others as immensely off-topic? I'm curious if the parent commenter even opened the link. I'm sure there are applications of generalized knapsack problems (or dynamic programming generally) in options trading, but this isn't it.