3 ms·
Some open source things I've written in Go: - A port from C of a fast prime number generator: https://github.com/jbarham/primegen.go https://github.com/jbarham
by jbarham 16y ago
Some open source things I've written in Go:
- A port from C of a fast prime number generator: https://github.com/jbarham/primegen.go https://github.com/jbarham/primegen.go
- A Cdb ("constant database") implementation: https://github.com/jbarham/cdb.go https://github.com/jbarham/cdb.go
- A Cgo PostgreSQL wrapper: https://github.com/jbarham/pgsql.go https://github.com/jbarham/pgsql.go
- The beginnings of an AWS library: http://code.google.com/p/goaws/ http://code.google.com/p/goaws/
Regarding the OP, Cgo is like magic since e.g. my PostgreSQL libpq wrapper provides a pretty rich PostgreSQL driver for Go in well under 400 LOC. Best of all, I can write most of it in pure Go itself! The grungy low-level C interface code is mostly auto-generated.
http://news.ycombinator.com/item?id=2335228 http://news.ycombinator.com/item?id=2335228 is another comment I made about programming in Go.