|
Server-Side JavaScript engines?
|
|
06-15-2010, 11:31 AM
Post: #1
|
|||
|
|||
|
Server-Side JavaScript engines?
I recently came across a powerpoint talking about HTML/JavaScript engine called Aves. During that, I saw a mention of NodeJS which then led me to the V8 JavaScript Engine from Google.
It piqued my interest into thinking that a MUD engine might be able to run via JavaScript on the server. The question that first comes to any sane person's mind is "why"? Well, I find JavaScript to be extremely robust. It's Prototype Object Oriented structure makes objects very flexible. Once could add methods to existing objects quite easily, extending them and enhancing them. I can imagine a MUD where all development is done through the web (via a Web-Based IDE). The MUD Lib developers create the base library. The creators can then extend them quite easily. You could even incorporate event based handling to abstract it even more. The possibilities are very intriguing for me... |
|||
|
06-15-2010, 11:08 PM
Post: #2
|
|||
|
|||
|
RE: Server-Side JavaScript engines?
Most Javascript engines currently available have issues with closures and efficient memory management.
Granted you may want to take a look at Coffee MUD for inspiration. Yeah the heavy stuff is handled in Java (if that suits you) but all the scripting is strictly done in the JS engine "Rhino". |
|||
|
06-17-2010, 10:25 AM
Post: #3
|
|||
|
|||
|
RE: Server-Side JavaScript engines?
So spent some time the past couple of days playing around with NodeJS (which is built on-top of Google's V8 JavaScript Engine). My initial, very preliminary opinion is that is very possible to write a complete and complex MUD using this. In fact, it is so intriguing that I'm going to give it a stab: jsMUD is now my next attempt at AJAX/Browser Based MUDs. The PikeMUD that I was working on will have to wait. I was having way to many issues with the sandboxing that I started to give up on it.
A quick search on the internet shows that someone else has a mud called jsMUD as well. Oh well, it might not be original, but it'll have to do for now. |
|||
|
06-20-2010, 05:16 PM
Post: #4
|
|||
|
|||
|
RE: Server-Side JavaScript engines?
Interesting. So are you working with the google app engine at all, or is GAE just for web hosting?
|
|||
|
06-21-2010, 10:11 AM
Post: #5
|
|||
|
|||
RE: Server-Side JavaScript engines?
(06-20-2010 05:16 PM)York Wrote: Interesting. So are you working with the google app engine at all, or is GAE just for web hosting?Actually, it's something called NodeJS, which extends Google's V8 JavaScript engine. I'm playing around with having a mud driver/engine and library being written completely in JavaScript. I'm testing out some sandboxing features, seeing how to implement a form of inheritance, etc. |
|||
|
06-24-2010, 11:59 AM
Post: #6
|
|||
|
|||
|
RE: Server-Side JavaScript engines?
On the plus-side integrating with CouchDB would be a cinch.
|
|||
|
07-21-2010, 12:04 AM
Post: #7
|
|||
|
|||
|
RE: Server-Side JavaScript engines?
So I've done some more coding against NodeJS, thought about how I would approach a new mud engine written completely from JavaScript, and this is what I've come up with so far.
So back to the prototype vs class approach. This is my very broad, and probably incorrect, summary of what prototype OOP is: Instead of declaring a class (and sub-classes) in which you create instances, you take an existing object and extend it with new functionality. There is more to it, but you get the idea, and JavaScript has a slightly modified approach to that. Either way, it makes for a different feel when developing your engine and MUD library. But it also provides you with a level of flexibility that is simply awesome, especially at the library level. That prototype-based language with component-based architecture will lead to a very powerful and flexible system. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help


