Why, but WHY JavaScript ???

Hello,

I'm not that good with programming, although I know many languages.

So, I would like to ask a simple question.

Does anybody know WHY will RPG Maker MV use JavaScript?

I know JavaScript a bit, since I used it while working with my website, and I understand that all Web browsers currently support JavaScript, but wouldn't it be easier for us, scripters to make scripts in a 'better' language, like Ruby, Python, C#, not JavaScript (and PHP)

Do they really care about us?

Is it about portability?

Spoiler
All of the 'better' languages that I mentioned up there have also their applications on the Web.

Python - Django

Ruby - Ruby on Rails

C# - I think Microsoft made it a web-programming language.

But I think the applications on the Web have nothing to do with the portability of a language.

Scripting languages are made for 'scripting', right?

That means, you don't have to actually compile them.

So any of these languages have nothing to do with the platforms they are running on.

In RPGMVXA and older, scripts were just a file, Scripts.<something>.

And the main executable was Game.exe, which uses RGSS<something>.dll

And what will be with MV?

Will they have different executables for different platforms?

I suppose so.

So, what's the problem with having the main executable portable, and having some other scripting language?

Take for example Unity.

Unity is portable to lots of platforms, and it uses C# (and JavaScript) as a scripting language for it.

So that's why I suppose it is NOT about portability.
Is is about easyness?

Spoiler
Probably not.

You all know why.
Is it faster?

Spoiler
I'm not sure, someone may tell me this.

Thanks in advance for posting your answer to this (a bit stupid) question.
I believe it's faster, I think.
Not many languages can be as dynamic as ruby. Javascript is one of the few.

It's also one of the most popular language out there, while ruby isn't used by that many people.

And yeah, it's fast. Google, Apple and Mozilla have been improving it tirelessly on the last 5 years or so.
Not many languages can be as dynamic as ruby. Javascript is one of the few.


It's also one of the most popular language out there, while ruby isn't used by that many people.
In that case, why not Python?
JS works on multiple platforms.
Not many languages can be as dynamic as ruby. Javascript is one of the few.

It's also one of the most popular language out there, while ruby isn't used by that many people.

And yeah, it's fast. Google, Apple and Mozilla have been improving it tirelessly on the last 5 years or so.
Python and Ruby are dynamic enough.

And did they really sacrifice -0.00001s of speed difference for +100000h of work? How much faster can it be?

But Python is used by Google also.

C# is used by Microsoft

Ruby... I'm not sure but it IS used (actually Ruby on Rails is more used than Django, I think)

In that case, why not Python?
YEAH! That's the spirit!

JS works on multiple platforms.
ALL scripting languages work on ALL platforms.
Java doesn't work on Chrome, for example. 
In that case, why not Python?
I don't really know much about Python (I've only used it to write some functional testing before), but I heard every sort of bad thing about it.

 

And did they really sacrifice -0.00001s of speed difference for +100000h of work? How much faster can it be?
Is it really that much work, though?
I don't know why you heard bad things about Python @Hudell


And YES, it is about that much work, AND for Enterbrain, AND for us!


@Hotfirelegend


I don't consider Java as a scripting language.


And I think of Chrome unsupporting Java applets as an internal fight between Google and Oracle (that's only my thinking)
Is it really that much work, though?
Not that much, but Js is not practical and requires more work than Ruby; it's sure.

I also feel strongly that js is not the best choice...
And YES, it is about that much work, AND for Enterbrain, AND for us!
I don't know what reasons they had, but you can be assured that they DON'T do things to cause problems.


So whatever reasons they had for switching, you can be guaranteed that in their final list, the advantages pro javascript were greater than the advantages for any other language.


And I heard that "is slower, is more work, is worse, is whatever" for every programming language out there - but the languages where that was true have basically died out in the last decades.


Any language that is still around today is either new (and an experiment) or did have advantages that made developing it further worthwile.
@Lecode

Of course, not LITERALLY that much, but MUCH more than now.

For example, I needed about 12 of some value to learn Ruby as I know it today

I suppose I would need >15 of same value for JS ( I mean, for JS API for MV)

And even then the scripting will be much harder, about 1h more per script minimally.

 

@Andar

Yes, they had to HAVE a reason for switching (it is not that some random guy told them "Hey, let's switch to JS because I say so", and all Enterbrain employees nodded their heads)

But the point of this topic is not that. The point is to find out WHAT is that pro list.

 

Yeah, it is true that you hear those things about every language.

But, at least it seems to me now, this switching may be FATAL, because Ruby has been proven good for RGSSX (where X <= 3), and now they are switching to JS, which has lots of *strange* things.

It may be a personal thing only, but I think lots of scripters will, unfortunately, give up. Like Solistra.
@Lecode Of course, not LITERALLY that much, but MUCH more than now. For example, I needed about 120h to learn Ruby as I know it today @Andar Yes, they had to HAVE a reason for switching (it is not that some random guy told them "Hey, let's switch to JS because I say so", and all Enterbrain employeed nodded their heads) But the point of this topic is not that. The point is to find out WHAT is that pro list. Yeah, it is true that you hear those things about every language. But, at least it seems to me now, this switching may be FATAL, because Ruby has been proven good for RGSSX (where X <= 3), and now they are switching to JS, which has lots of *strange* things. It may be a personal thing only, but I think lots of scripters will, unfortunately, give up. Like Solistra.
Bear in mind that in the advent of HTML5, low latency touchscreens and in general, responsiveness, JS makes a lot of sense.

Also, and I mean this as harmless as I can, scripters come and go and that doesn't make the platform better or worse and no possible amount of complaining is going to fix that.

My advice: kiss your Ruby goodbye and move on.
Is there really a point to this thread? If it's just an opportunity for a rant fest, we don't do that here, so I will close it.


The fact is, they DID choose JS and that's the end of the story. You can use it, or you can continue to use an earlier engine with Ruby. THAT is your choice. NOT what language you would prefer to use.
Javascript is also extremely popular in Japan right now.
@Pine

That is right.

But do people really think to play RPGs on MOBILE PHONES???

And still, with an apropriate program, the executable that has been used today can be replaced with an executable (which's extension depends on server machine) 

and that executable executes code of SOME programming language, and then CONVERTS it to JS, right?

Is that possible?

Sorry, @Shaz.

I just wanted to know WHY (and that is the title) did they choose Javascript.

My point was not to start a discussion what language is the best. ( And it was SURELY NOT to gain some more posts on that number aside)

But close it, if you want so.

@Archeia

I did not know that.

But, they used Ruby because it was invented by Yukihiro Matasumoto, so it was also popular in Japan, right?
Yep. But for multiplatforming, Javascript is the go to. Infact if you do some research, you'll notice most Japanese programs are in Javascript.
@Archeia
Oh.
That makes more sense now.
Thanks!

Sorry for double posting, but this should be a big (and maybe a last) post...
So...I've been doing some research through some sites that say what are the best cross-platform tools...

Result :

Spoiler
http://www.developereconomics.com/pros-cons-top-5-cross-platform-tools/

1. PhoneGap - JS
2. Appcelerator - JS
3. Adobe AIR
4. Sencha - JS
5. Qt - LUA
6. Unity - C#, JS
7. Corona - LUA
8. Mono - I think C#
9. Marmelade - Forgot

http://thinkapps.com/blog/development/develop-for-ios-v-android-cross-platform-tools/

1. Sencha - JS
2. PhoneGap - JS
3. Appcelerator - JS
4. Cocos2d - C++, JS, C#, Python, Obj-C
5. Unity - JS, C#
6. Corona - LUA
7. Qt - JS
8. Xamarin - Ruby, C#
9. Alpha Anywhere - JS, C#, any other .NET supported language
10. 5App - JS

http://mobiledevices.about.com/od/mobileappbasics/tp/Top-5-Tools-Multi-Platform-Mobile-App-Development.htm

1. RhoMobile - Ruby
2. PhoneGap - JS
3. Appcelerator - JS
4. MoSync - JS, PHP, Ruby, Python
That's a lot of JS there amirite?
Gosh, that's what I tried to say, but my Internet bugged up

This is the rest of the post :

Spoiler
5. WidgetPad - JS

6. Whoop - Any, I think

 

 

(This is a strange research below)

http://www.avocarrot.com/blog/top-5-cross-platform-app-development-tools/

 

1. PhoneGap - JS

2. Appcelerator - JS

3. Xamarin - Ruby, C#

4. RhoMobile - Ruby?

5. MoSync - JS, PHP, Ruby, Python
 

 

 

So... perhaps this is why Enterbrain decided to use Javascript, isn't it?

 

I still think any other language was also a good choice, but this topic may now be closed.

Original thread: https://forums.rpgmakerweb.com/threads/why-but-why-javascript.43643/