Paul Krill
Editor at Large

Web-friendly Smalltalk gets JavaScript upgrades

news
Dec 15, 20162 mins

The open source Amber derivative bridges Smalltalk syntax to JavaScript code

Melding Smalltalk and JavaScript for web development, the Amber language will get user experience improvements, better performance, and support for current JavaScript loaders.

Debuting in 2011, open source Amber is a Smalltalk-inspired language that compiles to JavaScript and offers interaction with JavaScript objects. “Smalltalk has a minimal and very clean syntax. It is a pure object-oriented language where everything is an object,” Amber founder Nicolas Petton said. “Its development environment is something unique: All operations happen on a live system, making prototyping and incremental improvements a breeze.

Plans for improving Amber include a focus on the user experience, with better CLI tooling and automatic upgrades on the docket, current Amber maintainer Herby Vojcik said. “There are shifts in JavaScript world, so Amber will likely try to enter the ECMAScript 6 modules bandwagon and try to play nice with latest generation of JavaScript loaders/builders.”

Also in the works are internal changes to the compiler stack to accommodate syntax additions, better documentation, new libraries, and the addition of Pharo classes and methods. The Pharo language and environment is Amber’s reference implementation.

With Amber, developers can use existing JavaScript libraries directly and pass Amber objects as parameters.”Playing nice with JavaScript also means Amber blends into JavaScript tooling,” said Vojcik. “Amber itself is set of AMD [Asynchronous Module Definition] modules and uses AMD to load other modules if needed. You can use a package manager like bower or NPM, create Amber libraries, and upload them to the package managers.”

Amber is not alone in partnering JavaScript and Smalltalk. The Maria framework does this as well and also uses MVC to build JavaScript applications.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author