really-small-backpack-example
Kind2
really-small-backpack-example | Kind2 | |
---|---|---|
8 | 5 | |
50 | 2,748 | |
- | - | |
2.8 | 9.5 | |
9 months ago | over 1 year ago | |
Haskell | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
really-small-backpack-example
- Haskell is the greatest programming language of all time
-
Implied bounds and perfect derive
Isn’t this what Haskell’s backpack does? https://github.com/danidiaz/really-small-backpack-example
-
Polymorphic unpacking through backpack?
Also worth mention how module identity works in Backapck: two modules instantiated separately but with the same ingredients are "equal" and have compatible types.
-
Using dependent types to write proofs in Haskell
Anyway, an alternative to RULES that I've explored is to put the proofs behind a module signature and compile to versions of the program, one with "real" proofs and another with unsafeCoerced ones. This avoids the danger of the RULEs silently ceasing to apply because of name changes (don't know how common is that danger in practice though).
-
Video Tutorial: "Using proofs to make functions faster over length-indexed vectors" (Richard Eisenberg)
Here's an example of how to use Backpack (instead of rewrite rules) to alternate between "normal" proofs and the ones which use usafeCoerce.
-
Proposal for parametric modules like Coq's?
Perhaps Backpack could enable something similar to that?
-
Anyone actively using dhall-to-cabal or hpack-dhall?
While being nowhere near programmability, Cabal's common stanzas can be very useful to reduce duplication. An example.
- Abstracting monad stacks with Backpack
Kind2
-
Haskell is the greatest programming language of all time
Agreed. Even from a PLT perspective, I prefer Kind2 by the Kindelia Foundation for supporting inductive theorem proving (and hopefully some level of dependent types), as well as being faster to boot.
-
HVM, the parallel functional runtime, will soon run on GPUs!
I agree. Keep in mind our language (Kind-Lang) does target the HVM, and it is really promising. The type-checker is the fastest among proof assistants, by far; the error messages are really nice; it has a fully dependent type system which is a breath of fresh air to work with. It is still not production ready though (mostly due to lack of IO), but is the extend of our effort on that direction. We hope other lang developers get encouraged to target the HVM to. Elm and Idris are great candidates for that IMO.
-
The Little Prover
Another very small proof system: https://github.com/moonad/formcorejs
The core implementation is under 700 lines of JS, including the parser: https://github.com/moonad/FormCoreJS/blob/master/FormCore.js
The author has since moved on to building a runtime with optimal evaluation (https://github.com/kindelia/hvm) and a new proof language on top of that (https://github.com/Kindelia/Kind2) with considerably better performance than existing proof systems.
- What would be your “perfect” programming language?
- [28/03 a 03/04] - O que você vai desenvolver essa semana?
What are some alternatives?
rust-semverver - Automatic checking for semantic versioning in library crates
brainfuck-web-app - a web app written in Brainfuck that returns your user-agent to you
macaroni.nix
Loritta - 💁 A multipurpose, multilanguage, customizable, modular, and very cute bot for Discord! ~Making your server more awesome~
agda2hs - Compiling Agda code to readable Haskell
smalltt - Demo for high-performance type theory elaboration
sdl-gpu-hs
Functional-Benchmarks - Collection of benchmarks of functional programming languages and proof assistants.
dhall-to-cabal - Compile Dhall expressions to Cabal files
z3 - The Z3 Theorem Prover
cargo-crate-api - Superseded by cargo-semver-check