Yet another JVM language? Whiley takes a fresh approach

While it might seem like there were already plenty of languages riding atop the JVM, ranging from JRuby to Scala, Groovy to Kotlin, the developers of the open source Whiley language believe they still have something new to offer by tackling the verifying compiler challenge.

A verifying compiler uses mathematical and logical reasoning to check program correctness. "The question I'm trying to answer is whether or not it's possible to build a verifying compiler that could genuinely be used in practice," said main developer David Pearce, a senior lecturer in computer science at the University of Wellington, in New Zealand. "That means it's got to generate reasonably efficient code, it's got to have all the bells and whistles we expect from a modern language, and the compile-time verification has got to work well enough that it adds value and doesn't get in the way."

Whiley uses extended static-checking to eliminate errors at compile time, and like Scala, it leverages both object-oriented and functional programming. Pearce sees it as best suited for apps where safety and security are critical. "For example, the infamous Heartbleed bug contained a buffer overrun, which is exactly the kind of thing that Whiley checks for," he said.

But Whiley, currently is at version 0.3.40, is not ready for prime time yet. "Probably, the best use at the moment is really to help learn about verification," said Pearce. The intent is to improve the verification system so that it could verify realistic programs. "Beyond that, I've just finished a significant rework of the intermediate language used within the compiler. This opens up a lot of possibilities for more interesting back ends other than just the JVM. I'm particularly interested in a C or perhaps LLVM back end, and also JavaScript. I've also been playing around with embedded systems and want to see Whiley running on a micro-controller."

IDG Insider


« EU privacy watchdogs seek answers from WhatsApp and Yahoo about users' data


Pennsylvania man sentenced to 18 months for celeb hacking »
IDG Connect

IDG Connect tackles the tech stories that matter to you

  • Mail

Recommended for You

How to (really) evaluate a developer's skillset

Adrian Bridgwater’s deconstruction & analysis of enterprise software

Unicorns are running free in the UK but Brexit poses a tough challenge

Trevor Clawson on the outlook for UK Tech startups

Cloudistics aims to trump Nutanix with 'superconvergence' play

Martin Veitch's inside track on today’s tech trends


Is your organization fully GDPR compliant?