5 ms·
Assembler for DCPU16 written in C++
- 10098 15y agoIf had problems compiling or running it, please post the code you were testing against, a stack trace in case of a crash would also be helpful!
- binarycrusader 15y agoIt'd be helpful if you put a copyright notice and license on this. Code isn't useful without those.
- 10098 15y agoIsn't all the source code published in public github repos GPL by default?
- binarycrusader 15y agoNo. You must explicitly state what the license is. Otherwise, in most countries no one but the author and authorized parties have the right to redistribute it or use it.
- zmanji 15y agoNot even close. By default there is no license at all.
- 10098 15y agoGPL'ed it. Hopefully no one will have a problem re-using this code :)
- binarycrusader 15y agoConsidering Notch licensed his using BSD; it would have been a nice gesture to keep the same unrestrictive license. But that's your choice.
- turbulence 15y agoQueue the incoming haters "Why do we need another...Not another..Why bother with..." etc.... Sigh... People do these things for fun, for learning. On topic: Cool stuff, 10098. Small and clean.
- jsprinkles 15y agoInternet down? Generate your own Hacker News front page for the next few days offline! parts = ['emulator', 'assembler', 'compiler', 'disassembler', 'debugger'] languages = tiobe.read().split('\n') for i in range(31): print "{} for DCPU16 written in {}".format(random.choice(parts).title(), random.choice(languages))
- mahmud 15y agoExcellent use of ANSI COBOL2000 there. Very readable langauge.
- deleted 15y ago[deleted]
- binarycrusader 15y agoI'm still waiting for someone to write an LLVM backend for it.
- soup10 15y agoNext up: Assembler for DCPU16 written in DCPU16 Assembly Seriously the combined programming effort with regards to this "game" is probably already more than notch has put into it.
- 10098 15y agoAnd that is the best part. It's the same as with Minecraft. You are given a vast world and the freedom to manipulate blocks in it. The basics are pretty simple, but look at the things people create there. Some dude even managed to create a graphing scientific calculator. I'm pretty sure by the time the game is out if beta there will be OS-es, programming languages, tools and other interesting stuff floating around.
- pfisch 15y agoI don't really understand how this game isn't going to be broken immediately and only programmers will be able to play it. Like day 1 some programmer is just gonna roll in with a large automated fleet of ships running on these computers.
- 10098 15y agoI'll tell you even more, Notch said in one of his tweets he's going to add network capabilities so that these computers are able to talk to each other. So that fleet can potentially form a hivemind of sorts. Also, hacking others' ships, viruses, coordinated attacks and all that. Isn't that awesome?
- blvr 15y agoDepends on gameplay, but I can see non-programmers playing. In the beginning they might not have to use much code at all. When they've advanced a bit they might just use code copy-pasted from the Web. At the intermediate stage maybe they need something a little more advanced, so they go to a website where you can buy pre-written programs. Then maybe they rise to a level where they can afford to pay someone to write some custom code for them, so they do so and improve their operations by x%. But all that depends on how the rest of the game works. At the moment all we know is that the game involves space ships and assemblers.
- shin_lao 15y agoSomeone should try a Boost.Spirit implementation!
- 10098 15y agoThe syntax of the assembly language is so simple that using Spirit would be an overkill (I was pondering to go with Haskell/Parsec but didn't, for that exact reason).
- shin_lao 15y agoSpirit is extremely concise. In what way do you think it's overkill?
- 10098 15y agoI just don't think it's necessary to bring in such powerful libraries for something that can be easily accomplished with simpler tools. After all, it makes your code easier to understand for people who are not familiar with boost.
- shin_lao 15y agoIt is true it adds an external dependency.