Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

v2.0

Latest
Compare
Choose a tag to compare
@rogerbinns rogerbinns released this 12 Jan 08:00
· 8 commits to master since this release

There is now a compatible Objective C solution that works on iOS and Mac

Enhanced jmp-compile to evaluate constants in the source (eg 3+4 is replaced with 7, and True or 7 is replaced with True). It will also omit unreachable code (eg if False). You can turn this optimisation off with --no-optimizations. You can also supply your own constants such as DEBUG=True or VERSION="2.3". The resulting bytecode still works correctly even against Jia Mini Python version 1.0.

jmp-compile detects trying to assign to builtin constants (eg True=0)

jmp-compile now understands list comprehensions. The resulting bytecode still works correctly even against Jia Mini Python version 1.0.

Added toPyReprString for Java

bool now always returns a value. Before it would give TypeError for unknown types, which now give True.

Correct Java string.split for various corner cases.

Made Java implemented methods work correctly as dictionary keys.

Calling a Java non-varargs method with an incorrect number of args now gives the correct exception type (TypeError)

Deal with -2147483648 / -1 (gives -2147483648 because + 2147483648 would be an overflow). On Intel processors this operation would cause a hardware fault like dividing by zero does, so similar precautions are taken. Note that Jia Mini Python only uses 32 bit signed integers.

Fix global lookup for LOAD_NAME (Issue 14)