Search found 1135 matches

by pfalcon
Mon Dec 31, 2018 6:01 pm
Forum: Programs, Libraries and Tools
Topic: Bytecode manipulation infrastructure for MicroPython - modules opcode, dis, mpylib
Replies: 2
Views: 239

Re: Bytecode manipulation infrastructure for MicroPython - modules opcode, dis, mpylib

As an example of what's now possible, there's as an example script which can works both for MicroPython and CPython to dump/disassemble .mpy and .pyc files respectively. When run on .mpy produced from following source: print("loooooooooooooooong string") gives following output: co_argcount 0 co_cell...
by pfalcon
Mon Dec 31, 2018 5:42 pm
Forum: Programs, Libraries and Tools
Topic: Bytecode manipulation infrastructure for MicroPython - modules opcode, dis, mpylib
Replies: 2
Views: 239

Bytecode manipulation infrastructure for MicroPython - modules opcode, dis, mpylib

Bytecode is important part of MicroPython, just as of CPython. However, there was a limited infrastructure to deal with it, namely: MicroPython Unix port can dump bytecode in assembly form with "-v -v" switches. tools/mpy-tool.py from MicroPython distribution, despite its generic name, is quite adho...
by pfalcon
Wed Dec 26, 2018 9:47 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 104
Views: 41389

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

This thread is now back to the "announcements of new uasyncio releases" mode. Please ask technical questions in separate threads, properly titled - after you searched the forum for existing discussions. Please ask non-technical questions in dedicated threads - after you read the existing material on...
by pfalcon
Wed Dec 26, 2018 9:43 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 104
Views: 41389

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

Otherwise, the concerns sounded here are exactly those which were discussed and answered in the thread linked above, https://forum.micropython.org/viewtopic.php?f=2&t=4358&start=30#p32315 . Which shows again that there're some avid "Bob is writer, not reader"'s out there. So, disregard "advices" lik...
by pfalcon
Wed Dec 26, 2018 9:31 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 104
Views: 41389

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

make the default upip install of micropython-asyncio work with mainline MicroPython mattyt , are you sure you knock on the right door? Did you read the post above at all? Did you read the links in it? There's a patch which needs to be merged to "make the default upip install of micropython-asyncio ...
by pfalcon
Mon Dec 24, 2018 7:50 pm
Forum: General Discussion and Questions
Topic: Other new Python implementations
Replies: 5
Views: 2406

Re: Other new Python implementations

Came by this: https://github.com/joncatanio/cannoli .

The usual suspects are there. Ahem, not there.
The main omissions are exceptions and inheritance.
Still cute. Student project, comes with a thesis.
by pfalcon
Sun Dec 23, 2018 5:45 pm
Forum: Programs, Libraries and Tools
Topic: Pycopy, "Advanced MicroPython fork" by pfalcon
Replies: 10
Views: 879

Re: Pycopy, "Advanced MicroPython fork" by pfalcon

Pycopy is needed for the latest version of uasyncio, again: viewtopic.php?f=15&t=85&p=32852#p32852
by pfalcon
Sun Dec 23, 2018 5:42 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 104
Views: 41389

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

The latest release of uasyncio, 2.2, requires a patch https://github.com/micropython/micropython/pull/4217 which was submitted to upstream at the beginning of October and isn't merged still. The situation with the maintenance of upstream MicroPython is discussed in more detail here: https://forum.mi...
by pfalcon
Sat Dec 22, 2018 9:24 pm
Forum: Programs, Libraries and Tools
Topic: Pycopy, "Advanced MicroPython fork" by pfalcon
Replies: 10
Views: 879

Re: Pycopy, "Advanced MicroPython fork" by pfalcon

One feature of my port is micropython-dev, described here: viewtopic.php?f=2&t=5711
by pfalcon
Sat Dec 22, 2018 9:23 pm
Forum: General Discussion and Questions
Topic: ANN: micropython-dev - MicroPython variant for development/research (unix port)
Replies: 2
Views: 264

ANN: micropython-dev - MicroPython variant for development/research (unix port)

One of the biggest aims of MicroPython is to stay small, to accommodate the smallest of systems, and leave as much as possible resources for user applications, instead of hogging them for MicroPython itself. That means that amount of new features which can be added to "production" versions is limite...