diff options
author | David Walter Seikel | 2016-02-26 18:18:35 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-02-26 18:18:35 +1000 |
commit | ca1331e2d253d4a399cdbe8c7d0782e6662080c4 (patch) | |
tree | 58595591905163a1f4647f5ac3c25da701b0efaf /docs/common/LunaCy.txt | |
parent | Notes about a web based 3D viewer. Happy someone else is working on it. B-) (diff) | |
download | SledjHamr-ca1331e2d253d4a399cdbe8c7d0782e6662080c4.zip SledjHamr-ca1331e2d253d4a399cdbe8c7d0782e6662080c4.tar.gz SledjHamr-ca1331e2d253d4a399cdbe8c7d0782e6662080c4.tar.bz2 SledjHamr-ca1331e2d253d4a399cdbe8c7d0782e6662080c4.tar.xz |
Added LunaCy ideas.
Diffstat (limited to '')
-rw-r--r-- | docs/common/LunaCy.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/common/LunaCy.txt b/docs/common/LunaCy.txt new file mode 100644 index 0000000..ea23ef2 --- /dev/null +++ b/docs/common/LunaCy.txt | |||
@@ -0,0 +1,28 @@ | |||
1 | Another crazy idea I just had. lol | ||
2 | |||
3 | Write a Lua like language as a thin wrapper around C. Try to keep it | ||
4 | out of C++ territory, or call it C++ done right. B-) | ||
5 | |||
6 | It's basically a hybrid of Lua and C syntax, so could be called LuaC, | ||
7 | though I quite like LunaCy, since Lua and Luna both mean "The Moon". | ||
8 | Plus, as mentioned above, it's a crazy idea. lol | ||
9 | |||
10 | The first rule of LunaCy is - | ||
11 | The voices in my head don't talk about LunaCy. B-) | ||
12 | |||
13 | The idea is to have our cake and eat it to. A high level language that | ||
14 | mostly looks like Lua, but is actually a lower level, coz it's mostly | ||
15 | pure C with little overhead. Though I also like the idea of sticking | ||
16 | with C semantics, but with Lua features. Dealing with the Pascal like | ||
17 | semantics of Lua might not work so well, especially "end". | ||
18 | |||
19 | So start with Lua tables, and implement that in C. EFL might be | ||
20 | interested in this bit, since Raster has always wanted the ability to | ||
21 | pass Lua tables as parts of EFL messages. Should also have a | ||
22 | translation function, so we can pass these tables between C and Lua. | ||
23 | |||
24 | "..." might be hard to deal with. Though maybe varargs with callbacks? | ||
25 | |||
26 | Things like ".." would have to be some sort of syntax parser to turn | ||
27 | that into C. | ||
28 | |||