summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
2014-01-22Second stage of qstr revamp: uPy str object can be qstr or not.Damien George
2014-01-21Merge branch 'master' of github.com:micropython/micropythonDamien George
Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-20unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky
2014-01-20Don't preimport socket module.Paul Sokolovsky
2014-01-20unix socket: Add send() and recv() methods.Paul Sokolovsky
CPython _socket actually have only those and doesn't provide stream interface (higher-level CPython "socket" what adds this). +516 bytes x86.
2014-01-20unix io.FileIO: Add iteration support.Paul Sokolovsky
A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
2014-01-20Rename unix binary to 'micropython'.Damien George
2014-01-20unix: Implement sys.argv.Paul Sokolovsky
2014-01-19Change int to uint for n_args in function with variable arguments.Damien George
2014-01-19py: Add full traceback to exception printing.Damien George
2014-01-19Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-19Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky
2014-01-18Fix warnings about int/pointer casting.Damien George
2014-01-18Merge pull request #194 from pfalcon/socketDamien George
Add lean ("raw") socket module.
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2014-01-19Add lean ("raw") socket module.Paul Sokolovsky
2014-01-18Make VM stack grow upwards, and so no reversed args arrays.Damien George
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
2014-01-17Add long int implementation using C long long type, enable for unix port.Paul Sokolovsky
2014-01-15Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George
Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
2014-01-15Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George
Conflicts: tests/basics/tests/exception1.py
2014-01-15Merge branch 'master' of github.com:dpgeorge/micropythonDamien George
2014-01-15Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky
2014-01-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-15type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky
2014-01-14Merge pull request #170 from chipaca/masterDamien George
made DEBUG control CFLAGS in Makefiles other than stm as well.
2014-01-14Implemented int(str) in UNIXxyb
2014-01-13Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky
2014-01-13made DEBUG control CFLAGS in Makefiles oter than stm as well.John R. Lenton
2014-01-09py: Implement base class lookup, issubclass, isinstance.Damien George
2014-01-09Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
2014-01-08Make build output quieter.Dave Hylands
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
2014-01-08py: add variable argument exception constructor function.Damien George
Addresses issue #104.
2014-01-08unix: Add basic implementation of io.FileIO object.Paul Sokolovsky
Note: only read/write/close methods are defined so far, and class is not exposed (use open() factory function, as usual).
2014-01-07Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George
ian-v-cplusplus Conflicts: py/objcomplex.c
2014-01-07Factor and simplify Makefile's and mpconfig, part 2.Damien George
2014-01-07Factor and simplify Makefile's and mpconfig.Damien George
2014-01-06Revert MP_BOOL, etc. and use <stdbool.h> insteadian-v
2014-01-06Co-exist with C++ (issue #85)ian-v
2014-01-05Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.
2014-01-04Convert USE_READLINE config option to be consistent with others.Paul Sokolovsky
2014-01-04Split qstr into pools, and put initial pool in ROM.Damien George
Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
2014-01-04Improve configurability for native x64/thumb emitter.Damien George
With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective emitters and assemblers will not be included in the code. This can significantly reduce binary size for unix version.
2014-01-04Add basic implementation of slice object.Paul Sokolovsky
So far, only start and stop integer indexes are supported. Step is not supported, as well as objects of arbitrary types.
2014-01-04Move INT_FMT, etc. declaration into global mpconfig.h .Paul Sokolovsky
This in particular makes it available for stm port.
2014-01-03Rename default config file to mpconfig.h, and port's to mpconfigport.h.Paul Sokolovsky
mpconfig.h will automatically pull mpconfigport.h.
2014-01-03Change mp_compile so that it returns a function object for the module.Damien George
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.