Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Oracle Wants To Embed JavaScript In Java Code

  1. #1
    Join Date
    Jan 2007
    Posts
    14,800

    Default Oracle Wants To Embed JavaScript In Java Code

    Phoronix: Oracle Wants To Embed JavaScript In Java Code

    Oracle presented a new project in recent names that is named Nashorn. The Nashorn Project comes down to a high-performance JavaScript run-time for OpenJDK and can be used so developers can embed JavaScript within Java code...

    http://www.phoronix.com/vr.php?view=MTIzNjI

  2. #2
    Join Date
    Dec 2011
    Posts
    2,048

    Default Why?

    Why? Why does Oracle want to put JavaScript in Java?
    JavaScript have nothing to do with Java, except being similar in name.

    They should make 'var' keyword declaration like in C# and add collection initializers for stuff like List, ArrayList, etc.

  3. #3
    Join Date
    Sep 2011
    Posts
    184

    Default

    Quote Originally Posted by uid313 View Post
    Why? Why does Oracle want to put JavaScript in Java?
    JavaScript have nothing to do with Java, except being similar in name.
    We all know that and, I guess, Oracle as well.

    So what's your point?

  4. #4
    Join Date
    May 2012
    Posts
    811

    Default

    Quote Originally Posted by alexThunder View Post
    We all know that and, I guess, Oracle as well.

    So what's your point?
    I know it and he knows it that someone's guessing something, but what's your point?

  5. #5
    Join Date
    Dec 2010
    Location
    MA, USA
    Posts
    1,304

    Default

    I too would like to know why they intend to do this. I'm not sure what the gain would be to implement JavaScript. I'm not saying its a dumb or bad idea, because I don't understand the intention of it. Java is more advanced than JS and while i haven't dealt with either that much, I found Java to be overall easier to use as a language. JS is naturally relatively disorganized.

  6. #6
    Join Date
    Jul 2009
    Posts
    50

    Default

    I guess they just want to make it easy to run some scripts directly from applications (i.e. letting the user configure something).

    And btw what a fantastic name... A Java based JS engine called Rhino has existed for ages, now they call it Nashorn (= Rhino in German).
    But since it uses the invokedynamic bytecode which was introduced with Java 7 it might even be pretty well perfoming.
    The Java VM could even be a viable choice for dynamic languages

  7. #7
    Join Date
    Mar 2008
    Posts
    574

    Default

    It's funny how someone here, that is NO ONE, thinks to know more things than a multi billionare company like ORACLE.

    Funny funny funny. Oracle needs you, Oracle needs your consultations, try contacting them: THEY NEED YOU.

  8. #8
    Join Date
    Dec 2009
    Posts
    492

    Default

    Quote Originally Posted by schmidtbag View Post
    I too would like to know why they intend to do this. I'm not sure what the gain would be to implement JavaScript. I'm not saying its a dumb or bad idea, because I don't understand the intention of it. Java is more advanced than JS and while i haven't dealt with either that much, I found Java to be overall easier to use as a language. JS is naturally relatively disorganized.
    There's a pattern called fluid logic tha could use just that. I'm not saying that's why they're doing, but there is at least one reason.

  9. #9
    Join Date
    Apr 2010
    Posts
    734

    Default

    Quote Originally Posted by uid313 View Post
    Why? Why does Oracle want to put JavaScript in Java?
    JavaScript have nothing to do with Java, except being similar in name.

    They should make 'var' keyword declaration like in C# and add collection initializers for stuff like List, ArrayList, etc.
    Because there's a lot of interest in using scripting languages on JVM, to the point of having enhancements to the last few JVM releases to improve performance for those cases. And Javascript is the standard client-side scripting language for web apps, and Oracle obviously see people wanting to use the same scripting language on both frontend and backend. The popularity of things like Node.js suggests they might be right.

  10. #10
    Join Date
    Dec 2011
    Posts
    2,048

    Default C#

    Maybe Oracle ought to implement C# in JVM?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •