Search found 4 matches

by dwhall256
Sun Feb 03, 2019 10:24 pm
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 3831

Re: ANN: ufarc - state machine lib for uasyncio

@pfalcon, thank you for the feedback. farc uses the asyncio event loop so as to not re-invent the wheel. I enjoy the non-blocking ability, the timer and spawning execution o a function via run(). I may not be using it as intended, but it's what worked for me on the desktop. I am experimenting with u...
by dwhall256
Sat Feb 02, 2019 4:19 pm
Forum: Programs, Libraries and Tools
Topic: ANN: ufarc - state machine lib for uasyncio
Replies: 4
Views: 3831

ANN: ufarc - state machine lib for uasyncio

Introduction ufarc is a QP -like framework to help you build an async/concurrent application using hierarchical state machines with message passing and run-to-completion semantics (in less than 500 sloc). Why use ufarc? I became a bit disillusioned with CPython's asynchronous syntax in its early da...
by dwhall256
Mon Jan 28, 2019 4:23 am
Forum: Programs, Libraries and Tools
Topic: namedtuple difference with CPython
Replies: 5
Views: 3827

Re: namedtuple difference with CPython

I have investigated further via a debugger. The (trimmed) callstack is: type_attr() // objtype.c mp_store_attr() mp_execute_bytecode() // BC_STORE_ATTR Inside type_attr(), the self_in argument's locals_dict is NULL. The function's logic prevents storing the attribute and leaves the dest[0] argument ...
by dwhall256
Thu Jan 24, 2019 6:26 am
Forum: Programs, Libraries and Tools
Topic: namedtuple difference with CPython
Replies: 5
Views: 3827

namedtuple difference with CPython

MicroPython v1.9.4-787-gda72bb683 on 2019-01-23; darwin version Use Ctrl-D to exit, Ctrl-E for paste mode >>> from ucollections import namedtuple >>> Event = namedtuple("Event", ["signal", "value"]) >>> Event.EMPTY = Event("EMPTY", None) Traceback (most recent call last): File "<stdin>", line 1, in ...