2,536 karma · joined May 6, 2012 (14y ago) · 859 submissions
comment 3w ago · link · parent
Both C and C++ have a much steeper learning curve than many realize, just because the compilers let you get away with doing things that are fundamentally invalid (Undefined Behavior). Rust isn't actually much stricter, it just catches these problems at compile time.
Anyone capable of writing actually correct, standard-conforming C and C++ is mostly able to first-try the equivalent Rust code in almost all cases, because they are already thinking the same way that Rust requires you to think.
However, a significant portion of people who write both C and C++ don't realize that their code is full of UB - or worse, they don't care.
From a language perspective, the only new restriction in Rust compared to C++ is that mutable borrows (references) cannot overlap. Good C++ programmers are already avoiding this at all cost, because it's a mess to keep track of. When you actually do need it, Rust gives you the tools to build a safe abstraction.
EDIT: And to add, Rust is actually less restrictive in a few areas compared to C++. For example, Rust allows bitcasting between unrelated but compatible types (without going through char pointers).
comment 3w ago · link · parent
Do you have 10 different versions of Tokio included in your project or something?
The project I'm currently working on is quite large, and it's locally cross-compiled to 5 different arch/OS combinations, plus a debug build for the local machine. The build dir is 9.1 GB. I've seen it grow to somewhere around 20 GB, but only after a significant number of dependencies were updated, or the compiler version changed.
A clean debug build of Bevy (a game engine, one of the largest Rust projects around) produces a target dir of around 13 GB. By the way, rebuilding Bevy on my machine takes about 1 minute.
Now, these numbers are still much bigger than I would have preferred, but 329 GB? Get out of here.
comment 3w ago · link · parent
The hard part never was writing the code.
The hard part was always to manage complexity in a changing environment.
comment 3w ago · link · parent
I mean... I don't, and I don't think anybody should.
> It's a matter of culture and consensus.
Yeah, but I do think trust, confidence, personal reliability are key factors here. Slop wasn't invented by AIs. We used to call them "script kiddies" - people who only knew how to copy and paste.
> but you can feel when there's care in a project.
I couldn't agree more! This is such an important point.
comment 3w ago · link · parent
But that’s not the important part: I can trust that the people who wrote the Python interpreter understand it, and I have reasonable confidence in their ability to make good judgments within the scope of what it does.
In short, they’re experts. They’ve earned a high degree of trust. I would not worry at all about their use of AI to develop Python, if that’s what they’re doing.
But someone who doesn’t understand how a Python interpreter works cannot meaningfully expect me to trust their vibecoded weekend project that reimplements Python.
comment 3w ago · link · parent
I assume you might associate technology with a more utilitarian perspective, but that's just not descriptive of what humans actually do.
Whatever technology becomes the next revolution (hoping it's not sticks and stones) will be used by humans (hoping they exist) to make art as well.
comment 3w ago · link · parent
You see people brag about how "they" "made" something, with neither the qualifications nor the vision to motivate me to care. If I wanted vibecoded slop, I could just cut out the middle man, like everybody else with a Claude subscription.
But this stuff really does shine when competent people such as myself - an expert, gentleman, scholar, etc. - use it for things like exploring a new topic, rubberducking design ideas, diagnosing problems, and sometimes go the extra mile.
Software projects are full of incidental, boring stuff, and it makes a meaningful difference to be able to say to Claude things like "please compare the performance of these 5 different approaches, and show me your notes". But just like a colleague, it has no clue what your actual intentions are unless you tell it, and you can't communicate those intentions if you don't know them yourself - and crucially, you can't know them if you don't have the expertise to know what you actually want.
This doesn't feel like cheating at all, and I don't relate to the choir of disillusioned programmers who feel demotivated by the introduction of LLMs in their workflow. I mean, maybe their work wasn't all that interesting to begin with? I don't know. I get that it sucks to feel replaceable.
comment 3w ago · link · parent
My recommendation is always to understand the technology in depth, then make decisions based on what makes engineering sense. Understand the tools first. For me, that's a hands-on process, but others learn better from books. A lot of programming books seem a bit ideological from a methodological point of view, often written by people who thought they found the magic bullet (see the "Clean Code" fiasco) with perhaps limited time in the trenches.
comment 3w ago · link · parent
A lot of people also seem to have bought into the "Clean Code" dogma popular in the 00s, completely still living in a world where RAM is cheap and JITs are magical.
Add to this the absolutely miserable state of Microsoft's official .NET documentation, and it's a bizarre experience. Everything is "documented" - with things like "Foo(): Constructs a new instance of the Foo class", in case you were wondering what a constructor is...
Context: I'm coming from a background of C++ and Rust. Especially the latter leaves .NET's documentation in the dust, but that doesn't mean the CLR isn't a piece of extremely solid engineering. I'm continually impressed by the .NET JIT and GC, for example, and when you dive into the poorly documented details of the standard library (it's open source these days), you'll see that the quality is very high almost every time.
So yeah, I agree that .NET and C# has everything it needs to be really great in the right hands, but many hands aren't super right.
comment 3w ago · link · parent
I know we've spent the better part of the last century debating what "art" is, but I think we have fairly conclusive evidence that it isn't this.
No intention behind it, no human connection, none of the things we seek to find in art (including video games).
Everyone needs to read the famous essay 'The Work of Art in the Age of Mechanical Reproduction' by Walter Benjamin (1892-1940). He wrote about the Industrial Revolution, but his points become ever more salient in the age of AI.
His central thesis is the concept of "aura": the difference between a carefully crafted work of art and a mechanically mass-produced, but otherwise identical, object. When you describe something as "hollow", that's what's missing.
comment 3w ago · link · parent
C++ feels like an old lover who I think fondly of. We were together many years, until about C++20, through thick and thin. It was exhilarating - blazingly fast, perhaps irresponsibly so, but heck, the ride was wild. It taught me so many things, and shaped me into the programmer I am today. But we went our separate ways when its shortcomings became too large to bear, and its behavior - too often undefined - no longer excusable.
I keep up with it because I still have love for it, but I have to admit I am deeply concerned about many of the life choices it is making. I should have seen how problematic it was, because I knew its history, but I had hope that it could change, and it just looks like it never will.
I'm still rooting for C++, even though I am very happy with my new primary language, Rust. I hope it changes to the better, because I really want the best for it, but right now I'm just not seeing it. It keeps repeating old mistakes (e.g., more UB footguns with every new feature), without addressing any of the big flaws (insufficient tools for building robust software).
I sometimes still write C++, but I'm not excited about it the way I used to be. When I do write C++, it's because I have to. When given the choice, Rust is simply just a better choice for almost everything I do. Right now, I don't see a future for C++ and me.
comment 3w ago · link · parent
On a desktop system, a software renderer makes no material difference in total memory usage, because the contents need to go onto a compositor surface no matter what you do, and that is backed by memory somewhere.
We can debate whether every application needs triple-buffering of the window surface, but that's configurable.
comment 3w ago · link · parent
The answer depends on the company, but I think many companies are still figuring out whether and how they can exercise this new capacity. We don't know where it will land yet at a societal level. It's a parameter shift, and it will take some time. Pray that you live in a place with sensible labor laws and safety nets.
comment 4w ago · link · parent
It's because of something called "Rule of Law"... Most free societies in the world have it.
If you find it difficult to fathom that rule of law applies to corporations, maybe it's time to start practicing fathoming it, or they will have won before the fight even started.
comment 4w ago · link · parent
Choosing GPL and similar licenses is the only way you can publish open source software without running this risk. As professional programmers, we must insist that people either pay us for our work or act as a equal collaborators.
And yes, there's a reckoning coming for AI companies who trained their models on GPL software.
comment 4w ago · link · parent
It’ll still take weeks with AI in the picture, but for some reason management is more willing to plan it when they also have the additional token bills to pay.
comment 1mo ago · link · parent
Your problem is with capitalism, and I'm with you, but what you should be pushing for is legislation that forces companies to publish detailed specs for obsolete hardware so open source enthusiasts can do the work. Call it an extended "right to repair" or whatever.
In the meantime, have you tried the Nouveau driver for your setup?
comment 1mo ago · link · parent
I've personally had zero issues with NVIDIA on Linux on both Turing (20xx) and Blackwell (50xx).
comment 1mo ago · link · parent
Since the majority of programs are not compilers, it might make more sense to focus on interesting things that aren’t relevant to compilers.
Some ideas from the top of my head: async I/O, a great SIMD story, effect systems, robustness systems for long-running processes (I’m only aware of Erlang/Elixir), and many others.
Compilers do exercise some things, like error handling and memory management, but they’re not particularly difficult or interesting in general.
comment 1mo ago · link · parent
This has a lot of implications, especially for function pointers and other forms of dynamic dispatch.
My personal take is that async code is fundamentally different from sync code, because the weights of various tradeoffs change dramatically. In my view, "colorless" functions are not really a worthwhile goal in the first place. But I've been wrong before, so it may turn out to be great, we'll see.
comment 1mo ago · link · parent
(There are cases where it also takes time because the OS does have to flush all open files during process teardown, etc., but this shouldn't generally be user-visible.)
comment 1mo ago · link · parent
I'm not one of them, but I think many of us have had to convince partners that the big clunky monstrosity of a setup is actually cool...