GithubHelp home page GithubHelp logo

isabella232 / agda-rb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from larrytheliquid/agda-rb

0.0 0.0 0.0 1.77 MB

License: Other

Eiffel 0.12% Haskell 99.56% C 0.06% Shell 0.24% JavaScript 0.03%

agda-rb's Introduction

======================================================================== Agda compiler backend to Ruby

This is a bunch of hack edits over a couple of days to the Agda Javascript backend written by Alan Jeffrey.

Examples

https://gist.github.com/1083978

  • Agda modules are compiled to Ruby modules.
  • All arguments are curried.
  • You can store and pass around "Agda" values/constructors/etc, and then "realize" the values in Ruby by calling the final value with its realizer constant (e.g. NAT, VEC, etc.)

Compiling

To compile Agda code to Javascript, use --js on the master branch. To compile to Ruby instead, switch to the ruby branch and use the --js flag (easy to change this to --rb, but was useful in development to quickly compare Javascript and Ruby output).

Use Case

Assuming a completed/fully functioning backend, it would be nice for Ruby shops to be able to reuse existing code that would be too much trouble to rewrite (authentication/client libaries, etc). Also a project like Lemmachine could be ported to Ruby's Rack interface, allowing one to easily deploy to many different Ruby hosting providers (Engine Yard, Heroku, etc).

agda-rb's People

Contributors

larrytheliquid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.