Codetown ::: a software developer's community
Last night we talked about running Javascript dynamically from Java. Java 8 includes Nashorn. Adam Davis describes Nashorn in his new book on Java 8:
https://leanpub.com/whatsnewinjava8/read#leanpub-auto-nashorn
"Nashorn replaces Rhino as the default JavaScript engine for the Oracle JVM. Nashorn is much faster since it uses the invokedynamic
feature of the JVM. It also includes a command line tool (jjs)"
Tags:
I've played around with calling JavaScript from within Java -- but only really on toy projects. Would be interesting to hear peoples real world use cases deployed to production.
Chris, There's an article in Java mag about various scenarios using Nashorn. http://www.oraclejavamagazine-digital.com/javamagazine/jan_feb_2014... It also shows how to call Java from within Nashorn.
Very cool -- Thanks for the link!
Codetown is a social network. It's got blogs, forums, groups, personal pages and more! You might think of Codetown as a funky camper van with lots of compartments for your stuff and a great multimedia system, too! Best of all, Codetown has room for all of your friends.
Created by Michael Levin Dec 18, 2008 at 6:56pm. Last updated by Michael Levin May 4, 2018.
Check out the Codetown Jobs group.
JetBrains IDE Services aims to help enterprises manage their JetBrains tool ecosystem more efficiently and boost developer productivity at the enterprise scale through the integration of AI, remote collaboration, and more.
By Sergio De SimoneIn this podcast Shane Hastie, Lead Editor for Culture & Methods spoke to Dannielle Pearson about the importance of critical thinking in technology.
By Dannielle PearsonThis week Microsoft released Preview 6 of the .NET Aspire project. Significant changes have been implemented to enhance the security and reliability of the platform. This release, version 8.0.0-preview.6.24214.1, introduces several noteworthy additions, like changes related to templates, components, dashboard, testing and more.
By Almir VukLily Mara, Hunter Laine walk through the design of a system, its performance characteristics, and how they scaled it.
By Lily Mara, Hunter LaineOne important design principle in software development is DRY – Don’t Repeat Yourself. However, when DRY is applied to test code, it can cause the test suite to become brittle — difficult to understand, maintain, and change. In this article, I will present some indications that a test suite is brittle, guidelines to follow when reducing duplication in tests, and better ways to DRY up tests.
By Kimberly Hendrick© 2024 Created by Michael Levin. Powered by