Better HN
topnewbestaskshowjobs
Log inSign up

creata

2,965 karma · joined Sep 19, 2020 (6y ago) · 1,349 submissions

only a fool would take anything posted here as fact
Submissions

comment 2mo ago · link · parent

Serious question from a consumer of software: if software can be improved so effortlessly now, why isn't it getting better?

Like, why is it all still so buggy? Why does no website seem to consider 96 PPI displays in its design? Why don't we have ostensibly useful features like undo trees everywhere? Why is everything still a RAM hog? Why does the proportion of websites that pay no heed to accessibility seem to be going up rather than down?

I'm told we're living in the future, but it sure doesn't feel like it.

comment 2mo ago · link · parent

Thanks. (More detail: Git added signed commits in Git 1.7.9, which was released in 2012.)

comment 2mo ago · link · parent

> It's purely a consistency check. The security parts are elsewhere

Sorry if the video answers this, but how does commit signing work if it doesn't rely on the hash algorithm being resistant to at least second-preimage attacks?

comment 2mo ago · link · parent

I've seen ordinary people forget things they've done every day for years. It's not something that never happens.

comment 2mo ago · link · parent

What uncomfortable truths?

comment 2mo ago · link · parent

I'm probably being naive here, but with theorem proving, if you have a problem then you can check whether a given solution is correct, letting people make things like AlphaProof, no? I would think that the open-endedness of software development in general would complicate that.

comment 2mo ago · link · parent

If you take the linked benchmark and use the latest compiler version, the std::variant version is faster. The annoying thing about std::variant (and with some other features of modern C++) is that it generates a bunch of code that the compiler has to optimize away.

comment 2mo ago · link · parent

And the code might be faster, too, like in that 2005 series of articles by Raymond Chen and Rico Mariani (in which one of them wrote a program in C++ and the other wrote the same program in C#).

https://devblogs.microsoft.com/oldnewthing/20060731-15/?p=30...

https://learn.microsoft.com/en-us/archive/blogs/ricom/perfor...

comment 2mo ago · link · parent

They're a bit old and missing some details, but I like Agner Fog's manuals.

https://www.agner.org/optimize/

comment 2mo ago · link · parent

Most applications (including most applications that care about numerical performance) should not use -ffast-math.

comment 2mo ago · link · parent

> If AI becomes at least an order of magnitude more capable than humans at software development

Doesn't it only need to become an order of magnitude more capable than humans at theorem proving, not general software development?

comment 2mo ago · link · parent

> This is not true. It has been done. I’ve seen it done for an entire OS too

That might be what pron's talking about. seL4 is only 10-20K lines of code as far as I remember. Maybe you have another OS in mind, though.

comment 2mo ago · link · parent

> C++23 Rust-like move semantics can be used

What C++23 feature allows that?

comment 2mo ago · link · parent

It's in the first link in the post.

comment 2mo ago · link · parent

> but even the way we talk about technology today. You need to use X, do Y or you're "not going to make it" / "escape the permanent underclass". It's bleak.

That's just how people market things these days, preying on desperation and fear of missing out. It's not how normal humans talk, I hope.

comment 2mo ago · link · parent

Rust has its downsides, too.

The big one for me is that Rust packages tend to pull in dozens or hundreds of transitive dependencies - C/C++ code tends to be monolithic, so it has fewer maintainers who could become compromised.

comment 2mo ago · link · parent

> Zig is the first language that makes arenas almost user-friendly and hopefully sufficiently composable to withstand programming evolution

Are you referring to that every function that allocates explicitly requests an allocator by convention, or to something else?

comment 8mo ago · link · parent

I have been watching people write UI frameworks in Rust for over a decade, you meanie.

The results tend to involve more dynamic allocation than you'd see in a garbage-collected language, or tons of reference counting (e.g., in Leptos) that acts as a less efficient GC. I've read many of raphlinus's posts, and while they're always interesting, the total experience in the Xilem examples just seems like much more effort than using FFI (even C FFI) to glue to something more workable.

Your comparison to assembly is very bizarre - languages of the sort I mentioned are usually at least as safe as Rust, and the "scripting language for top-level logic + compiled language for the bits that need to be fast" combination is ancient. In fact, your vague allusions to "a stable base, without infinite danger everywhere" shows much less understanding of what's at stake, in my view.

I'm sorry my question wasn't enlightened enough for you.

And this is a news aggregator. Not the official discussion forums or anything. People can ask small insignificant questions here, or so I thought.

I'm so tired. You write one measly paragraph that could simply be ignored and someone calls you a "perpetuate drain". Even the chatbots have more humanity than you've got.

comment 8mo ago · link · parent

What's the rationale for using Rust to write a UI? Using a scripting language (or at least a garbage-collected language) is much less restrictive, and it's not like the "what goes where" UI code is especially performance-sensitive.

comment 8mo ago · link · parent

That's... uh, an interesting approach to security.

comment 8mo ago · link · parent

If it runs inside the sandbox and the guest is compromised, can't the guest just lie?

comment 8mo ago · link · parent

The part that worries me here is the diff. Does it happen in the host or in the guest? What code gets run when you run `yoloai diff`?

comment 8mo ago · link · parent

> The only practical defense is for these frontier models

Another practical defence for many of these devices would be to just disconnect them... I feel like an old man yelling at a cloud, but too much is connected to the Internet these days.

1
567
45