FolkComputer / folk

🎁 Physical computing system.
https://folk.computer
Apache License 2.0
77 stars 4 forks source link

Event statements #76

Open osnr opened 1 year ago

osnr commented 1 year ago
image image
osnr commented 1 year ago

we now have 2 things in production (new Keyboard/terminal stuff & print stuff) that should really be using event statements

jhaip commented 4 months ago

My integration of MQTT messages would also benefit from Event Statements. Same expectations as a key press: event processed once. Currently I am hacking around not having event statements by claiming them and then retracting them 5 seconds later.

s-ol commented 3 months ago

so Claim and Wish add a verb-phrase prefix, seems logical to have a similar structure here. The verb could be Announce? It's a little generic but the alternatives I'm coming up with aren't much better outside a computerbrained context (e.g. "publish" is often used but that only makes sense to people who have heard "pubsub" before).

It would be tidy if the phrase was purely a prefix, so the timestamp should also go at the beginning somehow, maybe something like:

Announce key $key was pressed on keyboard $keyboardSay $this announces at timestamp 1234567 key $key was pressed on keyboard $keyboard

Edit: emit is another verb, but again very technical in origin, maybe hard to put into a human sentence