Marmot, an Alternative Go Compiler (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
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 (3)
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 (3)
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 (2)
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.
Except that it does not generate identical output by design, because it claims to make faster/smaller binaries.
I mean, the whole point of this project is to produce smaller, faster binaries.
I guess we could fuzz-test the resulting binaries from each compiler. But that will just prove that we haven't found a problem, not that a problem doesn't exist.
I don't really see how the compiler being AI-written is changing anything here?
Replies (1)
For the other claims I'm not even certain if they aren't mutually exclusive. You can be small, fast, or a mix of the two. Being both smaller and faster is something I'd consider to be possible only in certain situations.
The Go (gc) compiler is deterministic with itself as an explicit design criteria, but that isn't generally true. Most compilers (at least beyond toy compilers) are non-deterministic by default. There are a number of advantages to forgoing determinism in compilers.
Just a general thing for me