Testable doesn’t equal tested. Is there a test suite publicly available that can prove 1) full spec compliance and 2) absence of compilation bugs at least across the three main target architectures (windows, darwin, linux)? I’m not sure who would trust the output otherwise, except for toy projects.
While valid, you might notice in that list of requirements, nowhere is a human actually required - the steps you're outlining are all highly mechanical.
The biggest problem with a project being rapidly Claude'd is it simply doesn't have the actual time needed for the design to settle and prove out, at this point.
a compiler is only deterministic with respect to itself. It should output identical binaries for identical input, but it's fully expected not to be the sme binary as another compiler. Testable... well Reflections on Trusting Trust and the underhanded c contest, trusting google not to write backdoors into your binary is a little different than trusting anyone with a claude subscription,
> A compiler is only deterministic with respect to itself.
You can compare how its output behaves compared to that of the ‘official’ compiler.
> It should output identical binaries for identical input
Not necessarily, and it’s surprisingly hard to make that happen in modern compilers. Outputs may contain timestamps, file paths, padding inside constant structs may be different, multi-threading in compiler or linker may reorder objects (https://en.wikipedia.org/wiki/Reproducible_builds).
> Reflections on Trusting Trust and the underhanded c contest, trusting google not to write backdoors into your binary is a little different than trusting anyone with a claude subscription
If you compile this compiler multiple times, sometimes with the ‘official’ go compiler, I don’t think that will be a problem. Having non-hidden back doors that are hard to find due to the size of the code, however, can be a problem.
>You can compare how its output behaves compared to that of the ‘official’ compiler.
Sure but that's a fairly hard problem. Even fairly straight forward things can have millions of combinations of inputs/state. It may be tractable to cover normal program behaviour but a compiler could do something screwy like use a syscall wrong such that it, say, deletes the wrong file with certain inputs.
This project helped unearth an actual bug in the Golang compiler: https://github.com/golang/go/issues/83209
Pretty damn good milestone for a side project / ai slop or not
Replies (3)
Edited to add: If you mean that the site and code look bot-written but you miss a disclosure that clarifies the bots' involvement, I tend to agree.
Replies (2)
Replies (1)
The biggest problem with a project being rapidly Claude'd is it simply doesn't have the actual time needed for the design to settle and prove out, at this point.
Replies (1)
Replies (1)
Replies (1)
You can compare how its output behaves compared to that of the ‘official’ compiler.
> It should output identical binaries for identical input
Not necessarily, and it’s surprisingly hard to make that happen in modern compilers. Outputs may contain timestamps, file paths, padding inside constant structs may be different, multi-threading in compiler or linker may reorder objects (https://en.wikipedia.org/wiki/Reproducible_builds).
> Reflections on Trusting Trust and the underhanded c contest, trusting google not to write backdoors into your binary is a little different than trusting anyone with a claude subscription
If you compile this compiler multiple times, sometimes with the ‘official’ go compiler, I don’t think that will be a problem. Having non-hidden back doors that are hard to find due to the size of the code, however, can be a problem.
Replies (1)
Sure but that's a fairly hard problem. Even fairly straight forward things can have millions of combinations of inputs/state. It may be tractable to cover normal program behaviour but a compiler could do something screwy like use a syscall wrong such that it, say, deletes the wrong file with certain inputs.
Replies (1)