Terra - A low-level counterpart to Lua

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
bbguimaraes
Chaos Rift Junior
Chaos Rift Junior
Posts: 294
Joined: Wed Apr 11, 2012 4:34 pm
Programming Language of Choice: c++
Location: Brazil
Contact:

Terra - A low-level counterpart to Lua

Post by bbguimaraes »

I don't have much experience with lua (other than reading books, articles and code and fidling with some code), but isn't this an incredible thing, especially to game development?

http://terralang.org/
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Terra - A low-level counterpart to Lua

Post by Falco Girgis »

Officially spent all morning reading and researching Terra. What an amazing fucking idea and an amazing language. The guys at Standord who created this are total badasses. It JIT compiles into machine code and interoperates seamlessly with Lua and C.

The thing that I thought was the most orgasmic touch was using Lua to conditionally compile Terra. In essence, Terra is a clean, core, low-level language (analogous to C/++) with Lua as a pretty, high-level precompiler language (analogous to C macros and C++ templates, only a million times prettier).

The language also has vector data types with SIMD extensions, and I saw some code for using CUDA in the GitHub.

The only reason I'm not going to be using this in ES are the dependencies upon LuaJIT (which doesn't support every architecture we need) and LLVM/clang (which are going to be rather large runtime dependencies to do the compilation).

edit:

Additional literature for you scholarly types: http://theory.stanford.edu/~aiken/publi ... pldi13.pdf
User avatar
TheBuzzSaw
Chaos Rift Junior
Chaos Rift Junior
Posts: 310
Joined: Wed Dec 02, 2009 3:55 pm
Current Project: Paroxysm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:

Re: Terra - A low-level counterpart to Lua

Post by TheBuzzSaw »

Image
Post Reply