Live data from Hacker News

Show HN: Redstone, a distributed Minecraft server that runs on Node.js

redstone.io

51–60 of 61 posts

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#52
post #22

Earlier quoted context omitted.

"Java or C will be much faster at any computational work" That is far from clear. I've been using nodejs for some computational work using https://github.com/substack/gamma.js and https://github.com/niggler/bessel and found that the JS version is faster than the straightforward Java implementation.

The OP made too general of a statement because there are certain cases where V8 can preform better than the JVM; however, generally Java does seem to perform better (ignoring startup time). http://benchmarksgame.alioth.debian.org/u64/benchmark.php?te... In the linked benchmarks, V8 only has a decided advantage executing regexes.

Heh. Last time I checked v8 regexes were really fast, except their string builder was a disaster... it wrapped every piece of string as a js object (gc and everything).

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#54
post #39
post #21

Earlier quoted context omitted.

Manic Digger ( http://manicdigger.sourceforge.net/ ) used to connect to Minecraft Classic servers. And a client for full Minecraft was planned. But Notch didn't like seeing alternative clients, so I removed it from the game. Also, see http://wiki.vg/Client_List

That's one of the reasons I don't like Notch. This game is literally perfect for WebGL. The rendering done is minimal, the CPU work done is minimal, the textures are (or could be) tiny, and the code required would be tiny. But no, it's STILL in Java. Why?

You don't like notch, who is one of the nicest and modest people in the world, because of a programming decision he made on his game and his product? You may disagree with a business decision, but saying you dislike someone personally because of it is a bit much.

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#55
post #52

Earlier quoted context omitted.

The OP made too general of a statement because there are certain cases where V8 can preform better than the JVM; however, generally Java does seem to perform better (ignoring startup time). http://benchmarksgame.alioth.debian.org/u64/benchmark.php?te... In the linked benchmarks, V8 only has a decided advantage executing regexes.

Heh. Last time I checked v8 regexes were really fast, except their string builder was a disaster... it wrapped every piece of string as a js object (gc and everything).

Sounds familiar to Java's own string concatenation. In Java you use StringBuilder / Buffer to create larger strings from smaller ones; in Node you'd use Buffers, although I never dived too deep into those.

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#56
post #18

Seriuosly interested, why is Node.js better suited as a gameserver than say C or Java ? What exactly are you doing on the serverside? Is it an authorative setup or are you just passing position messages around (in which cases huge amounts of players wouldnt be suprising) ? Did you reverse engineer minecrafts multiplayer protocol or is this an alternate implementation? EDIT just looked it up and it seems like the mine…

Sure, Java or C will be much faster at any computational work. And I am no node.js fan-boi. But doing actual asynchronous local-file IO in C is non-trivial, and if their server is not CPU bound, there doesn't seem to be anything wrong with using node.js. Could you also use libuv from C? Sure.

"asynchronous local-file IO" is not exactly the bottleneck when implementing a Minecraft server. It's all about computation. C/C++ is the way to go.

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#57
How can it be on the front page of HN without any players in it? Or is that a bug as well? I'm flying around in a near-pristine and empty world.

[edit] I dug a hole, fell through, respawned, fell through my own hole. I'm sorry. I'm afraid everyone will fall through it now.

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#59

How can it be on the front page of HN without any players in it? Or is that a bug as well? I'm flying around in a near-pristine and empty world. [edit] I dug a hole, fell through, respawned, fell through my own hole. I'm sorry. I'm afraid everyone will fall through it now.

Move around (horizontally) and you should get a notice that you've changed servers, at which point other players may be found (if not, keep going.)

Re: Show HN: Redstone, a distributed Minecraft server that runs on Node.js

#60
post #58

Please tell me you are going to opensource / release this, this would be so awesome for some Minecraft Related projects i'm doing ( Gigantic PVP & RPG Servers ) I just can't go >600 Players w/o lag on a decent E3 Series.

I am leaning towards opensourcing it, but we don't want to do it too soon unless we realize we want to do a PaaS sort of thing.
Post reply on HN