My first thought on this topic was a python-to-pharo translator, like my first Python script cToPy. (Search for ccc.c-to-python in leoPy.leo). But I quickly put this on the back burner. A proper translation would require deep semantic analysis. For example, you have to know that d is a dict in order to send the proper Pharo messages to d.
Btw, the reverse has already been done. See Python3Generator <https://github.com/juliendelplanque/Python3Generator>. Yesterday I went looking for the Pharo sources <https://github.com/pharo-project>. I particularly want to find the Pharo sources for the VM. Despite the obvious link, I have only found C sources. Can anyone tell me where the Pharo sources for the VM are? This morning I asked myself the question, would it be possible to write (say in Pharo) a VM for the *python* byte codes? This might make it possible to create a reloadable python. (Insert catchy neologism for Pharo + Python here). This isn't totally unreasonable. There is a common core used by Pharo, Smalltalk, etc. This would be an overwhelming thought if I actually intended to do anything about it ;-) I don't, but perhaps it will spur more doable ideas... Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
