Giter VIP home page Giter VIP logo

pyshen's People

Contributors

lmatthieu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pyshen's Issues

Uncurrying is not supported

Uncurrying is not correctly supported in pyshen. I had the same problem when I first implemented ShenRuby.

You can pass the full Shen test suite without it, but when you try to run through the examples in Shen in 15 minutes you'll find that ((/. X Y (* X Y)) 6 7) does not produce 42 like expected, but instead gives:

0-) ((/. X Y (* X Y)) 6 7)
<functools.partial object at 0x10b009578>

This form compiles to the KLambda expression ((lambda X (lambda Y (* X Y))) 6 7). The KLambda implementation is expected to support uncurrying and treat it as the equivalent of (((lambda X (lambda Y (* X Y))) 6) 7).

It may not be applicable to your implementation approach, but you can see the relevant code for how I ended up handling this in ShenRuby here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.