[C++; C; C#; F#; Typescript; VB.Net; Python; Powershell; Rust; ...]
[Blazor; Avalonia; Uno; MAUI; ASP.Net; Elmish; Bolero; Unity; ...]
[F*; Lean; (Q|W)?asm; Haskell; Ocaml; Q#; OpenGl; DirectX; Azure, ...]
A simple Programming Language Compiler to Lambda-Calculus, with a Lambda-Runtime
License: MIT License
[C++; C; C#; F#; Typescript; VB.Net; Python; Powershell; Rust; ...]
[Blazor; Avalonia; Uno; MAUI; ASP.Net; Elmish; Bolero; Unity; ...]
[F*; Lean; (Q|W)?asm; Haskell; Ocaml; Q#; OpenGl; DirectX; Azure, ...]
Add a type agnostic type system solver, and build types on top of it.
let tail := (h::t) => t in let head := (h::t) => h in head([1, 2])
expected output : 1 i.e : λb.λc.(b c)
actual output :
Stack overflow.
Repeat 11 times:
--------------------------------
at [email protected](System.String, Expression)
--------------------------------
at [email protected](Expression, System.String, Expression)
at System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr, Void (IntPtr, IntPtr, System.Runtime.CompilerServices.PortableTailCallFrame*), IntPtr)
at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3297-1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.FSharp.Core.FSharpResult`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].Invoke(System.__Canon, System.__Canon)
at [email protected](System.String)
at Microsoft.FSharp.Core.OptionModule.Map[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.FSharp.Core.FSharpResult`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](Microsoft.FSharp.Core.FSharpFunc`2<System.__Canon,Microsoft.FSharp.Core.FSharpResult`2<System.__Canon,System.__Canon>>, Microsoft.FSharp.Core.FSharpOption`1<System.__Canon>)
at [email protected](Expression, System.String, Expression)
at System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr, Void (IntPtr, IntPtr, System.Runtime.CompilerServices.PortableTailCallFrame*), IntPtr)
at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3297-1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.FSharp.Core.FSharpResult`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].Invoke(System.__Canon, System.__Canon)
at [email protected](System.String)
at Microsoft.FSharp.Core.OptionModule.Map[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.FSharp.Core.FSharpResult`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]](Microsoft.FSharp.Core.FSharpFunc`2<System.__Canon,Microsoft.FSharp.Core.FSharpResult`2<System.__Canon,System.__Canon>>, Microsoft.FSharp.Core.FSharpOption`1<System.__Canon>)
at [email protected](Expression, System.String, Expression)
at System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr, Void (IntPtr, IntPtr, System.Runtime.CompilerServices.PortableTailCallFrame*), IntPtr)
at Microsoft.FSharp.Core.OptimizedClosu...
preferably using F# Stacks
try reducing applications with multiple errors into a nested set of Lambda Applicatives (to avoid the shinnanigans of bound checking)
example : instead of sprintf "(%s %s) (emitlambda func) (emitlambda arg)"
we emit Application(emitlambda func, emitlambda arg)
Custom binops get lowered to function calls, but they don't respect the currying, and they use tuples instead.
Support for deeply nested Math exprs like : let x := 2 in let y := 3 in let z := 1 in (z + ( y * x))
Eq Lt Gt after reduction ends in states that are wrong
e.g : let x := 0 = 0 in x
gives \a.\a.a
which should be \a.\b.a
let f := (n) => n + 1 in f(2) + 2
fails
let f := (n) => n + 1 in 1 + f(2)
succeeds
Try Continuation passing or Accumulators !
record 1 level "optics" (the dot operator)
tuple deconstruction and fst snd functions
union match expression
Use STLC or TypeIILC to Verify soundness then emit type erased code as MSIL
let x := let y := (n) => n + 3 in y(4) end x
must give λ_v.λ_g.(_v (_v (_v (_v (_v (_v (_v _g)))))))
but it gives λ_g.λa.(_g (_g (_g (_g (a (a (a a)))))))
Compound of Statement * ((Statement * Type) * Statement ) list
should become
Compound of Statement * Statement list
where the second statement is restricted to the "Bind" node
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.