Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Will there ever be another language of the web?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
43 replies to this topic

#1 Alpha_ProgDes   Crossbones+   -  Reputation: 4692

Posted 14 August 2013 - 08:20 PM

Javascript is always referred to as the language of the web. In very much the same way that C/C++ was at one time the language of performant code (i have a feeling it still is). However, I wonder if there's any other language that could do what Javascript could do or is better alternative to Javascript, as far as client-side scripting of web pages goes. In short, if you could replace Javascript with a viable and reasonable alternative what would it be?


Beginner in Game Development? Read here.
 
Super Mario Bros clone tutorial written in XNA 4.0 [MonoGame, ANX, and MonoXNA] by Scott Haley
 
If you have found any of the posts helpful, please show your appreciation by clicking the up arrow on those posts Posted Image
 
Spoiler

Sponsor:

#2 Servant of the Lord   Crossbones+   -  Reputation: 20899

Posted 14 August 2013 - 08:44 PM

Python, maybe. It's already used server-side for alot of websites.


It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#3 tstrimple   Prime Members   -  Reputation: 1733

Posted 14 August 2013 - 09:02 PM

Python, maybe. It's already used server-side for alot of websites.

 

I don't see that ever happening. Google is trying with Dart, but that "compiles" to Javascript in the end anyway. Good luck getting Mozilla, Microsoft, Google, Opera, etc to agree on a language to run client side code. The best we'll probably see are projects like Dark, CoffeeScript, TypeScript, etc.

 

That being said, Javascript can be a great language if used properly!



#4 frob   Moderators   -  Reputation: 22683

Posted 14 August 2013 - 09:13 PM


JavaScript is an interesting language.

The language wasn't that great to begin with and has grown more warts over the years. It was growing during the browser wars and has picked up quite a lot of cruft in order to accommodate quirks of hundreds of browser bugs. The language has been extended many times and there are many things that ought to be simple but require significant effort either directly or by importing libraries that hide those complexity and compatibility issues.

The Internet is always evolving. I'm experienced to realize that neither JavaScript nor HTML will be on the top forever. You asked an existential question, "will there EVER be another language..." and so I'm going to answer yes, barring some cataclysmic end of the world as we know it, there will eventually be something else.

Recall that JavaScript was Netscape's baby and they had to fight hard against the JScript alternative. Even the renaming from "LiveScript" to "JavaScript" was a push for the language's survival, (successfully) attempting to piggyback on Java's successes.

JavaScript has many flaws. It has horrible memory-consuming habits. Even after a decade of optimizations the interpreted language still can bring modern machines to a crawl, and completely halt lesser machines like phones and tablet. Even my tablet (quad core Tegra 3 with 1GB RAM) runs out of memory on relatively benign jquery scripts. It is interpreted and still has heavy reliance on quirks of the browser that is interpreting it. Attempting to build anything with it, such as complex user interfaces, is a full time job for many people but it needn't be.

Most people don't know enough to care that the reason "the Internet is slow" is in part because of the massive body of JavaScript churning in the background.

Google introduced Dart which in some ways competes with JavaScript, even though it can be compiled to JavaScript. The ability to be run directly (and also to have a smaller memory footprint) rather than through a browser's interpreter is a big benefit.

Several current languages COULD do it. But right now there is little commercial incentive to do it. The language with all its flaws is currently standardized (as ECMAScript) and it is well supported.

Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I write about assorted stuff.


#5 tstrimple   Prime Members   -  Reputation: 1733

Posted 14 August 2013 - 09:41 PM

JavaScript has many flaws. It has horrible memory-consuming habits. Even after a decade of optimizations the interpreted language still can bring modern machines to a crawl, and completely halt lesser machines like phones and tablet. Even my tablet (quad core Tegra 3 with 1GB RAM) runs out of memory on relatively benign jquery scripts. It is interpreted and still has heavy reliance on quirks of the browser that is interpreting it. Attempting to build anything with it, such as complex user interfaces, is a full time job for many people but it needn't be.

Most people don't know enough to care that the reason "the Internet is slow" is in part because of the massive body of JavaScript churning in the background.

 

Are we talking about JavaScript here or JavaScript developers? Like any language, it's horribly abused by the majority of people writing it. This is made worse by many people thinking it's not a real programming language which cause them to be much more careless with it than they would if they were writing something in C, C#, Java, etc. 



#6 Code Fox   Members   -  Reputation: 1803

Posted 15 August 2013 - 05:41 AM

I remember when Action Script use to be king of the web.

 

 In my own opinion, AS is a more dynamic language than JS, however the question is "what is the next big thing? " .

 

 I really don't know. Dart is the only major alternative "language" out there, with nothing else being offered for the client side.

(( technically Java is client side, however no one used that anymore in web design ))


Does Anyone Actually Read This ?
 


#7 fir   Members   -  Reputation: -456

Posted 15 August 2013 - 06:01 AM

JavaScript has many flaws. It has horrible memory-consuming habits. Even after a decade of optimizations the interpreted language still can bring modern machines to a crawl, and completely halt lesser machines like phones and tablet.

 

It is java script specyfic or this is related in equal to more such high level scripting languages with implicit garbage colection? if for example python would be used in browsers would it be better? (I know javascript very little, by lookin on some game sources written in it and these sources looked quite nice, much more condensed than c yet highly readable, and dynamic of the game was also quite high, I was surprised with that)


Edited by fir, 15 August 2013 - 02:36 PM.


#8 RivieraKid   Members   -  Reputation: 375

Posted 15 August 2013 - 07:18 AM

w3c is completely vested in not allowing competing development technologies on the web.

 

Imagine if all operating systems only came bundled with the ability to run 1 language?

 

its total anti-competitive.

 

JavaScript is a waste of time and money, it easily takes 10x longer to make stuff using JavaScript / html than the next alternative. There used to interesting websites built with advancing technologies, every year they got more bells and whistles, now there are none. People hi fived themselves when they can run quake2 in a browser in javascript a few years ago. Congratz your tech runs like its 15 years old.

 

all plugins should work in all browsers as a standard.



#9 DareDeveloper   GDNet+   -  Reputation: 974

Posted 15 August 2013 - 07:26 AM

Am I wrong or is compiling Dart to JavaScript just a temporary solution? I thought they will try to really establish it once Browsers implement a certain planned abstraction standard that will allow other scripting languages besides JavaScript to run natively.

 

Does anybody think browsers might not survive? That operating systems and apps will replace them and that the internet will get more of a structure somehow?

I think in the not so distant future programs will have to be written for ridiculous amounts of CPUs ... technologies like OpenCL will probably play a role then.

IMO a seamless online experience makes sense. The whole browser technology still thinks in pages.

I personally am hoping that there will be a disruptive new technology and cumbersome web development for several different browsers will be obsolete at some point.

 

Then again, I also hope we will design software soon, rather than program it (abstract development without worrying about the programming / scripting languages). happy.png


Edited by DareDeveloper, 15 August 2013 - 07:30 AM.

Given enough eyeballs, all mysteries are shallow.

ProcGames.com


#10 Code Fox   Members   -  Reputation: 1803

Posted 15 August 2013 - 07:48 AM

@ DareDeveloper

 

 Java and Flash use to promise that, however almost no one likes to program web sites around those platforms any more, due to the fact they are "slow to develop".

Companies want their web sites made as quickly as possible - "as long as it works, who cares if it's efficient"  is their motto wacko.png


Edited by Shippou, 15 August 2013 - 07:48 AM.

Does Anyone Actually Read This ?
 


#11 wintertime   Members   -  Reputation: 1852

Posted 15 August 2013 - 08:07 AM

I found this blog post recently that might be relevant here. Theres some nice background info on the blog(also about DX development), but it feels a bit like 'former employee trying to be offensive', also beware of possibly unsafe for work picture.

http://www.alexstjohn.com/WP/2013/07/25/the-advent-of-web-3d/



#12 Alpha_ProgDes   Crossbones+   -  Reputation: 4692

Posted 15 August 2013 - 08:18 AM

For clarity, I'm not arguing whether or not Javascript is bad, but I'm wondering if there could be other or even better alternatives to Javascript.


Beginner in Game Development? Read here.
 
Super Mario Bros clone tutorial written in XNA 4.0 [MonoGame, ANX, and MonoXNA] by Scott Haley
 
If you have found any of the posts helpful, please show your appreciation by clicking the up arrow on those posts Posted Image
 
Spoiler

#13 frob   Moderators   -  Reputation: 22683

Posted 15 August 2013 - 10:40 AM

For clarity, I'm not arguing whether or not Javascript is bad, but I'm wondering if there could be other or even better alternatives to Javascript.

 

Yes there can, and yes there are.  They are generally implemented as browser plugins. Flash and Java are the two prime examples, and Shockwave, Silverlight/Moonlight, and the Unity3D Plugin are also fairly popular.

 

Flash has gained native browser support for several browsers. Java once had direct browser support for a time both through Netscape and through what was once called the HotSpot web browser; the release model and continuous flow of bugs made Netscape decouple it, and HotSpot evolved out of being a compiler attached to a generic web browser, it dropped the browser aspect moving into a general Java development tool.


Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I write about assorted stuff.


#14 cadjunkie   Members   -  Reputation: 1338

Posted 15 August 2013 - 11:38 AM

JavaScript is definitely not the quickest programming language out there. As Brandon Jones, the creator of the glMatrix lib, said about JS libs:  "Even the most naive of C matrix libs would run circles around the best javascript libs." No matter what you end up doing, JS just isn't going to be quick, although engines like V8 have helped a lot.

 

I don't think JS is going anywhere anytime soon. It's seen a resurgence in the past few years and newer, shinier technologies are building on it, like WebGL. Combine that with popular libs like Node.js and jQuery and you've got a recipe for staying power. There are certainly other languages out there better suited for any task than JS, but they might never overtake JS's popularity. I'd say, for right now, it's the language of the client-side Web.



#15 Alpha_ProgDes   Crossbones+   -  Reputation: 4692

Posted 15 August 2013 - 12:05 PM


In my own opinion, AS is a more dynamic language than JS,

This answered my question.

 

 

 

however the question is "what is the next big thing? " .

This completely twisted my question into something else smile.png

 

I know that ClojureScript has been trying to make some headway into the client-side arena.


Edited by Alpha_ProgDes, 15 August 2013 - 12:06 PM.

Beginner in Game Development? Read here.
 
Super Mario Bros clone tutorial written in XNA 4.0 [MonoGame, ANX, and MonoXNA] by Scott Haley
 
If you have found any of the posts helpful, please show your appreciation by clicking the up arrow on those posts Posted Image
 
Spoiler

#16 cowsarenotevil   Crossbones+   -  Reputation: 2098

Posted 15 August 2013 - 12:25 PM

The last two languages I've toyed with have been ActionScript 3 and JavaScript. I certainly don't have anything more than a basic knowledge of either, but I really wasn't especially impressed with ActionScript. Some of its features seemed nice on paper, but didn't work that well in practice. The first example that comes to mind is working with a class (not written by me) that had variable number of constructor arguments (with the ... notation). It worked perfectly fine until I needed to extend that class and found that there was in fact no way to pass those arguments to the superconstructor. I guess the idea is that you wouldn't use a variable number of arguments in that case, but it still seemed like a pretty arbitrary limitation to me.

In any event, I don't think JavaScript is necessarily better (and it certainly has weird quirks), but at least so far I haven't found myself desperately wishing I was using ActionScript instead. I could change my opinion as I gain more experience, but for now I wouldn't be too sad if Flash just kind of went away altogether, and it does seem that its dominance is waning quite a bit.


-~-The Cow of Darkness-~-

#17 markr   Crossbones+   -  Reputation: 1653

Posted 15 August 2013 - 01:10 PM

Because we can now compile almost *anything* into Javascript, and the ability will only increase, I don't think it's a problem.

 

Everyone is now targetting Javascript - Adobe Flash, we have LLVM (enscripten). And Mozilla's "asm.js" - which is just an extension of Javascript (actually, erm, a reduced set of JS, but with an efficient native compiler) means that we might be able to approach (in some cases) native performance using Javascript.

 

So I think that all the other things - Dart, NaCl etc, are just distractions, all roads appear to lead to Javascript. Although we're all using js under the covers, many of us won't be writing much of it however.



#18 tstrimple   Prime Members   -  Reputation: 1733

Posted 15 August 2013 - 01:19 PM

Yes there can, and yes there are.  They are generally implemented as browser plugins. Flash and Java are the two prime examples, and Shockwave, Silverlight/Moonlight, and the Unity3D Plugin are also fairly popular.

 

By what definition are flash and java better than Javascript for the web? They are both dying out rather quickly now and for a good reason.



#19 Code Fox   Members   -  Reputation: 1803

Posted 15 August 2013 - 01:23 PM

 

Yes there can, and yes there are.  They are generally implemented as browser plugins. Flash and Java are the two prime examples, and Shockwave, Silverlight/Moonlight, and the Unity3D Plugin are also fairly popular.

 

By what definition are flash and java better than Javascript for the web? They are both dying out rather quickly now and for a good reason.

 

 Java is still going strong for app development ...


Does Anyone Actually Read This ?
 


#20 tstrimple   Prime Members   -  Reputation: 1733

Posted 15 August 2013 - 01:26 PM

Am I wrong or is compiling Dart to JavaScript just a temporary solution? I thought they will try to really establish it once Browsers implement a certain planned abstraction standard that will allow other scripting languages besides JavaScript to run natively.

 

And what motivation does Microsoft or Mozilla have to run Dart in their browsers?






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS