mastodon.online is one of the many independent Mastodon servers you can use to participate in the fediverse.
A newer server operated by the Mastodon gGmbH non-profit

Server stats:

11K
active users

#statemachine

0 posts0 participants0 posts today
LavX News<p>Harnessing Rust's Async/Await: A Deep Dive into Sans I/O APIs and State Machines</p><p>Explore the innovative use of Rust's async/await syntax to create a sans I/O network protocol API. This article delves into how state machines can be effectively implemented in Rust, offering insights...</p><p><a href="https://news.lavx.hu/article/harnessing-rust-s-async-await-a-deep-dive-into-sans-i-o-apis-and-state-machines" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.lavx.hu/article/harnessin</span><span class="invisible">g-rust-s-async-await-a-deep-dive-into-sans-i-o-apis-and-state-machines</span></a></p><p><a href="https://mastodon.cloud/tags/news" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>news</span></a> <a href="https://mastodon.cloud/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a> <a href="https://mastodon.cloud/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://mastodon.cloud/tags/AsyncAwait" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AsyncAwait</span></a> <a href="https://mastodon.cloud/tags/StateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachine</span></a></p>
JaykeBird<p>For one reason or another, I've found myself writing string parsers a lot in various projects I've done over the years – the kind of parsers where I have to go through char-by-char due to how varied of inputs there could be. ... And so, I've usually ended up with a wide variety of variables and very long repeated code to accomplish this. (cont.)</p><p><a href="https://dotnet.social/tags/csharp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>csharp</span></a> <a href="https://dotnet.social/tags/string" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>string</span></a> <a href="https://dotnet.social/tags/stateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stateMachine</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>&gt; <a href="https://mastodon.social/tags/LegendState" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LegendState</span></a> is an extremely fast <a href="https://mastodon.social/tags/signal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>signal</span></a>-based <a href="https://mastodon.social/tags/state" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>state</span></a> <a href="https://mastodon.social/tags/library" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>library</span></a> with fine-grained <a href="https://mastodon.social/tags/reactivity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>reactivity</span></a> and a powerful sync system that works with any backend.</p><p><a href="https://www.legendapp.com/open-source/state/v3/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">legendapp.com/open-source/stat</span><span class="invisible">e/v3/</span></a></p><p><a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/reactJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>reactJS</span></a> <a href="https://mastodon.social/tags/javaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javaScript</span></a> <a href="https://mastodon.social/tags/observable" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>observable</span></a> <a href="https://mastodon.social/tags/twoWayBunding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>twoWayBunding</span></a> <a href="https://mastodon.social/tags/stateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stateMachine</span></a> <a href="https://mastodon.social/tags/frontEnd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>frontEnd</span></a></p>
marcosh<p>oh, look! My <a href="https://github.com/marcosh/crem" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/marcosh/crem</span><span class="invisible"></span></a> library reached 100 stars on Github!</p><p><a href="https://functional.cafe/tags/haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>haskell</span></a> <a href="https://functional.cafe/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a></p>
Potato Imaginator<p>TIC-80 State Machine tutorial: <a href="https://youtu.be/_kzTnHNEWH4" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/_kzTnHNEWH4</span><span class="invisible"></span></a></p><p><a href="https://peoplemaking.games/tags/tic80" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tic80</span></a> <a href="https://peoplemaking.games/tags/youtube" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>youtube</span></a> <a href="https://peoplemaking.games/tags/youtuber" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>youtuber</span></a> <a href="https://peoplemaking.games/tags/youtubechannel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>youtubechannel</span></a> <a href="https://peoplemaking.games/tags/statemachines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachines</span></a> <a href="https://peoplemaking.games/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a> <a href="https://peoplemaking.games/tags/menu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>menu</span></a> <a href="https://peoplemaking.games/tags/game" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>game</span></a> <a href="https://peoplemaking.games/tags/gamedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedev</span></a> <a href="https://peoplemaking.games/tags/tutorial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tutorial</span></a> <a href="https://peoplemaking.games/tags/tutorials" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tutorials</span></a> <a href="https://peoplemaking.games/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://peoplemaking.games/tags/programmer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programmer</span></a> <a href="https://peoplemaking.games/tags/programminglanguages" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programminglanguages</span></a> <a href="https://peoplemaking.games/tags/lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lua</span></a> <a href="https://peoplemaking.games/tags/2d" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>2d</span></a> <a href="https://peoplemaking.games/tags/2dgame" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>2dgame</span></a> <a href="https://peoplemaking.games/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://peoplemaking.games/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a> <a href="https://peoplemaking.games/tags/creativecoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>creativecoding</span></a> <a href="https://peoplemaking.games/tags/creativity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>creativity</span></a> <a href="https://peoplemaking.games/tags/creative" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>creative</span></a> <a href="https://peoplemaking.games/tags/scripting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>scripting</span></a> <a href="https://peoplemaking.games/tags/lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lua</span></a> <a href="https://peoplemaking.games/tags/pixel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pixel</span></a> <a href="https://peoplemaking.games/tags/pixelart" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pixelart</span></a> <a href="https://peoplemaking.games/tags/nerd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nerd</span></a> <a href="https://peoplemaking.games/tags/geek" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>geek</span></a> <a href="https://peoplemaking.games/tags/Computer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Computer</span></a> <a href="https://peoplemaking.games/tags/ComputerScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ComputerScience</span></a> <a href="https://peoplemaking.games/tags/howto" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>howto</span></a></p>
Jörg 🇩🇪🇬🇧🇪🇺<p>Ich muss ja zugeben daß ich bei programming patterns ein riesiger Fanboy Von state machines bin. Die sind einfach genial.</p><p><a href="https://troet.cafe/tags/ProgrammingPattern" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingPattern</span></a> <a href="https://troet.cafe/tags/StateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachine</span></a> <a href="https://troet.cafe/tags/StateMachineLove" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachineLove</span></a></p>
Jordi Cabot<p>A new <a href="https://fediscience.org/tags/bot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bot</span></a> framework is born 🤖 👶 - Say 👋 to the new <a href="https://fediscience.org/tags/BESSER" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BESSER</span></a> Bot Framework: </p><p>- <a href="https://fediscience.org/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> </p><p>- With an embedded <a href="https://fediscience.org/tags/NLP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NLP</span></a> Engine </p><p>- Tested with 🇫🇷 🇩🇪 🇪🇸 cat 🇺🇸 and partial support for 🇱🇺 </p><p>- <a href="https://fediscience.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>-based with a <a href="https://fediscience.org/tags/FluentAPI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FluentAPI</span></a> to hide the complexities of creating bots</p><p>- With <a href="https://fediscience.org/tags/StateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachine</span></a> semantics to create all types of bots</p><p>- <a href="https://fediscience.org/tags/Intent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Intent</span></a>-based to avoid hallucinations. Add <a href="https://fediscience.org/tags/LLM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LLM</span></a> support for those questions the bot is not <a href="https://fediscience.org/tags/trained" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>trained</span></a> on</p><p>Read more ➡️ <a href="https://livablesoftware.com/besser-bot-framework/" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">livablesoftware.com/besser-bot</span><span class="invisible">-framework/</span></a></p><p>Try it ➡️ <a href="https://github.com/BESSER-PEARL/BESSER-Bot-Framework" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/BESSER-PEARL/BESSER</span><span class="invisible">-Bot-Framework</span></a> 🧰</p>
Bill Seitz<p>Is there any good documentation for a realistic back-end <a href="https://toolsforthought.rocks/tags/StateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachine</span></a>, like for a customer account management system? I'm curious about how many state variables you really need (1 for customer-experience-state, another for financial state?) and how many values you really need (do you use summary/bucket values with a "supplemental" sub-state-field?)......</p>
marcosh<p>The recording of my talk on <a href="https://github.com/marcosh/crem" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">github.com/marcosh/crem</span><span class="invisible"></span></a> I did at <a href="https://functional.cafe/tags/HaskellerZ" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HaskellerZ</span></a> is now online <a href="https://www.youtube.com/watch?v=w8mnp4SGT_M" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=w8mnp4SGT_</span><span class="invisible">M</span></a><br><a href="https://functional.cafe/tags/stateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stateMachine</span></a> <a href="https://functional.cafe/tags/DomainDrivenDesign" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DomainDrivenDesign</span></a> <a href="https://functional.cafe/tags/Haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Haskell</span></a> <a href="https://functional.cafe/tags/functionalProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functionalProgramming</span></a></p>
François Bouteruche (he/him)<p>I didn't know about C# Stateless library before reading Emre Mert's post. I love the idea to build my state machine with C# code. Yet, for .NET cloud native applications, I would probably rely on AWS Step Functions to manage a state machine.<br><a href="https://emremert.dev/state-machine-in-microservice-design" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">emremert.dev/state-machine-in-</span><span class="invisible">microservice-design</span></a> <br><a href="https://awscommunity.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a> <a href="https://awscommunity.social/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a> <a href="https://awscommunity.social/tags/aws" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>aws</span></a> <a href="https://awscommunity.social/tags/stepfunctions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stepfunctions</span></a></p>
Matt York | stackdump.eth<p>more <a href="https://fosstodon.org/tags/birdsite" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>birdsite</span></a> <a href="https://fosstodon.org/tags/stateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stateMachine</span></a> - graphics &gt; text</p>
Matt York | stackdump.eth<p>timeless <a href="https://fosstodon.org/tags/stateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stateMachine</span></a> content from <a href="https://fosstodon.org/tags/birdsite" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>birdsite</span></a></p>
Jim Donegan 🎵 ✅<p><a href="https://mastodon.scot/tags/LeeCronin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LeeCronin</span></a> and <a href="https://mastodon.scot/tags/LexFridman" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LexFridman</span></a> - The Greatest <a href="https://mastodon.scot/tags/Invention" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Invention</span></a> In The History Of The <a href="https://mastodon.scot/tags/Universe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Universe</span></a></p><p><a href="https://www.youtube.com/watch?v=6T_x3Teeq40&amp;ab_channel=LexClips" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=6T_x3Teeq4</span><span class="invisible">0&amp;ab_channel=LexClips</span></a></p><p><a href="https://mastodon.scot/tags/CellularAutomata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CellularAutomata</span></a> <a href="https://mastodon.scot/tags/Life" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Life</span></a> <a href="https://mastodon.scot/tags/Evolution" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Evolution</span></a> <a href="https://mastodon.scot/tags/Computation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Computation</span></a> <a href="https://mastodon.scot/tags/DataStorage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataStorage</span></a> <a href="https://mastodon.scot/tags/Replication" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Replication</span></a> <a href="https://mastodon.scot/tags/StateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachine</span></a> <a href="https://mastodon.scot/tags/TuringMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TuringMachine</span></a> <a href="https://mastodon.scot/tags/VonNeuman" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VonNeuman</span></a> <a href="https://mastodon.scot/tags/Replicator" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Replicator</span></a> <a href="https://mastodon.scot/tags/Replicators" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Replicators</span></a> <a href="https://mastodon.scot/tags/Constructor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Constructor</span></a> <a href="https://mastodon.scot/tags/Constructors" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Constructors</span></a> <a href="https://mastodon.scot/tags/PhaseTransition" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PhaseTransition</span></a> <a href="https://mastodon.scot/tags/PhaseTransitions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PhaseTransitions</span></a> <a href="https://mastodon.scot/tags/Mutation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mutation</span></a></p>
Joey de Villa 🪗<p>Tomorrow at the ECC in Ybor City: Tampa Devs’ meetup featuring presentations on state machines, AI, and Stable Diffusion! (In this post, I explain what state machines are.)</p><p><a href="https://mastodon.cloud/tags/Tampa" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Tampa</span></a> <a href="https://mastodon.cloud/tags/TampaBay" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TampaBay</span></a> <a href="https://mastodon.cloud/tags/meetup" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>meetup</span></a> <a href="https://mastodon.cloud/tags/meetups" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>meetups</span></a> <a href="https://mastodon.cloud/tags/AI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AI</span></a> <a href="https://mastodon.cloud/tags/StateMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachine</span></a> <a href="https://mastodon.cloud/tags/StateMachines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateMachines</span></a> <a href="https://mastodon.cloud/tags/StableDiffusion" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StableDiffusion</span></a> <a href="https://mastodon.cloud/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p><p><a href="https://www.globalnerdy.com/2023/04/04/tampa-devs-this-wednesday-state-machines-ai-and-stable-diffusion/" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">globalnerdy.com/2023/04/04/tam</span><span class="invisible">pa-devs-this-wednesday-state-machines-ai-and-stable-diffusion/</span></a></p>
Christian Dennig 🇪🇺🖖<p>State design pattern is my new favorite for the next couple of weeks, just saying... ✌️ <a href="https://hachyderm.io/tags/GOF" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GOF</span></a> <a href="https://hachyderm.io/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a></p>
David Morgan-Mar<p>I just read about the "Coffeelock" character build in <a href="https://dice.camp/tags/dnd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dnd</span></a> 5th Ed, wherein you multiclass Sorcerer/Warlock and use options to convert back and forth between spell slots and sorcery points, using short rests to accumulate infinite spell slots.</p><p>This sort of interaction is one issue with continually adding new rules for character build options.<br>I eagerly await someone building a Turing-complete state machine with a 5th Edition character build.</p><p><a href="https://www.reddit.com/r/powergamermunchkin/comments/9pc8dy/5e_the_infamous_coffeelock/" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">reddit.com/r/powergamermunchki</span><span class="invisible">n/comments/9pc8dy/5e_the_infamous_coffeelock/</span></a></p><p><a href="https://dice.camp/tags/ttrpg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ttrpg</span></a> <a href="https://dice.camp/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a></p>
Helge<p>I really like this exercise. It reminds me of being young and learning that there was a rule to check if a number is divisible by 7 was exciting.</p> <p>Of course, now I'm a little bit jaded. Still writing a regex that checks if a number is divisible by 13 can be a fun diversion.</p>
JulianCalaby<p>I got <a href="https://social.treehouse.systems/tags/nerdsniped" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nerdsniped</span></a> over on the bird site with the knowledge that one can build a <a href="https://social.treehouse.systems/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a> to do a one-pass check if a number is divisible by some pre-set number. (Which means there is a <a href="https://social.treehouse.systems/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> for each of these state machines)</p><p>Basic principle is this, using division by 3 in base 10 as an example:<br>* have a state for each possible remainder: 0, 1, 2<br>* for each state, we make transitions for each possible input digit<br>* to do this we multiply the state's number by the base, add our input digit, then calculate the remainder of that, producing the end of that transition. E.g. for state 2, input digit 5, we multiply 2 by 10 (20) add 5 (25) then calculate the remainder (1) So there's a transition from 2 to 1 for the input digit 5.</p><p>The full machine for dividing by 3 in base 10 is attached.</p><p>In base 10, there's a handy trick to determine if some random number is divisible by 3: add up all the digits, and if the resulting sum is divisible by 3, the original number is divisible by 3.</p><p>You can also build a state machine for this trick, which ends up being the exact same state machine as the one produced above.</p><p>This means that my two favourite number tricks are actually the same number trick!</p>
dazraf<p><a href="https://xstate.js.org" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">xstate.js.org</span><span class="invisible"></span></a><br><a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/typescript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>typescript</span></a> <a href="https://mastodon.social/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a></p>
Eroax<p>The crazy <a href="https://fosstodon.org/tags/3d" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>3d</span></a> <a href="https://fosstodon.org/tags/cardgame" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cardgame</span></a> shenanigans continue lol. This one had me very stumped for a bit, apparently these cards really wanted to hug the camera.</p><p>Besjdes that though, I managed to rewrite my cards to work based off states. But gosh I hate working with a <a href="https://fosstodon.org/tags/statemachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>statemachine</span></a>, I never know what should or shouldn't be a state.</p><p>But hey, they hover and select so progress!! I think..</p><p><a href="https://fosstodon.org/tags/GodotEngine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GodotEngine</span></a> <a href="https://fosstodon.org/tags/gamedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedev</span></a> <a href="https://fosstodon.org/tags/gamejam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamejam</span></a></p>