Live data from Hacker News

Ask HN: What projects are you currently working on?

news.ycombinator.com

1–10 of 93 posts

Re: Ask HN: What projects are you currently working on?

#2
I got curious about how CPU-intensive it would be to run a server for a game like agar.io or diep.io. In these games there are a lot of circles moving around on a 2D map, and you have to check collisions between them.

First was a naive Python version. Test every circle against every other circle for collision, O(N^2). This way I managed only 200 circles on my playing field. I wanted to see how much faster it would be rewritten in C. That got me to 1500 circles.

Now obviously the way I was checking for collisions is silly, some kind of subdivision of space is required to avoid having to check everything against everything. I split the playing field into a grid, and only test collisions between circles in nearby grid cells. That got me to 3000 circles running in Python.

Next I want to write that in C as well, to see how fast it would go.

Re: Ask HN: What projects are you currently working on?

#3
Java Task Parallel project: http://sourceforge.net/projects/tymeacse Android Task Parallel project: http://sourceforge.net/projects/tymeacand Java Data Parallel project: http://sourceforge.net/projects/tymeacdse Java Reactive Stream Builder project: https://sourceforge.net/projects/tymeacrse/

Re: Ask HN: What projects are you currently working on?

#5
post #2

I got curious about how CPU-intensive it would be to run a server for a game like agar.io or diep.io. In these games there are a lot of circles moving around on a 2D map, and you have to check collisions between them. First was a naive Python version. Test every circle against every other circle for collision, O(N^2). This way I managed only 200 circles on my playing field. I wanted to see how much faster it would be…

Look into Axis aligned Bounding Box Tree algorithms

Re: Ask HN: What projects are you currently working on?

#6
I've written an introductory book on Go http://github.com/thewhitetulip/web-dev-golang-anti-textbook, it taught hoe to write a webapp in Go without using a framework.

Earlier, it taught basic html, now I am rewriting the Tasks app, http://github.com/thewhitetulip/Tasks/, to use the front end framework http://vuejs.org, using the learning of my experiment, I'm putting together anther series of tutorials, http://github.com/thewhitetulip/intro-to-vuejs.

Thid is because I wanted an easy to understand tutorial which doesn't expect the user to have anything more than basic html/css/js knowledge.

edit: links

Post reply on HN