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
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.
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.
Uhhh, it might be a good runtime, but most sophisticated? Seemingly the guiding principle for much Go development was to be a simple implementation for the designers.
One of the deliberate trade-offs made is to compile fast, rather than do more sophisticated analyses that might eek out incrementally better machine code.
Ok, the issue with alternative compiler isn't that individual features fail but when multiple features interact with each other in combination and fail or randomly gets really slow, and this only has fairly trivial benchmarks currently.
The bigger issue is that Marmot implements it's own Go runtime as well, including GC, channels, and goroutine scheduler, and you can immediately see from their own benchmark that Marmot's performance falling off a cliff whenever there is allocation pressure. And an alternative Go with a bad GC and concurrency primitive isn't really worth using since that's Go's main value proposition, no matter how fast you can vectorize the loops.
Seems like that depends on the program. For a program that doesn't lean on GC or concurrency all that much, smaller, faster binaries might be worth it?
The main problem with that is that TinyGo already exists and compiles to embedded systems with LLVM, and smaller binary came with the territory, so there really isn't a niche left for Marmot imo.
Go could really use better vectorization for hot loop performance though.
Love the idea but it looks like pure claude output. Not sure I want to trust that tbh
I don't particularly mind that, but a brand-new project does need to do something to establish trust.
The development speed suggests it is. 3 weeks ago nothing, then 1029 commits the week after. Zero issues.
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
The clankers have become darn good at writing code. And the product is a compiler, so its output is deterministic and testable.
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.
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.
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.
> erm Clause, invent me a spec for the Go language, no human input plz
Santa's giving you a Go spec for Christmas.
> Go, lowered to machine code
Doesn't the go compiler produce machine code?
Further, the primary reason to use Go is to get the most sophisticated runtime known to man...
If you want to skirt that, Go is not a particularly great language.
And if you're skirting it, you are almost certainly getting something worse in the process.
If it could be done better, Go would do it better. It's not built by morons.
Uhhh, it might be a good runtime, but most sophisticated? Seemingly the guiding principle for much Go development was to be a simple implementation for the designers.
One of the deliberate trade-offs made is to compile fast, rather than do more sophisticated analyses that might eek out incrementally better machine code.
Slop phrasing
Slop, disguised in sloppy excitement
For a moment I thought the produer of my rainjacket ventured into software... even the logo looks kind of similar.
How does it compare to tinygo or llgo? Both of which also use LLVM,
I'd also be quite interested in comparison to tinygo
Ok, the issue with alternative compiler isn't that individual features fail but when multiple features interact with each other in combination and fail or randomly gets really slow, and this only has fairly trivial benchmarks currently.
The bigger issue is that Marmot implements it's own Go runtime as well, including GC, channels, and goroutine scheduler, and you can immediately see from their own benchmark that Marmot's performance falling off a cliff whenever there is allocation pressure. And an alternative Go with a bad GC and concurrency primitive isn't really worth using since that's Go's main value proposition, no matter how fast you can vectorize the loops.
Seems like that depends on the program. For a program that doesn't lean on GC or concurrency all that much, smaller, faster binaries might be worth it?
(Not that I'll be using this right away.)
The main problem with that is that TinyGo already exists and compiles to embedded systems with LLVM, and smaller binary came with the territory, so there really isn't a niche left for Marmot imo.
Go could really use better vectorization for hot loop performance though.
There is no reason why you can't mix and match good approaches yourself with AI
on the opposite spectrum, gno is a go interpreter
i give it a go