Search found 1155 matches

by pfalcon
Fri Mar 08, 2019 10:14 pm
Forum: Development of MicroPython
Topic: Custom port A9G module: help wanted
Replies: 38
Views: 8327

Re: Custom port A9G module: help wanted

more conventional ways of implementing this There's a more conventional way to do it, it's: avoid callbacks at all costs. Callbacks are available in a small part of MicroPython API dedicated to baremetal to show that MicroPython can do anything. But beyond that "yes, we can", callbacks don't scale,...
by pfalcon
Fri Mar 08, 2019 10:05 pm
Forum: Development of MicroPython
Topic: Understanding Inside of Micropython
Replies: 3
Views: 1226

Re: Understanding Inside of Micropython

MicroPython VM works in the same way as any other VM. And there're tons of documentation about how VMs work generated by this civilization. Once you know those, particular details are indeed can be looked up on spot in the source code.
by pfalcon
Sat Mar 02, 2019 3:14 pm
Forum: Other Boards
Topic: MicroPython port to FRDM-KW41Z (NXP)
Replies: 1
Views: 1018

Re: MicroPython port to FRDM-KW41Z (NXP)

MicroPython Zephyr RTOS port supports FRDM-KW41Z and 150 other boards.
by pfalcon
Sat Mar 02, 2019 12:39 pm
Forum: General Discussion and Questions
Topic: Awesome MicroPython list, pfalcon's version
Replies: 8
Views: 3891

Re: Awesome MicroPython list, pfalcon's version

Just as an update, the list is maintained and slowly progresses. I actually have a lot of unsorted links in the backlog, just busy with hacking on exciting things which were long in my TODO, e.g. viewtopic.php?f=15&t=5994
by pfalcon
Fri Feb 22, 2019 10:31 pm
Forum: Programs, Libraries and Tools
Topic: Generating machine code at runtime with MicroPython (sometimes called JIT)
Replies: 3
Views: 1475

Re: Generating machine code at runtime with MicroPython (sometimes called JIT)

Further development along those lines includes LLVM bindings for MicroPython: viewtopic.php?f=15&t=5994
by pfalcon
Fri Feb 22, 2019 10:28 pm
Forum: Programs, Libraries and Tools
Topic: ullvm - LLVM C API bindings for MicroPython (and CPython)
Replies: 0
Views: 768

ullvm - LLVM C API bindings for MicroPython (and CPython)

https://github.com/pfalcon/ullvm/ is a project to provide LLVM bindings for MicroPython (via LLVM's C API, and MicroPython's ffi module). Current examples include JITing a simple expression using both older MCJIT and latest ORC JIT LLVM APIs. The module/samples also work with CPython, thanks to CPyt...
by pfalcon
Fri Feb 22, 2019 10:24 pm
Forum: Programs, Libraries and Tools
Topic: micropython stubs for linting
Replies: 2
Views: 1310

Re: micropython stubs for linting

micropython-lib includes a WIP "typing" module, which was initially contributed, and which I slowly elaborate since then: https://github.com/pfalcon/micropython-lib/tree/master/typing . So, beginnings of typing annotation is there, and interested parties would be able to work on actual typing stubs ...
by pfalcon
Fri Feb 22, 2019 5:36 am
Forum: Programs, Libraries and Tools
Topic: micropython-lib project: CPython backports
Replies: 5
Views: 2287

Re: micropython-lib project: CPython backports

Initial backports of "ffi" and "uctypes" modules are available. Functionality is enough to e.g. run ffi_example.py from MicroPython distro: $ pip3 install --user micropython-cpython-ffi $ pip3 install --user micropython-cpython-uctypes $ cd micropython/examples/unix $ python3 ffi_example.py libc: <f...
by pfalcon
Tue Feb 19, 2019 3:06 pm
Forum: Programs, Libraries and Tools
Topic: micropython-lib - "distributed" uPython standard library
Replies: 30
Views: 30300

Re: Problem with uaiohttpclient run witl pycopy

eltomek wrote:
Tue Feb 12, 2019 9:38 pm

Code: Select all

  File "/home/tomek/.micropython/lib/datetime.py", line 1836, in _create
AttributeError: type object 'tzinfo' has no attribute '__new__'
That's why https://github.com/micropython/micropython/pull/3391 exists.