News for hackers. Stuff that matters.
Re:Show HN: Go-Bt: Minimalist Behavior Trees for Go by rvitorper on Wednesday April 08, 2026 @04:36PM (#47695919)
Hey, thanks a lot for the comment. I'd love to see some code about the "express state machines as data". I always had a hard time with state machines, because every time I needed to add a new node, I had to reason about too many transitions, especially when the number of states was enormous. I like the BT structure because of the modularity, but it would be nice to see some other way to implement things - always a welcome addition. Regarding the BTs with channels, I'm very curious about it. Will check the article, for sure
Re:Show HN: Go-Bt: Minimalist Behavior Trees for Go by dgb23 on Thursday April 09, 2026 @03:16AM (#47700325)
To note, the approach in the article is basically the polar opposite from writing a data driven state machine. I default to the latter, but I think it’s worth exloring and understanding the former.
Re:Show HN: Go-Bt: Minimalist Behavior Trees for Go by rvitorper on Thursday April 09, 2026 @10:34AM (#47704307)
Nice. Do you have any resources on the latter? I'd really like to see how much easier is a data driver state machine