v2.0 released

6 views
Skip to first unread message

Roger Binns

unread,
Jan 12, 2014, 3:06:01 AM1/12/14
to jia-min...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Project:

https://github.com/rogerbinns/jia-mini-python

Download:

https://github.com/rogerbinns/jia-mini-python/releases

Documentation:

https://github.com/rogerbinns/jia-mini-python

Changes are detailed in the documentation.

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)

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iEYEARECAAYFAlLSTOkACgkQmOOfHg372QRlSQCg2mIYIYopFQibl/zNLQj/ygmU
yxYAnRUle6nBTCttxWmRDNDxWScdkhLZ
=zE0F
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages