metosin / tilakone Goto Github PK
View Code? Open in Web Editor NEWMinimalistic finite state machine (FSM) in Clojure
Minimalistic finite state machine (FSM) in Clojure
Hi,
thanks for this neat little library! While exploring it, I was wondering why ::tk/states
is a sequence of maps with ::tk/name
rather than a map with ::tk/name
as keys. The latter would take care of preventing duplicate state definitions (which AFAICT don't serve a purpose and aren't detected by the validation function right now) as well as improve performance for large state machines because currently, each state lookup requires a linear search. I'm happy to provide a patch if you're interested. If so, let me know if you would like to retain backwards compatibility with the current API.
Hello!
I've added this as a dependency but it is compiling with errors on a cljs project.
------ WARNING #1 - :undeclared-var --------------------------------------------
Resource: tilakone/util.cljc:104:20
Use of undeclared Var tilakone.util/format
--------------------------------------------------------------------------------
------ WARNING #2 - :undeclared-var --------------------------------------------
Resource: tilakone/util.cljc:114:20
Use of undeclared Var tilakone.util/format
--------------------------------------------------------------------------------
Apparently 616410a solves this. Can you push it to clojars, please?
I have no clue how to add remote repos as dependencies.
Thanks for the library!
Cool little library.
The examples in the readme and examples directory don't work with version 0.0.4
which is the dependency given in the readme. The readme and simple.clj
examples throw null pointer exceptions.
It took me a bit to discover that there's a 0.0.5-SNAPSHOT
on clojars that is needed for the examples to work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.