News for hackers. Stuff that matters.
Re:“There Is No List” by sillysaurusx on Thursday October 13, 2022 @03:09PM (#33195149)
No way! Is the code available anywhere? I was messing around with this idea too but didn't have the time. That's fantastic. :)

std::variant is really tricky, mostly because of C++'s type system. I went with std::any. My attempt is here: https://gist.github.com/shawwn/63e0f010479efd95ebffdf2108645...

I'd love to see your code and compare notes! Mine is pretty crummy; I'm not sure there are any worthwhile ideas in it. Did you have much trouble with the std::variant route?

Re:“There Is No List” by f1shy on Friday October 14, 2022 @03:43AM (#33200688)
Not jet. I'm working with a friend. Even though the code is in github, is still private, until we have a first working version.

What I'm doing is an extremely simple evaluator, which can do what is required for PDDL: basic arithmetic, logic operators and IF.