Comments (4)
Apply Explicit is formally well-defined and sound atm.
f := λ(: x X)(: y Y). x y;
from lambda-mountain.
Apply Implicit is just a hidden variable.
f := λ(: x X)(: y Y)(implicit z Z). x y;
f x y
reduces to
f x y z
Implicit parameters are applied "after" specialization. A visible candidate a : B - > C
could become a : (ImplicitX,B) -> C
.
from lambda-mountain.
Chain Explicit is either Cons or Apply by default before specialization.
chain := λ(: f (->(X Y)))(: x X). apply f x;
chain := λ(: l L)(: r R). Cons l r;
from lambda-mountain.
Chain Implicit is responsible for both implicit parameters and calling apply. There is nothing complicated about this if it is entirely mechanical. Chain Implicit is the single most direct access to the application syntax: f x
calls chain implicits f x
after all the sugar gets taken off.
chain := λ(implicit ctx FunctionContext)(: x X)(: y Y). (
chain (with (ctx ctx) x) (with (ctx ctx) y)
);
from lambda-mountain.
Related Issues (20)
- Specialization to prefer fragment over function shr shl
- Make test cases to cover struct equivalence over representation
- Codegen maybe-deref of function call HOT 3
- Zero out whitespace in all constructors HOT 1
- Turn set into a normal function call
- Warm Up Memory Access in Compiler
- Use large return types in compiler instead of cdecl pointers
- Prevent lookup of all variables in fragment rendering
- Decent Coverage with Regression Tests
- Hard error if function candidates are plural and irreducible
- Use Btrees more in compiler HOT 1
- BYOB: Build Your Own Bootstrap
- Add support for multi-pass type inference
- Keyed Destructuring
- Make parametric data accessor fragments parametric not specialized
- Parametric Tokens
- Type Parameter Bounds
- Fix Memory Leak in Compile HOT 4
- Invalid memory regions with complex if conditions HOT 1
- GC Wrappers for Super-Large Fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lambda-mountain.