<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/scope.c, branch v1.3.5</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.5</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.5'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-09-08T22:05:16+00:00</updated>
<entry>
<title>py: Convert [u]int to mp_[u]int_t in emit.h and associated .c files.</title>
<updated>2014-09-08T22:05:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-09-08T22:05:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7ff996c2377b191ff829e6e03815acf9bfe85a14'/>
<id>urn:sha1:7ff996c2377b191ff829e6e03815acf9bfe85a14</id>
<content type='text'>
Towards resolving issue #50.
</content>
</entry>
<entry>
<title>py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.</title>
<updated>2014-08-30T13:59:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-30T13:59:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4abff7500fb05430a2ce952a2430d4d0ba16047e'/>
<id>urn:sha1:4abff7500fb05430a2ce952a2430d4d0ba16047e</id>
<content type='text'>
Part of code cleanup, working towards resolving issue #50.
</content>
</entry>
<entry>
<title>py: Clean up and simplify functions in scope; add STATIC in compiler.</title>
<updated>2014-08-15T13:30:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-15T13:30:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6be0b0a8ec9a6badc601190ccee876755ce7efb7'/>
<id>urn:sha1:6be0b0a8ec9a6badc601190ccee876755ce7efb7</id>
<content type='text'>
Some small code clean-ups that result in about 80 bytes ROM saving for
stmhal.
</content>
</entry>
<entry>
<title>py: Include mpconfig.h before all other includes.</title>
<updated>2014-06-21T19:43:22+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-06-21T19:43:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=59c675a64c1d9757d50ad4627da67a6f996a99fb'/>
<id>urn:sha1:59c675a64c1d9757d50ad4627da67a6f996a99fb</id>
<content type='text'>
It defines types used by all other headers.

Fixes #691.
</content>
</entry>
<entry>
<title>Tidy up some configuration options.</title>
<updated>2014-05-21T19:32:59+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-21T19:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=58ebde46646dd49d22b2accfa9c7a78e15921e48'/>
<id>urn:sha1:58ebde46646dd49d22b2accfa9c7a78e15921e48</id>
<content type='text'>
MP_ALLOC_* -&gt; MICROPY_ALLOC_*
MICROPY_PATH_MAX -&gt; MICROPY_ALLOC_PATH_MAX
MICROPY_ENABLE_REPL_HELPERS -&gt; MICROPY_HELPER_REPL
MICROPY_ENABLE_LEXER_UNIX -&gt; MICROPY_HELPER_LEXER_UNIX
MICROPY_EXTRA_* -&gt; MICROPY_PORT_*

See issue #35.
</content>
</entry>
<entry>
<title>py: Turn down amount of RAM parser and compiler use.</title>
<updated>2014-05-05T12:19:03+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-05T12:19:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=66e18f04d811197854c0ce970b2dc8ac17deaebc'/>
<id>urn:sha1:66e18f04d811197854c0ce970b2dc8ac17deaebc</id>
<content type='text'>
There are 2 locations in parser, and 1 in compiler, where memory
allocation is not precise.  In the parser it's the rule stack and result
stack, in the compiler it's the array for the identifiers in the current
scope.  All other mallocs are exact (ie they don't allocate more than is
needed).

This patch adds tuning options (MP_ALLOC_*) to mpconfig.h for these 3
inexact allocations.

The inexact allocations in the parser should actually be close to
logarithmic: you need an exponentially larger script (absent pathological
cases) to use up more room on the rule and result stacks.  As such, the
default allocation policy for these is now to start with a modest sized
stack, but grow only in small increments.

For the identifier arrays in the compiler, these now start out quite
small (4 entries, since most functions don't have that many ids), and
grow incrementally by 6 (since if you have more ids than 4, you probably
have quite a few more, but it wouldn't be exponentially more).

Partially addresses issue #560.
</content>
</entry>
<entry>
<title>Add license header to (almost) all files.</title>
<updated>2014-05-03T22:27:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-03T22:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04b9147e150d2d6fa3750f312fe328b6a71c1b28'/>
<id>urn:sha1:04b9147e150d2d6fa3750f312fe328b6a71c1b28</id>
<content type='text'>
Blanket wide to all .c and .h files.  Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.

Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
</content>
</entry>
<entry>
<title>py: Implement keyword-only args.</title>
<updated>2014-04-27T14:50:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-27T14:50:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2827d62e8b5790b2d770b9ce54e25cd56e949f20'/>
<id>urn:sha1:2827d62e8b5790b2d770b9ce54e25cd56e949f20</id>
<content type='text'>
Implements 'def f(*, a)' and 'def f(*a, b)', but not default
keyword-only args, eg 'def f(*, a=1)'.

Partially addresses issue #524.
</content>
</entry>
<entry>
<title>py: Remove unique_codes from emitglue.c.  Replace with pointers.</title>
<updated>2014-04-13T10:04:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-13T10:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=df8127a17eeb3057e820180e318ec3d915111b6a'/>
<id>urn:sha1:df8127a17eeb3057e820180e318ec3d915111b6a</id>
<content type='text'>
Attempt to address issue #386.  unique_code_id's have been removed and
replaced with a pointer to the "raw code" information.  This pointer is
stored in the actual byte code (aligned, so the GC can trace it), so
that raw code (ie byte code, native code and inline assembler) is kept
only for as long as it is needed.  In memory it's now like a tree: the
outer module's byte code points directly to its children's raw code.  So
when the outer code gets freed, if there are no remaining functions that
need the raw code, then the children's code gets freed as well.

This is pretty much like CPython does it, except that CPython stores
indexes in the byte code rather than machine pointers.  These indices
index the per-function constant table in order to find the relevant
code.
</content>
</entry>
<entry>
<title>py, compiler: Turn id_info_t.param into a set of flags.</title>
<updated>2014-04-09T13:42:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-09T13:42:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=11d8cd54c992eee55f27d3779738626bdc095c03'/>
<id>urn:sha1:11d8cd54c992eee55f27d3779738626bdc095c03</id>
<content type='text'>
So we can add more flags.
</content>
</entry>
</feed>
