4 ms·
From the GitHub Page [0]: --- Real use cases so far On the server: LiteScript itself LiteScript is written in LiteScript, every new version must be able to
by basicallydan 13y ago
From the GitHub Page [0]:
---
Real use cases so far
On the server: LiteScript itself
LiteScript is written in LiteScript, every new version must be able to compile itself to be ready for release. LiteScript is a real-use case of a heavy, server run, text processing, class based program written in LiteScript.
---
I'm must be missing something here, but this kinda blows my mind a little bit. Somewhere in the compilation process there must be somethign which isn't LiteScript?
Anyway, this does look cool. Good job.
[0]: https://github.com/luciotato/LiteScript#real-use-cases-so-far https://github.com/luciotato/LiteScript#real-use-cases-so-fa...
- skymt 13y agoIt's quite common for compilers to be written in the language they compile. http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29 http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29
- Kronopath 13y agoNo, not really, it's the same way that C compilers are written in C. The first one was written in another language like assembly, to be sure, but after that you could use the first compiler to write a second compiler in C, and the second one to write a third one, and so on. In this case, I'm assuming the first version of the compiler was written in Javascript. After that, they could use the first Javascript-based Litescript compiler to compile a Litescript version of the compiler, and once you have that you never have to go back to Javascript again.
- basicallydan 13y agoCool, I did think it might be that, but when I read "LiteScript is written in LiteScript, every new version must be able to compile itself to be ready for release" it just kinda makes it sound like some kind of magic is happening, where a version of the language, before even being compiled, can somehow compile itself in some super clever way that I was just missing. Thanks for the explanation :)
- yeukhon 13y agoBut this is still in Javascript. I thought the whole point was to produce a LiteScript compiler in LiteScript to compile to LiteScript. https://github.com/luciotato/LiteScript/tree/master/devel/liteCompiler-v0.6 https://github.com/luciotato/LiteScript/tree/master/devel/li...
- ma2rten 13y agohttp://en.wikipedia.org/wiki/Self-hosting http://en.wikipedia.org/wiki/Self-hosting