Eugene Chernyshov wrote:
  I don't think it is possible for whole python. I'm using this language
for many years, and can say there are many sub water stones. Python
objects have more operators then Neko ones and, for built-in types, all
this operator written in C. So, you have to rewrite not only target of
code-gen, but also whole operators, functions, classes and modules from
built-ins.

Well ... yes. Python does use a lot of runtime stuff, and that needs to be implemented in addition to the actual compiler, of course. Having said that, I don't think it's necessarily *that* difficult, it might only be a lot of work to implement all those built-in types. And regarding language features, try/finally blocks might get tricky. And generators, at least without native coroutines or call/cc for Neko (not-so-subtle hint here ;).

I think will be easier to compile Neko into Python VM.

Yes as well, because Neko is a much simpler language, with simpler data types. But don't give me ideas ;)

Regards,
Felix Krull

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to