3,357 karma · joined Dec 27, 2011 (14y ago) · 998 submissions
comment 17h ago · link · parent
> Stashing might be "clean" - but "clean" just means primitive in this sense, it's a bad thing - but it destroys local state and I don't want that.
Stashing is the logical inverse of staging, with the stash taking the place of the staging area. It is not more or less primitive than the staging area and it does not destroy local state, as it is entirely and easily reversible and composes with other operations (esp. if unshelving is implemented via a proper merge as it should be). There is nothing sacrosanct about local state; it gets changed or "destroyed" everytime you modify a file. This is normal for a worktree. In addition, it allows you to actually see what the commit looks like before you commit it, to view, compile, or test it as needed, rather than just eyeballing it.
> The problem is in the UI, all those operations can be expressed much more naturally if one used a good UI like Magit.
If that is your argument, then you do not need a staging area for your apparent use case, as you can select the changes you want to commit in the UI (in fact, in JetBrains IDEs that works analogously regardless of whether you use git or another VCS without a staging area). In this case, having the staging area is empty ceremony.
comment 2d ago · link · parent
The free (and social!) market economy is set out as a principle in Article 3 (3) [2] TEU and Articles 119 and 120 TFEU [3].
These do not exist in the treaties because the EU is torn between two wings; they (along with other provisions) largely exist because they were prerequisites for the member states to agree to give the EU legislative power by ensuring there were safeguards in place to limit that power.
[1] https://en.wikisource.org/wiki/Consolidated_version_of_the_T...
[2] https://en.wikisource.org/wiki/Consolidated_version_of_the_T...
[3] https://en.wikisource.org/wiki/Consolidated_version_of_the_T...
comment 2d ago · link · parent
This would mean that you're changing already pushed commits, leading to mutable shared state, which is also not a desirable situation. (Aside from the fact that fixing up commits can be a somewhat painful business in Git.)
Also, this seems to be an inconsistency in your position. If it is okay to have poorly built commits because you can fix them after code review, why is building them carefully in the first place important?
> No it doesn't. The staging area is precisely what allows you to carefully build a commit. Before git, we had to do the same by backing up the modified files somewhere else and creating a commit, then bringing them back. I used to use CVS, then Subversion, then a mix of Darcs and Arch, before git finally solved it.
This is interesting, because Arch already had the concept of a stash (via the oddly named `tla undo/redo`, even if like much of Arch, it was a bit primitive). In any event, stashing/shelving as a concept already does what you want a staging area to accomplish, as I had pointed out above, without the problems introduced by the staging area. In general, the "backing up the modified files somewhere" was made unnecessary in most version control systems a long time ago.
> Using commits to save state is bad and I've forbidden it in my team. Jujutsu makes it more convenient so that uncommitted state is itself a special commit that gets pushed to the server, but the real solution is what Google's SrcFS does: workstations checkout code on top of a FUSE filesystems that really gets saved on the server side, so state can never get lost on a single machine.
You seem to have misread my statement, as I pointed out that this is a problem; we are not disagreeing here. That git does not really have a good way to support the functionality of saving repo state is the actual issue, but a shortcoming that is shared by almost all VCSes.
Doing this at the file system level is also not really adequate. It does not replicate the functionality of temporary snapshots and if it did (like the local history in JetBrains IDEs), it would be cumbersome.
comment 2d ago · link · parent
And a staging area is arguably the more error-prone and less ergonomic approach, giving rise to more UI complexity like git diff --cached, git diff HEAD, and plain git diff all being necessary functions. Or the git reset --soft/--mixed/--hard triad.
This ultimately results from the design decision that the staging area is a revision in all but name (it is a set of changes, after all), but cannot be addressed as one, so additional UI ceremony is needed. (See e.g. Mercurial and Sapling, both of which allow you to add and remove changes to and from the current commit, and thus avoid this unneeded complexity.)
[1] That git also uses the staging area for merges is a separate issue.
comment 4d ago · link · parent
First, server-side CI is usually only running for the last commit, so if you have a series of commits pushed at once, this doesn't really help.
Second, it's not even so much about the validating a commit (which, for intermediate steps, it might not do), but so that each commit hangs together and a change as a logical unit doesn't exist partly in one and partly in another commit [1].
Conceptually, the whole staging process flies in the face of the idea that a commit should represent an atomic repo change and feels more CVS-like.
> That's a UI problem. I've been manually selecting code with Magit for years and it's very effective.
There are two counterpoints I would like to make here. One is that if you need additional tooling to work around a problem in an existing tool, that does not mean the original tool does not have a problem.
The other is that better tooling does not mean that the increased error rate from unnecessary manual steps goes away; it can mitigate it, but it does not do away with the consequences of e.g. inadvertent lapses of attention.
And realistically, in most cases it is just unnecessary extra work for no good reason.
[1] Mind you, there's the problem that commits are really used for two different things, one is to capture conceptual steps and one is to to do quick save of the repo state, and no existing VCS does a good job of reconciling these two different purposes.
comment 4d ago · link · parent
I agree with that, which is why I pointed you at the auto-track setting. I also think that automatically adding everything is a poor default.
> after all software engineering is a craft, so craft you commits.
I could not disagree more. Reliability dictates that you minimize the risk of errors, including those from having unnecessary manual steps for frequently repeated operations.
My point here is especially git vs. pretty much any other VCS aside from jj, not git vs. jj; do not assume there are only two options here. Being explicit about adding files to a repo is generally a good idea. Having to repeat the process for already added files for every commit is just another opportunity for errors.
And as I wrote in another comment [1], I actually consider the staging area an anti-pattern for unrelated reasons.
comment 4d ago · link · parent
[snapshot]
auto-track = """
root-glob:"{src,tests}/**/*.rs" |
root-glob:"Cargo.*" |
root-file:"README.md"
"""
I set it to `snapshot.auto-track = "none()"` in the global config so that it is turned off by default and then selectively adjust it for a project.You can also leave it as `none()` and then manually add files as before.
Note also that this has nothing to do with the staging area, but with selecting which files to add to a repo, which other VCSes can do just fine without having a staging area.
In fact, selective auto-track plus not having to explicitly stage changes makes it less of a risk that you forget to add something.
comment 4d ago · link · parent
The rest is probably a bit more of a tradeoff for many people in that jj like git also has a non-traditional mental model that you have to learn, with the difference that there is actually rhyme and reason behind jj's. But whether learning that (which can be a non-trivial effort) is worth it to you if you're already accustomed to git idiosyncrasies is a personal decision.
comment 4d ago · link · parent
With the staging area, you don't even know if the commit builds if you commit selectively, and manual adding is error-prone.
The traditional "clean" way has been to stash unwanted changes temporarily, then commit the rest.
comment 5d ago · link · parent
Even for smaller businesses via the team (Anthropic, up to 150 seats) or business (OpenAI, up to 200 seats) plans, it's not that great a situation, either. Seats are limited to the approximate equivalent of a $100 subscription even for the premium version, and e.g. using it in the CI through the OAuth2 authentication flow rather than an API key is at a minimum contractually dicey. And unlike individual subscribers, you cannot have multiple subscriptions per seat, either.
comment 5d ago · link · parent
In my experience, basic LLMs without reasoning still tend to make very dumb mistakes (such as omitting or inserting a "not" or otherwise stating the opposite of the correct response). It seems that the combination of CoT (for fixing errors) and tool use (for grounding the inference process) play a major role in making LRMs work.
I see LRMs not so much as a move towards intelligence, but as employing a heuristic-guided search for a goal condition (essentially pathfinding in token or latent space). Granted, a search with a very, very powerful heuristic, but the approach still seems to exhibit the same problems as other naive search algorithms, such as getting stuck in local optima [1]. And the answer for this by the labs when pursuing e.g. research math problems seems to be to throw agent swarms at the problem, i.e. pretty much the same quick fix we use to mitigate similar issues in classical search algorithms.
See also the problem of models being very good in areas where they can build on a pre-existing theory, such as much of research mathematics, but can flail around [2] and just offer the obvious ideas in fields without one (as they lack a way to determine neighbor nodes for an effective search).
Obviously, like pretty much everybody, I have no idea where AI will be a year from now; a new breakthrough can render any existing argument irrelevant, and we've already had a few of those during the past decade. But I don't currently see incremental improvements moving past existing limitations of how LRMs work.
[1] E.g. https://bespokelabs.ai/blog/how-models-explore-ideas
[2] E.g. https://www.lesswrong.com/posts/DALNiKBjMGMF8grme/arjun-pani...
comment 5d ago · link · parent
comment 6d ago · link · parent
comment 6d ago · link · parent
Be aware that this can vary greatly by benchmark to the poin where it is not possible to make a general comparison. Generally, however, Opus is considerably more expensive than Sol even for the benchmarks where it does best. That said, this comes with slightly better performance on benchmarks.
For subscriptions, it matters that Anthropic offers much higher discounts than OpenAI, partly or totally offsetting it. In my case, with $20 subscriptions for both (which is the worst-case scenario for OpenAI, they give bigger discounts on their $100/$200 plans), and on some tasks that I tried on both, 5h usage percentage is mostly a wash on average, with considerable variations either way. Again, I need to emphasize that this is for my tasks and cannot be generalized.
For example, on one task Sol decided to do extensive fuzzing to check its implementation while Opus didn't, so that drove up the usage for Sol a bit.
comment 6d ago · link · parent
Also, for long contexts, Haiku 5.5's direct competitor is probably Terra 6.1; Terra has similar cost per task with longer cache TTL and equal or better capabilities for long contexts.
I think Anthropic's problem is that they could get a lot of price-conscious people on board by making Haiku more attractive to use as a primary model, but then they'd probably lose money by having more people switch from Opus or Sonnet to Haiku.
comment 1w ago · link · parent
There is evidence that some Chinese labs have been training on frontier model CoT (in particular from the analysis of reasoning traces [1]), but what models claim about their identity is pretty much worthless as evidence. LLMs are not self-aware. These claims come from whatever is in their training data, and Claude/GPT output including such statements is all over the public web, including in some huggingface data dumps. Consider that people got Opus claiming to be Qwen or DeepSeek when asked in Chinese, and you'll see how weak this particular evidence is.
[1] E.g. https://arxiv.org/abs/2608.09867
comment 1w ago · link · parent
Patrick Toulme noted a while ago that the biggest advantage of that in his opinion came from bootstrapping the post-training process: https://xxcancel.com/PatrickToulme/status/206921157543762774...
At Thinking Machines, they explicitly said that they used open-weights models for bootstrapping post-training, including Kimi K2.5: https://thinkingmachines.ai/news/introducing-inkling/
Speaking of Thinking Machines, that's another data point. Their Inkling Small 2 model is just a bit behind DeepSeek V4.1 Flash 1017 in benchmark, and in my tests, that seems to be accurate, but mostly because they used less training data for pre-training, so they have less of a knowledge base, while similar reasoning capabilities. (One of the most interesting parts of Inkling Small 2 is that their training must have been very cost-efficient, apparently using less, but higher quality training data.)
And we're now seeing more and more Western near-frontier models from labs other than Anthropic and OpenAI to question whether distilling reasoning traces is really much of a difference maker.
Personally, my theory is that the gap is primarily due to Chinese labs having a harder time getting the necessary compute (especially top of the line GPUs) for training. These are, as far as I can tell, orders of magnitude differences in availability, so it wouldn't be surprising that a large compute gap is reflected in capabilities (and also indirectly visible through model sizes).
comment 1w ago · link · parent
There are a number of issues with relying on a frontier LLM for these kinds of tasks.
One, there are only 3-5 companies in the world that have the capability, and you depend on whether they're interested enough in your use case (do you think you can interest Meta in putting support behind optimizing support for Swedish law, for example?). These companies measure their investments by ROI, and they focus on things that have large markets. Heck, Google in particular is kind of infamous for suddenly killing off projects that don't work for them.
Second, all of these companies are American, which may be a no-go for certain use cases involving strict data privacy.
Third, these capabilities may need to be maintained and updated, and you'd depend on the goodwill of frontier providers to keep doing that.
Fourth, the frontier model is likely to be more expensive to deploy and run than a smaller specialized model.
You may have a point in a world with infinite resources, but the reality is that this situation is influenced by plenty of market constrains.
comment 1w ago · link · parent
So, with new models coming out on a weekly basis, I think trying to figure out a future trajectory is just going to be a wild guess. For all we know, Anthropic and OpenAI models may also be plateauing in the near future; or there may be a breakthrough and they may improve beyond our wildest expectations. I honestly don't know.
That said, I suspect available compute and model sizes that major Western vs. Chinese labs can handle will still keep the gap open at least in the short term.
On the other hand, I am also not sure how much the gap will matter past a certain point. I am specifically wondering at what point people will become interested in smaller models fine-tuned for specific application areas (e.g. cheminformatics) rather than massive generalist models.
comment 1w ago · link · parent
[1] Especially Terminal-Bench-Science 0.1 stands out. Example problems:
- https://hub.harborframework.com/tasks/terminal-bench-science...
- https://hub.harborframework.com/tasks/terminal-bench-science...
Probably very relevant to people working in these fields, but it is honestly not surprising if a lab with limited compute will not train for these technologies, and it says pretty much nothing about more common use cases. I also suspect that this benchmark measures knowledge retrieval more than raw reasoning ability. This is where you really need a breakdown of capabilities and not an increasingly meaningless aggregate number.
comment 1w ago · link · parent
comment 1w ago · link · parent
Insofar, despite the article being somewhat simplistic if you have a background in IT, I find it important that the risks of these tools are shown to the public if Anthropic and OpenAI won't do that themselves.
comment 1w ago · link · parent
comment 1w ago · link · parent
"One occasionally reads newspaper accounts of how two programmers in a remodeled garage have built an important program that surpasses the best efforts of large teams. And every programmer is prepared to believe such tales, for he knows that he could build any program much faster than the 1000 statements/year reported for industrial teams. Why then have not all industrial programming teams been replaced by dedicated garage duos? One must look at what is being produced."
Brooks argues that the coding that happened in the garage is only a fraction of what you need for the final product:
"It costs nine times as much. But it is the truly useful object, the intended product of most system programming efforts."
What we're seeing right now does not feel much different. You can greatly accelerate a first draft, a greenfield project, an experiment, or at least the initial iteration of one. Changing a live production system or a widely used library is an entirely different proposition.
comment 2w ago · link · parent
This was actually from a personal project, and my point was not about the type of task, but the types of errors I am still seeing from modern LLMs.
> Futhermore, what would be the organizational cost if these bugs were in the codebase?
The particular errors that I highlighted above are what I call "landmines". They may not manifest at all depending on what you do, but if they do, they can hurt a lot, especially in production.
comment 2w ago · link · parent
comment 2w ago · link · parent
This is not my experience. Well, at least not for what I'd consider very low.
For example, I have a standard task of adding support for a well-specified regex scheme as a dependency-free module to the Wren language (which grew out of actually needing it at one point). When done autonomously, errors still occur, some of them very basic. For example, trying Fable 5.2 at medium the other day produced the following:
- memory unsafe behavior on 32-bit architectures (the good old problem of size overflowing on an allocation call).
- O(n^2) behavior for searchAll() and replaceAll() operations.
- Various minor subtle semantic issues, though none of them particularly critical.
This is a well understood problem, and in general, Fable's construction (Thompson NFA by way of a Pike VM) was in principle correct, but it still had these pretty basic problems. (Other frontier models produced their own, e.g. a use-after-free bug or a combinatorial explosion in the regex compiler for some types of regexes.)
(As an aside, so far I don't consider Fable 5.2 an improvement over Opus 5.5 in coding ability, more of a sidegrade; while it is smarter and can do some hard, but also pretty esoteric stuff that Opus fails at or takes much longer with, for regular coding problems it's neither better nor worse, more ... different. And sometimes Fable seems to outsmart itself, producing a seemingly clever solution from its vast knowledge that is actually worse than the standard approach in practice.)
One area where I absolutely do not trust even frontier models yet is parallel and distributed programming. I absolutely value them as a second set of virtual eyes for tricky situations in this area, but I do not trust them to get things right, and even if the solution is correct, it's often inefficient or convoluted.