Hooray for JavaScript!
-
lamefun
- Tyrant
- Posts: 371
- Joined: Mon Jun 04, 2012 10:29 am UTC
-
Ishq
- Project Head
- Posts: 1152
- Joined: Tue Mar 06, 2012 8:32 pm UTC
Re: Hooray for JavaScript!
We're probably going to be switching to lua because librocket just added support for it.
-
lamefun
- Tyrant
- Posts: 371
- Joined: Mon Jun 04, 2012 10:29 am UTC
Re: Hooray for JavaScript!
Why? JavaScript is the programming language of the future, the programming language for people, the official programming language of planet Earth!
-
enneract
- Programmer
- Posts: 29
- Joined: Sun Jun 01, 2014 9:21 pm UTC
-
lamefun
- Tyrant
- Posts: 371
- Joined: Mon Jun 04, 2012 10:29 am UTC
Re: Hooray for JavaScript!

Depends on how you measure:
http://trendyskills.com/
https://twitter.com/dberkholz/status/395922559151009792
http://www.itworld.com/cloud-computing/ ... g-language
But, really, it doesn't matter. That JavaScritpt is the official programming language of planet Earth should be obvious to everyone.
JavaScript is going to be everywhere:
Web 3.0
Qt/KDE 5
GNOME 3
Windows 8
Firefox OS
The Global Government has prescribed JavaScript for us all. There's no going back.
-
enneract
- Programmer
- Posts: 29
- Joined: Sun Jun 01, 2014 9:21 pm UTC
Re: Hooray for JavaScript!
lamefun wrote:Depends on how you measure
lamefun wrote:That JavaScritpt is the official programming language of planet Earth should be obvious to everyone.
If popularity measurements are unreliable then why would JavaScript (or any other language) be the official programming language of Earth?
lamefun wrote:JavaScript is going to be everywhere
I doubt that JS is fit for any serious work (e.g. games). This benchmark states that JS (V8) is 3x-6x slower than C (gcc).
-
Spiney
- Dretch
- Posts: 30
- Joined: Thu Dec 12, 2013 5:35 pm UTC
Re: Hooray for JavaScript!
enneract wrote:lamefun wrote:Depends on how you measure
I doubt that JS is fit for any serious work (e.g. games). This benchmark states that JS (V8) is 3x-6x slower than C (gcc).
Plenty of Unity games use JS afaik. Isn't the reason for scripting more about trading performance for flexibility?
3 to 6 times slower doesn't sound too bad for a scripting language, since average game logic generally isn't the bottleneck?
Most engines that do gameplay scripting tend to move performance critical game code into C anyway.
Not to say JS is good/bad, or scripting in general is good/bad.
-
Ishq
- Project Head
- Posts: 1152
- Joined: Tue Mar 06, 2012 8:32 pm UTC
Re: Hooray for JavaScript!
The main use of scripting will be for the UI. Also, potentially in the future for more customizable maps and a tutorial mode.


