• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Why Compatibility of java6 with scripting languages

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
New feature of Java 6 has provided compatibity with various scripting languages. Using java we can do everything that scripting languages can do. Then Why direct compatibility with scripts is provided?
[ September 24, 2008: Message edited by: minal silimkar ]
 
Rancher
Posts: 4327
59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using assembly language (or machine language), we can do everything Java can do. Why provide anyone with any alternate ways to express their programs?
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is useful for containers that can plugin different type of components. A user can write a plugin in java or in a popular scripting language like python. The provision in java to include and run a script as any other java program makes life easy for such scenarios.
Otherwise in a normal programming scenarios where in you are implementing some business logic or writing a business specific implementation, one would not typically invoke a script from within java.
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My question was


Using java we can do everything that scripting languages can do. Then Why direct compatibility with scripts is provided?


Any scenario where we will choose scripting languages rather than java code?
[ September 24, 2008: Message edited by: minal silimkar ]
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

minal:
My question was

Any scenario where we will choose scripting languages rather than java code?



I thought, i answer this question only!
Didn't you find this:

It is useful for containers that can plugin different type of components. A user can write a plugin in java or in a popular scripting language like python. The provision in java to include and run a script as any other java program makes life easy for such scenarios.


relevant?
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Originally posted by Nitesh Kant


It is useful for containers that can plugin different type of components. A user can write a plugin in java or in a popular scripting language like python. The provision in java to include and run a script as any other java program makes life easy for such scenarios.



Thank you for your answer Nitesh, but your answer is more on what we can do? and how we can do?

My question is, what are the situation where we require specifically to go with scripting languages rather than using java code? Why we require to embed any scripting language in java code, where java can do anything that a scripting language can do?
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're missing the point. It's not about what is required -Mike's post ironically points out that using any high-level language is not required- but what is convenient for achieving a certain goal. If using some other (scripting) language makes it easier, then it may be a valid choice.

Executing code (whatever its origin) that changes at runtime is one use case. A Java code change generally involves compilation, and thus a restart of the application (while it's possible to do this at runtime, it gets tricky fast, so for practical purposes it's most often not feasible). Scripting languages are a way around this.
[ September 24, 2008: Message edited by: Ulf Dittmer ]
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic