Paul Krill
Editor at Large

Based in C and similar to Swift, Gravity offers portable code for iOS and Android

news
Mar 10, 20171 min

The embeddable language can be used for mobile and desktop development

Gravity, an embeddable, lightweight programming language written in C, is an option for mobile application development while backing multiple programming variants.

Supporting data-driven, functional, object-oriented, and procedural programming, Gravity was built for Creo Lab’s Creo design tool for the Mac, but it’s a standalone product, developer Marco Bambini said. Currently in beta, open source Gravity enables developers to easily write portable code for iOS and Android. It also supports desktop and embeddable development.

A class-based concurrent scripting language with syntax similar to Swift, Gravity can be compiled on any platform using a C99 compiler, according to the project description. The compiler and virtual machine combined add fewer than 200KB to the executable on on a 64-bit system.

Bambini sees Gravity as complementary companion to Swift and Java development for mobile platforms. The language was supported by a pair of open source projects. The inspiration for closures comes from the  Lua programming language; specifically from the “Closures in Lua” document, while the  Wren concurrent scripting language inspired fibers, upvalues handling, and some parts of the garbage collector.

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