Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Feb 2011
Offline Last Active Yesterday, 02:16 PM

Posts I've Made

In Topic: Getting objects within a range (In order, fast)

12 May 2016 - 12:04 AM

What you want is called a range search, and there are efficient data structures for it. A good one is the kd-tree, which has an efficient range search algorithm associated with it, so take a look at that if you have the time.

In Topic: Time - the most important factor.

03 May 2016 - 01:53 PM

Take a look at your computer's mouse. It has a few base mechanics: you move the mouse and that moves the cursor on your screen, you can click, sometimes they have a scroll wheel, but overall seem to do pretty basic things. And they've been around for a while now. What could be simpler? What if I told you this simple-looking item actually took months of work to research, develop, prototype and manufacture, to design both the hardware inside it that you don't see, and also the external interface, for ergonomy and so on, as well as all the branding and marketing which allowed you actually find and buy it? It probably took years worth of man-hours to bring this simple little item to your desk.


What this analogy is meant to illustrate is that just because something is simple to use, doesn't mean it was simple to make.

In Topic: router programming

01 May 2016 - 01:35 PM

Another less intrusive option is to use the Linux TUN/TAP module to create a virtual ethernet network interface in which you receive raw ethernet packets and have to parse them, read their MAC addresses and route them, do ARP and all that. Then you just set up a bridge (or something) between your public-facing interface and that virtual interface and you can implement whatever logic you want. This is considerably harder than just making a virtual IP interface where you receive IP packets though.

In Topic: FizzBuzz: Enterprise Edition!

29 April 2016 - 05:59 PM

We're going to need some sort of persistence layer since the FIZZBUZZ protocol isn't truly stateless -- a user stating fizzbuzz might require a response of 16 or 31 (or an infinite number of other responses). We'd need to start tracking user sessions, which will have data protection issues so we'd need to get legal involved.

Is it worth getting a committee together to draft a replacement truly stateless protocol to FIZZBUZZ? I don't think it's been approved by ISO or any of the national standards bodies, nor is there an RFC. We'd have to get other stakeholders involved, of course.



Sounds about right...

In Topic: Detect if someone is live-streaming the game

28 April 2016 - 01:11 AM

If so then don't bother detecting it; just provide a known shortcut that live-streamers can toggle to enable livestream features. Less hassle, more predictable :)