News for hackers. Stuff that matters.
Re:Micro Python – a lean and efficient implementation of Pyt... by neil_s on Tuesday June 03, 2014 @02:36PM (#7841983)
Nice! How much of this optimization can be ported back to CPython, keeping compatibility but improving memory usage and speed?
Re:Micro Python – a lean and efficient implementation of Pyt... by carbon12 on Tuesday June 03, 2014 @05:13PM (#7842763)
A lot of the internals are significantly different, and would be difficult to back port. Eg, a Micro Python object is a machine word which might be a pointer to a real object, a small integer, or an interned string. By stuffing small integers (and strings) into the unused bit-space of a machine word, Micro Python can do a lot of integer operations without allocating heap RAM. This is in contrast to CPython where all integers are on the heap (although the ones below 257 are cached).

Another example: calling a function in CPython requires a heap allocation of the call frame. In Micro Python this is generally not needed (unless the function call is significantly complicated).

Re:Micro Python – a lean and efficient implementation of Pyt... by phkahler on Tuesday June 03, 2014 @05:31PM (#7842854)
So never mind back porting. Can the implementation be extended to 100 percent compatibility without losing the benefits? In other words, could it replace cpython?
Re:Micro Python – a lean and efficient implementation of Pyt... by ecnahc515 on Wednesday June 04, 2014 @12:32AM (#7844056)
I would rather have pypy replace cpython than this. Seems like a better bet too due to the design goals.
Re:Micro Python – a lean and efficient implementation of Pyt... by keeperofdakeys on Wednesday June 04, 2014 @03:42AM (#7844426)
Quite simply, this project cut most of the features that big programs depend on, in order to make a smaller, faster core. Things like most of the standard library, meta-programming, and general scalability are included in these cuts. Most people don't realise how much python does underneath for them, which is why cpython is so "bloated" in comparison to this.
Re:Micro Python – a lean and efficient implementation of Pyt... by est on Tuesday June 03, 2014 @09:09PM (#7843553)
The problem is that CPython core developers does think performance is a priority. They think CPython is fast enough for everybody.