17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions
Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.
And embersofvictory.com
Retro turn-based strategy game.
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
The Go community freely acknowledges that generics are a nice feature, and that lacking them is a pain point of Go sometimes. Although many Go developers will tell you that sometimes turns out to be not that often in reality, which has also been my experience.
Rob Pike has outlined the tradeoffs inherent with generics here: http://research.swtch.com/2009/12/generic-dilemma.html
The bottom line is it's not a feature that comes for free, and if most of the time you don't really need it, maybe the costs aren't worth it. That's a bold statement for a programming language these days, since generics is a central feature of every popular, modern, statically typed language. Whether they are right or wrong I won't attempt to say. The language may well get generics one day, but it's early days still and the team is rightly focusing on more important features for the moment.
comment 12y ago · link · parent
I would say for most uses, that's true. For high performance code, it's not. You have to be aware of your allocations on the fast path whether you are using malloc, GC, or something else. Schemes used in C++ to reduce allocations with malloc (which is slow as dirt) also work in Go.
Let's get real here for a second. A maximum pause of 10ms is one-third of your frame budget at 33fps. If you reduce the garbage you're generating it won't even be that much. I don't see how that makes it a show stopper for games.
At the same time, I don't see how it's a great language for games either. Go is slow at calling into C, like 2000 cycles slow. And to do any kind of work with with the cpu vector units, you need to call into C. That seems to be a bigger issue than the GC in my opinion. Rust seems much better suited for games, and I would expect to see some triple A titles using the language once it's more mature.
comment 12y ago · link · parent
Furthermore with games you can do tricks like allocating out of an arena with bump pointers and then resetting the pointer at the end of the frame.
Lots of games are developed with JVM, .NET, or Lua. GC doesn't seem to be a show stopper for them, you just have to be smart about allocations.
comment 12y ago · link · parent
Go is better suited than Java for those kinds of applications, because it's easier to avoid allocations (Java doesn't have stack allocations, but Go does.) Also hard upper limits on GC time are very helpful for those cases where allocations can't be reduced any further. The standard library additionally has a Pool type that allows for reducing pressure on the GC through object reuse.
comment 12y ago · link · parent
I saw an interesting interview once with an ARM exec who leveled and said they don't really have a big power advantage over Intel, despite what people commonly think. I didn't manage to find the article with Google though.
comment 12y ago · link · parent
The science of consciousness suggests, with the caveat that it's very early days, that we don't actually have free will, and are we really just the sum of our past environments and genetics interacting with our current environment. Your genetics and past are immutable, but your current environment can be changed, and that's likely the best chance you have of putting the future "you" on a good course. So watch what kind of inputs you feed into your brain computer, because those will determine the outputs.
(I don't like to dwell on the no free will part, I find it useful to pretend I have an "I" and a free will, even if it may not be true.)
comment 12y ago · link · parent
Anecdote, I go swimming in a river known to have Caiman (small alligators) downstream and everyone thinks I'm a huge risk taker. Nobody comments on the 3 hour drive to get there and back in heavy rain and high speeds. It's obvious, mathematically speaking, which is the riskier activity.
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
EDIT: GitHub has more information. It's a scalable ordered key-value store (think a distributed version of Berkeley db.) Storage is based on RocksDB (a variant of LevelDB) and consensus is achieved using Raft. The database is written in Go. It's meant to "tolerate disk, machine, rack, and even datacenter failures with minimal latency disruption and no manual intervention."
What's not clear at all is where it sits CAP wise. It says it's available and strongly consistent. Which would be CA, which is not an option (especially for something claiming to be failure tolerant.) It must either sacrifice write availability or consistency in the event of a partition. No idea which way it leans.
5331.
Networks All The Way Down(fgiesen.wordpress.com ↗)
2 points · by eloff · 12y ago · 1 comment
comment 12y ago · link · parent
The article is wild speculation, but so is everything regarding aliens. Even educated guesses are really just wild speculation because there are too many unknowns. We don't even know how many worlds can support life, how many forms life can take, how often life might evolve intelligence, etc.
I wonder sometimes if maybe there's a easter egg hidden in physics. If there were an easy way to convert matter to energy that we have yet to discover, we will likely destroy ourselves once we discover it. All it would take is one psycho with the right resources to unleash a kind of devastation that would make nuclear weapons look like fireworks. There might be no intelligent life out there because discovering the kind of energy resource that allows for easy interstellar travel might also make it too easy to kill ourselves.
Another possibility is the end game of intelligent life is not travelling around 21st century style, but digitizing our consciousness and living in a virtual world. Why travel to the stars when it makes more sense to turtle up in a giant computer and enjoy life? Something like a Dyson sphere.
Another possibility is the aliens are out there, they've just perfected the invisibility cloaks we're currently working on. Star Trek style, they're monitoring us unseen so as not to interfere with our civilization.
It's fun to think about, but it's all wild speculation at this point.
comment 12y ago · link · parent
comment 12y ago · link · parent
At any rate that was advice given to me by my father, who worked in the IT department of a large oil company, had a long line of pointy haired bosses who took the credit for anything that went well, which was eventually gutted and outsourced leaving just him and a couple others as insurance. I've regretted it when I did not heed that advice.
comment 12y ago · link · parent
Clearly without demand (consumers with money) you can't create jobs in the economy. Just as clearly, without entrepreneurs willing to take the risk and put in the effort, and the investors who fund them, you can't create those jobs either. So the truth of the matter is that economics is complex, and you need plucky entrepreneurs, wealthy investors, and consumers with lots of disposable income to create jobs, among a whole host of motivations, cultural and societal influences, international trade and agreements, infrastructure, even healthcare, and other human factors.