This is a work in progress -- not good for anything yet!
cabal install
cabal build
./test.sh
A programming language based on the principles of freedom and category theory.
License: Apache License 2.0
This is a work in progress -- not good for anything yet!
cabal install
cabal build
./test.sh
Instead of having a Pattern type, use Expr in place of Pattern with the expected invariant that patterns are only made of symbols and applications.
This will entail computation on types happening in parallel with computation on exprs all the time. Omitting unnecessary type computation is an optimization.
This issue is done when the program has been analyzed for opportunities to reduce the computational complexity class of algorithms, and all easy opportunities to do so have been pursued.
How should files and namespaces be related?
Suggestion: three files, Core.hs, Digest.hs, Evaluate.hs. Digest and Evaluate depend on Core. Digest depends on Evaluate.
TODO: what all should it include?
Be able to infer the value of an implicit argument by noticing that the context provides exactly one way of constructing a value of the argument's type. This feature should be able to replace simple uses of type classes. Example:
Bool : Type
true : Bool
false : Bool
Eq : Type -> Type
eq : {a : Type} -> {inst : Eq a} -> a -> a -> Bool
Foo : Type
foo : Foo
bar : Foo
eqFoo : Eq Foo
eq foo foo => true
eq bar bar => true
eq {inst = eqFoo} x y => false
example : Bool
example => eq foo bar
Expected result: example => false. eq foo bar is elaborated to eq {a = Foo} {inst = eqFoo} foo bar.
It's redundant with the definedType of the Symbol which is the variable.
Find all code paths and use reasoning to verify that each code path is executed by the test cases. Error conditions are excluded from the scope of this issue.
It should run freecat on all the test cases in test/cases. It should check that all equations for each test case are true in the test case's context.
E.g., should be able to write: e.g.: map : {a : Type} -> {b : Type} -> (a -> b) -> List a -> List b, with the values of a and b inferred at the call site during digestion or evaluation if not specified explicitly.
For this issue, it's sufficient to have one tactic for inferring the value of implicit arguments, based on unification of terms and types of terms around the function call site.
Infer implicit argument declarations for free variables in type declarations. E.g., should be able to write: map : (a -> b) -> List a -> List b. This should be equivalent to: map : {a : Type} -> {b : Type} -> (a -> b) -> List a -> List b. The types of a and b should be inferred from the context of the usage of the variables. E.g., here List : Type -> Type, so from the usage List a you can infer a : Type.
Every FreeCat concept should be first-class reflected within FreeCat. There should be types for exprs, symbols, contexts, etc. There should be functions for context loading and expr evaluation. What else?
Some Expr and Equation are generated dynamically, e.g. via evaluation. These can still get SourcePos values by inheriting from what they're derived from.
Implement Haskell-style comments: -- and {- -}. Nested comments should be supported.
This issue is done when every error condition provides meaningful, useful output including line numbers and so forth; when the error and debug output is not excessively verbose by default; when there is no debug output for an error-free program by default; and when error reporting is tested in the automated regression suite.
This is possible because the type of the VariableDeclaration is redundant with the definedType of the Symbol.
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.