Luon is the New Programming Language on the Block, Combining Lua and Oberon

4 months ago 36
  • Published on December 16, 2024
  • In AI News

The language enables developers to declare external procedures, allowing integration with Lua and C libraries through the LuaJIT foreign function interface.

Luon

Luon, a newly introduced high-level programming language, merges syntax elements from Oberon+, Oberon-07, and Oberon-2, while incorporating features from Lua and targeting the LuaJIT VM. With its statically typed design, Luon offers a fresh take on Lua, as reflected in its name, a combination of “Lua” and “Oberon.”

The language enables developers to declare external procedures, allowing integration with Lua and C libraries through the LuaJIT foreign function interface. This feature enhances the reusability of existing libraries, making Luon a versatile choice for programmers.

The language is announced with a whole new IDE which makes it even better for developers using it. 

According to the project’s creator, Rochus Keller, the development of Luon stems from his experience with Smalltalk-80 and SOM VM implementation, along with aspirations to create a LuaJIT-based Interlisp VM.

While similar to Oberon+, Luon eliminates pointers, relying instead on reference semantics for all structured data types, which are dynamically created. The language introduces key data types such as ARRAY, HASHMAP (ensuring compatibility with Lua), and an immutable STRING type with value semantics.

Luon specifically addresses several shortcomings observed in Lua during prior projects, offering improvements such as:

  • Conditional compilation: Enables or disables debugging statements to save computation time.
  • Efficient constants: Eliminates the need for local slots or hashed element access.
  • Inline declaration: Provides better code structuring without additional context switches.
  • Compile-time error detection: Prevents implicit global declarations and other errors.
  • Strict local usage: Ensures locals cannot be used before declaration.
  • Switch/case statements: Reduces repetitive relational expressions.

The language specification and sample code are available in the project’s repository, providing developers a comprehensive guide to Luon’s capabilities.

Discussions on Hacker News highlight how developers have been waiting for such a programming language. Keller, also present in the discussions, explained that he intercepted his Micron language projects to implement Luon, as this seemed more important to him at this moment.

Picture of Mohit Pandey

Mohit Pandey

Mohit writes about AI in simple, explainable, and sometimes funny words. He holds keen interest in discussing AI with people building it for India, and for Bharat, while also talking a little bit about AGI.

Association of Data Scientists

GenAI Corporate Training Programs

India's Biggest Developers Summit

February 5 – 7, 2025 | Nimhans Convention Center, Bangalore

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

February 5 – 7, 2025 | Nimhans Convention Center, Bangalore

Rising 2025 | DE&I in Tech & AI

Mar 20 and 21, 2025 | 📍 J N Tata Auditorium, Bengaluru

Data Engineering Summit 2025

May, 2025 | 📍 Bangalore, India

MachineCon GCC Summit 2025

June 2025 | 583 Park Avenue, New York

September, 2025 | 📍Bangalore, India

MachineCon GCC Summit 2025

The Most Powerful GCC Summit of the year

discord icon

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Read Entire Article