Announcement

Collapse
No announcement yet.

Oracle Wants To Embed JavaScript In Java Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • uid313
    replied
    Originally posted by tammy View Post
    Implementing C# in JVM? I do not think it's possible.
    Why not?

    Python, Ruby, Tcl, Lua and other languages are already implemented a top of JVM.
    I don't see why C# could not be implemented in JVM.

    Leave a comment:


  • tammy
    replied
    Implementing C# in JVM? I do not think it's possible.

    Leave a comment:


  • CARMEN
    replied
    Originally posted by phoronix View Post
    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
    Java and Javascript are two different things!

    Leave a comment:


  • Stephen_A
    replied
    Oracle wants to put JavaScript in Java?
    JavaScript and Java are two totally different things. .

    Leave a comment:


  • Hulings5Robert
    replied
    Hi,guys.I am new





    Leave a comment:


  • notzed
    replied
    obvious reasons

    There are a few blatantly obvious reasons why oracle would do this:
    • To advertise the jvm as a viable scripting virtual machine. All scripting engines have some sort of virtual machine, but the jvm is more advanced than most others (if not all).
    • JavaFX includes a complete webkit based web widget with javascript, so they need one. It's using the webkit one now afaik but obviously it would make much sense to use a single vm.
    • Add to the java "eco-system" with another tool for use by developers and integrators: e.g. as an extension language, or simply as another execution platform for alternative languages.

    Leave a comment:


  • uid313
    replied
    C#

    Maybe Oracle ought to implement C# in JVM?

    Leave a comment:


  • Delgarde
    replied
    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.

    Leave a comment:


  • bug77
    replied
    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.

    Leave a comment:


  • bulletxt
    replied
    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.

    Leave a comment:

Working...
X