Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98475

Re: [ANN] MicroPython 1.5

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Paul Sokolovsky <pmiscml@gmail.com>
Newsgroups comp.lang.python
Subject Re: [ANN] MicroPython 1.5
Date Sun, 8 Nov 2015 22:27:58 +0200
Lines 87
Message-ID <mailman.145.1447014486.16136.python-list@python.org> (permalink)
References <mailman.132.1446996971.16136.python-list@python.org> <87ziyotkfr.fsf@nightsong.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de u6+p4v4XpIDfs9PenqII+gQOzhXgwHwY9pNIJMD2REUg==
Return-Path <pmiscml@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'static': 0.03; 'one?': 0.05; 'python3': 0.05; 'builtin': 0.07; 'emulate': 0.07; 'keys,': 0.07; 'pypi': 0.07; 'subject:ANN': 0.07; 'chance?': 0.09; 'http,': 0.09; 'patches': 0.09; 'posted.': 0.09; 'repl': 0.09; 'simplified': 0.09; 'target,': 0.09; 'python': 0.10; 'systems.': 0.11; 'fallback': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'ssl,': 0.16; 'stuff.': 0.16; 'titled': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'implementing': 0.18; 'settings.': 0.18; 'shipped': 0.18; 'ssl': 0.18; ';-)': 0.18; 'programmer': 0.18; 'project,': 0.18; 'language': 0.19; 'subject:] ': 0.19; 'library': 0.20; 'changes': 0.20; '2015': 0.20; "aren't": 0.22; 'ones.': 0.22; 'spring': 0.22; 'bit': 0.23; 'seems': 0.23; '(you': 0.23; 'patch': 0.24; 'plain': 0.24; 'previously': 0.24; 'header:In-Reply-To:1': 0.24; 'feature': 0.24; 'paul': 0.24; 'module': 0.25; "doesn't": 0.26; '(which': 0.26; 'checking': 0.27; 'see,': 0.27; 'idea': 0.28; 'this.': 0.28; 'initial': 0.28; 'btw,': 0.29; 'end,': 0.29; 'forces': 0.29; 'pep': 0.29; 'subset': 0.29; 'workaround': 0.29; 'raise': 0.29; '(including': 0.30; 'board': 0.30; 'code': 0.30; 'initially': 0.30; 'probably': 0.31; 'everyone': 0.31; "can't": 0.32; 'implement': 0.32; 'posting': 0.32; 'maybe': 0.33; 'point': 0.33; 'smart': 0.33; '(for': 0.34; 'worked': 0.34; 'add': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'growing': 0.35; 'generic': 0.35; 'nov': 0.35; 'received:74.125.82': 0.35; 'asking': 0.35; 'supports': 0.35; 'but': 0.36; 'too': 0.36; 'instead': 0.36; 'there': 0.36; 'possible': 0.36; 'to:addr:python- list': 0.36; 'really': 0.37; 'being': 0.37; 'client': 0.37; 'thanks': 0.37; 'hundreds': 0.37; 'release': 0.37; 'charset:us- ascii': 0.37; 'doing': 0.38; 'no,': 0.38; 'anything': 0.38; 'mean': 0.38; 'format': 0.39; 'does': 0.39; 'enough': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'hello,': 0.40; 'some': 0.40; 'questions': 0.40; 'high': 0.60; 'decision': 0.61; 'skip:u 10': 0.61; 'advanced': 0.61; 'email addr:gmail.com': 0.62; 'show': 0.62; 'hear': 0.64; 'within': 0.64; 'our': 0.64; 'decided': 0.66; 'course.': 0.67; 'products': 0.70; '(while': 0.84; '10th': 0.84; 'footprint': 0.84; 'manager).': 0.84; 'milestone': 0.84; 'nice,': 0.84; 'productively': 0.84; 'theirs': 0.84; 'touched': 0.84; 'feelings': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=a2RacfCRfsuimg2rdOehCOKX48pRHza5nxHy9ToRRAE=; b=YrSI5Ad0Q9PpizkGp08jKiBimDt5Wm+HIznCCTbQIuVBknPhWv/BVuz+u9Ssak0Y+t /vEMCseIv15tEEWW5zxNJf0Q1KeBc3BQ2kSWP1Qy3PzSZ/6gbbXZTaAth2UTafxHPKPV kAMEhvdaFujd6KwC9kuiFAyvfqV+tw8WQ/y8XAj6MPDh2XCc6jO54sHOsW2NCF/yjtXQ SLOecUrE+6uVqTVN23P8Ui6fTCd7/SKOLQ2UmmYPOIVufFymzrpVprOEPiusYcYNVapB TvOLZEdrOFtxy7OIE0BXx33tZFqhEbAj10K6wFCj1lYBrm0Gtobmd2z231V8VhsY4XYi 1Gbg==
X-Received by 10.28.19.198 with SMTP id 189mr22319026wmt.103.1447014483341; Sun, 08 Nov 2015 12:28:03 -0800 (PST)
In-Reply-To <87ziyotkfr.fsf@nightsong.com>
X-Mailer Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-pc-linux-gnu)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98475

Show key headers only | View raw


Hello,

On Sun, 08 Nov 2015 10:28:24 -0800
Paul Rubin <no.email@nospam.invalid> wrote:

> Paul Sokolovsky <pmiscml@gmail.com> writes:
> > Recent 1.5 release is an important milestone for the project, major
> > changes including:
> 
> Thanks for posting this.  We don't hear enough about MicroPython on
> this newsgroup so it's good to get these announcements.
> 
> Is the language still Python 3.4?  Will it implement 3.5 sometime
> soon?

Yes, we already implement the most important 3.5 feature - ability to
format bytes: b"foo%s" % b"bar" ;-).

> > 1. Advanced REPL support with smart auto-indent and auto-completion
> 
> Hmm does this make the code footprint significantly bigger?

No, as everything else in MicroPython, code implementing this feature
is well-optimized, it did cost few hundreds of bytes to implement.

> > 2. Support for client SSL connections.
> 
> Nice.  Does it check the server certificate?  

The driving force for adding SSL was being able to download package
from PyPI (for builtin upip package manager). Unfortunately, PyPI forces
SSL, so previously we had to fallback to wget for downloads, which
limited upip to unix-like systems. So, the way we use SSL is as bloated
plain HTTP, just to workaround PyPI's maintainers' decision to raise
the bar too high to access it. Consequently, nobody yet worked on
certificate checking and other stuff.

> Is it based on TLSLite by any chance?

I had an idea to port TLSLite and even submitted couple of patches to
it, I had an idea to write a module titled "insecureSSL" which would
just emulate SSL by doing as little as possible processing and using
static session keys, etc. - just to prove the point that there can't be
security without both parties consenting, and mis-applied "security" is
nothing but a denial-of-service. But I gave up in the end, deciding to
take that productively and add generic SSL client support using axTLS
library (which was also optimized to meet MicroPython code size
standards).

(You see, these questions touched ranty feelings - thanks for
asking ;-) ).

> > 5. There're now 2 well-supported microcontroller boards for
> > MicroPython, and dozen(s) community-supported ones.
> 
> The PyBoard is very nice, but what is the other one?  I don't see
> anything about it on the MicroPython web site.  (Hmm, maybe you mean
> the Micro Bit).

It's WiPy, http://wipy.io/ , WiFi-enabled board which had successful
kickstarter in the spring and last month shipped ready boards. Micro
Bit would take some time before general availability of course.

> Btw, I notice that the "store" page doesn't show any products under my
> normal adblock settings.  It's probably best to make it a normal page
> instead of an AJAX one.
> 
> > MicroPython supports growing subset of Python3 standard library
> > (including simplified asyncio package)
> 
> This would look much nicer with the new Python 3.5 syntax.

There was initial patch to add initial async/await support a week within
corresponding PEP was initially posted. But we decided not to haste with
it, or we can add feature which nobody really uses (while we have bunch
of features which almost everyone would use, but which aren't yet
there). So, we decided yo do our homework, and let asyncio/async-await
people do theirs on popularizing it (every 10th Python programmer
using it seems like good target, now it's probably every 10,000th if not
100,000th).


Thanks for the feedback!

-- 
Best regards,
 Paul                          mailto:pmiscml@gmail.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[ANN] MicroPython 1.5 Paul Sokolovsky <pmiscml@gmail.com> - 2015-11-08 02:00 +0300
  Re: [ANN] MicroPython 1.5 Paul Rubin <no.email@nospam.invalid> - 2015-11-08 10:28 -0800
    Re: [ANN] MicroPython 1.5 paul.hermeneutic@gmail.com - 2015-11-08 12:08 -0700
    Re: [ANN] MicroPython 1.5 Paul Sokolovsky <pmiscml@gmail.com> - 2015-11-08 22:27 +0200
    Re: [ANN] MicroPython 1.5 Paul Sokolovsky <pmiscml@gmail.com> - 2015-11-08 22:53 +0200
    Re: [ANN] MicroPython 1.5 Chris Angelico <rosuav@gmail.com> - 2015-11-09 08:47 +1100

csiph-web