- 29 Posts
- 6 Comments
sebastiancarlos@lemmy.sdf.orgOPto
Programmer Humor@lemmy.ml•Blur's "Boys And Girls" logic in Prolog.
4·1 year agoThis is a nice overview: CLPFD and CLPZ: Prolog Integer Arithmetic
sebastiancarlos@lemmy.sdf.orgOPto
Programmer Humor@lemmy.ml•The Christian and Traditional Family propaganda of Prolog examples
8·1 year agomother can be used in several ways. If both X and Y variables are uninitialized, then it looks for all mother relationships. If one of them is initialized, it looks for matching relationships. If both are initialized, it returns true if such a relationship exists.
sebastiancarlos@lemmy.sdf.orgOPto
Programmer Humor@lemmy.ml•The Christian and Traditional Family propaganda of Prolog examples
9·1 year agoDepends on how you want to define your domain knowledge.
The thing you need to define for sure is the predicate
mother/2(Which has arity 2, or in other words, two arguments). From then on, multiple options are available:- Take
mother(X, Y)as an “axiom”, and define mother terms for all elements:
mother(abel, eve). mother(isaac, sarah).- Derive
mother(X, Y)fromfemale(X)andparent(X, Y)terms.
mother(X, Y) :- parent(X, Y), female(Y).- Smash the institutional gender power structures and define only
parent/2terms instead ofmother/2andfather/2.
- Take
sebastiancarlos@lemmy.sdf.orgOPto
Programmer Humor@lemmy.ml•How to write a programming novel
1·1 year agoBrilliant!
sebastiancarlos@lemmy.sdf.orgOPto
Programmer Humor@lemmy.ml•Real Programmers Implement Functions On Top Of Classes
3·1 year agoI can confirm it’s Catppuccin Mocha. I am not currently aware of the background color issue, but I’ll look into the matter soon. Thanks for letting me know. Also how dare you. But thanks.
Catppuccin


I’m wondering the exact same thing