Dmitry Vyukov
unread,May 27, 2014, 5:44:47 PM5/27/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-dev, Peter Collingbourne, Andrew Wilkins, Kostya Serebryany, Ian Taylor
Hi,
In case you were not following
https://code.google.com/p/go/issues/detail?id=7985.
I've wrote a generator of random, but correct, Go programs and tested
various Go compilers on them.
In 10 days it has found 50+ bugs in all of
6g/8g/5g/race/gofmt/gccgo/llgo/runtime/spec:
http://gosmith.googlecode.com
I am wrapping up my work on it for now. Mostly because there are too
many known unfixed bugs, and significant portion of runs fail on known
bugs.
As far as I understand, the bugs won't be "invalidated" by Go 1.4
compiler overhaul, as it won't be a rewrite from scratch. On the
contrary, the ability to generate millions of test cases will be
especially important in front of significant compiler changes.
The tool still does not cover some significant parts of the language:
- interfaces, types satisfying interfaces and type assertions
- methods
- constants
and lots of minors things here and there.
The code will need some significant refactoring if/when the work is
resumed (I was figuring out how it must look like along the way).
If anybody wants to have some fun, hunt bugs and learn the spec along
the way, contributions are welcome!