1,816 karma · joined Jun 14, 2011 (15y ago) · 1,039 submissions
comment 7y ago · link · parent
It could be a property of space-time, as space is always expanding everywhere, space it self could have a negative mass.
This could even be some sort of weird energy-neutral balancing mechanism (e.g. some sort of energy - my bet is on potential energy, like how gravity causes things to accelerate through the potential energy of the arrangement - is lost that accounts for the creation of negative mass particles or whatever; conservation is observational, but we don't really know what 95% of the stuff being conserved is in the first place).
Hence it can be consistent with the conservation of mass and energy.
comment 8y ago · link · parent
(As a personal aside: The difference between this spec and GraphQL is relatively minor, they seem equally complex in implementation details (e.g. correctly implementing a graphql server/resolvers is no cakewalk; and correctly implementing either in a less-programming-time way would require a large amount of meta-programming; something that this spec doesn't necessarily solve, or even seem to hint at, yet uses as an argument for it), the only real improvement is that this one is a layer lower (theoretically one less layer of abstraction/indirection improves performance and simplicity) and is not owned by Facebook).
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Saudi Arabia for all that it is authoritarian isn't corrupt (within it's own country) they are pretty effective at rounding those people up on a regular basis. North Korea is stuck in the 1960's and led by an insane idiot but they execute people for using their top offices for personal gain.
comment 8y ago · link · parent
It still has it's limitations though. Because it is a compile time library, it can't do any runtime optimizations like it could with a JIT. Also, because C++ reflection is atrocious, it doesn't provide the best support for runtime type manipulation (reflection features are often paired with the component pattern implementation, especially in general purpose game engines). This comes back to dynamically meta-programmed languages (e.g. python, lisp) that could theoretically out perform even ENTT using a JIT - with the appropriate reflection features - and meta-programming. However an ECS only really makes sense in a non-garbage collected language (or if the language exposes a non-GC meta-programming interface). Since there aren't really any viable JIT (+ reflection) + meta-programmed + non-GC languages out there, I don't think a perfectly correct implementation exists.
I think an ideally implemented example will eventually be Johnathan Blow's experimental language Jai (or a library for it) given what has been stated publicly about it (metaprogramming, JITted, reflection, not garbage collected, has built in support for SoA types). But that's not a viable example to look at at the moment.
comment 8y ago · link · parent
Yes, but instead of timing it against the improvements the grand-author made to the straw man, you still timed it against his straw man.
So I'll quote you: "You need to work on your speed reading skills before throwing shade..."
> The fact the flexibility is being removed is discussed too
You state: "Why do these frameworks exist then? Well to be fair, they enable dynamic, runtime composition. Instead of GameObject types being hard-coded, they can be loaded from data files. This is great to allow game/level designers to create their own kinds of objects... However, in most game projects, you have a very small number of designers on a project and a literal army of programmers, so I would argue it's not a key feature."
Which is failing to recognize that the whole point of the original code - written by a game engine developer - is to demonstrate exactly how to do this for performance and flexibility for any small team.
> along with why it was there and hits on better ways to re-achieve it later. It's mentioned that these were going to be covered in a follow-up.
With out it being there, I cannot judge it. But considering that you removed features and barely managed to match the ECS for performance is... not promising.
The point of the ECS is to be a very efficient solution to the run-time composition problem. You removed run-time composition and still weren't technically able to be more performant than it with your solution. You are comparing apples to oranges and still loosing on arguably the most key aspect of the entire problem space!
comment 8y ago · link · parent
The initial Object Oriented (OO) code - as partially demonstrated by the author, and more succinctly by the grand-author - is badly designed. In the grand-author's slides they remove a number of these stupidities, which the author appears to ignore (both for final performance comparisons and for understanding why they were even there). Notably they (the grand author) originally built a reflection (runtime type) system [0] directly into their game objects (application level code). This of course means they then ended up fighting their programming language over the performance of this as they attempted to use and improve it.
The author's improved code is also a total failure. He removes a significant amount of the flexibility in the original system, which was a requirement of the problem space. By removing features he gains a significant amount of performance (in actuality about 2x - not 10x - compared to the grand author's slides). The lack of understanding why those features were there in the first place demonstrates he doesn't understand the actual design space of the toy demonstration code. It also demonstrates he failed to read the grand-author's slides where they go through some of these changes and why they aren't viable.
The author also fails to even discuss the Entity Component System (ECS) which it should be noted is still faster (and feature intact!) than the author's code. I cannot be more emphatic on that point, an ECS is a solution to the performance of run-time composition problems, and it still worked even better than an attempt to do the OO solution right (again by removing features!).
Though the author makes an excellent point about how most ECS solutions tend to fight the programming system they are in, he doesn't really explain or demonstrate it. What the grand-author did wrong here (though probably actually not in their talk considering who they work for) is not point out that the ECS should be part of one's programming tool to be most effective. Notably the ECS optimization should be part of one's programming language [1] (a game engine's programming language - like Unity's - would count).
Point is this author is very wrong and does not understand design (in general) nor the entity component system pattern in specific at all. The grand author's example code base is disingenuous of actual OO principles, and does not provide reasonable advice on how to deploy an ECS. Oh and they both got wrong that ECS solutions should be part of one's programming tool, not application space.
[0] Engines are often attempting to solve a sufficiently complex problem space that they require runtime type systems. This is not something one can avoid unless writing a bespoke "engine" for a single game.
[1] Unless your programming language is sufficiently advanced to allow creating - effectively - compiled code at runtime as a generalized library. Which C++ is because of template meta-programming, but the included example code is not.
comment 8y ago · link · parent
It's also really cool because it looks like someone could hook this thing up to ray tracer or modern game engine and render dynamic myst style scenes with it (but with NPCs and significantly more detail in manipulation).
comment 8y ago · link · parent
From writing:
TaskCreate(&some_func, 2048 /* Hope this is enough stack */)
To: TaskCreate(&some_func, sizeof(some_func))
would be amazing.comment 8y ago · link · parent
comment 8y ago · link · parent
If you mean blockchain technology as defined by the original bitcoin paper, then why? What use does the system gain by allowing anyone to participate anonymously (e.g. money).
Blockchains solve specific problems. Cryptographic ledgers, like we already use for things like CAs, are the better choice almost always. Certainly they could be made more like blockchains in their openness, transparency, and participation. But going full blockchain isn't required.
However some people have been using "blockchain technology" to include the ideas of cryptographic ledgers, so I want to be clear.
comment 8y ago · link · parent
So if you view "the internet" as a singular type of utility like electricity then the analogy works. It's also how most people (correctly as it happens) think about it. IF the internet didn't behave that way it would be a very different place, where things like cloud providers, emails, and link aggregates wouldn't and couldn't exist.
The real problem is you only have one choice of ISP in most areas. If the ISP markets were competitive this likely wouldn't be a problem, because all the ISPs would be offering "the internet". But now the ISPs are trying to use their market position to extract additional money. It's called economic rent, and we've basically known it's a bad idea (economically and morally) since feudal lords were doing it (cough a certain tea party).
comment 8y ago · link · parent
Point is there is probably no law on the books making it illegal, it's perfectly reasonable for a citizen to assume (after reading the law; consulting with a lawyer) that they are allowed to do that because no one said otherwise (as long as they are safe about it). It's not like the law explicitly makes hitting crossing buttons legal.
But the city probably would pass an ordnance pretty quickly. That part is definitely wrong.
comment 8y ago · link · parent
http://www.sciencemag.org/news/2015/02/why-italian-earthquak...
comment 8y ago · link · parent
Much better than trying to host 12 websites on three machines and dealing with each machine by hand. And also load balance by hand, network by hand, configure the database servers by hand, different logging locations, etc. And that's all assuming I'm using docker. Let alone if I don't and then also have to deal with multiple versions of software between sites, differing technology stacks at the webserver, etc.
It's the superior solution for personal clouds and hobbyist server management too.
comment 8y ago · link · parent
So no companies should not share the same "rights", because that's called being anti-competitive. Labor unions are only capable of "exert[ing] anti-competitive influence" when unions have recruited every worker (probably for a good reason) or companies engage in union busting against workers who have done nothing wrong (except talk to a union). Don't want to deal with organizing employees? Don't sign a contract with them (the employee-employer relationship also granting companies a bunch of useful rights).
comment 8y ago · link · parent
comment 8y ago · link · parent
As a further analogy I often see humans make ridiculous and insane leaps of logic (how assignment works when you first learn programming; free speech applies to things besides governments; etc.), and we run on the same style of hardware.
To an extent this demonstrates how far we are from generalized AI. All the Open AI system is is a very specialized animal, that's lived through millions of simulated generations very quickly. It doesn't understand language or concepts - we can't even begin to tell it the rules of the game, only though simulated evolution can we teach it - or even the self awareness many animals do. It's likely closer to the nervous system of an insect than it is to the brain of a dog.