News for hackers. Stuff that matters.
Re:Binary in JavaScript by fenomas on Wednesday July 29, 2015 @06:02AM (#9967505)
If there's one thing I've learned in a half year of JS game development, it's that there are usually good libraries to solve most low-level problems. Compactly storing a 512x512 array of binary values can be as simple as:

    var vegetation = require('ndarray-bit')([512, 512])
    vegetation.set(23, 42, true)
    vegetation.get(23, 42) // true
Re:Binary in JavaScript by yoklov on Wednesday July 29, 2015 @09:48AM (#9968573)
If there's one thing i've learned in ~5 years of game development (and ~1 of JS game development), it's that generic libraries are almost always inferior to a custom solution when you're performance tuning.