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.
Shawna Martell shares practical strategies to effectively manage legacy code and tech debt. Learn how to lift existing code, gain buy-in for improvements, and build new systems with future maintainability in mind using encapsulation, testing, and linting. She explains the Strangler Fig pattern and provides actionable advice for creating code that ages gracefully and minimizes future headaches.
By Shawna MartellA rigid hierarchical dynamic between senior and junior software engineers can stifle innovation, discourage fresh perspectives, and create barriers to collaboration. According to Beth Anderson, senior engineers can actively learn from their junior counterparts. She suggests creating an environment of mutual growth, psychological safety, and continuous learning.
By Ben LindersFor systems that require strict synchronization—like distributed databases, telemetry pipelines, or event-driven architectures—handling leap seconds incorrectly can lead to data loss, duplication, or inconsistencies. As such, managing leap seconds accurately ensures system reliability and consistency across environments that depend on high-precision time.
By Craig RisiAdi Polak, a Confluent expert, addressed AI precision challenges at QCOn London 2025, introducing agentic RAG to enhance data retrieval accuracy. With insights on the limitations of current systems and actionable strategies for implementation, Polak emphasized precision as a crucial factor in operationalizing AI, building trust, and improving business outcomes.
By Steef-Jan WiggersRadical AI has announced the release of TorchSim, a next-generation atomistic simulation engine built natively in PyTorch and designed for the MLIP (machine-learned interatomic potentials) era.
By Robert Krzaczyński
© 2025 Created by Michael Levin.
Powered by