Every language should come with a Prolog interpreter. :) Well done, ichiban team!
An embeddable Prolog scripting language for Go
21–30 of 36 posts
Re: An embeddable Prolog scripting language for Go
#22Every language should come with a Prolog interpreter. :) Well done, ichiban team!
I never used prolog. In my mind it is some old unused language. What is good about it and why should it be embedded into other languages?
Something I've personally used it for was navigating the parse tree of some T-SQL I was analyzing (it was 100k+ LoC so manual analysis was out of the question). There is a pretty good C# library for parsing T-SQL, but it is unwieldy to use since it relies on visitors and has tons of different typed nodes with a huge inheritance hierarchy. I ended up exporting this to JSON including type information and initially used jq for analysis. However, even that ended up being hard to manage so I switched to Prolog and it was way easier to write. In terms of this project, I particularly liked that the code was so dense and expressive that I could write the program by first testing things out in the REPL.
Re: An embeddable Prolog scripting language for Go
#23Re: An embeddable Prolog scripting language for Go
#24I've been keeping an eye on this to use for the rules engine in a card game I'm writing[0]. Very excited to get back into using Prolog; I think it's fallen by the wayside a bit in the last decade or two but there's some sectors that still have strong arguments for using it if not as the main language then at least an extension language. [0] Inspired by a HN comment a while back about Gleemin, the MTG expert engine in…
We are using it for ETL processing and are very happy with it. The performance is excellent and it is easily extendable.
Re: An embeddable Prolog scripting language for Go
#25I've been keeping an eye on this to use for the rules engine in a card game I'm writing[0]. Very excited to get back into using Prolog; I think it's fallen by the wayside a bit in the last decade or two but there's some sectors that still have strong arguments for using it if not as the main language then at least an extension language. [0] Inspired by a HN comment a while back about Gleemin, the MTG expert engine in…
Oh, hey, that's cool! Good luck with your card game, I hope we'll get to see a "Show HN" soon (no pressure!) :)
If something interesting comes out of it I'd love to do a Show HN but I'd probably have to work things out with my colleague first: he's the brains behind the game design and project, I'm just the code monkey :).
Re: An embeddable Prolog scripting language for Go
#26I've been keeping an eye on this to use for the rules engine in a card game I'm writing[0]. Very excited to get back into using Prolog; I think it's fallen by the wayside a bit in the last decade or two but there's some sectors that still have strong arguments for using it if not as the main language then at least an extension language. [0] Inspired by a HN comment a while back about Gleemin, the MTG expert engine in…
I would love to hear more about this! Do you blog?
Re: An embeddable Prolog scripting language for Go
#27Earlier quoted context omitted.
I would love to hear more about this! Do you blog?
Unfortunately I don't have anything written about it now (or a blog at all), but once things get more solid and I have code I'm not embarrassed to show I'd love to do a writeup or two.
I've learned over time that what I consider a barely acceptable first draft of either is often even so of great interest to other people and reminding myself that my own perfectionism is in fact mostly counterproductive. Ok, for critical code that really really needs to work reliably I let myself go full pure math grad on the problem but for everything else ... shipping is a feature.
A suggestion to try and help with this - I'll often show stuff to a couple of trusted friends first and if the result is mostly approving noises that helps a lot as leverage against my brain to get it to agree I should hit publish in spite of my reservations.
Either way, good luck, and I hope whatever else happens you have fun working on this :D
Re: An embeddable Prolog scripting language for Go
#28I've been keeping an eye on this to use for the rules engine in a card game I'm writing[0]. Very excited to get back into using Prolog; I think it's fallen by the wayside a bit in the last decade or two but there's some sectors that still have strong arguments for using it if not as the main language then at least an extension language. [0] Inspired by a HN comment a while back about Gleemin, the MTG expert engine in…
Have you had a look at Expr? https://github.com/antonmedv/expr We are using it for ETL processing and are very happy with it. The performance is excellent and it is easily extendable.
On the other hand, definitely something to keep in mind for the matchmaking system I'm writing along with the game, so I appreciate you bringing it up.
Re: An embeddable Prolog scripting language for Go
#29Every language should come with a Prolog interpreter. :) Well done, ichiban team!
I never used prolog. In my mind it is some old unused language. What is good about it and why should it be embedded into other languages?