HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rvitorper

no profile record

Submissions

Show HN: Go-Bt: Minimalist Behavior Trees for Go

github.com
62 points·by rvitorper·3 miesiące temu·12 comments

Ask HN: Why put a HAProxy in front of Nginx?

3 points·by rvitorper·9 miesięcy temu·2 comments

comments

rvitorper
·3 miesiące temu·discuss
Nice. Do you have any resources on the latter? I'd really like to see how much easier is a data driver state machine
rvitorper
·3 miesiące temu·discuss
Hey, thanks a lot for the comment! The supervisor I added - which is a super simple one - ticks using the time.Ticker, which I assume only works with regular intervals. I think adding the built-in exponential backoff would be a nice thing to add, maybe making it go back to the node in a subtick manner. I haven't tested a super large tree or a combination thereof, but I think if the nodes can behave properly with respect to waiting some IO, it can definitely handle quite a large tree. It would be nice to add the capability to handle several trees, though. What do you think?
rvitorper
·3 miesiące temu·discuss
Hey, thanks a lot for commenting. That seems like a nice way to encode state. Did you ever have issues with multiple states being activated at the same time? I'll take some time to explore the hierarchical state machine, as I haven't seen an example of this short of HTN. Making it data-driven seems a nice and easy way to tackle the complexity. I like that
rvitorper
·3 miesiące temu·discuss
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
rvitorper
·3 miesiące temu·discuss
Hey, thanks a lot for the comment. I was thinking about the parallel composite nodes and I was wondering what would make good additions to the project. What do you think? I was going to start implementing something like RequireAny and RequireAll. I was also wondering about the "parallel" side of these nodes. Does it mean they tick all children nodes or does it mean that I spawn one goroutine for each child in a wait group and wait? Would like to hear your thoughts
rvitorper
·9 miesięcy temu·discuss
Somebody, somewhere tried to rollback something and it failed
rvitorper
·9 miesięcy temu·discuss
Exactly
rvitorper
·9 miesięcy temu·discuss
Amen, brother
rvitorper
·9 miesięcy temu·discuss
It’s a bot responding. That much I can tell
rvitorper
·9 miesięcy temu·discuss
Yes
rvitorper
·9 miesięcy temu·discuss
I can’t unsee it either. Will try it later
rvitorper
·9 miesięcy temu·discuss
Right?? Omg, I felt the same way!
rvitorper
·9 miesięcy temu·discuss
They are still high on their power trip. They say creators will have an “opportunity” because creators “think YT might have made a mistake”. What a huge ass announcement
rvitorper
·9 miesięcy temu·discuss
Makes sense. Thanks for the comment
rvitorper
·9 miesięcy temu·discuss
Postgres. It was also a single instance, which made it significantly easier. But nice to know that this is an issue on SQL Server
rvitorper
·9 miesięcy temu·discuss
Does anyone have performance issues with uuidv4? I worked with a db with 10s of billions of rows, no issues whatsoever. Would love to hear the mileage of fellow engineers
rvitorper
·9 miesięcy temu·discuss
As an outsider, I have two questions: - why is Shopify kind of hated in the comments? - what is it DHH said?

Hoping for some context
rvitorper
·9 miesięcy temu·discuss
I like it. Simple, easy, htmx and Flask, batteries-included. Exactly what I was looking for
rvitorper
·9 miesięcy temu·discuss
I’ve heard of a major fintech in South America that stores all the client state on the backend. Millions of users daily and it works
rvitorper
·9 miesięcy temu·discuss
Next.js is still missing lots of backend stuff. Background jobs, cron jobs, queues, etc.