HNHacker News
TopNewBestAskShowJobs

tikhonj

16,934 karma · joined September 12, 2011

Tikhon Jelvis

I am interested in programming languages, functional programming (especially Haskell), domain-specific languages, static analysis and program synthesis.

I am working on apply programming language ideas to supply chain planning.

I worked on supply chain optimization at Target for several years, and co-authored a textbook on reinforcement learning based on that experience.

contact: http://jelv.is, tikhon@jelv.is

submissionscomments
tikhonj··on Rings forged from meteorites may have been fashionable among ancient Greek elite
If I get lucky in IPO land I'll have my eye on a Jaeger-LeCoultre watch with a meteorite dial, so I guess things have not changed all that much in the last 3500 years :P
tikhonj··on Understanding is the new bottleneck
My personal view is that programming languages are amazing tools for understanding. Some more than others, but even the worst—the most verbose, the lowest level—are better than they have any right to be.

So I think that we are leaving a lot of power on the table if we treat generated code exclusively as something to understand, rather than something to understand with. The techniques Geoffrey presents are great, but they should come alongside approaches that use code itself to develop and articulate conceptual models.

tikhonj··on Gloomberb
Bloomberg is big enough that different aspects of the system are going to be absolutely key for substantial subsets of its customers.
tikhonj··on Lovable raises $400M Series C
It's a sign of how much distribution matters to VCs. Whether that is enough in the medium- and long-term is unclear. I'm a bit skeptical but not very confident either way... which is part of the reason I am not a VC!
tikhonj··on Solving the Shortest Vector Problem in $2^{0.6039n}$ Time via Mid-Point Hessian
I mean, in this case, it's 2^{0.6039n}, and the n is pretty important. I can see why trying to automatically detect cases like this would run into a bunch of wrong behaviors (either styling text that was not meant to be math notation, or parsing the implied math notation incorrectly).
tikhonj··on “Code was never the hard part” is an insult to all programmers
Everybody saying "coding was never the hard part" is really telling on themselves. Coding was never "hard" because most organizations were absolutely unwilling to take on any technical work that was hard. That tells us about business strategy and culture rather than anything about the fundamentals of programming or technical work.

The real conclusion is that programming is such a high-leverage activity that even technically trivial, low-quality programming is immensely valuable economically. That's not going anywhere, but maybe LLMs are going to make it all that much cheaper. (Which is mostly great! But I really don't look forward to the painful debugging and maintenance that reams of shit code will push down on programmers.)

But also, there still is a ton of programming that is fundamentally difficult. That's not going anywhere either. And LLMs are useful there too, but they're currently nowhere near replacing the expertise needed to do novel and non-trivial technical work.

In an ideal world, making mediocre code cheaper should leave more room for taking on harder technical challenges. In reality, this has always been dictated far more by non-technical factors—culture, leadership, trust, risk tolerance...—than by anything intrinsic to programming. But, at least for now, we can use the LLM hype to motivate the kind of deeper technical work that always made sense but was too uncertain or too open-ended or too long-term for non-technical leadership.

And we should also drop the bullshit "code was never the hard part" framing.

tikhonj··on Bonsai: Janestreet's UI Library
The main thing that Bonsai gets you is a nice programming model for making your UIs interactive. If you're mostly producing static reports (with maybe some basic interactive visualization widgets or something), it will not get you much over generating some variant on HTML + JS.

It makes more sense for applications where you have complex interactive logic in the UI, with a lot of different components that need to control and display some shared state.

tikhonj··on Karpathy’s Pelican
notion isn't too far off

wave failed for weird google organizational reasons far more than anything inherent to the product or tech

tikhonj··on The Silicon Valley Founder Meat Grinder
> A few months post-acquisition, he got fired for an allegedly silly reason, but my intuition is that he was coasting hard and couldn’t focus at all because of home office and lifestyle creep.

This seems like a pretty dubious conclusion to make from the outside. There are a lot of reasons somebody would get fired after an acquisition. Hell, even if he was coasting, an acquisition followed by a rapid change in environment and culture can cause somebody to lose motivation for a wide range of reasons. Blaming this on "lifetstyle creep" is rather premature and, frankly, pretty judgemental or moralistic.

This is downstream of a pretty frustrating belief I've seen repeatedly in the tech industry: that whether a person is "motivated" or "hard working" is some kind of inherent quasi-moral characteristic of the person, rather than something substantially affected by environment. But hey, it's much easier to blame individuals and lean on the perf review process than it is to change organizational culture or leadership!

tikhonj··on Golang proposal: container/: generic collection types
"Everything is a trade-off" assumes you're on the Pareto frontier.

Go is... very much not on the Pareto frontier of programming language design.

tikhonj··on Google fixed more Chrome bugs in June than over the past two years, thanks to AI
A pretty big part of the reason we didn't switch earlier is that most people—certainly most non-technical leaders, but also a lot of engineers—don't value correctness or security enough. We didn't have good alternatives until recently because we did not, collectively, invest in developing these alternatives.

One surprising thing is that, in the grand scheme of things, developing an alternative like Rust is not that expensive. It takes something like a small team a few years. Maybe a person-decade of effort to get to a viable point? Maybe two, whatever. The industry as a whole throws away orders of magnitude more engineering-years than that on vanity projects and internal dysfunction every year.

Of course, even once we have an alternative, the switching costs are high. And the barriers are far more social, organizational and political than they are technical. But even so, moving to alternatives incrementally has been viable for decades. And hey, if we include moves to garbage collected languages, we have been moving quite a bit... but we could have been moving more. It was only a matter of will and, upstream of that, cultural change.

So really, the problem isn't that people complain too much, it's that they don't complain enough :)

tikhonj··on The Economic Benefit of Refactoring
I've already seen at least one promising experiment about how static checking helps LLMs: https://arxiv.org/abs/2606.01522

Key parts of the abstract:

> This raises a question the programming-language community has not previously had reason to ask: should error-message detail be calibrated differently for AI agents than for humans?

> We investigate this question through a controlled experiment using Shplait, an ML-style statically typed language. We construct a suite of programs containing a single deliberate type error each, and measure how often an AI agent repairs them under ablation: a detailed error context using the unification stack; a proximate error location; a minimal type error; and a dynamic (test suite) error only. An automated oracle uses a test suite to classify each repair attempt as a type error, semantically incorrect, or semantically correct.

> We find concrete evidence that more detailed error messages generally improve an agent's ability to fix type errors. We also find that the presence of a type system appears to help more than only test suite failure reports.

tikhonj··on Recursion is lying to you
If all you do is replace the recursion in that example with one (or more) loops with mutable indexes, chances are the code will get worse.
tikhonj··on Kill The Cookie Banner
Well, maybe it is... but then the PM never prioritizes testing or fixing the problem. They're not intentionally trying to get more people to accept cookies, it's just that there are always more important features to build and fires to fight, and fixing the cookie banner won't move any of the metrics executives are breathing down their necks about, and it won't look good in the perf packet...

But of course, designing the system that pushes people to make this sort of decision was absolutely intentional.

So even when it's incompetence, it's still malicious, just in a way that obscures the explicit decision-making that led to the result.

tikhonj··on The whole premise of checking for human writing is daft
I mean, if you wrote an article like "the whole premise of disallowing people to spray-paint your house is daft"...

The real point isn't that they're "obligated" to allow AI-generated comments, but that they're being something of a hypocrite.

tikhonj··on “We have information that Moonshot distilled Fable for the development of K3”
The "data inputs" were also, very much, somebody's "value added" IP.

We're talking about things like text people wrote, not some kind of raw data floating out in the ether.

tikhonj··on I Stopped “Creating Content”
There are still a lot of smaller totally independent projects like this. I suspect that there are more—far more—just-for-fun projects today than in past decades in absolute terms.

I love Haskell, I've spent a lot of time in the general area around functional programming, types, proofs and PL, and there is still a vibrant community with lots of amazing non-commercial projects there. I'm sure the same is true in other areas of the programming world.

Ditto for the Emacs world. Emacs and its package ecosystem are amazing, better than they've ever been, and ≈entirely driven by non-commercial work.

Same for a big chunk of NixOS, although there's also been some real commercial investment there now.

I never really thought about it before writing this comment, but, except for games, most of the software I use and care about is primarily community-driven rather than commercial. And it's absolutely great.

Despite smaller communities and low monetary investment, a remarkable number of things about Haskell and Emacs and Nix are simply better than any commercial alternative, full stop.

The problem isn't that this kind of software has died—it's thriving more than ever—but just that the rest of the field has grown around it even faster. Programming is so commercially valuable that there has been a ton of investment in it and now we have millions of people for whom it's just a career, and trillions of dollars pouring into companies powered, primarily, by programming. It's a wild time. The overall feel of the field is definitely different now, but you can still find classic hacker enclaves. You just have to cut through the noise first.

tikhonj··on Three ways people respond to a problem (other than solving it)
The biggest obstacle to that is the electorate. People (voters!) would go wild. Anything the NGOs do, however shady, won't compare to that.

We had a successful campaign to recall a progressive prosecutor over less.

tikhonj··on Three ways people respond to a problem (other than solving it)
None of those things make homelessness appealing in any absolute sense. Like, if people had a (reasonable-to-them) path to getting a home, the vast majority would go for it even if there were a bunch of services available.

The real answer is that the electorate is vehemently opposed to providing paths like that if those paths feel even remotely like "unfair handouts". Votes hate that idea even if it would be empirically cheaper. We collectively preserve the problem of homelessness because we feel like people who can't/won't work deserve to be unhappy, because we believe that we need the threat of homelessness to coerce people into working, because we believe people on drugs/etc are undisciplined and immoral, because... well, you get the idea.

tikhonj··on The lost joy of music piracy
I've had the opposite experience, where Spotify (and, to a lesser extent, YouTube) has been a great way to find different music that I enjoy. The Discover Weekly playlist in particular has been surprisingly good at surfacing music that I enjoy but would have never encountered on my own.

This is handy for me because my taste in music runs pretty different from most of my friends.

I don't know how much of this comes from using Spotify in a different way, and how much is Spotify's algorithm adapting to my weird preferences.

tikhonj··on Sleep regularity is a stronger predictor of mortality risk than sleep duration (2023)
It's a bit harder to find, but I've had a good experience with liquid melatonin. Each drop contains like 0.1mg, so it's easy to dial in the small dose that you need.
tikhonj··on How to read more books
I did this the last time I tried reading Gravity's Rainbow and it definitely helped. Still required more prolonged focus that I have readily available though :P
tikhonj··on In Emacs, everything looks like a service
Emacs is, in fact, an IDE and some general purpose automation harness. And some other stuff.

That's the point.

tikhonj··on In Emacs, everything looks like a service
When I've been in that position, I've just trusted junior folks to figure out the tooling-specific way to do things like that, and it's worked out perfectly well. If anything, it leaves people happier and learning more.

And, instead, I can focus on the fuzzier, higher-level things that involve non-trivial tacit knowledge rather than things somebody can resolve with a Google search (or just ask Claude).

tikhonj··on A road to Lisp: Why Lisp
That doesn't follow.

For one, there might be trade-offs against dimensions other than safety and expressiveness. Performance, corporate support, libraries, popularity, learning curves, similarity to other languages...

For two, popularity is simply not strong correlated to quality. Popularity is a social function driven by, well, social factors. It's heavily path-dependent and noisy. There is absolutely no guarantee, not even close, that the "best" thing in any sense will be the most popular, or popular at all.

tikhonj··on A road to Lisp: Why Lisp
It isn't nearly as much of a trade-off as people say. Languages like Haskell are both remarkably expressive and provide a lot of safety. (And, of course, languages like Python, Java and Go are the opposite.)
tikhonj··on Show HN: 18 Words
Is that actually a word, or were you thinking of "wrought"?
tikhonj··on We charge $10k a week to delete AI-generated code
If you have even the remotest mental slop filter, I assume you are not really part of their target market.
tikhonj··on We charge $10k a week to delete AI-generated code
It's interesting how people view software as a distraction and an annoying side quest/cost center, but never apply that to, say, 90% of what management does. None of that "directly" makes money either!

That tells us a lot more about the leadership and management philosophies at modern companies than anything fundamental about what kind of work actually matters.

tikhonj··on 98% isn't much
Kicking out 2% of your existing customers in a physical venue violates people's expectations, so it's going to get you disproportionate bad reviews and word-of-mouth.

Good thing that we've managed to keep everybody's expectations a hell of a lot lower for software quality then :)

← PreviousPage 3 of 34Next →