Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
peterarmitage
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Generating random 2D graphs
(funcmain.com)
1 points
by
peterarmitage
11y ago
|
0 comments
2.
▲
by
peterarmitage
13y ago
I got such a good reception from my post yesterday [0] on Go's range clause that I thought I'd hurry up and publish this article today. This post is a lot more subjective - I personally think the algorithm is neat and elegant. If
3.
▲
A Lazy Sieve of Eratosthenes
(funcmain.com)
3 points
by
peterarmitage
13y ago
|
1 comments
4.
▲
by
peterarmitage
13y ago
Sorry, I misread your comment, this isn't relevant.
5.
▲
by
peterarmitage
13y ago
This catches people out, and is something that some people on the Go team have expressed regret over - unfortunately it is too late to change due to backwards compatibility promises. http://youtu.be/p9VUCp98ay4?t=22m18s ht
6.
▲
by
peterarmitage
13y ago
Thank you. "modify an object" means "change the number of elements", since you obviously want to be able to manipulate the individual elements of a container as you iterate over them. The object here is the container, no
7.
▲
by
peterarmitage
13y ago
I wrote this after finding a bug in some of my code. Basically, I was iterating over a slice of inputs, processing each one. On occasion this processing would reveal new inputs to test, so I appended them to the slice. for i := range
8.
▲
Go's range clause
(funcmain.com)
82 points
by
peterarmitage
13y ago
|
33 comments
9.
▲
Well behaved goroutines
(funcmain.com)
4 points
by
peterarmitage
13y ago
|
0 comments
10.
▲
by
peterarmitage
13y ago
Thanks. I'm not a physicist, I was merely drawing pretty pictures based on real physicists' work. The examples in the paper are all planar (and have zero angular momentum), but it would be easy to simulate arbitrary orbits if any are publis
11.
▲
by
peterarmitage
13y ago
A few weeks ago some new solutions to the three-body problem were discovered: https://news.ycombinator.com/item?id=5347412 I made some simulations of them using three.js: http://www.funcmain.com/three_body_problem Mine are pretty much t
12.
▲
Google Codejam 2013 Qualification Round Analysis
(code.google.com)
2 points
by
peterarmitage
13y ago
|
0 comments
13.
▲
Codejam 2013 Score Distributions
(funcmain.com)
1 points
by
peterarmitage
13y ago
|
0 comments
14.
▲
Simulations of the three-body problem
(funcmain.com)
2 points
by
peterarmitage
14y ago
|
0 comments