Questions tagged [logic-programming]
The logic-programming tag has no summary.
20 questions
-2
votes
1
answer
170
views
System design to present live query results over realtime data
Question
What is a good storage layer, coding paradigm, and query language for computing over realtime data?
Use-case
For example, stock and options prices are (essentially) realtime data streams. I ...
2
votes
3
answers
859
views
Logic Programming(Unification) vs List Comprehensions (in Functional Programming)
I found this answer on StackOverflow very clear to explain the difference beween the Logic Programming paradigm and the Functional Programming paradigm:
The thing that makes logical append different ...
2
votes
0
answers
122
views
What makes the functional and logic programming paradigms well suited for programming AI? [duplicate]
I have been researching different programming paradigms. I have found a lot of people saying that one of the areas where logic and functional programming are particularly good is programming AI, but I ...
0
votes
1
answer
220
views
Calculating WPM given a variable stream of input
I'm creating an application that sits in the background and records all key presses (currently this is done and working; an event is fired every keydown/keyup). I want to offer a feature for the user ...
20
votes
2
answers
5k
views
How to implement interactive programs (like games/simulations) using logic programming?
I've heard that logic programming can serve as a general-purpose alternative to other programming paradigms such as OO or functional programming. (Since Prolog is Turing-complete, this must be so!)
...
9
votes
2
answers
3k
views
How would I combine 'Command' and 'Composite' to simulate a time delay?
As a learning exercise (I am not in school - just an old guy trying to learn something new), I am trying to write a logic gate simulation that incorporates propagation delay. The user should also be ...
5
votes
3
answers
1k
views
Is saying "if ( $a != null && $a == 5)" the same as "if ($a == 5)"
First off, sorry if this is answered somewhere else. I did a brief search, but wasn't sure how to ask in search terms.
I'm looking at some code and came across lot's of statements like this:
if ( ($...
15
votes
1
answer
6k
views
Is the Mercury Programming Language used in the field?
I've strong interests in Functional and Logic programming and Mercury seems like a good blend of the two. Is it used in industry at all? I'm one to learn a language just for the fun of it but it would ...
3
votes
1
answer
1k
views
Good introduction to metaprogramming in Prolog?
I would like to make for example imperative programs as output of Prolog (shaders of graphic card) and also event-driven programs (game logic) ... also I would like to learn how to metaprogram in ...
3
votes
3
answers
770
views
Scheme and Functional programming is to "Structure and Interpretation of Computer Programs" as Prolog and Logic programming is to what book? [closed]
I'm looking for some advice how to get started with Logic programming, and I am really enjoying working through the Scheme book "Structure and Interpretation of Computer Programs." Is there a similar ...