Better HN
topnewbestaskshowjobs
Log inSign up

sshine

6,561 karma · joined Jan 13, 2014 (12y ago) · 2,663 submissions

https://simonshine.dk
Submissions

comment 2d ago · link · parent

Yep, I’ve rewritten a couple of backends that were critical to their projects in Rust this year exactly because their Node/Python predecessors did not scale well with many concurrent users.

100x performance gain on on-prem hosting means everything to hardware costs.

The biggest differentiator is proper thread support. You can handle things concurrently within a single process and not start one or more processes per concurrent user. Go can do this, too.

The secondary is just having a chance to rethink the architecture. Do something smart.

The third is language and ecosystem features that encourage more correct software. Rust beats Go here. Too many specifics, nothing new. Haskell can do this, too.

comment 2d ago · link · parent

I did a similar attempt to produce small AppImages for GTK applications where static binaries are not an option. With a bit of recompiling dependencies with different flags and trimming i18n away, I went from 897MB to ~20MB.

https://simonshine.dk/articles/nix-appimage-when-musl-is-not...

comment 1w ago · link · parent

> Nobody is against to highly trained, well-educated, rich immigrants (or nobody I’ve spoken to apparently).

The same economic fear can apply for educated/high-income immigrants. Plus concern that housing prices will go up.

Wanting cultural homogeneity isn’t just about economics, either.

comment 2w ago · link · parent

Yeah, and people who don't switch to Dvorak are lazy, too!

https://ciphercue.com/blog/dmarc-enforcement-gap-rua-fragmen...

https://news.ycombinator.com/item?id=49081783

I have MCP servers for the creation of domains, DNS records with DNSSEC, and email accounts with SPF, DKIM and DMARC. I'm sure if someone wants to be a professional spammer today, DMARC is not a differentiator.

comment 2w ago · link · parent

Cool.

I'm already a big fan of the scheme-rs crate.

I use it any time I need a dynamic scripting language.

It allows for more flexible hot-reloading of parts of a program.

I don't personally have any Clojure interop holes that need filling.

But I can imagine a future where one moves partially away from the JVM if e.g. faster starts or leaner container images are desired.

comment 2w ago · link · parent

It makes sense for multiple job ads if there are completely different roles applied by completely different people. But, for the sake of hiring, it doesn't make sense to invent new titles just to justify differently negotiated salaries. For example, I was once hired as a "Senior Software Developer" who essentially got paid twice what the least senior Senior got; they were to some extent mislabelled: They were senior in another capacity than software, and had transitioned inside the company but kept their titel because people are vain. Our responsibilities were vastly different: He was a frontend tokenmaxxer, and I migrated strategic customers to on-prem Kubernetes by negotiating contracts, bootstrapping clusters, and adapting applications to run without autoscaling. They could have given either of us a different title, but for the sake of the value we added, the salary made sense.

A title like "Senior Software Developer" can range from 5 years of general-purpose web development experience to 20 years of highly specialized experience. Those "Principal" and "Staff" titles don't necessarily make sense outside of larger corporations.

Most recently I've seen salary ranges up to 30% of the upper bound. Completely reasonable.

comment 3w ago · link · parent

I feel strangely at home.

comment 3w ago · link · parent

I think perhaps my use of the word skill atrophy here is wrong.

Skill atrophy is when you're good at something, and because you don't practice it regularly, it gradually wanes over years, like when my former CEO said "I used to be good at programming" because he made a tiny chess computer and sold millions of copies, and now he... just doesn't code, and hasn't for decades.

Skill atrophy would be if I opened my text editor and I wasn't able to code after two years. Being a polyglot, there's always some language that feels rusty. And now they all do. But it hasn't been long enough to feel the atrophy.

What I'm describing is laziness to understand a problem domain.

> I couldn't imagine submitting a PR for code that I didn't understand and couldn't explain.

I could. I do it constantly for projects where that premise is acceptable. And I've worked on projects where many people merge to main once an established set of steps has completed. "How does it work?" and "Show me the thing working." are good gates. Understanding (or even reading) the code is not a mandated prerequisite.

As an Open Source contributor? No way. Exactly because I'm contributing to projects where people don't share basic premises. Some people code by hand, others use coding agents. If I were compiling stuff and everyone else was hand-writing their assembly, I'd read and tidy up my generated assembly, too.

> AI provides a great opportunity to learn at an even faster rate by using AI to help explain complex topics.

Totally. Better solutions come through those explainer sessions.

comment 3w ago · link · parent

> skill atrophy is real

It is also both a choice and avoidable.

Atrophy happens when you trade understanding for productivity. Productivity benefits your employer and your KPIs, but not your understanding and your opportunities going forward.

Understanding used to be an unavoidable of the exploration process, and writing documentation used to be the thing that never got done. Now, writing documentation is automatic, but reading it still isn't.

I've been managing a team of interns at my last job, and as they were all equipped with coding agents, they'd deliver complete solutions to problems once or several times per day that would normally take days, or weeks if you factor in necessary learning.

As review of their understanding, and for the sake of my own cognitive debt, I would first ask them the question "How does it work?" and they usually couldn't answer. After a handful of tasks, they started preparing answers. This forth-and-back is still more shallow than getting the deep knowledge chiseled through hours of trial and error, debugging and wrong directions. Spending two hours to find a problem to realize you forgot to save or upload a file, or had an x instead of a y. I look back with nostalgia, and I wonder if there weren't always better ways, and we just get to pick them now. I can literally convert any task, solved or not, into a quiz that brings me towards understanding, in rainbow-colored pig latin.

comment 3w ago · link · parent

quantify poor and shelter

comment 3w ago · link · parent

> > America's poor have a higher standard of living than medieval kings.

> False Equivalence, Red Herring, Chronological Snobbery, Fallacy of Relative Deprivation, Contextomy.

There's a lot of reasonable arguments to unpack here.

But no, it's not that Louis XIV didn't have an iPhone, it's that the vast middle class in developed countries has central heating and access to penicillin and don't die from giving birth as much.

Also, America's poor are definitely worse off than medieval kings. They don't have access to those basic things that keep most modern people wealthier than medieval kings, like food, shelter and health care.

Some of the older (pre-medieval) king's ruins in Denmark are (by our standards) small stone houses with a moat, and what makes them remarkable is that they're made of stone, and the moat is rather big, so it keeps people out. Like metal doors in apartment buildings, sort of. (Correction for the historians: The oldest king's ruins are of course just holes in the ground where wooden beams used to stand.)

s/America's poor/Europe's lower middle class/ and you're there.

comment 3w ago · link · parent

API vs. Subscriptions

I don’t know if there’s any openly available statistics on how API costs divide between Claude Code, Claude SDK, raw API, and via OpenRouter.

comment 3w ago · link · parent

I think it comes from early exposure to phones and tablets and getting used to it. My 2 year old tried to swipe on my computer screen.

And I agree, watching kids swipe feels, to me, like passive consumer induced computer illiteracy.

As long as you can’t fundamentally reprogram the device with your input method, you are at the mercy of other people. (And yeah, sometimes a keyboard is not enough, either.)

comment 1mo ago · link · parent

How did you train your style guide, though?

I have a somewhat expansive style guide, and it still reeks of Claude.

My cleanup is much closer to 40%, which still makes it worth the effort, but sometimes when speed matters, I'll apologize for the slop.

comment 1mo ago · link · parent

What do you mean by your custom models? Do you mean custom prompting?

comment 1mo ago · link · parent

AI won't replace old tech that works, is the point.

Paper is one such.

I'm less sure keyboards will stay to the same degree. My thinking was always the bottleneck while programming, so even though I can talk faster than I type, I couldn't solve problems faster than I type. But I can now.

So I'm opting for speech-to-text when the office space allows it, and looking into steno (stenography) keyboards, or perhaps building a steno overlay on my custom split keyboard to go from 80-100WPM to 200+WPM.

comment 1mo ago · link · parent

> I would simply lie about whether or not a treatment plan was put into place.

Prompt engineering!

Sadly, you learn that honesty is not the best choice always. And an honest answer is best given without too many priors.

comment 1mo ago · link · parent

The general "don't wait" line through much of this advice is recognisable as a trait I apply at work when I want to make sure things get done. "Fail fast, discover unknowns early," etc.

I can't imagine how important it is to practice this when you deal with a terminal illness that grows over time. And how easy it might be to forget this, because you're exhausted.

comment 1mo ago · link · parent

Ferrocene

comment 1mo ago · link · parent

Nix.

I know, I know: It's complicated. But have you heard of AI agents?

But I just onboarded 4 interns on a project where all they had to do was

  1. Install the Nix package manager
  2. Install direnv, enter the project repo, and `direnv allow`
  3. Toolchain, git hooks, MCP servers, in-repo issue tracker, everything is available
Our project manager requested information that was available in the issue tracker. I told her, she could get all her answers by asking our agent, and it'd automatically reference the issue tracker. I figured I'd just need to show her how to install the Nix package manager. But no, she already had it because another project by another team depended on it.

Putting wrong information is README is so outdated when you have programmatic setup of your entire toolchain.

comment 1mo ago · link · parent

Why, you are right on all of these. I used Rust a lot before AI, and I use it a lot after. But I recognise the shortcoming of long compilation: it doesn't just shorten how many times I can have feedback in one day, it is also difficult to fit compilation into constrained environments. Like when an ultra secure Kubernetes cluster doesn't let me compile source code anywhere near it, and I have to compile inside of it; my colleagues insistence on using Go here because "Rust is difficult" (it surely is 100% longer to type when prompting an LLM) really has the main benefit that this code compiles fast and easily within the cluster.

So picking languages for their compilation and especially runtime properties is key.

What I've learned, though, is that languages with reckless error handling produce more errors at runtime. My Rust programs just don't crash because I don't need it to be explicit about reaching a "total" approach.

If you're in a C# environment, I see a case for F#. And if you want fast but more solid than Python, why not Mojo? Although who reads code.

This article convinces me. But I suspect like my lack of domain knowledge of Lisp makes me spend time learning the runtime: how and when can I switch to JIT, what's the async story, how does the harness become part of the Lisp program, etc.

comment 1mo ago · link · parent

I anticipate the day where saying you did a web search is looked weirdly upon.

You did... what? You mean you asked AI?

comment 1mo ago · link · parent

Right, it's part of SpaceX.

comment 1mo ago · link · parent

> developers are now checking out a 50GB repo in its entirety periodically

It would, of course, be easy to say "But that's not the fault of monorepos! Clearly, 50GB is a nonsensical amount of source code, and clearly someone committed something they shouldn't have in the past."

But also, with monorepos, the probability of that happening to the repo you use the most is the cumulative sum of all of its projects, since more people's potential git mistakes now happen in the same place.

For the sake of comparison, nixpkgs is 4.5GB right now. It hosts ~140.000 packages, ~12.000 open PRs, one million commits, yadda. So when you reach ten times that size with, presumably, less traffic, I would consider cleaning up the history.

Polyrepos can definitely work; I use them extensively in open-source. I also wouldn't be doing that without Nix flakes all over to chain them together. And even then, I have constant drift because one repo is pinning an old version of another repo, and once I bump the pin, things break lazily.

The biggest benefit, by far, you get from monorepos, is eager evaluation of your dependencies.

comment 2mo ago · link · parent

Recently: When asking any colleague about anything they did in relation to the project we’re working on, like “How does it work?” the answer is always “I don’t know.”

I get that there’s cognitive debt. Some just seem to never even pay interest or get a basic understanding of the domain model.

My suspicion is that these people were always lazy programmers, but now they can take the laziness to a point where, after weeks of working on a project, they don’t get the basic vocabulary right.

I just want to say: #notallvibecoders

comment 2mo ago · link · parent

Exactly because monorepos have least overhead when they’re small, monorepos generally win because you need to be small for a long while until you get big.

By the time you’re “at scale” (who knows), and all these monorepo at scale problems start to overwhelm, you can switch strategy, because the economy of polyrepos is so obvious by then.

So far, I’ve started a new job a handful of times by collapsing a premature polyrepo strategy: people were not experienced enough to merge two git repos without a common root.

I’ve only once went the other way, and it incurred so much overhead, it decreased developer productivity by some small but not insignificant percentage.

To be clear: I’m not a maximalist. All of my open-source work is exceedingly compartmentalised. My DNS library is separate from my external-dns webhook is separate from my fork of external-dns. They could all live in one repo. But FOSS encourages reusability, commercial software encourages clumping and vendoring.

comment 2mo ago · link · parent

Do you provide Jev that the probability is 1/6 and yet it gives back a probability that is way off?

comment 2mo ago · link · parent

Forgejo/gitea are just so damn CVE ridden, and GitLab asks for 16G RAM as a minimum. All Rust-written forges have terrible web UI.

comment 2mo ago · link · parent

What if the user changes location?

Sounds like unbounded, dynamic allocation to me!

12345
89