319 points · by ingve · 10y ago · 331 comments
From : http://venturebeat.com/2015/09/24/how-john-carmack-pestered-... :
“I was willing to do just about anything,” he said. “On the phone I said that if this doesn’t happen, I’m going to cry. This will just be so terrible. This will be the best thing that we can do for the platform. But there are some problems that compilers can’t solve.”
It turns out that the solution was to get the top executives from Facebook and Microsoft together.
“Mark [Zuckerberg] and Satya [Nadella] were able to sit down and make sure that the deal happened,” said Carmack.
He's actually available in Fallout 1, 2, 3, 4, and New Vegas. :)
Game world is not only de-facto voxels. Its transparent, masked and oblique voxels that interact with each other or other entities, like farm blocks by water blocks, lava blocks with burnable blocks nearby, plants growing up, hostile mobs spawns and lines of sights, mobs pathing as they follow player, fellow mobs or random points of interest for wandering, etc ect.
Have a read about how he developed the app:
http://techblog.netflix.com/2015/09/john-carmack-on-developi...
It's almost beyond belief what he managed to accomplish in one and a half weeks. Hacking the Netflix video decoding system, fine-tuning the UX control heuristics, working around DRM limitations, optimizing the power draw and thermals, and much more, all on top of implementing the very polished app itself.
> To fix this, I had to make a small change in the Netflix video decoding system so it would call out to my VR code right after it submitted each frame, letting me know that it had submitted something with a particular release time. I could then immediately update the surface texture and copy it out to my own frame queue, storing the release time with it. This is an unfortunate waste of memory, since I am duplicating over a dozen video frames that are also being buffered on the surface, but it gives me the timing control I need.
Oh, Mr. Carmack...
http://developer.android.com/reference/android/graphics/Surf...
http://developer.android.com/reference/android/graphics/Surf...
And I only started coding for Android last month. I guess I'm an 11x programmer. :) ducks
I consider myself one that's very good, but I look at people like Carmack and realize I will never be one of them...that won't stop me from trying to though!
That said, I don't contend that some people are not at some point 10 times more productive than others. I contend that anyone can be just as productive, and often are, were or will be, although the manner in which they should be productive is absolutely not clear-cut. Society as a whole shapes how we act. Diversity in its composition allows what we rely upon.
For instance, I would not be as productive at work if I had to take care of a few children on my own. Similarly, I am extremely unproductive while gardening, and don't intend to spend the time to improve.
0 - https://twitter.com/ID_AA_Carmack/status/684475417726595072
Some of them leave a disaster in their wake. They're fast because they're sloppy, and don't take the time to refactor their new code into something maintainable. The team pays the price for that later.
I'm not suggesting John Carmack is one of those bad 10x developers, but they do exist. Just something to keep in mind.
It may be wise to leave it as a prototype and build V2 from scratch after that point - taking many of the best parts from the earlier experiment. I've been on the former end enough times where I'd rather the next team of engineers didn't use it as the base. I often learn many lessons from building V1 which would be a strong base for rebuilding it properly.
Erlang creator Mike Williams: “If you don’t make experiments before starting a project, then your whole project will be an experiment”.
Unfortunately many startup founders don't see the dev process as experiment-driven, rather as a monolithic beast the continually needs evolution and refinement. The opportunity costs of rebuilding a prototype-quality app using lessons learned from it vs building on top of it are real - rebuilding is not always as risky as many people make it out to be. Context matters.
I don't think Carmack would have the productivity of 100 average guys if he was working on a typical CRUD business application.
"And this wouldn't be their last obstacle moving in to the lake house … [Next chapter]: Also, John stubbed his toe on a door."
Between that and Wil's enthusiastic reading — buying in to each and every one of those sure-to-be-disappointing wind-ups — it was kind of exasperating. But I'd say it's worth it, regardless. I'd agree it's probably way better as an eBook. There was lots of interesting stuff, and some glorious nostalgia :)
Masters of Doom is a great book though. I read it a couple years back. I recommend picking up a copy if the audiobook isn't working out.
Read it. It's worthwhile.
Stay Awhile and Listen: How Two Blizzards Unleashed Diablo and Forged a Video-Game Empire [1]
[1] http://www.amazon.com/Stay-Awhile-Listen-Blizzards-Video-Gam...
Carmack talks are fun to watch - I think it's worth checking out.
Shit, maybe there just needs to be CarmackCon where it's just a start time for his keynote which just sort of seamlessly blends into a hackathon.
Or maybe we just need to start a petition for no end time on his talk at Connect 2016.
The more I read about Notch, the more I'm convinced that Microsoft's acquisition of Mojang and getting him out of the scene was the best thing for Minecraft. He strikes me as an incredibly fortunate but oddly emotional individual who was way over his head once his creation took off.
As far as I can tell, FB has treated the Oculus project with incredible respect, and not a single fear has come true.
I understand there was legitimate reason to worry over the Facebook acquisition, but I still strongly believe that Notch (and many others) took it too far.
Notch promised Minecraft would eventually be released open source when he was raising early access dollars, and he seems to have completely reneged on it with the sale to Microsoft.
Oculus got acquired by Facebook and still afterwards released the complete hardware schematics for DK1, the kickstarter project, for anyone to use on Github.
The Facebook acquisition still probably wasn't a good thing; they seem to be want to turn what are essentially Monitors+tracking into game consoles with exclusives etc. You'll have a headset from one company and have to buy the equivalent spec headset from another just to get access to all the games. It's going to be like a future where Skyrim 2 were only released for BenQ monitors. You may already have a monitor with a panel made to the same spec in the same fab, but now you have to have an extra monitor you hook up only occassionaly to play some of your games.
They've said they might port their store to other PC headsets, but have made no real commitments.
From recent news, it sounds like he's now given up trying to be normal and is trying out being an over-the-top hedonistic rich guy, and doesn't enjoy that either but doesn't know how to stop.
You're very much correct however, he himself will admit that he definitely prefers just making small games with small fanbases, and that he's not really suited to being a public figure.
That aaid, one of the more interesting debates I participated in at Sun was Bill Joy's insistence that interpreted Java would be "faster than C++." From what I recall of his argument, it was that understanding the semantics of the program and just in time compilation would allow the JVM to run only the code that was needed in a smaller resident set with fewer context switches. At the time I was arguing against that, saying that a compiled version of Java could be a useful systems language but the interpreted version would not.
And even with some really really amazing hotspot technology on the JIT compiler, I don't think Java was ever faster outside of a few synthetic test cases that did no useful work.
So it really doesn't surprise me that a C++ version of minecraft would out perform a Java version, but it would be much more interesting if they included a JVM for the mods, so that the core was fast and the mods were portable.
I know this was meant to be a joke, but this was more an issue in wording by Schofield (the writer) than anything else. A Microsoft account is pretty much global across all their products. So it's also their email account, their OneDrive account, their Azure account... I'm assuming he picked Office 365 simply because that's the product he thinks is most likely to be already used in the school.
As for the optimization; the JIT's main optimization from what I've researched is inlining. Which is really beneficial for Java because you tend to end up with a nest of getter method calls all to get a single field somewhere, and wouldn't it be nice if the JIT could just inline that field for you? I suspect that, especially if performance is at stake, it's less typical to end up with patterns like that in a C++ codebase.
If Microsoft can get schools to use Office 365 instead of Google apps, then $2.5 billion for Minecraft was cheap.
If you're a teacher, it's a huge boon to be able to re-use existing accounts. You really don't want to make dozens of classes of kids set up and remember new IDs and passwords for a single application.
I definitely think that most of the speed increase is coming from the fact that Minecraft is being rewritten, and not which language it's being rewritten in.
1. ActiveSync! This is the only reason I'm still putting up with this garbage.
2. My company also uses O365, extensively. We have a wiki of sorts in OneNote. I can't contribute to it. Logging into the corp account and clicking "open in desktop" results in an error that claims that I don't have a license. I do. On an on-premise licensed domain-joined machine. I don't on my own O365 account but I didn't log on with that.
3. No layman interface. Want to disable password expiry for your 89yr old father? You'll need to download and install a powershell plugin before you can start reading documentation.
4. Inexplicable login problems. No UI to enter my login email because I had logged into a temporary SP online site I was debugging with. Later I found a "forget this login" link under the temporary login; restoring my access to any other account.
5. "Live login? Microsoft login? We don't know, tell us every time. Oh! You can't use Live with this service anyway!" I no longer know which of the two accounts my stuff is on.
TLDR; O365 is great for corporate/business. I'd recommend it. For personal stuff stay the hell away. They really want to give O365 to kids?
Read that line instead as:
Good news! Your teachers and their students won't need yet another password to be able to use this application.
It always saddned me not to have this option in the reference JDK, only on commercial JDKs.
Whereas we already had Java like safe languages with Eiffel, Oberon and Modula-3 compiling AOT to native code, and with JIT also available before 1996.
Oh and with value types and proper generics as well.
Now maybe Java 10 will become what Java 1.0 should have been.
However it'll be a commercial feature. The main reason being, they think it only really matters to rich trading houses that want to hit full speed when the market opens at exactly 9am. The tricky part is that there'll still be JIT compilation happening, because otherwise the program runs quite a bit slower, as the adaptive optimisations can make a big difference.
Which is sad, because if I want to pay for it I don't need to wait for Oracle, almost all comercial JVMs already do it.
When I got into Java, I always expected it to eventually support AOT on the standard compiler.
Java in finance is actually slowly eroding overall. Performance-critical logic is being moved into Python modules written in C. "That's how we do it" anyway. The trouble is that Java code development is too slow and just getting your code deployed into a test environment is often ridiculously complicated (lots of middleware) whereas with Python "you write, you run, you're done."
Where latency is really critical, things are implemented in FPGA though.
In C++ you can arrange your access patterns so you don't cache miss, much harder to do that in Java.
I am not sure it is a fair comparison. had Minecraft been written in C++ with the same dev cycle, a complete rewrite in Java would also allow to improve its perfs ...
Hindsight is always 20/20 so it really doesn't surprise me any rewrite is faster than the previous version.
I have to wonder if they plan to keep the codebase portable though. One of the major benefits of Java was that nearly everything has a JVM.
[1] http://hubicka.blogspot.com/2014/04/linktime-optimization-in...
This was a big deal in the late 90's as C compilers were still catching up with ANSI C and ANSI C++ wasn't done, with each compiler supporting a different flavour of the ongoing work.
Today, with JDK8, that's almost true. With JDK9 it might be.
There's no reason Java can't be faster, it just hasn't happened yet.
Mojang already announced that "deep modding" won’t be supported. They’ll extend the stuff current resource packs can do, but they want to avoid modders replacing or extending any game mechanics directly.
For example, modifying the rendering pipeline will be impossible.
What modders expect: Minecraft as a whole engine, similar to the API Unity presents to developers.
What Mojang is willing to deliver: A modding API that’s glorified command blocks.
Any chance of modders swapping to an opensource minecraft clone?
I wonder if anyone is studying this and drawing parallels to the Python 3 or Perl 6 efforts. There seems to be a lot of similarities.
* Existing product is great, but limitations are being encountered
* Decision is made (or reality admitted, depending on your view) that you have to make a dramatic change
* Community is split, progress is slow
* ???
I'm a huge Minecraft fan (it's about the only computer game I regularly play), and while the community has lots of grump people, it's also fairly adaptable. This would be a huge shock though, and I'm more interested in what happens over, say, 6-12 months than I am in initial reactions.
As most of this thread discusses, mods are going to be a critical point, even though it is surprising how much people manage to do with command blocks, ressource packs and other vanilla tools.
I've got lots of things to say about the minecraft modding community from end to end having done some stuff in the background of both sides. From development, to server management, to being an end user of all this.
I think that the only hope for a good API is to actually have an API. Bukkit was the correct way to go from the start, forge is not an API.
If anyone want's to know funny stories about bukit, forge, minecraft modding, and all you can get in contact with me and I'd be glad to talk about it all.
I tried MineTest but it really (!) wasn't as easy to get started modding it as with Forge-Gradle. You can see my little mod at https://github.com/voltagex/minecraft-rebridge. I want to go back to i, one day.
However, most of the more interesting mods still could not possibly exist for Bukkit, due to it's server side status, so I can't see any MS API faring any better than Bukkit
Let's hope this becomes Minetest's time to shine.
Yes! I've been waiting for this forever. The first time I ran Minetest on a crappy laptop years ago it was as smooth as butter and I couldn't help but think, "Why is no one playing this?!"
I think the primary reason very few people play Minetest is because of marketing and piss poor default gameplay. If you just run Minetest without adding any of the (nearly built-in) mods you'll get an odd-looking Minecraft-like world stuck in "creative mode" (which is boring). If, however, you take the time (lots of time) to fiddle around with it and put together a collection of decent mods it becomes a good game!
The fact that it is written in C and has a proper modding API (in Lua!) should be drawing people in like crazy but for some reason it isn't.
I agree. "Vanilla" Minetest needs monsters, villages, villagers, fortresses, more ores, more items, etc. in order to compete with "vanilla" Minecraft.
It's so very close to being a Minecraft killer...but there seems to be strong resistance to adding more to the base game.
Unfortunately, right now, every query about vanilla Minetest being a little "barren" results in replies like, "Install some mods." sigh
Personally, modded minecraft is the only type I continue to pay. If I didn't have the choice of mods, I'd rather go with one of the better options among the infinite number of minecraft clones.
I wonder if this going to create some bizarre fork situation, with an MS-approved-and-bound C++ version and a legally questionable, community-maintained legacy Java version.
Of course even if the plugin/mod architecture is good getting existing mods converted will be a struggle, particularly where the original coder considered them complete and is now busy working on something else new & exciting.
> patching bytecode
There is a lot less patching bytecode going on now, and it is now handled by Forge.
> unofficial APIs ... like Minecraft Forge
Unofficial APIs are what happen when nobody else provides them. It's far too late for any "official" mod API that isn't Forge, because the massive[1] amount of modding that already exists is just not going to be re-written.
The best thing that could happen would be to bless Forge as "official".
> good sense to build in a good API for mods
LOL. That API already exists - it's called Forge. We gave up caring about an official "mod API" many years ago.
"Where's The Modding API?" - Yogscast, Dec 20, 2013
This is such an antiquated view at this point in time. This is the same Microsoft that is taking .NET open-source and cross-platform, including ASP.Next. This is the same Microsoft that just open-sourced their JavaScript engine and integrated it with Node.js. This is the same Microsoft developing the open-source and cross-platform Visual Studio Code. This is the same Microsoft that writes more apps with better user experiences for iOS and Android than it does for Windows Mobile 8 and so far 10.
When I told him that Microsoft bought Mincraft, he was quite upset, and was confident that Microsoft would ruin it.
Change was bound to happen. Hearing their plans to go c++ makes me wonder how it will impact the server ecosystem. Also, the "Windows 10" messaging in the article does sound like a case of a big company trying to bend a community to its own will (get people on Windows). In my son's case, if things go south, he is going to end up hating Microsoft for ruining his favorite game.
On the other per year per user fees for software is a terrible trend, especially for schools. And I'd rather run my own server, and the kids love the mods.
If Microsoft is only making a Windows version of Minecraft, then they don't have to worry about the portability of mods, which would be a shame.
I know C# doesn't offer much in terms of optimization.
I was thinking they would do a C# rewrite because getting modders to switch from Java to C# is easier and it would give them a chance to show support for C# on non-Windows systems. I also think it would reduce the chance for a community split where modders continue modding the last Java versions.
I'm probably biased in favor of modding. I remember Notch mentioning most sales came from systems where modding wasn't even possible, even though I personally think modding is the greatest thing about Minecraft. That has likely biased my view on the issue.
This was an opportunity to release a slightly upgraded version of the product. It isn't backwards compatible so why keep for example all of the redstone bugs and so on, in it? This product could have been greatly refined. Maybe that's only coming in Minecraft 2.
In true Microsoft fashion, there will now be Minecraft, Minecraft EE, and Minecraft 2. Instead of just two major products.
Otherwise, there are lots of articles about teachers using it for maths, history, geography, English etc.
Trust the teachers. This is the bottom-up adoption by schools who find Minecraft useful. There hasn't been any top-down pressure from governments, teacher training organizations or commercial companies.
That said, no mod compatibility is going to kill the game. Just check youtube, it is difficult to find something about "vanilla minecraft".
I would go so far as to bet it was the political C++ / .NET divide that caused the Longhorn failure.
Also the Windows Vista victory that lead to the "Going Native" speechs, sponsoring C++ conferences, support for C++ on the kernel, AOT compilation to native of .NET code to mobile and the store and bringing back COM+ 2.0 renamed as WinRT.
You write a base platform abstraction layer in C++ & the native language, and then the rest of the game can be written in generic platform-agnostic C++.
I use to do custom installs of mods and even a little bit of patching to make mods play nice together (namely recipe conflicts), but the time it takes just isn't worth it when you can grab a Direwolf20 or Tekkit pack and play right away. I do kinda wish Mo Creatures was still included in packs because my little sis loved the horse breeding to get endgame horses.
While Minecraft is a neat concept, the whole thing really does need to be scrapped and re-written from the ground up.
It's weird, because running different levels and mods for things like Doom and Quake was so simple.
Minecraft modding seems to be centered around a third-party controlled forum with ad-interstitial links to pay-per-impression downloads from some sketchy file hosts. The whole thing is super sketchy. And the fact that you're basically patching in compiled code (that can do bad things to your system, as there is no limited API or scope-limited runtime like in Quake and Doom modding) makes it really, really scary to get those mods running.
There are some aspects of C# (such as value types) that can give an advantage of idiomatic C# over idiomatic Java, but for anything performance sensitive you aren't going to write idiomatic code anyway, you'll be writing pretty convoluted code with SoA instead of AoS and so on.
As for the respective VM:s, the CLR vs the JVM, the performance differences are pretty small. You wouldn't rewrite from Java to C# for performance.
Can you point to any compelling evidence that either language is faster?
LOL. Benchmarks and citation please.
It always take a few generations to move languages in game development.
Assembly -> C & Pascal & Basic dialects -> C & C++ -> maybe C#, Rust, D....
Let's face if, if M$ rewrote it, it'd be in .net and only run on their platform. Then support would be dropped in the next windows release
I am getting tired of these baseless comments whenever article about X shows up. Where X=Google/MS/Apple/FB etc.
I wouldn't be surprised if this is a success.