Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Introducing Scheme In Perl 6

by grondilu (Friar)
on Jan 29, 2016 at 02:39 UTC ( [id://1153954]=note: print w/replies, xml ) Need Help??


in reply to Introducing Scheme In Perl 6

Nice. Do you plan on making it a slang as well?

Replies are listed 'Best First'.
Re^2: Introducing Scheme In Perl 6
by DrForr (Beadle) on Jan 31, 2016 at 13:56 UTC
    Yeah, once I've gotten the binding down I hope to be able to do something like:
    use Slang::Scheme::Guile; guile-sub add( $a, $b ) { + $a $b } say add(1,3); # 4
    because my *ultimate* goal is to use this to embed the logic programming language Kanren into Perl 6, which is a set of Scheme primitives that provide goal-searching and backtracking. You could do something like:
    use Slang::Kanren; kanren-fact parent('marcia','jeff'); kanren-fact parent('mike','jeff'); kanren-fact parent('gerald','mike'); # Find out if Jeff shares a common parent with Gerald kanren-goal { parent('gerald',X), parent(X,'jeff') }
    This is of course fairly abstract, and I haven't really researched what the function binding is, I've been working more on the Scheme side.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153954]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found