When will Rule Machine be replaced by WebCORE?

Ask: execute webcore positions as fast/efficient as rule machine logic.

Rule machine has terrible UI but fast logic automations.

Webcore has desirable UI but inconsistent automation speed.

All depends upon what you are used to.
I'm doing fine with Rule Machine but can't figure out my way around WebCORE.

7 Likes

To directly address the question posed in your thread title: probably never.

Why wouldn’t the platform continue to support both?

5 Likes

I think the point is they want the Webcore UI with the execution speed of Rule Machine. They are assuming if webcore became the "main" rule engine that its performance would be increased. Which is probably not the case.

My first thought was "Can't we each already do that?" (If we want to.) :wink:

1 Like

Agreed.

I’m not sure why it would even be categorically true that rule machine rules execute faster than webcore pistons? I would think it depends on the rule and the piston.

2 Likes

When I used to run WebCore along-side Rule Machine, I never noticed any difference in responsiveness/execution. When I decided to migrate all my automations from WebCore to RM, I don't remember having any "Oh my, now it runs faster!" moments. Felt the same. :man_shrugging:

3 Likes

I'm an old programmer. So old I don't call myself a software engineer. :rofl:
I love WC and the total freedom to bang away code ideas.
I think the only improvement, beside a WC certification program :stuck_out_tongue_winking_eye: would be a compiler. I'm sure it's just interpreted but I know not what it would compile into.
In the olden days my P code was way faster when Turbo Pascal showed up as it compiled to x86.

1 Like

For years, Bruce has wondered aloud about why it is interpreted. It's probably too late now for WebCoRE to become a compiled engine, but certainly anyone else can create such a product.

Architecturally, it's a great idea to have a Logic Editor that is independent of the execution engine, but remember that's not how it was born. It was an editor within SmartThings and only after the code got staggeringly large, did it add the "web" moniker with a web based Editor. Execution remains inside the hub, of course.

4 Likes

Are you seeing a difference in the execution between webCoRE and Rule Machine? I don't even have Rule Machine installed, so I don't have experience with it.

As you are a programmer, I am curious if you have taken a look at writing your own Hubitat Apps in Groovy? This would truly provide the best performance and the most flexibility. Of course, it does come with a bit of a learning curve and one must write efficient code to get the most out of the platform.

Just wanted to make sure folks are aware of the other big option available to them aside from RM and WC. It is great having so many options on the Hubitat platform. :sunglasses:

10 Likes

To follow-on to what @ogiewon said -- if wonder if in certain cases where WebCORE is noticeably slower, a small groovy app might solve the problem -- not being a WebCORE guy, is it possible to use small Groovy apps to feed WebCORE apps?

Scott

1 Like

Old programmer here. I started using webcore during my SmartThings days many years ago. I transitioned to Hubitat because SmartThings was phasing out webcore. I have a couple hundred webcore pistons running and I do enjoy programming with webcore. I have used Rule Machine many times and have about a dozen running. No real way to compare functionality between the two that I can see. I see pluses/minuses for both, but not enough to favor one over the other. I am learning Python now. I do not have any experience with Groovy, so cannot comment there. But this tired brain really does not want to learn another language.

The last line sums it up. :grin:
Just turned 66 and I'm done with the frustration of learning yet another language.
I'm looking at a 3D printer and wondering, do I really want to learn CAD just to make propper use of that device.
There's only so much time le

:wink:

8 Likes

Darn, @dnickel was a good guy. :wink:

1 Like

Just curious who replaced the thread title?

Doesn’t seem as though OP’s been back since creating the thread.

3 Likes

S/He's been online 16 mins ago.. so had the chance to read/participate.

1 Like

Are you sure that’s what “(16m recently)” means?

It said the same thing when I posted, an hour before your post. And by that interpretation, you were last online a day ago, I haven’t been here for three days :slightly_smiling_face:.

Is a RM actually compiles rules?
When I started with HE back in 2019 I asked Bruce specifically this question. The answer was "no, nothing is compiled". Eventually I learned the RM is an some sort of Interpreter flying over Data Base (but of course, I could be wrong). I am not sure how Groove Code/App is executed but I will not be surprised if this is an Interpreter vs a Compiler.
I am not a SW engineer so, please forgive me if I said something not quite right.