Hi Samuel, If I understand your question correctly, you are a bit confused about RPython. Only the interpreter is translated to c and then compiled. The source code to the interpreter is obviously not secret at all, we all work on it and share it on bitbucket.
User code might be secret, but it is not passed through the translation toolchain. In the case of Python on PyPy the user code is compiled to a bytecode very similar to CPython's bytecode. I would say this bytecode is quite readable, so it's significantly more readable than optimized x86 output. I suppose it would be possible to add some obfuscation to the bytecode but I don't know how one would do that effectively without modifying the entire bytecode interpreter and compiler, which would be an undertaking... I may have misunderstood you though, feel free to correct me. Cheers, Dan On Jul 9, 2011 10:24 AM, "Samuel Ytterbrink" <nepp...@gmail.com> wrote: > Hi! > > I was just thinking and then ask my self... Dose writing things in RPython > and then compile the code with translate and a c compiler make it as hard to > read as a c program... thinking that python some times get a hard time being > a commercial tool for app making, companies don't want end users to be able > to read there code. > > Am i correct and if so are there any improvements you could do to make the > interpreter read a more 'seacret' version of python code, some kinde of > binary code( or dose the byetcode work for this). > > Hope this is not a stupid or foolish topic. > > -- > //Samuel Ytterbrink
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev