Better HN
topnewbestaskshowjobs
Log inSign up

simonask

2,536 karma · joined May 6, 2012 (14y ago) · 859 submissions

Submissions

comment 3w ago · link · parent

Isn't that exactly what they're saying?

Some people (not its creators) talk about Zig as if it's anywhere near production ready. It's fine to be excited about it (there's a lot to be excited about), but we gotta be realistic.

comment 3w ago · link · parent

You stumbled upon my pet peeve.

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

These numbers are totally insane. I've never seen a Rust project with a build cache this large.

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

Yeah. But also, let’s zoom out: giant unmaintainable insta-legacy abominations are well within the capacity of humans to create - just look at the past many decades of software in general.

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

> But people happily trust unknown packages in NPM.

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

Just as screwdrivers and hammers are indispensable tools for countless artists, so is programming and computer hardware equally indispensable.

Art tends to happen with whatever technology is available, whether it's sticks and mud or nanometer-scale transistors.

comment 3w ago · link · parent

I do know the broad strokes of how a Python interpreter works. I’ve written compilers and interpreters before.

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

Respectfully, no. Technology is for art, and art is a technology. There's no meaningful way to draw a hard distinction between the two. In Ancient Greek, τέχνη (techne) means "art" or "skill", and that's where we get the word.

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

For me, the dividing line is this question: Do you know what's going on?

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

I don't know man... Rails seems fairly unhinged to me as well, but it's been a few years since I touched it.

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

I write branchless SIMD code every day. The branch predictor is my friend, not my enemy.

comment 3w ago · link · parent

Going to r/csharp over on Reddit is such a weird experience coming from any other background, save perhaps Java. A lot of people just yolo'ing with MockFactoryAbstractFactoryFactory abominations and injecting dependencies into your dependencies so you can inject your dependencies.

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

Yes. I don’t think this person (presumed) knows what a branch predictor does.

comment 3w ago · link · parent

I mean, are we pretending that this is a surprise?

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

Oh, C++.

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

GPU-allocated memory isn't always kept resident. Depending on the compositor, window surfaces get swapped to main memory when VRAM pressure is high. This obviously slows things down, but at the end of the day, the window contents need to exist somewhere, and the monitor is attached to the GPU, so it needs to at the very least pass through VRAM at one point or another.

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

This made sense before mass-extraction of value from open source was possible. The game has changed in a very significant way.

It's one thing to pick a few berries in the commons, even to make jam and sell it from your stall. AI companies are setting up jam factories.

comment 3w ago · link · parent

I will say this: Corporations don't need your charity.

This lack of class-consciousness is the reason the OP used the c-word.

comment 3w ago · link · parent

With big technological shifts like this, it's important to keep in mind that the ability to do more with less resources can pan out in two different ways: (1) Keep doing what you're already doing, and lay off the people you no longer need, or (2) Do more than you did with the same amount of resources.

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

> Hard to fathom that the people with all the money and power could get into trouble over a licensing dispute.

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

To the people downvoting this comment: I get it, it's a vulgar choice of words. But the fact of the matter is, if somebody else is getting paid based on your work, and you aren't being compensated your fair share, that's extractive and abusive.

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

Who, exactly?

Every time Rust is mentioned, these mythical zealots are mentioned. Yet somehow they never seem to actually show up. Most elusive!

Are they with us in this room right now?

comment 4w ago · link · parent

You could already do all of that. Like, none of that is infeasible to achieve on a scale of weeks in most cases.

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

> perhaps limited experience

New rule: Programmers with limited UI experience (that includes myself) should abstain from weighing in on what UI designers and programmers need.

comment 1mo ago · link · parent

The answer is that it doesn't make any financial sense for a hardware company in the business of selling new hardware to spend any software development resources at all on products that are 12 years old. There's a very clear conflict of interest.

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

The Maxwell architecture is 12 years old. Like, I'm not out here defending NVIDIA's Linux drivers, but I also think it's unreasonable to expect great support for extremely complicated hardware that's over a decade old.

I've personally had zero issues with NVIDIA on Linux on both Turing (20xx) and Blackwell (50xx).

comment 1mo ago · link · parent

The usual argument is that it is a distraction when you’re designing a language, and it leads to programming languages that are all excellent for writing compilers and parsers, but not particularly good for other things.

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

As far as I understand it, the idea is that the IO interface is "magic" in the sense that it affects which version of a function gets called: either the synchronous, linear version, or the asynchronous, stackless, suspensible state machine version.

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

Just to let you know, `std::process::exit(...)` in Rust does not call any destructors. C++ also has `std::quick_exit(...)`. Applications exiting slowly is a problem caused by app developers.

(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

It's also built for people who need a reasonable desktop computer but don't want their living room to look like a 14 year old's bedroom, or a corporate office space.

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...

12345
29