Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
crawshaw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
361.
▲
by
crawshaw
14y ago
You can: func main() { x := 4 f := func() { fmt.Println(x) } ch := make(chan func(), 1) ch <- f f2 := <-ch f2() x = 5 f2() } http://play.golang.org/p/NK5YLVT4zB
362.
▲
by
crawshaw
14y ago
For those who didn't dive into the spec, the non-blocking recieve syntax has changed to use the select statement: func f(ch chan int) { select { case v := <-ch: fmt.Println("got", v) default: fmt.Println("did not bl
363.
▲
by
crawshaw
14y ago
For careful error handling, my favorite language is Go. It lacks exceptions, so you have to return errors as in C. But it has python-style tuple return, making it easy to return a value or an error from any function. The fact that errors ar
364.
▲
Sometimes great works fit on one page
(ncbi.nlm.nih.gov)
1 points
by
crawshaw
15y ago
|
0 comments
365.
▲
by
crawshaw
15y ago
Brilliant. Given the target audience, I think a more concise description language that pseudo natural language would work better. Regardless, such a service can bring basic alerting to the huge number of sites which currently have nothing.
366.
▲
by
crawshaw
15y ago
The http server in Go supports SPDY. http://golang.org/pkg/http/spdy/
367.
▲
Who ordered sequential consistency?
(bartoszmilewski.wordpress.com)
10 points
by
crawshaw
15y ago
|
0 comments
368.
▲
Ask HN: have you seen a spike in password resets since the PSN Hack?
5 points
by
crawshaw
16y ago
|
0 comments
369.
▲
by
crawshaw
16y ago
Java solved a number of problems, but introduced some of its own. The work I do in C++ I could do in Java, but the extra memory and compute overhead would cost us on the order of another engineer. Go interests me because it might let me esc
370.
▲
by
crawshaw
16y ago
Protocol Buffers ( http://code.google.com/p/protobuf/ ) Not what you would call cool technology, but definitely the best technology I have used this year. Protobufs get out of the way so you can get work done.
371.
▲
by
crawshaw
16y ago
The Forever War - Joe Haldeman Excellent science fiction.
372.
▲
by
crawshaw
16y ago
I have used SimpleDB and wrote some basic Scala bindings for it: http://github.com/crawshaw/saws No service outages yet, but response time rarely drops below 50ms (from an EC2 instance) and there is a serious long tail on queries. I have
373.
▲
by
crawshaw
16y ago
http://www.estful.com/ A site for recipes. No-one uses it, and I feel that it needs a lot more work.