4 ms·
I haven't taken the time to play with it yet, but I think it would be nice to write a little sugar language that compiles to Terra, with inline macros that comp
by atrilumen 13y ago
I haven't taken the time to play with it yet, but I think it would be nice to write a little sugar language that compiles to Terra, with inline macros that compile to Lua.
In the meantime, I'm watching Terra.
- jnbiche 13y agoMoonscript could be easily modified to accomodate Terra: http://moonscript.org/ http://moonscript.org/ Personally, through, Lua is sugary enough for me, particularly if I use Penlight.
- atrilumen 13y agoSure, I considered using Moonscript as a starting point. It looks pretty neat. But what I have in mind is just a little different. I want explicit type declaration, and I don't want to type "->". So, something more of this character: void chant( string thing, int times ): for int i in range( times ): print( "$thing $i" ) Also, I'd like to write the compiler in Terra. I'm pretty fond of Lua just the way it is as well, but I'm picky and stubborn and idealistic. I keep telling myself not to think about it, but I can't help but daydream about writing a language. I think Terra presents a fair opportunity to get it out of my system.
- trentmb 13y agoThen you can compile it to C++, which, thanks to asm.js/emscripten, can be compiled to JS!