News for hackers. Stuff that matters.
Re:Minecraft server built in Node.js by ludwig on Friday October 29, 2010 @08:42AM (#1847072)
You linked to a fork of the original project http://github.com/nornagon/nodecraft
Re:Minecraft server built in Node.js by chapel on Friday October 29, 2010 @09:31AM (#1847227)
Ah, thanks. I didn't notice at first. Though the fork has more recent commits where as the main hasn't had any for a while now. Still pretty cool and hope it goes somewhere.
Re:Minecraft server built in Node.js by andrewgodwin on Friday October 29, 2010 @03:53PM (#1848754)
Even more impressively, this appears to be for the new protocol version - the new protocol is significantly harder to implement a server for than the old one (I say this having written custom servers for both in Python), and requires, among other things, a full lighting implementation in the server.

I'd be curious to see how this compares to the Java one for speed (and some other SMP servers that are springing up) - it's quite difficult to store an infinite size map efficiently in memory and still keep good random access times.

Re:Minecraft server built in Node.js by daredevildave on Friday October 29, 2010 @09:16AM (#1847176)
They might want to switch that to the UDP server ( dgram ) Networked games over TCP is not usually recommended: http://gafferongames.com/networking-for-game-programmers/udp...
Re:Minecraft server built in Node.js by metachris on Friday October 29, 2010 @12:07PM (#1847759)
UDP is not always the best protocol for networked games. TCP can be a good choice for games which exchange only or mostly important messages which must not be dropped and delivered in sending order (eg. most round-based games). To make that work with UDP you'd end up re-implementing a lot of already existing functionality inside TCP.

UDP is supposed to be better for real-time games, but both Minecraft and World of Warcraft actually do great with TCP.

Re:Minecraft server built in Node.js by maushu on Friday October 29, 2010 @09:55AM (#1847308)
They can't if the minecraft client uses TCP.
Re:Minecraft server built in Node.js by daredevildave on Friday October 29, 2010 @10:26AM (#1847400)
Doh, sorry, obviously.

In which case, I wonder whether he (notch) is going to have trouble with the online performance. I've tried online play briefly and it didn't seem bad, I guess it isn't really twitch based.

Re:Minecraft server built in Node.js by jasondavies on Friday October 29, 2010 @11:00AM (#1847503)
I've played online (a few weeks ago) and there did seem to be problems with the server due to periodic GC causing massive lag and disconnections every so often.
Re:Minecraft server built in Node.js by moxiemk1 on Friday October 29, 2010 @11:59AM (#1847731)
It could also be people laying minecart track. This, unfortunately, completely kills the server and makes it need to be restarted.
Re:Minecraft server built in Node.js by joshu on Friday October 29, 2010 @03:56PM (#1848765)
in my experience, tracks on smp hosed the clients, not the server.
Re:Minecraft server built in Node.js by TeHCrAzY on Saturday October 30, 2010 @09:05AM (#1850782)
Server takes a massive hit as well.
Re:Minecraft server built in Node.js by xtacy on Friday October 29, 2010 @11:27AM (#1847595)
Maybe DCCP [1] would be better. Non-congestion controlled protocols are bad for the internet.

[1]: Datagram Congestion Control Protocol: http://read.cs.ucla.edu/dccp/

Re:Minecraft server built in Node.js by abronte on Friday October 29, 2010 @03:36PM (#1848686)
This is pretty awesome, can't wait to try it out. The current minecraft server is such a memory hog and can be sort of hard to run a decent server on a small VPS. I wonder how this version compares.
Re:Minecraft server built in Node.js by FrancescoRizzi on Sunday October 31, 2010 @06:28PM (#1854544)
For a sec, I thought it said "Node.js built in Minecraft" and didn't even find it a bit weird...
Re:Minecraft server built in Node.js by robinduckett on Friday October 29, 2010 @10:50AM (#1847474)
I knew this was coming..