Remix.run Logo
▲ johnwheeler 2 hours ago

[flagged]

▲Haven880 2 hours ago | parent | next [-]

AI wrote significantly better. But not so if it is system architecture type of multi component software. But if the setup is in a continous loop, then it blows thru what human can do in that amount of time. This is already well known in senior engineers circle in big tech. You can just look at vectorcraft. Hard to find anyone with 20 years experience to manually code that out even if given them 5 years to do so.

▲gobdovan 2 hours ago | parent | prev [-]

Could you show some AI code that you consider better than human code + in which way is it better?

▲Haven880 2 hours ago | parent | next [-]

Vectorcraft? You have to factor in time contraint. If you use an enginer working on the software for 20 years and vs a 1mth old software AI generated, it isnt a fair comparison. Or if one work in cybersec doing software analysis, no humans able to code better than AI when it comes to exploit+loop.

▲gobdovan an hour ago | parent | next [-]

Is Vectorcraft considered better than Illustrator? I like the cybersec one, because if AI finds same vuln as human, if AI found it faster AI is just better. There's not much difference in how the exploit code looks like or how performant it is. Probably why AI seems so nice for math proofs as well.

▲cwillu an hour ago | parent | prev [-]

> You have to factor in time contraint.

You really don't.

▲rurban 2 hours ago | parent | prev | next [-]

rurban/rcc is definitely better in the target features, than similar human code. The goal was to be faster in compilation, and having less bugs than gcc and clang

▲gobdovan an hour ago | parent [-]

But aren't you responsible for the target features? Is there a particular piece of code or algorithm the AI came up with that you consider better than what you or another competent programmer would have written?

▲rurban an hour ago | parent [-]

Yes, I favored correctness over execution speed.

I also favored compile-time speed, because I couldn't compile my own huge library anymore on a 32MB laptop with gcc or clang, only with tcc, which has huge holes still.

Special pieces:

builtin preprocessor tokenizes only once, and interns all the identifiers. So not much strcmp needed later. And -E synthesizes the code from the tokens.

Much simplier and faster codegen without the optimizer. Heuristic optimizer, compared to the exact cost-based optimizer in the huge compilers. Like, much easier inliner. No auto-vectorizer, the user can vector his code very easily by himself. No silent dead-code removal, which is safety critical.

Compile-time conversion of large sparse switch cases to perfect hashes is unique. The AI wouldn't have come to it by itself, it needed to be guided.

The test runner is much better and much faster than anything else. I hate waiting for regression test results. Gcc is perf horror, clang way overarchitectured.

Simple -g avoids libdwarf overhead.

▲gobdovan 14 minutes ago | parent | next [-]

Thanks for the elaborate response. It seems AI is better at building software for small user base. Clang may be better for general usecases, but AI made it possible to build software around your specific preferences without spending years developing it.

▲ 18 minutes ago | parent | prev [-]
[deleted]
▲johnwheeler an hour ago | parent | prev [-]

[flagged]

▲tomhow an hour ago | parent | next [-]

Please stop with the sneering and swipes. HN is for curious conversation, not whatever this is. https://news.ycombinator.com/newsguidelines.html

▲johnwheeler 32 minutes ago | parent [-]

Sorry. Although I can argue that calling someone's hard work AI slop isn't cool either.

▲gobdovan an hour ago | parent | prev [-]

It was and still is a genuine question.