Soldat Fans > Developers Corner
Soldat Server Source + Node.JS
jrgp:
--- Quote from: strack on August 13, 2013, 06:42:17 pm ---@Shoozza
If we hypothetically build a Node.JS version of soldat server, we could have the common part written in C++ and the rest could be written in Javascript.
Today, Node.JS (Javascript) have the biggest open-source community in the internet. And that could be a boost in soldat's expansion.
Think about that?
It's impossible to start a project like that, today?
--- End quote ---
That would require a huge rewrite. Issues:
- Soldat's code is over 100k lines of Pascal, so you can't copy/paste or refactor to c++ so easily
- A lot of Soldat's "features" are really bugs so reproducing the exact behavior/gameplay wouldn't be that trivial
- "Node.JS (Javascript) have the biggest open-source community in the internet." << what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
That said, nothing is stopping you from making a clone of Soldat and its server in Node. You'll just have no existing code to go off of.
strack:
--- Quote from: jrgp on August 13, 2013, 11:23:20 pm ---
--- Quote from: strack on August 13, 2013, 06:42:17 pm ---@Shoozza
If we hypothetically build a Node.JS version of soldat server, we could have the common part written in C++ and the rest could be written in Javascript.
Today, Node.JS (Javascript) have the biggest open-source community in the internet. And that could be a boost in soldat's expansion.
Think about that?
It's impossible to start a project like that, today?
--- End quote ---
That would require a huge rewrite. Issues:
- Soldat's code is over 100k lines of Pascal, so you can't copy/paste or refactor to c++ so easily
- A lot of Soldat's "features" are really bugs so reproducing the exact behavior/gameplay wouldn't be that trivial
- "Node.JS (Javascript) have the biggest open-source community in the internet." << what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
That said, nothing is stopping you from making a clone of Soldat and its server in Node. You'll just have no existing code to go off of.
--- End quote ---
Ok. Keep coding on that. And Soldat will continue falling.
--- Quote ---<< what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
--- End quote ---
http://webcache.googleusercontent.com/search?q=cache:4IOcCsF6v_oJ:https://github.com/languages+&cd=1&hl=pt-BR&ct=clnk&gl=br&lr=lang_en%7Clang_pt
What? 24% (21% js + 3% coffee)
jrgp:
--- Quote from: strack on August 14, 2013, 12:53:09 am ---
--- Quote from: jrgp on August 13, 2013, 11:23:20 pm ---
--- Quote from: strack on August 13, 2013, 06:42:17 pm ---@Shoozza
If we hypothetically build a Node.JS version of soldat server, we could have the common part written in C++ and the rest could be written in Javascript.
Today, Node.JS (Javascript) have the biggest open-source community in the internet. And that could be a boost in soldat's expansion.
Think about that?
It's impossible to start a project like that, today?
--- End quote ---
That would require a huge rewrite. Issues:
- Soldat's code is over 100k lines of Pascal, so you can't copy/paste or refactor to c++ so easily
- A lot of Soldat's "features" are really bugs so reproducing the exact behavior/gameplay wouldn't be that trivial
- "Node.JS (Javascript) have the biggest open-source community in the internet." << what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
That said, nothing is stopping you from making a clone of Soldat and its server in Node. You'll just have no existing code to go off of.
--- End quote ---
Ok. Keep coding on that. And Soldat will continue falling.
--- Quote ---<< what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
--- End quote ---
http://webcache.googleusercontent.com/search?q=cache:4IOcCsF6v_oJ:https://github.com/languages+&cd=1&hl=pt-BR&ct=clnk&gl=br&lr=lang_en%7Clang_pt
What? 24% (21% js + 3% coffee)
--- End quote ---
Just because 24% of the projects include javascript (I'm not going to count coffee script) doesn't mean they're all using nodejs, which is what you're arguing for. Furthermore, I can't even find the link you pasted outside of google cache. Additionally, that list probably aggregates languages each project uses, so it'll count projects that include PHP and JS and ASP/JS and Perl/JS all towards JS' share. So, if you think that 24% of Github's projects are just javascript you're probably reading the graph wrong. And again, most of that JS usage is definitely client side widget toolkits/libraries, not stuff on the server end which is what you're proposing.
strack:
--- Quote from: jrgp on August 14, 2013, 01:03:07 am ---
--- Quote from: strack on August 14, 2013, 12:53:09 am ---
--- Quote from: jrgp on August 13, 2013, 11:23:20 pm ---
--- Quote from: strack on August 13, 2013, 06:42:17 pm ---@Shoozza
If we hypothetically build a Node.JS version of soldat server, we could have the common part written in C++ and the rest could be written in Javascript.
Today, Node.JS (Javascript) have the biggest open-source community in the internet. And that could be a boost in soldat's expansion.
Think about that?
It's impossible to start a project like that, today?
--- End quote ---
That would require a huge rewrite. Issues:
- Soldat's code is over 100k lines of Pascal, so you can't copy/paste or refactor to c++ so easily
- A lot of Soldat's "features" are really bugs so reproducing the exact behavior/gameplay wouldn't be that trivial
- "Node.JS (Javascript) have the biggest open-source community in the internet." << what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
That said, nothing is stopping you from making a clone of Soldat and its server in Node. You'll just have no existing code to go off of.
--- End quote ---
Ok. Keep coding on that. And Soldat will continue falling.
--- Quote ---<< what? Are you kidding me? Node is right up there with Rails and Flask and every other hip new framework that all the fanboys rave over for a few years then forget about
--- End quote ---
http://webcache.googleusercontent.com/search?q=cache:4IOcCsF6v_oJ:https://github.com/languages+&cd=1&hl=pt-BR&ct=clnk&gl=br&lr=lang_en%7Clang_pt
What? 24% (21% js + 3% coffee)
--- End quote ---
Just because 24% of the projects include javascript (I'm not going to count coffee script) doesn't mean they're all using nodejs, which is what you're arguing for. Furthermore, I can't even find the link you pasted outside of google cache. Additionally, that list probably aggregates languages each project uses, so it'll count projects that include PHP and JS and ASP/JS and Perl/JS all towards JS' share. So, if you think that 24% of Github's projects are just javascript you're probably reading the graph wrong. And again, most of that JS usage is definitely client side widget toolkits/libraries, not stuff on the server end which is what you're proposing.
--- End quote ---
Github removed that page:
https://github.com/blog/1585-explore-what-is-trending-on-github
But that info is recent. And no, that graph is based on the most written language on each project.
Most of Javascript projects also work in Node.JS.
So that fact is: The most active community today is Javascript and Node.JS (+coffee script, there is a lot of Node.JS projects written in coffee).
jrgp:
--- Quote from: strack on August 14, 2013, 01:11:12 am ---Github removed that page:
https://github.com/blog/1585-explore-what-is-trending-on-github
But that info is recent. And no, that graph is based on the most written language on each project.
--- End quote ---
Probably also includes people duplicating projects/"forking" which just copies code around.
If you want to see a solid example (that doesn't have the page redacted :-/) of the languages with the most lines of code written, look at OhLoh: https://www.ohloh.net/languages?query=&sort=code
C > XML > C++ > HTML > Java > Javascript
You can't use github as your only source (lol pun!) here because it's based around people finding a project, "forking" it (which doubles the stat), occasionally submiting code or just forgetting about it.
--- Quote from: strack on August 14, 2013, 01:11:12 am ---Most of Javascript projects also work in Node.JS.
--- End quote ---
Yeah, especially the ones that revolve around manipulating the HTML DOM to make clickable buttons and slide things around. /sarcasm
Just because the syntax is the same doesn't mean the utility also is.
--- Quote from: strack on August 14, 2013, 01:11:12 am ---So that fact is: The most active community today is Javascript and Node.JS (+coffee script, there is a lot of Node.JS projects written in coffee).
--- End quote ---
What you're not grasping is that the usage of JS is primarily geared to client side web browser scripting, not complex tasks on the server side, and certainly not game server logic.
As this war has gone on long enough (not to say I haven't enjoyed it but it's still petty) I'll just lay down these points:
- I'm all for rewriting Soldat in another language
- Releasing Soldat as Open Source would be cool, but Shoozza listed the caveats required in doing so numerous times over the forums
- I do enjoy writing code in JS (as well as other languages) and I use it often at work
My only gripe with what you're proposing is that you're saying that JS is the best language for the job to rewrite a complex game server in, while ignoring that the vast majority of JS in existence is for the purpose of client side scripting rather than server side applications and using that as your argument.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version