1,816 karma · joined Jun 14, 2011 (15y ago) · 1,039 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Now if only we could do that in the modern day, with support from the IOC, and turn them into something positive. For example turn them into schools, homeless shelters, libraries, something along those lines.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
As an aside: As someone who has used LLVM to build a compiler, it doesn't quite work that way, yes rust has access to those gains, but it may not be able to effectively use them (due to differing assumptions and strategies).
comment 10y ago · link · parent
But as an engine programmer, I agree with the linked author. I'll take your points one at a time.
Most engines are multi-core, but we do different things on each core (and this is where Intel's hyper-threading, where portions are shared between the virtual cores, for cheaper than entire new cores, is a solid win). Typically a game will have at least a game logic thread (what you are used to programming on) and a "system" thread which is responsible for getting input out of the OS and pushing the rendering commands to the card along with some other things. Then we typically have a pool of threads (n - 1; n is the number logical core of the machine; -2 for the two main threads, +1 to saturate) which pull work off of an asynchronous task list: load files from disk, wait for servers to get back to us, render UI, path-finding, AI decisions, physics and rendering optimization/pre-processing, etc.
AAA game studios will use up to 4 core threads by carefully orchestrating data between physics, networking, game logic, systems, and rendering tasks (e.g. thread A may do some networking (33%), and then do rendering (66%), thread B might do scene traversal (66%), and then input (33%), see the 33% overlap?), they also do this to better optimize for consoles. But then they have better control of their game devs and can break game logic into different sections to be better parallelized, where as consumer game engines have to maintain the single thread perception.
SIMD is used everywhere, physics uses it, rendering uses it, UI drawing can use it, AI algorithms can use it. Many engines (your physics or rendering library included) will compile the same function 3 or 4 different ways so that we can use the latest available on load. It's not great for game logic because it's expensive to load into and out of, but for some key stuff it's amazing for performance.
That stuff the GPU is doing eats up a whole core or more of CPU time. So what if we are generally running serial algorithms, we need to run 6 different serial algorithms at once, that's what the general purpose CPUs were built for.
This is all the stuff you don't often have to deal with coddled by your game engine. The same way that webdevs don't have to worry about how the web browser is optimizing their web pages.
comment 10y ago · link · parent
[0] http://www.viva64.com/media/images/content/b/0324_Criticizin...
comment 10y ago · link · parent
I have to disagree, compilers may have gotten a bit better at making faster binaries. But languages, like new languages, are increasing in expressiveness and safety, sure, but very rarely efficiency. Go and Rust are not faster than C or C++, likely never will be (for one C has decades of lead time), Go and Rust may be faster than C was 20 years ago, but that doesn't matter.
comment 10y ago · link · parent
Response from google via Tor: 208 ms.
Response from google without: 32 ms.
To be fair I am basically on a trunk line via my university.
I mean you are right though, a domestic WiFi connection is likely to be in the 200 ms range, so another 200 ms on-top of that might not be as big of a deal, but I would suspect it would still end up being closer to 500 ms to get a response. Google made a point where anything over 200 ms feels slow to users. Tor is definitely going to push everything over that.
comment 10y ago · link · parent
comment 10y ago · link · parent
What we wanted was a way to describe interactive hyperlinked documents backed by a distributed collection of servers. What we got was a virtual machine running on a virtual network. I would call the web the third generation of application layer and it's an even larger step back for some fundamental promises of computing (composition, interchangeability, others) than window managers were (second) from shells (first). Window managers gave us a better way to interact, but we lost things like piping applications together, easy to use environment variables, sharing other programs (most applications I install these days just ship with their own copies of everything; I blame Microsoft), etc. The web gives us cross-platform access anywhere features, but has terribly degraded any promise of applications working together unless they are owned by the same company. Not at all the shared interactive interlinked document layer we wanted.
comment 10y ago · link · parent
To use CAs as an analogy. Intel, and most chip manufactures, when they describe DRM, they mean generalized consumer DRM, so basically how your browser or OS comes with a list of CAs pre-installed. The DRM pitch here is the ability to write your own DRM, e.g. like having your own internal CA.
This has a use case. DRM can be useful for things like governments and companies. While dangerous from a civil liberty perspective on consumer hardware, it's perfectly reasonable for an organization to want a DRM solution that they control entirely. As an example such a solution could prevent the IT guy (re: Snowden) from stealing your files.