Search found 55 matches
- Sun Dec 10, 2017 3:02 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
- Replies: 114
- Views: 134205
Re: uasyncio - asyncio-like cooperative multitasking framework for uPy
Ah, got it. uasyncio have no handles for task cancellation. Everyone else, simply wouldn't put a coro on such sleep if they wanted to be able to cancel it ;-). What if I have "checker" coroutine, which make some request via network and wait 1 minute with sleep for next? If I hit ctrl-c, then I need ...
- Sun Dec 10, 2017 12:57 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
- Replies: 114
- Views: 134205
Re: uasyncio - asyncio-like cooperative multitasking framework for uPy
Am I right, if we have scheduled coroutine with `await asyncio.sleep(10 ** 10)` we can't cancel it until 10 ** 10 seconds gone? If so, then this definitely should be fixed.the way sleep() is implemented, it won't be easy to make it cancellable
- Fri Nov 04, 2016 12:47 pm
- Forum: Development of MicroPython
- Topic: FreeDOS build problems
- Replies: 0
- Views: 6925
FreeDOS build problems
https://github.com/micropython/micropython/issues/2560#issuecomment-256791999 Hi, trying to build 1.8.5 µpython for FreeDOS target and have some issue: segfault of linker. After bisecting I found the place where everything breaks. It is extra linker flags https://github.com/micropython/micropython/c...
- Sat Apr 02, 2016 3:07 pm
- Forum: General Discussion and Questions
- Topic: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
- Replies: 7
- Views: 6213
Re: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
That looks reasonable to me (on my phone) Ok, I'm ended with pull right now. https://github.com/micropython/micropython/pull/1956 The clean target is actually in py/mkrules.mk We probably need to add some dependencies on clean so that other build directories get removed as well. Hm, I see removing ...
- Sat Apr 02, 2016 1:40 pm
- Forum: General Discussion and Questions
- Topic: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
- Replies: 7
- Views: 6213
Re: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
Also, I've found that "make clean" does not remove build-freedos directory and micropython-freedos binaries. And there is not target for "clean" in makefile.
- Sat Apr 02, 2016 1:33 pm
- Forum: General Discussion and Questions
- Topic: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
- Replies: 7
- Views: 6213
Re: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
dhylands, what do you think about this patch?
https://github.com/pohmelie/micropython ... e9a8265c8d
https://github.com/pohmelie/micropython ... e9a8265c8d
- Sat Apr 02, 2016 11:59 am
- Forum: General Discussion and Questions
- Topic: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
- Replies: 7
- Views: 6213
Re: Trying to build MicroPython for FreeDOS on Ubuntu 15.10
berghawkins , you should not use https://github.com/pohmelie/micropython-freedos cause micropython is fast growing and lots of changes was made for last 4 months. I will update this repo later (after async/await will be aplied/rejected). Just use unix build with micropython target, as dhylands said...
- Thu Mar 03, 2016 6:39 pm
- Forum: Programs, Libraries and Tools
- Topic: extmod generator
- Replies: 9
- Views: 9520
- Wed Jan 27, 2016 2:17 pm
- Forum: Development of MicroPython
- Topic: Extend syntax
- Replies: 15
- Views: 18591
Re: Extend syntax
"async for" was pretty easy after "async with" and diggin into µpython code. It looks like, everything works fine. I will try to minimize code, refactor a bit and end with pull request…
- Wed Jan 27, 2016 10:34 am
- Forum: Development of MicroPython
- Topic: Extend syntax
- Replies: 15
- Views: 18591
Re: Extend syntax
This was not so hard as I expected. "load method before arguments" works just fine. I was not sure, that there is nothing between loaded method and exception arguments. But hopefully this is true. So I load method before try and right after except my stack looks like [method, a3, a2, a1], so I just ...