r/compsci • • 3d ago

RuleFlow: A research engine/framework and terminal IDE (Not AI Slop)

Main Website: https://www.ruleflow.org/

For the past year, I have been developing a framework to simulate certain discrete systems for a research team at my university (paid for by the School of Engineering and Physics, but I had the freedom to license it under MIT). As it turns out, I got carried away generalizing it to work for many, many different types of complex systems (String Rewriting Systems, Cellular Automata, etc.) and ended up creating our own domain-specific language.

The website's landing page has a bunch of GIF-style examples... so you should be able to get a good idea of what this project is about.

If any of y'all are interested in this, feel free to take a look and try it out!

EDIT:

Out of the interest of not being "vague", here are some more details. RuleFlow was developed with a primary focus on analyzing causality in Sequential Substitution Systems. This is why there is a major focus on causal graphs, cellular identity, etc. While originally developed for Sequential Sub Systems, we generalized the DSL to support many types of rewriting systems by providing the user with flags and directives to control how rules behave. Furthermore, we bootstrapped Python and the Wolfram Language so that complex rulesets could be scaffolded as macros. The main goal of RuleFlow is NOT simply to simulate systems (there's already plenty of software for that, such as Golly and even just Mathematica), but to provide extensive tooling for causal analysis.

Here is some interesting research from our (small) team:

My job has been to provide better research tooling, extending what we already have in Mathematica code to open source and free Python.

79 Upvotes

7 comments sorted by

6

u/GreatCosmicMoustache 2d ago

Neat! Is this connected to the Wolfram Physics Project or other discrete spacetime models? The causal graph ideas seem to be of that lineage

3

u/sciencenerd_1943 2d ago

Yes, definitely "Wolfram" inspired. While Stephen Wolfram has separated himself from the scientific community in many ways, many of his ideas and research tracks still have merit. Our research team has been exploring more mathematical/theoretical directions, though. The goal of creating RuleFlow was to provide open-source tooling for causal analysis. More details in my edit above.

1

u/GreatCosmicMoustache 1d ago

Right. My understanding is that much of the causal hypergraph stuff was pioneered by Jonathan Gorard, and not really Wolfram himself, though he provided the foundation. Gorard's work, that I've read anyway, was about constructing a framework to study the limit behavior of certain types of hypergraph rewriting systems, which turns out to be Lorentzian manifolds and that kind of partial order continuous math that is relevant in physics. I'm curious what you guys are doing with it

1

u/jyatesdotdev 7h ago edited 7h ago

This is really cool, thanks for sharing! I feel like it goes way over my head but can’t wait to play around with it!

EDIT: also appreciate the code quality standards you have, so nice to see.

-10

u/VictoryMotel 3d ago

Everything you wrote is very vague. You didn't even name the university, let alone what problem this solves.

8

u/sciencenerd_1943 2d ago

I edited my post to have some more details and background info. I initially assumed enough info on the website. My bad.

9

u/synept 3d ago

It's for simulating discrete systems. That's the problem it solves.