Settings

Theme

Show HN: O'Doyle Rules – a new rules engine for Clojure

github.com

100 points by gw 5 years ago · 20 comments

Reader

harperlee 5 years ago

I like it so much when a project tells you its limitations in the front page, and compares itself with (and points to) possible alternatives in a useful fashion; it should be standard! But is always awesome! THANK YOU!!

capableweb 5 years ago

Best video to see how this rules engine work would be to watch the following video: https://www.youtube.com/watch?v=6_mDiH5_hSc

Zach shows how a simple RPG game is implemented with play-cljc and odoyle-rules

  • stingraycharles 5 years ago

    Thanks for sharing, I’m ashamed to admit that I never really “got” these rule engines, but seeing this example finally made things click for me.

    Am I correct that there’s a very large overlap between rule engines and workflow engines, and one could use a rule engine like this to implement workflows?

    • adamkl 5 years ago

      I have been playing with the idea that a rule engine would work well with a state machine.

      State machine manages the workflow, rule engine determines which transitions to execute?

      Maybe that is overkill, but I've been trying to build a model in my head on how to model complex business processes.

      • jdmichal 5 years ago

        Have you looked into something like BPMN + DMN? BPMN provides workflow modeling and basic decisions, and DMN provides decision tables which can implement more complex rules. There are a couple frameworks which can work on top of that to provide a system implementation.

      • stingraycharles 5 years ago

        Exactly this is what I was thinking. We currently have a workflow engine that is event driven + a projection (think: CQRS), and it’s fairly unwieldy. Most specifically, the business logic is defined all over the place, and I was wondering whether a rule engine would make it easier to define the constraints and business logic to act upon these events.

kyleblarson 5 years ago

I hope I'm not the only one here old enough to get the reference in the engine's name.

  • optimuspaul 5 years ago

    I must be too old because I didn't get it.

  • neovive 5 years ago

    You're not alone :) Now off I go to check if Billy Madison is on Netflix.

  • grimgrin 5 years ago

    prob the biggest reason i don't like these type of comments is that the replies will really never be interesting. there is no way for them to be, by nature of the parent not being interesting

    and i'm not even shaming you, but finally creating words for my thought when i'm irritated heh

    edit: by nature of the parent comment, you are able to unfold the origin of the name (and there was no reference elsewhere). ok, fine then :P

  • stallmanite 5 years ago

    You are not I assure you.

  • leovander 5 years ago

    He does have drawing of O'Doyle at the top of the readme.

  • tyre 5 years ago

    not at all. I'm a 90s child and found this hilarious

strontian 5 years ago

This author is really talented and creates a lot of interesting projects. I spent some time reviewing nightcoders.net and the code quality is really impressive.

mischov 5 years ago

The author also has a Nim version, https://github.com/paranim/pararules

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection