Not sure I understand what you're looking for exactly, but couldn't you just wrap a thread-local allocator (the design you're talking about) in a global allocator by referencing a static thread-local in that static global allocator? Then you wouldn't have to .new_in(), but you would still have thread-local allocation.
I'm not saying this is a good idea, just that it seems like Rust does maybe accommodate what you're talking about already.
Sure, but that has the overhead of a thread-local variable, and requires using threads.
I guess where I'm getting as is that there are genuine use cases where you want to enforce an allocator throughout a subsystem without rewriting absolutely every line that can allocate. But Rust does not have any way to pass "implicit" context down the stack, from what I know.
With Zig, allocators are already explicit, but Rust didn't start out that way, and it doesn't really fit into how Rust code is written today.
Oh I see, the thing that would work for your use case is essentially a dynamically-scoped allocator variable that all the functions which use the global allocator today would use instead.
You kind of can do dynamically scoped variables (though the only way I know to do this itself uses a thread-local stack and doesn't play nice with async), but you wouldn't be able to rewrite e.g. Box::new to use it instead of the thing bound to the global allocator. You could, however, provide an implementation of a global allocator that resolves your dynamically-scoped allocator for each allocation.
Yeah you would pay for the overhead of a thread-local on every allocation. Rust nightly does at least support a faster version of TLS (#[thread_local]) instead of the thread_local! macro. Not ideal, but there would necessarily be _some_ overhead involved with any strategy for resolving a dynamically-bound Allocator impl at runtime instead of a static one.
Well in your hypothetical scenario, for it to be equivalent, you'd be one of three to five individuals on the entire planet who are remotely capable of doing the old job (which happens to provide an essential component of modern entertainment for millions of people).
So that complicates the comparison. It would be, at least, selfish.
No one's saying it's essential for Nvidia to continue supplying GPU's to the gaming market. What they are saying, correctly, is that money from the gaming market in the past was essential to their success now
Me too. When agents do all the hard and interesting work, the only thing left for me is a constant slog of minutia. It's all I can do to work through prompt after prompt after response after response all day, constantly context-switching, at a faster pace than my brain can adapt, just to keep the flywheel spinning.
Management used to say "use AI to reduce your toil" but what it's actually done is reduced my job to toil. It's been months of this, with nothing interesting to do or even slightly engaging. I'm so tired.
They claim managing agents is like managing people, but I don't find that to be the case at all. People would push back, question, stick to key points and tell you once things are ready to release. LLMs just floods you with information that you're supposed to keep track of and use to make good decisions. It gets exhausting very fast.
A person would also never speak to me in the absolutely insane way an AI agent writes. It is incredibly mentally taxing just parsing these AI responses and trying to extract the essential information. Not everything needs to be a five paragraph dossier in PhD voice.
I found old Claude readable and understandable but annoying to read. Not sure if that has changed. GPT-6 Luna writes in such a difficult way to understand.
The OpenAI models are, I think, by far the worst in this respect now of the major players. I really think they are far behind Anthropic and Google in qualitative use aspects at this point because they have been focusing too much on benchmarks and whatever frail impression of "engineering discipline" they are trying to teach it that causes it to try to put arbitrary limits on everything.
I haven't tried GPT-6.2 yet because GPT-6.1 was so bad I cancelled, but the thing that I think makes the GPT language so difficult to parse is that it coins phrases for things constantly. Oh oh, right, the "bounded glipglop service queue," how could I have forgotten about that...
Yes they make my eyes go squiffy, Once I understand what it means it it does what I want it to quite well and been impressed with the what it can do for the price (been the best value).
Claude will just use the same formulaic speech and it gets annoying but I agree actually easier to parse even if it can be verbose.
On an aside I still don't think we are actually where these AI companies are claiming we are writing good software without developers, it feels like these things need a lot of babysitting. Everyone I have seen who is doing the agent swarms is either doing tests or researching vulns (kind of like a very good but expensive fuzzer really) or they seem to be entering some kind of AI psychosis where they have not actually built anything useful but are burning tokens doing nothing and thinking they are lord of the machines, while spitting out garbage.
When AI does that, I tell it to explain things more simply. Or I guide it in other ways to reformulate what it's saying in a way that is easier for me to understand. It still tends to lean on the side of being very information-dense in its words, even after that. But I can usually get it to change its explaining approach to something that I can understand.
Not to mention the total loss of the human aspect that comes from managing people. Humans evolved to be inherently social, and replacing your team of humans with a team of robots makes the entire thing feel empty and meaningless.
I know that managing humans can suck a lot and not everyone likes working with people, so this is of course a generalization. But I think there's something fundamental and important we're losing by replacing our human teammates with machines.
Am I the only one who finds robot devs much easier to manager than human ones? I felt I was always fighting my way through layers of poorly understood social convention just to get anything done. Now I find it so much less stressful.
I agree that working with humans is stressful (and it depends immensely on the specific people), but I think that friction is part of the point, and is important.
Yes I was thinking about this the other day. We're a small dev team and could probably be half the size and maintain output but we'd also be halving the diversity of thought and experience and I think that would tell. So I agree, friction can be a positive.
But sometimes it can also just be friction, as anyone who accomplished more in a small team than a large team could ever achieve knows.
The only reason I can imagine wanting that for myself is because it runs on Apple's hardware. If Linux worked well on the newest Mac hardware, I can't see any reason I would use macOS. Pretty much the only reason I use Apple's constantly-deteriorating software is because no other company seems to be able to compete with them competently on hardware.
I have the same problem and am regularly `cargo clean`ing hundreds of gigabytes of build artifacts. It is a real problem. I feel like I need minimum 4TB of SSD space just to comfortably work at the scale I'm working now in Rust. That's just for the working space of the target folders across worktrees.
I just think agents benefit a lot from having unavoidable feedback in the dev loop, and Rust affords that through its strictness. It's easier for agents to fall into the pit of success with Rust. I do think it's somewhat lacking in compile-time features, though.
I agree. Regardless of one's beliefs, which must be essentially a form of religion, on whether AI systems possess "nous" (or the "spark of consciousness"), cruelty to AI is a form of Wrong Intention the same as smashing bugs outdoors for no reason.
Indeed, at this point it's one of the most devalued terms in software. Every week I'm reading about some product calling itself "the Operating System for XYZ." It seems like it's what you do when "platform" just feels too modest. To me, if it's not bootable, calling your product an OS just reeks of marketing sleight of hand.
Clicked through to the custom language it's implemented in ("Freedomlang") and was met with a bunch of really confusing AI-authored stuff.
> macOS emits x86-64 AT&T assembly
Seems like an obvious issue given that Apple makes no x86 machines, hasn't for three years, and plans to sunset Rosetta 2 in one year. The whole conceit of this "Freelang" project is that it has no "magic", and then incredibly just a bit further down the README states it has a stop-the-world mark/sweep garbage collector. That is quite magical, no? After reading the GitHub I confess I don't even understand what "magic" the authors are even complaining about. Honestly it seems like it's basically the same concept as Go, vibe-coded, with more pretense, worse syntax, and without the benefit of Google engineering.
You could implement the same functionality in Rust, using a custom target JSON without any libstd/libc. I've done so. It just requires that you accept some limitations and build your own abstractions around unsafe syscalls.
It's a blocking collection but not 'stop the world' (no world, all separate processes). The pause scales about linearly with heap size, as a full mark-and-sweep should:
┌──────────────────┬─────────────┐
│ heap │ worst pause │
├──────────────────┼─────────────┤
│ 2MB │ 0.10 ms │
├──────────────────┼─────────────┤
│ 8MB (production) │ 0.66 ms │
├──────────────────┼─────────────┤
│ 32MB │ 2.47 ms │
└──────────────────┴─────────────┘
It could also be argued that putting a specific executor model into the standard library will make the problem worse because it will give library crates license to use it without considering alternatives because it is standard. At least today taking a dependency on a specific runtime is a well-known boondoggle .
Not only that, but there kind of is a defacto standard (tokio), which is pretty much the default if you aren't in a specific, resource constrained use case.
I'm not saying this is a good idea, just that it seems like Rust does maybe accommodate what you're talking about already.
reply