yminer / pyshen Goto Github PK
View Code? Open in Web Editor NEWPyShen is a port of the Shen language to Python
License: Other
PyShen is a port of the Shen language to Python
License: Other
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.