Maybe we will be able to experience Taligents CommonPoint one day in the browser too.
26 karma · joined August 28, 2021
pa_activity (Blinker, pa_ctx_tm(), uint32_t onMs, uint32_t offMs) {
pa_repeat {
turn_on_LED();
pa_delay_ms (onMs);
turn_off_LED();
pa_delay_ms (offMs);
}
} pa_end
Here the activity definition automatically creates the structure to hold the pc, timer and other variables which would outlast a single tick.Somehow it does not get the attention it should, which is IMHO due to the fact that it is not available in common programming languages.
This is why I tried to create DSLs for C and Swift so that more people could potentially play around with that.
1. A C based lib using protothreads: https://github.com/frameworklabs/proto_activities
2. A Swift DSL: https://github.com/frameworklabs/Pappe
I think the synchronous approach is really profound and hope more people look into it.